ReactOS 0.4.15-dev-7968-g24a56f8
lexcmp_test.cpp
Go to the documentation of this file.
1#include <vector>
2#include <algorithm>
3#include <functional>
4
6
7#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
8using namespace std;
9#endif
10
11//
12// TestCase class
13//
14class LexcmpTest : public CPPUNIT_NS::TestCase
15{
20
21protected:
22 void lexcmp1();
23 void lexcmp2();
24};
25
27
28//
29// tests implementation
30//
32{
33 const unsigned size = 6;
34 char n1[size] = "shoe";
35 char n2[size] = "shine";
36
39}
41{
42 const unsigned size = 6;
43 char n1[size] = "shoe";
44 char n2[size] = "shine";
45
48}
_STLP_BEGIN_NAMESPACE bool lexicographical_compare(_InputIter1 __first1, _InputIter1 __last1, _InputIter2 __first2, _InputIter2 __last2)
Definition: _algobase.c:39
void lexcmp1()
Definition: lexcmp_test.cpp:31
CPPUNIT_TEST(lexcmp1)
void lexcmp2()
Definition: lexcmp_test.cpp:40
CPPUNIT_TEST_SUITE_END()
CPPUNIT_TEST(lexcmp2)
CPPUNIT_TEST_SUITE(LexcmpTest)
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
Definition: cppunit_mini.h:193
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
GLsizeiptr size
Definition: glext.h:5919
Definition: features.h:417
int n2
Definition: dwarfget.c:147
int n1
Definition: dwarfget.c:147
__inline int before(__u32 seq1, __u32 seq2)
Definition: tcpcore.h:2390