
Somewhere in the E.U., le 17/02/2005 Bonjour It looks as though the Boost.Test doc has a slight sync issue. The BOOST_CHECK_PREDICATE macro is described (in file boost/libs/test/doc/components/test_tools/reference/index.html) as having to be used thus: 8>< ------------------------------------------- ><8 int test.cpp( int, char* [] ) { int i = 17; BOOST_CHECK_PREDICATE( std::not_equal_to<int>(), 2, (i,17) ); // ^^^^^^^^^^ return 0; } 8>< ------------------------------------------- ><8 whereas Boost.Test's test uses (in file boost/libs/test/test/test_tools_test.cpp) the following form: 8>< ------------------------------------------- ><8 using std::not_equal_to; CHECK_TOOL_USAGE( BOOST_CHECK_PREDICATE( not_equal_to<int>(), (i)(17) ), // ^^^^^^^^^ output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test not_equal_to<int>()( i, 17 ) failed for ( 17, 17 )\n", 2 ) ) 8>< ------------------------------------------- ><8 Of course the later compiles while the former does not. Merci Hubert Holin

"Hubert Holin" <Hubert.Holin@meteo.fr> wrote in message news:Hubert.Holin-3BC964.14393817022005@sea.gmane.org...
Somewhere in the E.U., le 17/02/2005
Bonjour
It looks as though the Boost.Test doc has a slight sync issue.
[...] Hi, I would like to make this general comment in regard to several Boost.Test related issues lately. Library is going through major update. First phase covered test tools redesign, Now I am reaching end of phase two. You should expect an update within couple days. In most cases I keep interfaces backward compatible, unless existent solution deemed inflexible and/or incorrect. Once I am done with changes I will post detailed message with all the modifications. I do not plan to do any documentation updates till after I am done with all code changes. For now those of you who use cvs head version of Boost.Test should refer to the code. Sorry for inconvenience. Regards, Gennadiy P.S. In specific case of BOOST_CHECK_PREDICATE new interface now allows arbitrary number of arguments and easier to use IMO.
participants (2)
-
Gennadiy Rozental
-
Hubert Holin