ReactOS 0.4.15-dev-8348-gc1b9bb5
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)
7using namespace std;
8#endif
9
10//
11// TestCase class
12//
13class BcomposTest : public CPPUNIT_NS::TestCase
14{
16#if !defined (STLPORT) || defined (_STLP_NO_EXTENSIONS)
18#endif
22
23protected:
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}
_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
CPPUNIT_TEST(bcompos1)
CPPUNIT_TEST(bcompos2)
void bcompos1()
void bcompos2()
CPPUNIT_TEST_SUITE(BcomposTest)
CPPUNIT_TEST_SUITE_END()
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
Definition: cppunit_mini.h:193
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLfloat GLfloat p
Definition: glext.h:8902
#define odd(x)
Definition: bidi.c:51
Definition: features.h:417
Definition: unary.h:15