comparison data/model/test/svcore-data-model-test.cpp @ 1528:a7485c1bdba5

Tests and a couple of minor fixes for zoom constraints
author Chris Cannam
date Tue, 18 Sep 2018 15:04:46 +0100
parents 5afbac960a30
children c5092ca1c6e5
comparison
equal deleted inserted replaced
1526:8988b27ebf38 1528:a7485c1bdba5
10 License, or (at your option) any later version. See the file 10 License, or (at your option) any later version. See the file
11 COPYING included with this distribution for more information. 11 COPYING included with this distribution for more information.
12 */ 12 */
13 13
14 #include "TestFFTModel.h" 14 #include "TestFFTModel.h"
15 #include "TestZoomConstraints.h"
15 16
16 #include <QtTest> 17 #include <QtTest>
17 18
18 #include <iostream> 19 #include <iostream>
19 20
31 TestFFTModel t; 32 TestFFTModel t;
32 if (QTest::qExec(&t, argc, argv) == 0) ++good; 33 if (QTest::qExec(&t, argc, argv) == 0) ++good;
33 else ++bad; 34 else ++bad;
34 } 35 }
35 36
37 {
38 TestZoomConstraints t;
39 if (QTest::qExec(&t, argc, argv) == 0) ++good;
40 else ++bad;
41 }
42
36 if (bad > 0) { 43 if (bad > 0) {
37 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl; 44 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl;
38 return 1; 45 return 1;
39 } else { 46 } else {
40 SVCERR << "All tests passed" << endl; 47 SVCERR << "All tests passed" << endl;