comparison base/test/main.cpp @ 1022:eecf544bed92

Unit tests for StringBits::splitQuoted
author Chris Cannam
date Mon, 01 Dec 2014 15:42:58 +0000
parents ee9f4477f65b
children
comparison
equal deleted inserted replaced
1021:1888ca033a84 1022:eecf544bed92
12 */ 12 */
13 13
14 #include "TestRangeMapper.h" 14 #include "TestRangeMapper.h"
15 #include "TestPitch.h" 15 #include "TestPitch.h"
16 #include "TestRealTime.h" 16 #include "TestRealTime.h"
17 #include "TestStringBits.h"
17 18
18 #include <QtTest> 19 #include <QtTest>
19 20
20 #include <iostream> 21 #include <iostream>
21 22
40 { 41 {
41 TestRealTime t; 42 TestRealTime t;
42 if (QTest::qExec(&t, argc, argv) == 0) ++good; 43 if (QTest::qExec(&t, argc, argv) == 0) ++good;
43 else ++bad; 44 else ++bad;
44 } 45 }
46 {
47 TestStringBits t;
48 if (QTest::qExec(&t, argc, argv) == 0) ++good;
49 else ++bad;
50 }
45 51
46 if (bad > 0) { 52 if (bad > 0) {
47 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; 53 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl;
48 return 1; 54 return 1;
49 } else { 55 } else {