ReactOS 0.4.15-dev-7924-g5949c20
NeqTest Class Reference
Inheritance diagram for NeqTest:
Collaboration diagram for NeqTest:

Protected Member Functions

void negate0 ()
 
void nequal0 ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (NeqTest)
 
 CPPUNIT_TEST (negate0)
 
 CPPUNIT_TEST (nequal0)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 14 of file neq_test.cpp.

Member Function Documentation

◆ CPPUNIT_TEST() [1/2]

NeqTest::CPPUNIT_TEST ( negate0  )
private

◆ CPPUNIT_TEST() [2/2]

NeqTest::CPPUNIT_TEST ( nequal0  )
private

◆ CPPUNIT_TEST_SUITE()

NeqTest::CPPUNIT_TEST_SUITE ( NeqTest  )
private

◆ CPPUNIT_TEST_SUITE_END()

NeqTest::CPPUNIT_TEST_SUITE_END ( )
private

◆ negate0()

void NeqTest::negate0 ( )
protected

Definition at line 31 of file neq_test.cpp.

32{
33 int input [3] = { 1, 2, 3 };
34
35 int output[3];
36 transform((int*)input, (int*)input + 3, (int*)output, negate<int>());
37
38 CPPUNIT_ASSERT(output[0]==-1);
39 CPPUNIT_ASSERT(output[1]==-2);
40 CPPUNIT_ASSERT(output[2]==-3);
41}
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
GLuint GLenum GLenum transform
Definition: glext.h:9407
GLenum GLenum GLenum input
Definition: glext.h:9031

◆ nequal0()

void NeqTest::nequal0 ( )
protected

Definition at line 42 of file neq_test.cpp.

43{
44 int input1 [4] = { 1, 7, 2, 2 };
45 int input2 [4] = { 1, 6, 2, 3 };
46
47 int output [4];
48 transform((int*)input1, (int*)input1 + 4, (int*)input2, (int*)output, not_equal_to<int>());
49
50 CPPUNIT_ASSERT(output[0]==0);
51 CPPUNIT_ASSERT(output[1]==1);
52 CPPUNIT_ASSERT(output[2]==0);
53 CPPUNIT_ASSERT(output[3]==1);
54}

The documentation for this class was generated from the following file: