Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2007-10-13 18:30:50


Author: danieljames
Date: 2007-10-13 18:30:50 EDT (Sat, 13 Oct 2007)
New Revision: 39993
URL: http://svn.boost.org/trac/boost/changeset/39993

Log:
Clean up the hash tests a little.
Text files modified:
   trunk/libs/functional/hash/test/compile_time.hpp | 2 +-
   trunk/libs/functional/hash/test/hash_function_pointer_test.cpp | 13 -------------
   2 files changed, 1 insertions(+), 14 deletions(-)

Modified: trunk/libs/functional/hash/test/compile_time.hpp
==============================================================================
--- trunk/libs/functional/hash/test/compile_time.hpp (original)
+++ trunk/libs/functional/hash/test/compile_time.hpp 2007-10-13 18:30:50 EDT (Sat, 13 Oct 2007)
@@ -12,5 +12,5 @@
 {
     BOOST_STATIC_ASSERT((boost::is_base_and_derived<
         std::unary_function<T, std::size_t>, HASH_NAMESPACE::hash<T> >::value));
-};
+}
 

Modified: trunk/libs/functional/hash/test/hash_function_pointer_test.cpp
==============================================================================
--- trunk/libs/functional/hash/test/hash_function_pointer_test.cpp (original)
+++ trunk/libs/functional/hash/test/hash_function_pointer_test.cpp 2007-10-13 18:30:50 EDT (Sat, 13 Oct 2007)
@@ -29,11 +29,6 @@
     compile_time_tests((void(**)()) 0);
     compile_time_tests((int(**)(int)) 0);
 
- std::cout<<"sizeof(void(*)()) = "<<sizeof(void(*)())<<"\n";
- std::cout<<"sizeof(int(*)(int)) = "<<sizeof(int(*)(int))<<"\n";
- std::cout<<"sizeof(void*) = "<<sizeof(void*)<<"\n";
- std::cout<<"sizeof(std::size_t) = "<<sizeof(std::size_t)<<"\n";
-
     HASH_NAMESPACE::hash<void(*)()> hasher_void;
     HASH_NAMESPACE::hash<int(*)(int)> hasher_int;
 
@@ -43,14 +38,6 @@
     BOOST_TEST(hasher_void(0) == hasher_void(0));
     BOOST_TEST(hasher_void(&void_func1) == hasher_void(&void_func1));
     BOOST_TEST(hasher_void(&void_func1) != hasher_void(&void_func2));
- if(hasher_void(&void_func1) == hasher_void(&void_func2)) {
- std::cerr<<std::hex;
- std::cerr<<"&void_func1: "<<(void*)void_func1<<"\n";
- std::cerr<<"&void_func2: "<<(void*)void_func2<<"\n";
- std::cerr<<"hasher_void(&void_func1): "<<hasher_void(&void_func1)<<"\n";
- std::cerr<<"hasher_void(&void_func2): "<<hasher_void(&void_func2)<<"\n";
- std::cerr<<std::dec;
- }
     BOOST_TEST(hasher_void(&void_func1) != hasher_void(0));
     BOOST_TEST(hasher_int(0) == hasher_int(0));
     BOOST_TEST(hasher_int(&int_func1) == hasher_int(&int_func1));


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk