diff options
-rw-r--r-- | tests/testparse.cpp | 18 | ||||
-rw-r--r-- | tests/testparse.h | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/testparse.cpp b/tests/testparse.cpp index ec47d3d27..360169947 100644 --- a/tests/testparse.cpp +++ b/tests/testparse.cpp @@ -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(); } diff --git a/tests/testparse.h b/tests/testparse.h index 762b922e0..80c4dacfb 100644 --- a/tests/testparse.h +++ b/tests/testparse.h @@ -26,6 +26,7 @@ private slots: int parseCSVmanual(int, std::string); void exportCSVDiveDetails(); + void exportUDDF(); void testExport(); private: |