changeset 1330:491a992f856e 3.0-integration

Merge
author Chris Cannam
date Thu, 15 Dec 2016 08:59:19 +0000
parents ccc8658914ef (diff) 5b04b8bc88ca (current diff)
children 576be7933ec7
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/base/test/TestRangeMapper.h	Thu Dec 15 08:58:43 2016 +0000
+++ b/base/test/TestRangeMapper.h	Thu Dec 15 08:59:19 2016 +0000
@@ -77,7 +77,7 @@
 	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);
+	QCOMPARE(rm.getValueForPositionUnclamped(0) + 1.0, 0.0 + 1.0);
 	QCOMPARE(rm.getValueForPositionUnclamped(-24), -12.0);
 	QCOMPARE(rm.getValueForPositionUnclamped(12), 6.0);
     }
@@ -93,7 +93,7 @@
 	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);
+	QCOMPARE(rm.getValueForPositionUnclamped(9) + 1.0, 0.0 + 1.0);
 	QCOMPARE(rm.getValueForPositionUnclamped(33), -12.0);
 	QCOMPARE(rm.getValueForPositionUnclamped(-3), 6.0);
     }