Skip to content

Commit

Permalink
fix #840
Browse files Browse the repository at this point in the history
  • Loading branch information
Mladen Ivkovic authored and MatthieuSchaller committed Jan 17, 2023
1 parent cc7872d commit af99cf2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testTimeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,13 @@ void test_get_integer_time_begin(timebin_t bin_min, timebin_t bin_max,
time_begin_recovered = get_integer_time_begin(ti_current, bin);

if (ti_current == set_time_begin) {

/* Escape the special case where we randomly drew all zeros.
* This scenario is expliclty tested below */
if (set_time_begin == (integertime_t)0 &&
displacement == (integertime_t)0)
continue;

/* If the displacement was zero, then the function shall return
* the beginning of the timestep that ends at ti_current */
if (time_begin_recovered + dti != set_time_begin)
Expand Down

0 comments on commit af99cf2

Please sign in to comment.