summaryrefslogtreecommitdiff
path: root/test/test-instancing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-instancing.cpp')
-rw-r--r--test/test-instancing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-instancing.cpp b/test/test-instancing.cpp
index 21d78e1..f303a15 100644
--- a/test/test-instancing.cpp
+++ b/test/test-instancing.cpp
@@ -250,8 +250,8 @@ BOOST_AUTO_TEST_CASE(PartitionBy, *boost::unit_test::timeout(1))
// The external view of the data is unchanged...
BOOST_CHECK_EQUAL_COLLECTIONS(values.cbegin(), values.cend(), instances.cbegin(), instances.cend());
// The partition point is right...
- BOOST_CHECK(!pred(*matchedEnd));
- BOOST_CHECK(pred(*--matchedEnd));
+ BOOST_CHECK(!pred(at(matchedEnd)));
+ BOOST_CHECK(pred(at(matchedEnd - 1)));
checkReverseIndex();
}