Update of /cvsroot/boost/boost/libs/functional/hash/test
In directory 
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29671/libs/functional/hash/test

Modified Files:
      Tag: RC_1_34_0
        link_ext_test.cpp 
Log Message:
Correct testing bugs:

    either changing assert(...) or BOOST_ASSERT(...) to BOOST_TEST 
    (in my code only)

    or adding "return boost::report_errors();" where it was clearly
    missing (and a pure bug, in anyone's code).

    or changing BOOST_TEST to BOOST_CHECK where the integer library
    was clearly using Boost.Test and not returning report_errors().


Index: link_ext_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/functional/hash/test/link_ext_test.cpp,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- link_ext_test.cpp   18 Mar 2006 15:49:21 -0000      1.3
+++ link_ext_test.cpp   25 Feb 2007 15:28:02 -0000      1.3.2.1
@@ -17,6 +17,7 @@
     std::vector<std::size_t> x;
     x.push_back(*x1);
     HASH_NAMESPACE::hash<std::vector<std::size_t> > vector_hasher;
-    return vector_hasher(x) != HASH_NAMESPACE::hash_value(x);
+    BOOST_TEST(vector_hasher(x) == HASH_NAMESPACE::hash_value(x));
+    return boost::report_errors();
 }
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to