changeset 1328:ccc8658914ef 3.0-integration

Merge from branch 3.0-integration
author Chris Cannam
date Wed, 14 Dec 2016 14:28:41 +0000
parents 7d24f92158a7
children 491a992f856e
files base/test/TestRangeMapper.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/base/test/TestRangeMapper.h	Tue Dec 13 16:06:28 2016 +0000
+++ b/base/test/TestRangeMapper.h	Wed Dec 14 14:28:41 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);
     }