forked from boostorg/container_hash
Removes uses of BOOST_CHECK_EQUAL from the hash tests as they don't work on Borland.
Also force a failure on the float tests on borland as they are crashing horribly. Hopefully I should be able to fix this and remove this. Also use pair's constructor in hash_map_test.hpp instead of make_pair so that the correct type is created. [SVN r28049]
This commit is contained in:
@@ -39,9 +39,9 @@ namespace boost
|
||||
BOOST_AUTO_UNIT_TEST(custom_tests)
|
||||
{
|
||||
boost::hash<test::custom> custom_hasher;
|
||||
BOOST_CHECK_EQUAL(custom_hasher(10), 100u);
|
||||
BOOST_CHECK(custom_hasher(10) == 100u);
|
||||
test::custom x(55);
|
||||
BOOST_CHECK_EQUAL(custom_hasher(x), 550u);
|
||||
BOOST_CHECK(custom_hasher(x) == 550u);
|
||||
|
||||
std::vector<test::custom> custom_vector;
|
||||
custom_vector.push_back(5);
|
||||
@@ -53,7 +53,7 @@ BOOST_AUTO_UNIT_TEST(custom_tests)
|
||||
boost::hash_combine(seed, test::custom(25));
|
||||
boost::hash_combine(seed, test::custom(35));
|
||||
|
||||
BOOST_CHECK_EQUAL(seed,
|
||||
BOOST_CHECK(seed ==
|
||||
boost::hash_range(custom_vector.begin(), custom_vector.end()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user