Home | Libraries | People | FAQ | More |
BOOST_
level
_LT(
lhs
,
rhs
)
asserts that lhs
is less than rhs
. The comparison is made by
applying operator<
to both arguments. The diagnostic message is constructed from applying
operator<<
to the two arguments.
Important | |
---|---|
If you get a strange compile error when using |
BOOST_AUTO_TEST_CASE(example_lt) { // integral types unsigned const u = 10u; int const i = -10; char const M = 'M'; // standard library types providing operator>= and operator<< std::string const s = "scooby"; BOOST_REQUIRE_LT(9u, u); BOOST_REQUIRE_LT(-11, i); BOOST_REQUIRE_LT('L', M); BOOST_REQUIRE_LT("scoobx", s); }