Mercurial > hg > svcore
diff base/test/TestRangeMapper.h @ 1328:ccc8658914ef 3.0-integration
Merge from branch 3.0-integration
author | Chris Cannam |
---|---|
date | Wed, 14 Dec 2016 14:28:41 +0000 |
parents | 12a6140b3ae0 |
children | 48e9f538e6e9 |
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); }