Boost logo

Boost-Commit :

From: technews_at_[hidden]
Date: 2007-12-30 00:45:29


Author: turkanis
Date: 2007-12-30 00:45:28 EST (Sun, 30 Dec 2007)
New Revision: 42362
URL: http://svn.boost.org/trac/boost/changeset/42362

Log:
test for issue 525
Added:
   branches/iostreams_dev/libs/iostreams/test/525_test.cpp (contents, props changed)

Added: branches/iostreams_dev/libs/iostreams/test/525_test.cpp
==============================================================================
--- (empty file)
+++ branches/iostreams_dev/libs/iostreams/test/525_test.cpp 2007-12-30 00:45:28 EST (Sun, 30 Dec 2007)
@@ -0,0 +1,36 @@
+// (C) Copyright Jonathan Turkanis 2004
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
+
+// See http://www.boost.org/libs/iostreams for documentation.
+
+#include <boost/iostreams/code_converter.hpp>
+#include <boost/iostreams/device/array.hpp>
+#include <boost/iostreams/stream.hpp>
+#include <boost/test/test_tools.hpp>
+#include <boost/test/unit_test.hpp>
+#include "detail/sequence.hpp"
+#include "detail/temp_file.hpp"
+#include "detail/utf8_codecvt_facet.hpp"
+#include "detail/verification.hpp"
+
+using boost::unit_test::test_suite;
+using namespace boost::iostreams;
+using namespace boost::iostreams::test;
+
+void array_test()
+{
+ char array[100];
+ typedef code_converter<
+ array_sink,
+ utf8_codecvt_facet<wchar_t, char>
+ > MyArrayDevice;
+ stream<MyArrayDevice> wCharOut(array, 100);
+}
+
+test_suite* init_unit_test_suite(int, char* [])
+{
+ test_suite* test = BOOST_TEST_SUITE("array test");
+ test->add(BOOST_TEST_CASE(&array_test));
+ return test;
+}


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk