| 28 | } |
| 29 | |
| 30 | void BeatsCase( |
| 31 | AudacityProject& project, const char* format, double time, double expected, |
| 32 | bool nearest, int upper, int lower) |
| 33 | { |
| 34 | auto& timeSignature = ProjectTimeSignature::Get(project); |
| 35 | |
| 36 | timeSignature.SetTempo(60.0); |
| 37 | timeSignature.SetUpperTimeSignature(upper); |
| 38 | timeSignature.SetLowerTimeSignature(lower); |
| 39 | |
| 40 | REQUIRE( |
| 41 | SnapFunctionsRegistry::Snap(format, project, time, nearest).snapped); |
| 42 | |
| 43 | REQUIRE( |
| 44 | SnapFunctionsRegistry::Snap(format, project, time, nearest).time == |
| 45 | Approx(expected)); |
| 46 | } |
| 47 | |
| 48 | void TimeStepCase( |
| 49 | const AudacityProject& project, const char* format, double time, |
no test coverage detected