ReactOS  0.4.15-dev-2153-g62b4c61
PairTest Class Reference
Inheritance diagram for PairTest:
Collaboration diagram for PairTest:

Protected Member Functions

void pair0 ()
 
void init ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (PairTest)
 
 CPPUNIT_TEST (pair0)
 
 CPPUNIT_TEST (init)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 12 of file pair_test.cpp.

Member Function Documentation

◆ CPPUNIT_TEST() [1/2]

PairTest::CPPUNIT_TEST ( pair0  )
private

◆ CPPUNIT_TEST() [2/2]

PairTest::CPPUNIT_TEST ( init  )
private

◆ CPPUNIT_TEST_SUITE()

PairTest::CPPUNIT_TEST_SUITE ( PairTest  )
private

◆ CPPUNIT_TEST_SUITE_END()

PairTest::CPPUNIT_TEST_SUITE_END ( )
private

◆ init()

void PairTest::init ( void  )
protected

Definition at line 34 of file pair_test.cpp.

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_CHECK(X)
Definition: cppunit_mini.h:195
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
Definition: _pair.h:47
_T2 second
Definition: _pair.h:52

◆ pair0()

void PairTest::pair0 ( )
protected

Definition at line 26 of file pair_test.cpp.

27 {
28  pair<int, int> p = make_pair(1, 10);
29 
30  CPPUNIT_ASSERT(p.first==1);
31  CPPUNIT_ASSERT(p.second==10);
32 }
pair< _T1, _T2 > _STLP_CALL make_pair(_T1 __x, _T2 __y)
Definition: _pair.h:124
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
Definition: _pair.h:47
GLfloat GLfloat p
Definition: glext.h:8902

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