| 20 | #include "MockedPrefs.h" |
| 21 | |
| 22 | void TimeCase(const AudacityProject& project, const char* format, double time, double expected, bool nearest) |
| 23 | { |
| 24 | REQUIRE(SnapFunctionsRegistry::Snap(format, project, time, nearest).snapped); |
| 25 | REQUIRE( |
| 26 | SnapFunctionsRegistry::Snap(format, project, time, nearest).time == |
| 27 | Approx(expected)); |
| 28 | } |
| 29 | |
| 30 | void BeatsCase( |
| 31 | AudacityProject& project, const char* format, double time, double expected, |