Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

BOOST_level_SMALL

BOOST_level_SMALL(value, tolerance) checks that the value is within tolerance of zero.

Example

BOOST_AUTO_TEST_CASE(example_small)
{
    float const f = 0.1f;

    BOOST_REQUIRE_SMALL(f, 0.25f);
}


PrevUpHomeNext