ReactOS  0.4.15-dev-3287-gfec35dc
GreaterTest Class Reference
Inheritance diagram for GreaterTest:
Collaboration diagram for GreaterTest:

Protected Member Functions

void greatert ()
 
void greatereq ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (GreaterTest)
 
 CPPUNIT_TEST (greatert)
 
 CPPUNIT_TEST (greatereq)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 14 of file greater_test.cpp.

Member Function Documentation

◆ CPPUNIT_TEST() [1/2]

GreaterTest::CPPUNIT_TEST ( greatert  )
private

◆ CPPUNIT_TEST() [2/2]

GreaterTest::CPPUNIT_TEST ( greatereq  )
private

◆ CPPUNIT_TEST_SUITE()

GreaterTest::CPPUNIT_TEST_SUITE ( GreaterTest  )
private

◆ CPPUNIT_TEST_SUITE_END()

GreaterTest::CPPUNIT_TEST_SUITE_END ( )
private

◆ greatereq()

void GreaterTest::greatereq ( )
protected

Definition at line 41 of file greater_test.cpp.

42 {
43  int array [4] = { 3, 1, 4, 2 };
45  CPPUNIT_ASSERT(array[0]==4);
46  CPPUNIT_ASSERT(array[1]==3);
47  CPPUNIT_ASSERT(array[2]==2);
48  CPPUNIT_ASSERT(array[3]==1);
49 }
_STLP_MOVE_TO_STD_NAMESPACE void sort(_RandomAccessIter __first, _RandomAccessIter __last)
Definition: _algo.c:993
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200

◆ greatert()

void GreaterTest::greatert ( )
protected

Definition at line 31 of file greater_test.cpp.

32 {
33  int array[4] = { 3, 1, 4, 2 };
34  sort(array, array + 4, greater<int>() );
35 
36  CPPUNIT_ASSERT(array[0]==4);
37  CPPUNIT_ASSERT(array[1]==3);
38  CPPUNIT_ASSERT(array[2]==2);
39  CPPUNIT_ASSERT(array[3]==1);
40 }
_STLP_MOVE_TO_STD_NAMESPACE void sort(_RandomAccessIter __first, _RandomAccessIter __last)
Definition: _algo.c:993
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200

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