1 #define BOOST_TEST_MODULE (ostream_handle test) 2 #include "boost/test/unit_test.hpp" 17 std::ifstream
file{fileName};
24 BOOST_AUTO_TEST_SUITE(ostream_handle_test)
28 std::ostringstream oss;
31 BOOST_TEST(oss.str() ==
"a"s);
39 BOOST_TEST(static_cast<bool>(own));
42 BOOST_TEST(file_contents(
fileName) ==
"a"s);
49 std::ostringstream oss;
57 BOOST_TEST(file_contents(
fileName) ==
"bc"s);
66 std::ostringstream oss;
71 BOOST_TEST(oss.str() ==
"bc"s);
73 BOOST_TEST(file_contents(
fileName) ==
"a"s);
76 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(observer)