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:
Daniel James
2005-04-07 20:53:20 +00:00
parent a65dc47fcb
commit 2d91127422
9 changed files with 56 additions and 50 deletions
+7 -7
View File
@@ -23,19 +23,19 @@ void numeric_test()
boost::hash<T> x1;
boost::hash<T> x2;
BOOST_CHECK_EQUAL(x1(T(0)), x2(T(0)));
BOOST_CHECK(x1(T(0)) == x2(T(0)));
BOOST_CHECK_EQUAL(x1(T(10)), x2(T(10)));
BOOST_CHECK_EQUAL(x1(T(25)), x2(T(25)));
BOOST_CHECK(x1(T(10)) == x2(T(10)));
BOOST_CHECK(x1(T(25)) == x2(T(25)));
BOOST_CHECK_EQUAL(x1(T(5) - T(5)), x2(T(0)));
BOOST_CHECK_EQUAL(x1(T(6) + T(4)), x2(T(10)));
BOOST_CHECK(x1(T(5) - T(5)) == x2(T(0)));
BOOST_CHECK(x1(T(6) + T(4)) == x2(T(10)));
typedef std::numeric_limits<T> limits;
BOOST_CHECK(limits::is_specialized);
BOOST_CHECK_EQUAL(x1((limits::min)()), x2((limits::min)()));
BOOST_CHECK_EQUAL(x1((limits::max)()), x2((limits::max)()));
BOOST_CHECK(x1((limits::min)()) == x2((limits::min)()));
BOOST_CHECK(x1((limits::max)()) == x2((limits::max)()));
// A hash function can legally fail these tests, but it'll not be a good
// sign.