tests: fix commit "work on sorted dive lists"

Commit 185b4678ff changed the parser-test to use sorted dive
lists. However, for the "new Seabear" data format test, the
sorting was done after comparison. Which is obviously silly.

Fix it.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-06-18 14:22:30 +02:00 committed by bstoeger
parent 3257dbfc63
commit 1b4111c1f8
2 changed files with 831 additions and 831 deletions

File diff suppressed because it is too large Load diff

View file

@ -235,11 +235,11 @@ void TestParse::testParseNewFormat()
QCOMPARE(divelog.dives->nr, i + 1);
}
sort_dive_table(divelog.dives);
fprintf(stderr, "number of dives %d \n", divelog.dives->nr);
QCOMPARE(save_dives("./testsbnewout.ssrf"), 0);
sort_dive_table(divelog.dives);
// Currently the CSV parse fails
FILE_COMPARE("./testsbnewout.ssrf",
SUBSURFACE_TEST_DATA "/dives/TestDiveSeabearNewFormat.xml");