mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
3257dbfc63
commit
1b4111c1f8
2 changed files with 831 additions and 831 deletions
File diff suppressed because it is too large
Load diff
|
@ -235,11 +235,11 @@ void TestParse::testParseNewFormat()
|
||||||
QCOMPARE(divelog.dives->nr, i + 1);
|
QCOMPARE(divelog.dives->nr, i + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sort_dive_table(divelog.dives);
|
||||||
|
|
||||||
fprintf(stderr, "number of dives %d \n", divelog.dives->nr);
|
fprintf(stderr, "number of dives %d \n", divelog.dives->nr);
|
||||||
QCOMPARE(save_dives("./testsbnewout.ssrf"), 0);
|
QCOMPARE(save_dives("./testsbnewout.ssrf"), 0);
|
||||||
|
|
||||||
sort_dive_table(divelog.dives);
|
|
||||||
|
|
||||||
// Currently the CSV parse fails
|
// Currently the CSV parse fails
|
||||||
FILE_COMPARE("./testsbnewout.ssrf",
|
FILE_COMPARE("./testsbnewout.ssrf",
|
||||||
SUBSURFACE_TEST_DATA "/dives/TestDiveSeabearNewFormat.xml");
|
SUBSURFACE_TEST_DATA "/dives/TestDiveSeabearNewFormat.xml");
|
||||||
|
|
Loading…
Add table
Reference in a new issue