fix #840
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.