Skip to content

Commit

Permalink
Fix/Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Nov 29, 2024
1 parent 0fa1c97 commit 006e7f5
Show file tree
Hide file tree
Showing 78 changed files with 678 additions and 810 deletions.
1,114 changes: 558 additions & 556 deletions src/engraving/tests/all_elements_data/random_elements.mscx

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/engraving/tests/chordsymbol_data/add-part-ref.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
</Measure>
</Staff>
<Score>
<eid>68719476740</eid>
<name>Classical Guitar</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/chordsymbol_data/no-system-ref.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@
</Measure>
</Staff>
<Score>
<eid>261993005060</eid>
<name>Flute</name>
<Division>480</Division>
<Style>
Expand Down Expand Up @@ -314,7 +313,6 @@
</Staff>
</Score>
<Score>
<eid>438086664196</eid>
<name>Alto Saxophone</name>
<Division>480</Division>
<Style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
</Measure>
</Staff>
<Score>
<eid>94489280516</eid>
<name>Flute</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,6 @@
</Measure>
</Staff>
<Score>
<eid>3929895075844</eid>
<name>Piano</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down
1 change: 0 additions & 1 deletion src/engraving/tests/compat206_data/hairpin-ref.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@
</Measure>
</Staff>
<Score>
<eid>1065151889412</eid>
<name>Piano</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down
1 change: 0 additions & 1 deletion src/engraving/tests/compat206_data/lidemptytext-ref.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@
</Measure>
</Staff>
<Score>
<eid>227633266692</eid>
<name>Bass</name>
<Division>480</Division>
<Style>
Expand Down
3 changes: 0 additions & 3 deletions src/engraving/tests/compat206_data/userstylesparts-ref.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@
</Measure>
</Staff>
<Score>
<eid>219043332100</eid>
<name>Piano</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down Expand Up @@ -616,7 +615,6 @@
</Staff>
</Score>
<Score>
<eid>373662154756</eid>
<name>Flute 1</name>
<initialPartId>2</initialPartId>
<Division>480</Division>
Expand Down Expand Up @@ -876,7 +874,6 @@
</Staff>
</Score>
<Score>
<eid>536870912004</eid>
<name>Flute 2</name>
<initialPartId>3</initialPartId>
<Division>480</Division>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,6 @@
</Measure>
</Staff>
<Score>
<eid>867583393796</eid>
<name>Flute</name>
<Division>480</Division>
<Style>
Expand Down
6 changes: 3 additions & 3 deletions src/engraving/tests/eid_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Engraving_EIDTests : public ::testing::Test
{
};

