ReactOS  0.4.15-dev-1068-g467feb9
pair_test.cpp
Go to the documentation of this file.
1 #include <utility>
2 #include <vector>
3 #include <algorithm>
4 #include <string>
5 
7 
8 #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
9 using namespace std;
10 #endif
11 
12 class PairTest : public CPPUNIT_NS::TestCase
13 {
15  CPPUNIT_TEST(pair0);
18 
19  protected:
20  void pair0();
21  void init();
22 };
23 
25 
27 {
28  pair<int, int> p = make_pair(1, 10);
29 
30  CPPUNIT_ASSERT(p.first==1);
31  CPPUNIT_ASSERT(p.second==10);
32 }
33 
35 {
36  pair<int, string> PAIR_ARRAY[] = { pair<int, string>(0, "0") };
37 
38  int PAIR_ARRAY_SIZE = sizeof(PAIR_ARRAY) > 0 ? sizeof(PAIR_ARRAY) / sizeof(PAIR_ARRAY[0]) : 0;
39 
40 
41  for ( int i = 0; i < PAIR_ARRAY_SIZE; i++ ) {
42  CPPUNIT_CHECK( PAIR_ARRAY[i].first == 0 );
43  CPPUNIT_CHECK( PAIR_ARRAY[i].second == "0" );
44  PAIR_ARRAY[i].second = "1";
45  }
46 }
const GLint * first
Definition: glext.h:5794
#define CPPUNIT_TEST_SUITE(X)
Definition: cppunit_mini.h:142
pair< _T1, _T2 > _STLP_CALL make_pair(_T1 __x, _T2 __y)
Definition: _pair.h:124
#define CPPUNIT_TEST(X)
Definition: cppunit_mini.h:182
Definition: features.h:417
static int init
Definition: wintirpc.c:33
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define CPPUNIT_TEST_SUITE_END()
Definition: cppunit_mini.h:191
void init()
Definition: pair_test.cpp:34
CPPUNIT_TEST_SUITE_REGISTRATION(PairTest)
#define CPPUNIT_CHECK(X)
Definition: cppunit_mini.h:195
void pair0()
Definition: pair_test.cpp:26
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
Definition: _pair.h:47
_T2 second
Definition: _pair.h:52
GLfloat GLfloat p
Definition: glext.h:8902