diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2017-05-04 22:10:35 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-06 08:06:42 -0700 |
commit | e52d9c2846d543899fbbe64ba0808eb117b6dd17 (patch) | |
tree | a9a166a3b643a31a19407d3347c42d1e02829795 /tests/testparse.cpp | |
parent | 52426b8585020214293b10e78f0b129b51141ca8 (diff) | |
download | subsurface-e52d9c2846d543899fbbe64ba0808eb117b6dd17.tar.gz |
Add UDDF export-import test
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'tests/testparse.cpp')
-rw-r--r-- | tests/testparse.cpp | 18 |
1 files changed, 18 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(); } |