ReactOS 0.4.16-dev-340-g0540c21
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)
7using namespace std;
8#endif
9
10//
11// TestCase class
12//
13class DivideTest : public CPPUNIT_NS::TestCase
14{
18
19protected:
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}
_STLP_BEGIN_NAMESPACE _STLP_INLINE_LOOP _Tp accumulate(_InputIterator __first, _InputIterator __last, _Tp _Init)
Definition: _numeric.h:42
CPPUNIT_TEST_SUITE(DivideTest)
CPPUNIT_TEST_SUITE_END()
CPPUNIT_TEST(div)
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
Definition: cppunit_mini.h:193
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
GLenum GLenum GLenum input
Definition: glext.h:9031
GLuint64EXT * result
Definition: glext.h:11304
Definition: features.h:417