static void itemShouldBeRegistered(void*, EngravingItem* item)
static void checkRegister(void*, EngravingItem* item)
{
EID eid = item->eid();
if (eid.isValid()) {
Expand All @@ -55,9 +55,9 @@ TEST_F(Engraving_EIDTests, testRegisteredItems)
MasterScore* score = ScoreRW::readScore(DATA_DIR + u"random_elements.mscx");
EXPECT_TRUE(score);

score->scanElements(nullptr, itemShouldBeRegistered, true);
score->scanElements(nullptr, checkRegister, true);
for (MeasureBase* mb = score->first(); mb; mb = mb->next()) {
itemShouldBeRegistered(nullptr, mb);
checkRegister(nullptr, mb);
}

delete score;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@
</Measure>
</Staff>
<Score>
<eid>798863917060</eid>
<name>Piano</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,6 @@
</Measure>
</Staff>
<Score>
<eid>798863917060</eid>
<name>Piano</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/measure_data/measureSplit-ref.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,6 @@
</Measure>
</Staff>
<Score>
<eid>3062311682052</eid>
<name>Flute</name>
<Division>480</Division>
<Style>
Expand Down Expand Up @@ -1993,7 +1992,6 @@
</Staff>
</Score>
<Score>
<eid>4831838208004</eid>
<name>Oboe</name>
<Division>480</Division>
<Style>
Expand Down
1 change: 0 additions & 1 deletion src/engraving/tests/parts_data/linked-ties-parts.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@
</Measure>
</Staff>
<Score>
<eid>558345748484</eid>
<name>Flute</name>
<Division>480</Division>
<Style>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-54346-parts.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@
</Measure>
</Staff>
<Score>
<eid>399431958532</eid>
<name>B♭ Trumpet</name>
<Division>480</Division>
<Style>
Expand Down Expand Up @@ -452,7 +451,6 @@
</Staff>
</Score>
<Score>
<eid>670014898180</eid>
<name>C Trumpet</name>
<Division>480</Division>
<Style>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-all-appendmeasures.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,6 @@
</Measure>
</Staff>
<Score>
<eid>2332167241732</eid>
<name>Alto</name>
<Division>480</Division>
<Style>
Expand Down Expand Up @@ -1795,7 +1794,6 @@
</Staff>
</Score>
<Score>
<eid>3921305141252</eid>
<name>Tenor</name>
<Division>480</Division>
<Style>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-all-insertmeasures.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,6 @@
</Measure>
</Staff>
<Score>
<eid>2332167241732</eid>
<name>Alto</name>
<Division>480</Division>
<Style>
Expand Down Expand Up @@ -1790,7 +1789,6 @@
</Staff>
</Score>
<Score>
<eid>3921305141252</eid>
<name>Tenor</name>
<Division>480</Division>
<Style>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-all-parts.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,6 @@
</Measure>
</Staff>
<Score>
<eid>2332167241732</eid>
<name>Alto</name>
<Division>480</Division>
<Style>
Expand Down Expand Up @@ -1767,7 +1766,6 @@
</Staff>
</Score>
<Score>
<eid>3921305141252</eid>
<name>Tenor</name>
<Division>480</Division>
<Style>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-all-uappendmeasures.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,6 @@
</Measure>
</Staff>
<Score>
<eid>2332167241732</eid>
<name>Alto</name>
<Division>480</Division>
<Style>
Expand Down Expand Up @@ -1767,7 +1766,6 @@
</Staff>
</Score>
<Score>
<eid>3921305141252</eid>
<name>Tenor</name>
<Division>480</Division>
<Style>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-all-uinsertmeasures.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,6 @@
</Measure>
</Staff>
<Score>
<eid>2332167241732</eid>
<name>Alto</name>
<Division>480</Division>
<Style>
Expand Down Expand Up @@ -1767,7 +1766,6 @@
</Staff>
</Score>
<Score>
<eid>3921305141252</eid>
<name>Tenor</name>
<Division>480</Division>
<Style>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-breath-add.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,6 @@
</Measure>
</Staff>
<Score>
<eid>1013612281860</eid>
<name>Alto</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down Expand Up @@ -1220,7 +1219,6 @@
</Staff>
</Score>
<Score>
<eid>1675037245444</eid>
<name>Tenor</name>
<initialPartId>2</initialPartId>
<Division>480</Division>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-breath-del.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,6 @@
</Measure>
</Staff>
<Score>
<eid>1022202216452</eid>
<name>Alto</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down Expand Up @@ -1211,7 +1210,6 @@
</Staff>
</Score>
<Score>
<eid>1692217114628</eid>
<name>Tenor</name>
<initialPartId>2</initialPartId>
<Division>480</Division>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-breath-parts.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,6 @@
</Measure>
</Staff>
<Score>
<eid>1640677507076</eid>
<name>Alto</name>
<Division>480</Division>
<Style>
Expand Down Expand Up @@ -1233,7 +1232,6 @@
</Staff>
</Score>
<Score>
<eid>2710124363780</eid>
<name>Tenor</name>
<Division>480</Division>
<Style>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-breath-uadd.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,6 @@
</Measure>
</Staff>
<Score>
<eid>1013612281860</eid>
<name>Alto</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down Expand Up @@ -1211,7 +1210,6 @@
</Staff>
</Score>
<Score>
<eid>1675037245444</eid>
<name>Tenor</name>
<initialPartId>2</initialPartId>
<Division>480</Division>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-breath-udel.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,6 @@
</Measure>
</Staff>
<Score>
<eid>1022202216452</eid>
<name>Alto</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down Expand Up @@ -1220,7 +1219,6 @@
</Staff>
</Score>
<Score>
<eid>1692217114628</eid>
<name>Tenor</name>
<initialPartId>2</initialPartId>
<Division>480</Division>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-breath-uradd.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,6 @@
</Measure>
</Staff>
<Score>
<eid>1013612281860</eid>
<name>Alto</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down Expand Up @@ -1220,7 +1219,6 @@
</Staff>
</Score>
<Score>
<eid>1675037245444</eid>
<name>Tenor</name>
<initialPartId>2</initialPartId>
<Division>480</Division>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-breath-urdel.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,6 @@
</Measure>
</Staff>
<Score>
<eid>1022202216452</eid>
<name>Alto</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down Expand Up @@ -1211,7 +1210,6 @@
</Staff>
</Score>
<Score>
<eid>1692217114628</eid>
<name>Tenor</name>
<initialPartId>2</initialPartId>
<Division>480</Division>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-chordline-add.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,6 @@
</Measure>
</Staff>
<Score>
<eid>1013612281860</eid>
<name>Alto</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down Expand Up @@ -1220,7 +1219,6 @@
</Staff>
</Score>
<Score>
<eid>1675037245444</eid>
<name>Tenor</name>
<initialPartId>2</initialPartId>
<Division>480</Division>
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/tests/parts_data/part-chordline-del.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,6 @@
</Measure>
</Staff>
<Score>
<eid>1013612281860</eid>
<name>Alto</name>
<initialPartId>1</initialPartId>
<Division>480</Division>
Expand Down Expand Up @@ -1200,7 +1199,6 @@
</Staff>
</Score>
<Score>
<eid>1675037245444</eid>
<name>Tenor</name>
<initialPartId>2</initialPartId>
<Division>480</Division>
Expand Down
Loading

0 comments on commit 006e7f5

Please sign in to comment.