| 46 | } |
| 47 | |
| 48 | void TimeStepCase( |
| 49 | const AudacityProject& project, const char* format, double time, |
| 50 | double expected, bool upwards, bool successful) |
| 51 | { |
| 52 | REQUIRE( |
| 53 | SnapFunctionsRegistry::SingleStep(format, project, time, upwards) |
| 54 | .snapped == successful); |
| 55 | |
| 56 | REQUIRE( |
| 57 | SnapFunctionsRegistry::SingleStep(format, project, time, upwards).time == |
| 58 | Approx(expected)); |
| 59 | } |
| 60 | |
| 61 | void BarStepCase( |
| 62 | AudacityProject& project, const char* format, double time, |