# HG changeset patch # User Chris Cannam # Date 1481792359 0 # Node ID 491a992f856ead12337fa66012590d335eed0140 # Parent ccc8658914efbad80831fb518b72bdcd46571841# Parent 5b04b8bc88ca83b0951ab4a0da6a960c1288c385 Merge diff -r 5b04b8bc88ca -r 491a992f856e base/test/TestRangeMapper.h --- 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); }