diff data/model/test/TestSparseModels.h @ 1614:2e14a7876945 single-point

Fixes and tests for PointSeries
author Chris Cannam
date Thu, 07 Mar 2019 14:35:57 +0000
parents b2f32c554199
children 7a23dfe65d66
line wrap: on
line diff
--- a/data/model/test/TestSparseModels.h	Wed Mar 06 16:37:10 2019 +0000
+++ b/data/model/test/TestSparseModels.h	Thu Mar 07 14:35:57 2019 +0000
@@ -136,11 +136,11 @@
 
     void note_extents() {
         NoteModel m(100, 10, false);
-        NoteModel::Point p1(20, 123.4, 40, 0.8, "note 1");
+        NoteModel::Point p1(20, 123.4f, 40, 0.8f, "note 1");
         m.addPoint(p1);
         QCOMPARE(m.isEmpty(), false);
         QCOMPARE(m.getPointCount(), 1);
-        NoteModel::Point p2(50, 124.3, 30, 0.9, "note 2");
+        NoteModel::Point p2(50, 124.3f, 30, 0.9f, "note 2");
         m.addPoint(p2);
         QCOMPARE(m.isEmpty(), false);
         QCOMPARE(m.getPointCount(), 2);
@@ -163,9 +163,9 @@
              
     void note_sample() {
         NoteModel m(100, 10, false);
-        NoteModel::Point p1(20, 123.4, 20, 0.8, "note 1");
-        NoteModel::Point p2(20, 124.3, 10, 0.9, "note 2");
-        NoteModel::Point p3(50, 126.3, 30, 0.9, "note 3");
+        NoteModel::Point p1(20, 123.4f, 20, 0.8f, "note 1");
+        NoteModel::Point p2(20, 124.3f, 10, 0.9f, "note 2");
+        NoteModel::Point p3(50, 126.3f, 30, 0.9f, "note 3");
         m.addPoint(p1);
         m.addPoint(p2);
         m.addPoint(p3);
@@ -193,9 +193,9 @@
 
     void note_xml() {
         NoteModel m(100, 10, false);
-        NoteModel::Point p1(20, 123.4, 20, 0.8, "note 1");
-        NoteModel::Point p2(20, 124.3, 10, 0.9, "note 2");
-        NoteModel::Point p3(50, 126.3, 30, 0.9, "note 3");
+        NoteModel::Point p1(20, 123.4f, 20, 0.8f, "note 1");
+        NoteModel::Point p2(20, 124.3f, 10, 0.9f, "note 2");
+        NoteModel::Point p3(50, 126.3f, 30, 0.9f, "note 3");
         m.setScaleUnits("Hz");
         m.addPoint(p1);
         m.addPoint(p2);