Blob Blame History Raw
diff -up sonic-visualiser-2.4.1/svcore/base/test/TestRangeMapper.h.fuzzy sonic-visualiser-2.4.1/svcore/base/test/TestRangeMapper.h
--- sonic-visualiser-2.4.1/svcore/base/test/TestRangeMapper.h.fuzzy	2014-10-01 14:37:49.000000000 -0600
+++ sonic-visualiser-2.4.1/svcore/base/test/TestRangeMapper.h	2014-11-05 00:40:36.466293254 -0700
@@ -77,7 +77,7 @@ private slots:
 	QCOMPARE(rm.getValueForPosition(0), rm.getValueForPosition(1));
 	QCOMPARE(rm.getValueForPosition(9), rm.getValueForPosition(8));
 	QCOMPARE(rm.getValueForPositionUnclamped(6), 3.0);
-	QCOMPARE(rm.getValueForPositionUnclamped(0), 0.0);
+	QVERIFY(qFuzzyIsNull(rm.getValueForPositionUnclamped(0)));
 	QCOMPARE(rm.getValueForPositionUnclamped(-24), -12.0);
 	QCOMPARE(rm.getValueForPositionUnclamped(12), 6.0);
     }
@@ -93,7 +93,7 @@ private slots:
 	QCOMPARE(rm.getValueForPosition(0), rm.getValueForPosition(1));
 	QCOMPARE(rm.getValueForPosition(9), rm.getValueForPosition(8));
 	QCOMPARE(rm.getValueForPositionUnclamped(3), 3.0);
-	QCOMPARE(rm.getValueForPositionUnclamped(9), 0.0);
+	QVERIFY(qFuzzyIsNull(rm.getValueForPositionUnclamped(9)));
 	QCOMPARE(rm.getValueForPositionUnclamped(33), -12.0);
 	QCOMPARE(rm.getValueForPositionUnclamped(-3), 6.0);
     }