The Test Tools

### BOOST_WARN_BITWISE_EQUAL( left, right )
BOOST_CHECK_BITWISE_EQUAL( left, right )
BOOST_REQUIRE_BITWISE_EQUAL( left, right )

These tools are used to perform bitwise comparison of two values. This check shows all positions where left and right value's bits mismatch.

The first parameter is the left compared value. The second parameter is the right compared value. Parameters are not required to be of the same type, but warning is issued if their types size does not coincide.

#### Example: test.cpp

    int test_main( int, char* [] ) {
        BOOST_CHECK BITWISE_EQUAL( (char)0x26, (char)0x04 );

        return 0;
    }

#### Output:

test.cpp(3) : error in test_main: check (char)0x26 =.= (char)0x04 failed
Mismatch in a position 1
Mismatch in a position 4

#### See Also

BOOST_CHECK_EQUAL