mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add test for DM5 import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
63f1c84e38
commit
e17ad1b0e0
2 changed files with 11 additions and 0 deletions
|
@ -163,6 +163,16 @@ void TestParse::testParseDM4()
|
||||||
SUBSURFACE_TEST_DATA "/dives/TestDiveDM4.xml");
|
SUBSURFACE_TEST_DATA "/dives/TestDiveDM4.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TestParse::testParseDM5()
|
||||||
|
{
|
||||||
|
QCOMPARE(sqlite3_open(SUBSURFACE_TEST_DATA "/dives/TestDiveDM5.db", &_sqlite3_handle), 0);
|
||||||
|
QCOMPARE(parse_dm5_buffer(_sqlite3_handle, 0, 0, 0, &dive_table), 0);
|
||||||
|
|
||||||
|
QCOMPARE(save_dives("./testdm5out.ssrf"), 0);
|
||||||
|
FILE_COMPARE("./testdm5out.ssrf",
|
||||||
|
SUBSURFACE_TEST_DATA "/dives/TestDiveDM5.xml");
|
||||||
|
}
|
||||||
|
|
||||||
void TestParse::testParseHUDC()
|
void TestParse::testParseHUDC()
|
||||||
{
|
{
|
||||||
char *params[37];
|
char *params[37];
|
||||||
|
|
|
@ -19,6 +19,7 @@ private slots:
|
||||||
void testParse();
|
void testParse();
|
||||||
|
|
||||||
void testParseDM4();
|
void testParseDM4();
|
||||||
|
void testParseDM5();
|
||||||
void testParseHUDC();
|
void testParseHUDC();
|
||||||
void testParseNewFormat();
|
void testParseNewFormat();
|
||||||
void testParseDLD();
|
void testParseDLD();
|
||||||
|
|
Loading…
Add table
Reference in a new issue