mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Add UDDF export-import test
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
52426b8585
commit
e52d9c2846
2 changed files with 19 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ private slots:
|
|||
|
||||
int parseCSVmanual(int, std::string);
|
||||
void exportCSVDiveDetails();
|
||||
void exportUDDF();
|
||||
void testExport();
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Reference in a new issue