mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 22:14:28 +02:00
Tweak the hash tests a bit more.
[SVN r29119]
This commit is contained in:
@@ -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));
|
||||||
|
|
||||||
|
@@ -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; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user