diff 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
line wrap: on
line diff
--- a/data/model/test/svcore-data-model-test.cpp	Fri Sep 14 15:32:43 2018 +0100
+++ b/data/model/test/svcore-data-model-test.cpp	Tue Sep 18 15:04:46 2018 +0100
@@ -12,6 +12,7 @@
 */
 
 #include "TestFFTModel.h"
+#include "TestZoomConstraints.h"
 
 #include <QtTest>
 
@@ -33,6 +34,12 @@
         else ++bad;
     }
 
+    {
+        TestZoomConstraints t;
+        if (QTest::qExec(&t, argc, argv) == 0) ++good;
+        else ++bad;
+    }
+
     if (bad > 0) {
         SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl;
         return 1;