ReactOS  0.4.13-dev-39-g8b6696f
bcompos_test.cpp
Go to the documentation of this file.
1 #include <algorithm>
2 #include "unary.h"
3 
5 
6 #if defined(_STLP_USE_NAMESPACES)
7 using namespace std;
8 #endif
9 
10 //
11 // TestCase class
12 //
13 class BcomposTest : public CPPUNIT_NS::TestCase
14 {
16 #if !defined (STLPORT) || defined (_STLP_NO_EXTENSIONS)
18 #endif
19  CPPUNIT_TEST(bcompos1);
20  CPPUNIT_TEST(bcompos2);
22 
23 protected:
24  void bcompos1();
25  void bcompos2();
26 };
27 
29 
30 //
31 // tests implementation
32 //
34 {
35 #if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS)
36  int array [6] = { -2, -1, 0, 1, 2, 3 };
37 
40 
41  int* p = find_if((int*)array, (int*)array + 6, b);
42  CPPUNIT_ASSERT(p != array + 6);
43 #endif
44 }
45 
47 {
48 #if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS)
49  int array [6] = { -2, -1 , 0, 1, 2, 3 };
50 
51  int* p = find_if((int*)array, (int*)array + 6,
53  CPPUNIT_ASSERT(p != array + 6);
54 #endif
55 }
#define CPPUNIT_TEST_SUITE(X)
Definition: cppunit_mini.h:142
#define CPPUNIT_TEST(X)
Definition: cppunit_mini.h:182
Definition: features.h:417
_STLP_MOVE_TO_STD_NAMESPACE _InputIter find_if(_InputIter __first, _InputIter __last, _Predicate __pred)
Definition: _algobase.c:214
binary_compose< _Operation1, _Operation2, _Operation3 > compose2(const _Operation1 &__fn1, const _Operation2 &__fn2, const _Operation3 &__fn3)
Definition: _function.h:316
void bcompos2()
#define CPPUNIT_TEST_SUITE_END()
Definition: cppunit_mini.h:191
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
void bcompos1()
GLfloat GLfloat p
Definition: glext.h:8902
CPPUNIT_TEST_SUITE_REGISTRATION(BcomposTest)
#define odd(x)
Definition: bidi.c:53
Definition: unary.h:15