ReactOS  0.4.14-dev-854-gb9426a3
binsert_test.cpp
Go to the documentation of this file.
1 #include <vector>
2 #include <algorithm>
3 
5 
6 #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
7 using namespace std;
8 #endif
9 
10 //
11 // TestCase class
12 //
13 class BinsertTest : public CPPUNIT_NS::TestCase
14 {
16  CPPUNIT_TEST(binsert1);
17  CPPUNIT_TEST(binsert2);
19 
20 protected:
21  void binsert1();
22  void binsert2();
23 };
24 
26 
27 //
28 // tests implementation
29 //
31 {
32  const char* array [] = { "laurie", "jennifer", "leisa" };
33  vector<const char*> names;
35  bit = copy(array, array + 3, bit);
36 
40 
41  copy(array, array + 3, bit);
45 }
47 {
48  const char* array [] = { "laurie", "jennifer", "leisa" };
49  vector<const char*> names;
54 }
CPPUNIT_TEST_SUITE_REGISTRATION(BinsertTest)
#define CPPUNIT_TEST_SUITE(X)
Definition: cppunit_mini.h:142
#define CPPUNIT_TEST(X)
Definition: cppunit_mini.h:182
void binsert2()
Definition: features.h:417
GLuint GLuint * names
Definition: glext.h:11545
back_insert_iterator< _Container > _STLP_CALL back_inserter(_Container &__x)
Definition: _iterator.h:187
#define CPPUNIT_TEST_SUITE_END()
Definition: cppunit_mini.h:191
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
Definition: copy.c:51
void binsert1()
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469