From 9afcdb022b52f7bcf4cfa6d14e9f258c55052a6c Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sat, 21 May 2005 17:10:39 +0000 Subject: [PATCH] Tweak the hash tests a bit more. [SVN r29119] --- hash/test/hash_float_test.cpp | 4 ++-- hash/test/hash_function_pointer_test.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hash/test/hash_float_test.cpp b/hash/test/hash_float_test.cpp index 0879910..76d2465 100644 --- a/hash/test/hash_float_test.cpp +++ b/hash/test/hash_float_test.cpp @@ -122,8 +122,8 @@ void float_tests(char const* name, T* = 0) T v1 = asin((T) 1); T v2 = acos((T) 0); - BOOST_CHECK(v1 == v2); - BOOST_CHECK(x1(v1) == x1(v2)); + if(v1 == v2); + BOOST_CHECK(x1(v1) == x1(v2)); BOOST_CHECK(x1(v1) == HASH_NAMESPACE::hash_value(v1)); BOOST_CHECK(x1(v2) == HASH_NAMESPACE::hash_value(v2)); diff --git a/hash/test/hash_function_pointer_test.cpp b/hash/test/hash_function_pointer_test.cpp index 7627b2f..a9d22a5 100644 --- a/hash/test/hash_function_pointer_test.cpp +++ b/hash/test/hash_function_pointer_test.cpp @@ -21,8 +21,8 @@ #include "./compile_time.hpp" -void void_func1() { static int x = 1; } -void void_func2() { static int x = 2; } +void void_func1() { static int x = 1; ++x; } +void void_func2() { static int x = 2; --x; } int int_func1(int) { return 0; } int int_func2(int) { return 1; }