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
+4 -4
View File
@@ -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