MCPcopy Create free account
hub / github.com/audacity/audacity / TimeStepCase

Function TimeStepCase

libraries/lib-snapping/tests/SnappingTest.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void 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
61void BarStepCase(
62 AudacityProject& project, const char* format, double time,

Callers 1

SnappingTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected