![]() |
Home | Libraries | People | FAQ | More |
BOOST_WARN_GE(left, right); BOOST_CHECK_GE(left, right); BOOST_REQUIRE_GE(left, right);
Check performed by these tools is the same as the one performed by
. The difference is that the argument
values are reported as well.
BOOST_<level>
( left >= right
)
Code |
---|
#define BOOST_TEST_MODULE example #include <boost/test/included/unit_test.hpp> BOOST_AUTO_TEST_CASE( test ) { int i = 1; int j = 4; BOOST_CHECK_GE( i, j ); } |
Output |
---|
>example Running 1 test case... test.cpp(10): error in "test": check i >= j failed [1 < 4] *** 1 failures is detected in test suite "example" |
See also: