File tree 1 file changed +4
-12
lines changed
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -92,18 +92,10 @@ TEST_CASE("Score/Staff/GetPositionsInRange")
92
92
voice.insertPosition (pos7);
93
93
voice.insertPosition (pos8);
94
94
95
- REQUIRE (std::distance (
96
- ScoreUtils::findInRange (voice.getPositions (), 9 , 15 ).begin (),
97
- ScoreUtils::findInRange (voice.getPositions (), 9 , 15 ).end ()) ==
98
- 0 );
99
- REQUIRE (std::distance (
100
- ScoreUtils::findInRange (voice.getPositions (), 8 , 10 ).begin (),
101
- ScoreUtils::findInRange (voice.getPositions (), 8 , 10 ).end ()) ==
102
- 1 );
103
- REQUIRE (std::distance (
104
- ScoreUtils::findInRange (voice.getPositions (), 4 , 7 ).begin (),
105
- ScoreUtils::findInRange (voice.getPositions (), 4 , 7 ).end ()) ==
106
- 3 );
95
+ std::span<Position> positions = voice.getPositions ();
96
+ REQUIRE (std::ranges::distance (ScoreUtils::findInRange (positions, 9 , 15 )) == 0 );
97
+ REQUIRE (std::ranges::distance (ScoreUtils::findInRange (positions, 8 , 10 )) == 1 );
98
+ REQUIRE (std::ranges::distance (ScoreUtils::findInRange (positions, 4 , 7 )) == 3 );
107
99
}
108
100
109
101
TEST_CASE (" Score/Staff/GetNextNote" )
You can’t perform that action at this time.
0 commit comments