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().


[SVN r37063]
This commit is contained in:
Dave Abrahams
2007-02-25 15:28:02 +00:00
parent 93c010eb51
commit aa483f4961
5 changed files with 39 additions and 42 deletions

View File

@ -6,7 +6,6 @@
#include <boost/iterator/iterator_facade.hpp>
#include <boost/iterator/new_iterator_tests.hpp>
#include <boost/assert.hpp>
// This is a really, really limited test so far. All we're doing
// right now is checking that the postfix++ proxy for single-pass
@ -95,7 +94,7 @@ int main()
state = 3;
boost::readable_iterator_test(counter_iterator<proxy>(&state), 3);
boost::writable_iterator_test(counter_iterator<proxy>(&state), 9, 7);
BOOST_ASSERT(state == 8);
BOOST_TEST(state == 8);
// test for a fix to http://tinyurl.com/zuohe
// These two lines should be equivalent (and both compile)
@ -103,5 +102,5 @@ int main()
(*p).mutator();
p->mutator();
return 0;
return boost::report_errors();
}