
24 Sep
2004
24 Sep
'04
2:55 p.m.
[3] for input, the string (str) such that: type val = ...; type read; istringstream ss( str ); ss >> some_fn( read ); BOOST_TEST( is_equal( read, val )); where is_equal( const T & a, const T & b ) returns true iff a == b.
Boost.Test provides much more powerful tools for testing outputs. You could use BOOST_CHECK_EQUAL. But best of all you could use output_test_stream. Gennadiy.