diff --git a/test/unordered/find_tests.cpp b/test/unordered/find_tests.cpp index 45151e99..5bb1b7c0 100644 --- a/test/unordered/find_tests.cpp +++ b/test/unordered/find_tests.cpp @@ -37,15 +37,15 @@ void find_tests1(X*, test::random_generator generator) tracker.begin(); it1 != tracker.end(); ++it1) { BOOST_DEDUCED_TYPENAME X::key_type key = test::get_key(*it1); - iterator pos = x.find(key); BOOST_DEDUCED_TYPENAME X::const_iterator const_pos = x_const.find(key); - BOOST_TEST(pos != x.end()); - BOOST_TEST(pos != x.end() && - x.key_eq()(key, test::get_key(*pos))); + iterator pos = x.find(key); BOOST_TEST(const_pos != x_const.end()); BOOST_TEST(const_pos != x_const.end() && x_const.key_eq()(key, test::get_key(*const_pos))); + BOOST_TEST(pos != x.end()); + BOOST_TEST(pos != x.end() && + x.key_eq()(key, test::get_key(*pos))); BOOST_TEST(x.count(key) == tracker.count(key));