Mercurial > hg > svcore
comparison data/fileio/test/svcore-data-fileio-test.cpp @ 1867:2654bf447a84
CSV reader tests and fixes - avoid creating null events for lines in which the timings could not be read
author | Chris Cannam |
---|---|
date | Thu, 11 Jun 2020 14:09:59 +0100 |
parents | 021556fcd30b |
children |
comparison
equal
deleted
inserted
replaced
1866:b4b11af915f4 | 1867:2654bf447a84 |
---|---|
16 #include "BogusAudioFileReaderTest.h" | 16 #include "BogusAudioFileReaderTest.h" |
17 #include "AudioFileWriterTest.h" | 17 #include "AudioFileWriterTest.h" |
18 #include "EncodingTest.h" | 18 #include "EncodingTest.h" |
19 #include "MIDIFileReaderTest.h" | 19 #include "MIDIFileReaderTest.h" |
20 #include "CSVFormatTest.h" | 20 #include "CSVFormatTest.h" |
21 #include "CSVReaderTest.h" | |
21 #include "CSVStreamWriterTest.h" | 22 #include "CSVStreamWriterTest.h" |
22 | 23 |
23 #include "system/Init.h" | 24 #include "system/Init.h" |
24 | 25 |
25 #include <QtTest> | 26 #include <QtTest> |
88 if (QTest::qExec(&t, argc, argv) == 0) ++good; | 89 if (QTest::qExec(&t, argc, argv) == 0) ++good; |
89 else ++bad; | 90 else ++bad; |
90 } | 91 } |
91 | 92 |
92 { | 93 { |
94 CSVReaderTest t(testDir); | |
95 if (QTest::qExec(&t, argc, argv) == 0) ++good; | |
96 else ++bad; | |
97 } | |
98 | |
99 { | |
93 CSVStreamWriterTest t; | 100 CSVStreamWriterTest t; |
94 if (QTest::qExec(&t, argc, argv) == 0) ++good; | 101 if (QTest::qExec(&t, argc, argv) == 0) ++good; |
95 else ++bad; | 102 else ++bad; |
96 } | 103 } |
97 | 104 |