diff --git a/test/ios_state_unit_test.cpp b/test/ios_state_unit_test.cpp index 0f8f2ed..272c1f9 100644 --- a/test/ios_state_unit_test.cpp +++ b/test/ios_state_unit_test.cpp @@ -6,7 +6,7 @@ // warranty, and with no claim as to its suitability for any purpose. // Revision History -// 23 Jun 2003 Initial version (Daryle Walker) +// 12 Sep 2003 Initial version (Daryle Walker) #include // for boost::io::ios_flags_saver, etc. #include // for main, BOOST_CHECK, etc. @@ -14,7 +14,7 @@ #include // for NULL #include // for std::setiosflags, etc. #include // for std::ios_base -#include // for std::wcout, std::wcin, etc. +#include // for std::cout, std::cerr, etc. #include // for std::iostream #include // for std::locale, std::numpunct #include // for std::stringstream, etc. @@ -260,29 +260,29 @@ ios_tie_saver_unit_test { using namespace std; - BOOST_CHECK_EQUAL( &wcout, wcin.tie() ); + BOOST_CHECK( NULL == cout.tie() ); { - boost::io::wios_tie_saver its( wcin ); + boost::io::ios_tie_saver its( cout ); - BOOST_CHECK_EQUAL( &wcout, wcin.tie() ); + BOOST_CHECK( NULL == cout.tie() ); - wcin.tie( &wclog ); - BOOST_CHECK_EQUAL( &wclog, wcin.tie() ); + cout.tie( &clog ); + BOOST_CHECK_EQUAL( &clog, cout.tie() ); } - BOOST_CHECK_EQUAL( &wcout, wcin.tie() ); + BOOST_CHECK( NULL == cout.tie() ); { - boost::io::wios_tie_saver its( wcin, &wcerr ); + boost::io::ios_tie_saver its( cout, &clog ); - BOOST_CHECK_EQUAL( &wcerr, wcin.tie() ); + BOOST_CHECK_EQUAL( &clog, cout.tie() ); - wcin.tie( NULL ); - BOOST_CHECK( NULL == wcin.tie() ); + cout.tie( &cerr ); + BOOST_CHECK_EQUAL( &cerr, cout.tie() ); } - BOOST_CHECK_EQUAL( &wcout, wcin.tie() ); + BOOST_CHECK( NULL == cout.tie() ); } // Unit test for connected-streambuf saving @@ -293,33 +293,33 @@ ios_rdbuf_saver_unit_test { using namespace std; - wiostream ws( NULL ); + iostream s( NULL ); - BOOST_CHECK( NULL == ws.rdbuf() ); + BOOST_CHECK( NULL == s.rdbuf() ); { - wstringbuf wsb; - boost::io::wios_rdbuf_saver irs( ws ); + stringbuf sb; + boost::io::ios_rdbuf_saver irs( s ); - BOOST_CHECK( NULL == ws.rdbuf() ); + BOOST_CHECK( NULL == s.rdbuf() ); - ws.rdbuf( &wsb ); - BOOST_CHECK_EQUAL( &wsb, ws.rdbuf() ); + s.rdbuf( &sb ); + BOOST_CHECK_EQUAL( &sb, s.rdbuf() ); } - BOOST_CHECK( NULL == ws.rdbuf() ); + BOOST_CHECK( NULL == s.rdbuf() ); { - wstringbuf wsb1, wsb2( L"Hi there" ); - boost::io::wios_rdbuf_saver irs( ws, &wsb1 ); + stringbuf sb1, sb2( "Hi there" ); + boost::io::ios_rdbuf_saver irs( s, &sb1 ); - BOOST_CHECK_EQUAL( &wsb1, ws.rdbuf() ); + BOOST_CHECK_EQUAL( &sb1, s.rdbuf() ); - ws.rdbuf( &wsb2 ); - BOOST_CHECK_EQUAL( &wsb2, ws.rdbuf() ); + s.rdbuf( &sb2 ); + BOOST_CHECK_EQUAL( &sb2, s.rdbuf() ); } - BOOST_CHECK( NULL == ws.rdbuf() ); + BOOST_CHECK( NULL == s.rdbuf() ); } // Unit test for fill-character saving