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

Modified Files:
        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).


Index: link_ext_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/functional/hash/test/link_ext_test.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- link_ext_test.cpp   25 Jun 2006 09:59:04 -0000      1.4
+++ link_ext_test.cpp   24 Feb 2007 22:40:59 -0000      1.5
@@ -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