2 * Note: Strstreams are really broken in STLport. But strstreams are
3 * obsolete, and even if ones was mentioned in D7.1--D7.4 of
4 * Standard, we have no wish to spent time with repair ones.
6 #if !defined (_STLP_NO_IOSTREAMS)
9 # include "cppunit/cppunit_proxy.h"
11 # if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
15 class StrstreamBufferTest : public CPPUNIT_NS::TestCase
17 CPPUNIT_TEST_SUITE(StrstreamBufferTest);
18 CPPUNIT_TEST(read_from_buffer);
19 CPPUNIT_TEST_SUITE_END();
22 void read_from_buffer();
25 CPPUNIT_TEST_SUITE_REGISTRATION(StrstreamBufferTest);
27 void StrstreamBufferTest::read_from_buffer()
29 char hello[] = "Hello";
30 strstream stream(hello, sizeof(hello), ios_base::in);
33 CPPUNIT_ASSERT(cur == 'H');