ReactOS  0.4.15-dev-509-g96a357b
divides_test.cpp
Go to the documentation of this file.
1 #include <numeric>
2 #include <functional>
3 
5 
6 #if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
7 using namespace std;
8 #endif
9 
10 //
11 // TestCase class
12 //
13 class DivideTest : public CPPUNIT_NS::TestCase
14 {
18 
19 protected:
20  void div();
21 };
22 
24 
25 //
26 // tests implementation
27 //
29 {
30  int input [3] = { 2, 3, 4 };
31  int result = accumulate(input, input + 3, 48, divides<int>());
33 }
#define CPPUNIT_TEST_SUITE(X)
Definition: cppunit_mini.h:142
#define CPPUNIT_TEST(X)
Definition: cppunit_mini.h:182
Definition: features.h:417
#define CPPUNIT_TEST_SUITE_END()
Definition: cppunit_mini.h:191
_STLP_BEGIN_NAMESPACE _STLP_INLINE_LOOP _Tp accumulate(_InputIterator __first, _InputIterator __last, _Tp _Init)
Definition: _numeric.h:42
_STLP_VENDOR_CSTD::ldiv_t div(long __x, long __y)
Definition: _cstdlib.h:137
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
CPPUNIT_TEST_SUITE_REGISTRATION(DivideTest)
GLenum GLenum GLenum input
Definition: glext.h:9031
GLuint64EXT * result
Definition: glext.h:11304