1 // (C) Copyright 2011 Steven Watanabe
2 // Distributed under the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
5 // See http://www.boost.org/libs/iostreams for documentation.
8 #include <boost/iostreams/filtering_stream.hpp>
9 #include <boost/test/test_tools.hpp>
10 #include "detail/sequence.hpp"
11 #include "detail/temp_file.hpp"
12 #include "detail/verification.hpp"
14 void test_filtering_ostream_flush()
17 using namespace boost;
18 using namespace boost::iostreams;
19 using namespace boost::iostreams::test;
25 filtering_ostream out;
26 out.push(tolower_filter());
27 out.push(file_sink(dest.name(), out_mode));
28 write_data_in_chars(out);
31 compare_files(dest.name(), lower.name()),
32 "failed writing to a filtering_ostream in chars with an "