Changeset e52d9c2 in subsurface


Ignore:
Timestamp:
May 6, 2017, 8:06:42 AM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
95895fc
Parents:
52426b8
git-author:
Miika Turkia <miika.turkia@…> (05/04/17 12:10:35)
git-committer:
Dirk Hohndel <dirk@…> (05/06/17 08:06:42)
Message:

Add UDDF export-import test

Signed-off-by: Miika Turkia <miika.turkia@…>

Location:
tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/testparse.cpp

    r52426b8 re52d9c2  
    485485}
    486486
     487void TestParse::exportUDDF()
     488{
     489        parse_file(SUBSURFACE_TEST_DATA "/dives/test40.xml");
     490
     491        export_dives_xslt("testuddfexport.uddf", 0, 0, "uddf-export.xslt");
     492
     493        clear_dive_file_data();
     494
     495        parse_file("testuddfexport.uddf");
     496        export_dives_xslt("testuddfexport2.uddf", 0, 0, "uddf-export.xslt");
     497
     498        FILE_COMPARE("testuddfexport.uddf",
     499                "testuddfexport2.uddf");
     500
     501        clear_dive_file_data();
     502}
     503
    487504void TestParse::testExport()
    488505{
    489506        exportCSVDiveDetails();
     507        exportUDDF();
    490508}
    491509
  • tests/testparse.h

    ree1bf18 re52d9c2  
    2727        int parseCSVmanual(int, std::string);
    2828        void exportCSVDiveDetails();
     29        void exportUDDF();
    2930        void testExport();
    3031
Note: See TracChangeset for help on using the changeset viewer.