ReactOS  0.4.15-dev-3303-g1ade494
BnegateTest Class Reference
Inheritance diagram for BnegateTest:
Collaboration diagram for BnegateTest:

Protected Member Functions

void bnegate1 ()
 
void bnegate2 ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (BnegateTest)
 
 CPPUNIT_TEST (bnegate1)
 
 CPPUNIT_TEST (bnegate2)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 13 of file bnegate_test.cpp.

Member Function Documentation

◆ bnegate1()

void BnegateTest::bnegate1 ( )
protected

Definition at line 30 of file bnegate_test.cpp.

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

◆ bnegate2()

void BnegateTest::bnegate2 ( )
protected

Definition at line 40 of file bnegate_test.cpp.

41 {
42  int array [4] = { 4, 9, 7, 1 };
43  sort(array, array + 4, not2(greater<int>()));
44  CPPUNIT_ASSERT(array[0]==1);
45  CPPUNIT_ASSERT(array[1]==4);
46  CPPUNIT_ASSERT(array[2]==7);
47  CPPUNIT_ASSERT(array[3]==9);
48 }
_STLP_MOVE_TO_STD_NAMESPACE void sort(_RandomAccessIter __first, _RandomAccessIter __last)
Definition: _algo.c:993
binary_negate< _Predicate > not2(const _Predicate &__pred)
Definition: _function.h:183
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200

◆ CPPUNIT_TEST() [1/2]

BnegateTest::CPPUNIT_TEST ( bnegate1  )
private

◆ CPPUNIT_TEST() [2/2]

BnegateTest::CPPUNIT_TEST ( bnegate2  )
private

◆ CPPUNIT_TEST_SUITE()

BnegateTest::CPPUNIT_TEST_SUITE ( BnegateTest  )
private

◆ CPPUNIT_TEST_SUITE_END()

BnegateTest::CPPUNIT_TEST_SUITE_END ( )
private

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