ReactOS 0.4.15-dev-7961-gdcf9eb0
bnegate_test.cpp
Go to the documentation of this file.
1#include <algorithm>
2#include <functional>
3
5
6#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
7using namespace std;
8#endif
9
10//
11// TestCase class
12//
13class BnegateTest : public CPPUNIT_NS::TestCase
14{
19
20protected:
21 void bnegate1();
22 void bnegate2();
23};
24
26
27//
28// tests implementation
29//
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}
41{
42 int array [4] = { 4, 9, 7, 1 };
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
CPPUNIT_TEST_SUITE_END()
void bnegate2()
CPPUNIT_TEST(bnegate1)
CPPUNIT_TEST_SUITE(BnegateTest)
void bnegate1()
CPPUNIT_TEST(bnegate2)
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
Definition: cppunit_mini.h:193
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
Definition: features.h:417