mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 10:57:16 +02:00
A little more information in the find_tests.
Now the intel-linux tester that was failing for erase_tests is passing, but has started failing for find_tests instead. Oddly the test for non-const find is failing, but the const find is fine - this doesn't make much sense as they should be the same. Not sure, but it suggests the problem might be in the way iterators are handled, rather than the data structure? Checking the iterators before checking that the keys are equal in order to tell which part of the test is failing.
This commit is contained in:
@ -40,8 +40,10 @@ void find_tests1(X*, test::random_generator generator)
|
||||
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<X>(*pos)));
|
||||
BOOST_TEST(const_pos != x_const.end());
|
||||
BOOST_TEST(const_pos != x_const.end() &&
|
||||
x_const.key_eq()(key, test::get_key<X>(*const_pos)));
|
||||
|
||||
|
Reference in New Issue
Block a user