ReactOS
0.4.16-dev-963-g182f353
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
neq_test.cpp
Go to the documentation of this file.
1
#include <vector>
2
#include <algorithm>
3
#include <functional>
4
5
#include "
cppunit/cppunit_proxy.h
"
6
7
#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
8
using namespace
std
;
9
#endif
10
11
//
12
// TestCase class
13
//
14
class
NeqTest
:
public
CPPUNIT_NS::TestCase
15
{
16
CPPUNIT_TEST_SUITE
(
NeqTest
);
17
CPPUNIT_TEST
(
negate0
);
18
CPPUNIT_TEST
(
nequal0
);
19
CPPUNIT_TEST_SUITE_END
();
20
21
protected
:
22
void
negate0
();
23
void
nequal0
();
24
};
25
26
CPPUNIT_TEST_SUITE_REGISTRATION
(
NeqTest
);
27
28
//
29
// tests implementation
30
//
31
void
NeqTest::negate0
()
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
}
42
void
NeqTest::nequal0
()
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
}
NeqTest
Definition:
neq_test.cpp:15
NeqTest::negate0
void negate0()
Definition:
neq_test.cpp:31
NeqTest::CPPUNIT_TEST
CPPUNIT_TEST(negate0)
NeqTest::nequal0
void nequal0()
Definition:
neq_test.cpp:42
NeqTest::CPPUNIT_TEST
CPPUNIT_TEST(nequal0)
NeqTest::CPPUNIT_TEST_SUITE_END
CPPUNIT_TEST_SUITE_END()
NeqTest::CPPUNIT_TEST_SUITE
CPPUNIT_TEST_SUITE(NeqTest)
CPPUNIT_TEST_SUITE_REGISTRATION
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
Definition:
cppunit_mini.h:193
CPPUNIT_ASSERT
#define CPPUNIT_ASSERT(X)
Definition:
cppunit_mini.h:200
cppunit_proxy.h
transform
GLuint GLenum GLenum transform
Definition:
glext.h:9407
input
GLenum GLenum GLenum input
Definition:
glext.h:9031
std
Definition:
features.h:417
negate
Definition:
_function.h:74
not_equal_to
Definition:
_function.h:44
sdk
lib
3rdparty
stlport
test
unit
neq_test.cpp
Generated on Mon Apr 7 2025 06:15:56 for ReactOS by
1.9.6