ReactOS 0.4.15-dev-7788-g1ad9096
finsert_test.cpp
Go to the documentation of this file.
1#include <vector>
2#include <algorithm>
3#include <deque>
4
6
7#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
8using namespace std;
9#endif
10
11//
12// TestCase class
13//
14class FinsertTest : public CPPUNIT_NS::TestCase
15{
20
21protected:
22 void finsert1();
23 void finsert2();
24};
25
27
28//
29// tests implementation
30//
32{
33 char const* array [] = { "laurie", "jennifer", "leisa" };
36 fit = copy(array, array + 3, front_insert_iterator<deque <char const*> >(names));
37
41
42 copy(array, array + 3, fit);
46}
47
49{
50 char const* array [] = { "laurie", "jennifer", "leisa" };
51
54
58}
front_insert_iterator< _Container > _STLP_CALL front_inserter(_Container &__x)
Definition: _iterator.h:216
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
Definition: copy.c:51
CPPUNIT_TEST(finsert1)
void finsert2()
CPPUNIT_TEST_SUITE_END()
void finsert1()
CPPUNIT_TEST(finsert2)
CPPUNIT_TEST_SUITE(FinsertTest)
Definition: _deque.h:404
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
Definition: cppunit_mini.h:193
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
GLuint GLuint * names
Definition: glext.h:11545
Definition: features.h:417