Skip to content
Snippets Groups Projects

fix #840

All threads resolved!
Merged Mladen Ivkovic requested to merge fix_840 into master
All threads resolved!

Fixes #840 (closed) .

It was indeed an edge case. Basically you randomly drew all zeros: The test simulates a ti_current by taking a valid time_begin and adding a random displacement < dt to it.

You drew time_begin = 0, and displacement = 0, giving ti_current = 0. The "expected correct result" was then wrong in the test, and wanted to see -16 (-dt) rather than 0.

This should fix it. Passes the offending test with the specified seed. Ran 100 additional 100 realizations, works as intended.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading