Tweak the hash tests a bit more.

[SVN r29119]
This commit is contained in:
Daniel James
2005-05-21 17:10:39 +00:00
parent c06e85147c
commit 9afcdb022b
2 changed files with 4 additions and 4 deletions

View File

@@ -122,8 +122,8 @@ void float_tests(char const* name, T* = 0)
T v1 = asin((T) 1); T v1 = asin((T) 1);
T v2 = acos((T) 0); T v2 = acos((T) 0);
BOOST_CHECK(v1 == v2); if(v1 == v2);
BOOST_CHECK(x1(v1) == x1(v2)); BOOST_CHECK(x1(v1) == x1(v2));
BOOST_CHECK(x1(v1) == HASH_NAMESPACE::hash_value(v1)); BOOST_CHECK(x1(v1) == HASH_NAMESPACE::hash_value(v1));
BOOST_CHECK(x1(v2) == HASH_NAMESPACE::hash_value(v2)); BOOST_CHECK(x1(v2) == HASH_NAMESPACE::hash_value(v2));

View File

@@ -21,8 +21,8 @@
#include "./compile_time.hpp" #include "./compile_time.hpp"
void void_func1() { static int x = 1; } void void_func1() { static int x = 1; ++x; }
void void_func2() { static int x = 2; } void void_func2() { static int x = 2; --x; }
int int_func1(int) { return 0; } int int_func1(int) { return 0; }
int int_func2(int) { return 1; } int int_func2(int) { return 1; }