mirror of
https://github.com/boostorg/functional.git
synced 2025-08-03 14:34:32 +02:00
Make the float hash tests a tad bit more informative.
[SVN r28137]
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <boost/limits.hpp>
|
#include <boost/limits.hpp>
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
void float_tests(T* = 0)
|
void float_tests(T* = 0)
|
||||||
{
|
{
|
||||||
@@ -110,7 +112,19 @@ void float_tests(T* = 0)
|
|||||||
|
|
||||||
BOOST_AUTO_UNIT_TEST(hash_float_tests)
|
BOOST_AUTO_UNIT_TEST(hash_float_tests)
|
||||||
{
|
{
|
||||||
|
std::cout<<"Compiler: "<<BOOST_COMPILER<<"\n";
|
||||||
|
std::cout<<"Platform: "<<BOOST_PLATFORM<<"\n";
|
||||||
|
std::cout<<"Library: "<<BOOST_STDLIB<<"\n\n";
|
||||||
|
|
||||||
float_tests((float*) 0);
|
float_tests((float*) 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_UNIT_TEST(hash_double_tests)
|
||||||
|
{
|
||||||
float_tests((double*) 0);
|
float_tests((double*) 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_UNIT_TEST(hash_long_double_tests)
|
||||||
|
{
|
||||||
float_tests((long double*) 0);
|
float_tests((long double*) 0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user