# HG changeset patch # User Chris Cannam # Date 1481725721 0 # Node ID ccc8658914efbad80831fb518b72bdcd46571841 # Parent 7d24f92158a79d9995d1d1d89e13ae963b6a04c2 Merge from branch 3.0-integration diff -r 7d24f92158a7 -r ccc8658914ef base/test/TestRangeMapper.h --- 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); }