Add UDDF export-import test

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2017-05-04 22:10:35 +03:00 committed by Dirk Hohndel
parent 52426b8585
commit e52d9c2846
2 changed files with 19 additions and 0 deletions

View file

@ -484,9 +484,27 @@ void TestParse::exportCSVDiveDetails()
clear_dive_file_data();
}
void TestParse::exportUDDF()
{
parse_file(SUBSURFACE_TEST_DATA "/dives/test40.xml");
export_dives_xslt("testuddfexport.uddf", 0, 0, "uddf-export.xslt");
clear_dive_file_data();
parse_file("testuddfexport.uddf");
export_dives_xslt("testuddfexport2.uddf", 0, 0, "uddf-export.xslt");
FILE_COMPARE("testuddfexport.uddf",
"testuddfexport2.uddf");
clear_dive_file_data();
}
void TestParse::testExport()
{
exportCSVDiveDetails();
exportUDDF();
}

View file

@ -26,6 +26,7 @@ private slots:
int parseCSVmanual(int, std::string);
void exportCSVDiveDetails();
void exportUDDF();
void testExport();
private: