Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-09-24 09:55:23


> [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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk