mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 14:04:27 +02:00
Write a better error message when the denormalised minimum float hash test
fails. [SVN r29118]
This commit is contained in:
@@ -136,8 +136,14 @@ void float_tests(char const* name, T* = 0)
|
||||
if(x1(std::numeric_limits<T>::denorm_min()) == x1(zero)) {
|
||||
std::cout<<"x1(denorm_min) == x1(zero) == "<<x1(zero)<<"\n";
|
||||
}
|
||||
BOOST_CHECK(x1(std::numeric_limits<T>::denorm_min()) ==
|
||||
HASH_NAMESPACE::hash_value((T) std::numeric_limits<T>::denorm_min()));
|
||||
BOOST_CHECK_MESSAGE(x1(std::numeric_limits<T>::denorm_min()) ==
|
||||
HASH_NAMESPACE::hash_value(std::numeric_limits<T>::denorm_min()),
|
||||
"x1(std::numeric_limits<T>::denorm_min()) = "
|
||||
<< x1(std::numeric_limits<T>::denorm_min())
|
||||
<< "\nhash_value(std::numeric_limits<T>::denorm_min()) = "
|
||||
<< HASH_NAMESPACE::hash_value(
|
||||
std::numeric_limits<T>::denorm_min())
|
||||
<< "\nx1(0) = "<<x1(0)<<"\n");
|
||||
}
|
||||
|
||||
// NaN also causes borland to crash.
|
||||
|
Reference in New Issue
Block a user