ReactOS 0.4.15-dev-7924-g5949c20
OstreamIteratorTest Class Reference
Inheritance diagram for OstreamIteratorTest:
Collaboration diagram for OstreamIteratorTest:

Protected Member Functions

void ostmit0 ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (OstreamIteratorTest)
 
 CPPUNIT_TEST (ostmit0)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 16 of file ostmit_test.cpp.

Member Function Documentation

◆ CPPUNIT_TEST()

OstreamIteratorTest::CPPUNIT_TEST ( ostmit0  )
private

◆ CPPUNIT_TEST_SUITE()

OstreamIteratorTest::CPPUNIT_TEST_SUITE ( OstreamIteratorTest  )
private

◆ CPPUNIT_TEST_SUITE_END()

OstreamIteratorTest::CPPUNIT_TEST_SUITE_END ( )
private

◆ ostmit0()

void OstreamIteratorTest::ostmit0 ( )
protected

Definition at line 31 of file ostmit_test.cpp.

32{
33 // not necessary, tested in copy_test
34 int array [] = { 1, 5, 2, 4 };
35
36 const char* text = "hello";
37
39
41 copy(text, text + 5, iter);
42 CPPUNIT_ASSERT(os.good());
43 os << ' ';
44 CPPUNIT_ASSERT(os.good());
45
46 ostream_iterator<int> iter2(os);
47 copy(array, array + 4, iter2);
48 CPPUNIT_ASSERT(os.good());
49 CPPUNIT_ASSERT(os.str() == "hello 1524");
50}
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
Definition: copy.c:51
_String str() const
Definition: _sstream.h:184
bool good() const
Definition: _ios_base.h:172
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
const WCHAR * text
Definition: package.c:1799

The documentation for this class was generated from the following file: