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:
@@ -21,8 +21,8 @@ BOOST_AUTO_UNIT_TEST(string_tests)
|
||||
boost::hash<std::string> x1;
|
||||
boost::hash<std::string> x2;
|
||||
|
||||
BOOST_CHECK_EQUAL(x1("Hello"), x2(std::string("Hel") + "lo"));
|
||||
BOOST_CHECK_EQUAL(x1(""), x2(std::string()));
|
||||
BOOST_CHECK(x1("Hello") == x2(std::string("Hel") + "lo"));
|
||||
BOOST_CHECK(x1("") == x2(std::string()));
|
||||
}
|
||||
|
||||
#if !defined(BOOST_NO_STD_WSTRING)
|
||||
@@ -33,7 +33,7 @@ BOOST_AUTO_UNIT_TEST(wstring_tests)
|
||||
boost::hash<std::wstring> x1;
|
||||
boost::hash<std::wstring> x2;
|
||||
|
||||
BOOST_CHECK_EQUAL(x1(L"Hello"), x2(std::wstring(L"Hel") + L"lo"));
|
||||
BOOST_CHECK_EQUAL(x1(L""), x2(std::wstring()));
|
||||
BOOST_CHECK(x1(L"Hello") == x2(std::wstring(L"Hel") + L"lo"));
|
||||
BOOST_CHECK(x1(L"") == x2(std::wstring()));
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user