ReactOS
0.4.16-dev-1399-gaaed9f7
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
iota_test.cpp
Go to the documentation of this file.
1
#include <vector>
2
#include <numeric>
3
4
#include "
cppunit/cppunit_proxy.h
"
5
6
#if defined(_STLP_USE_NAMESPACES)
7
using namespace
std
;
8
#endif
9
10
//
11
// TestCase class
12
//
13
class
IotaTest
:
public
CPPUNIT_NS::TestCase
14
{
15
CPPUNIT_TEST_SUITE
(
IotaTest
);
16
#if !defined (STLPORT) || defined (_STLP_NO_EXTENSIONS)
17
CPPUNIT_IGNORE
;
18
#endif
19
CPPUNIT_TEST
(
iota1
);
20
CPPUNIT_TEST_SUITE_END
();
21
22
protected
:
23
void
iota1
();
24
};
25
26
CPPUNIT_TEST_SUITE_REGISTRATION
(
IotaTest
);
27
28
//
29
// tests implementation
30
//
31
void
IotaTest::iota1
()
32
{
33
#if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS)
34
int
numbers[10];
35
iota
(numbers, numbers + 10, 42);
36
CPPUNIT_ASSERT
(numbers[0]==42);
37
CPPUNIT_ASSERT
(numbers[1]==43);
38
CPPUNIT_ASSERT
(numbers[2]==44);
39
CPPUNIT_ASSERT
(numbers[3]==45);
40
CPPUNIT_ASSERT
(numbers[4]==46);
41
CPPUNIT_ASSERT
(numbers[5]==47);
42
CPPUNIT_ASSERT
(numbers[6]==48);
43
CPPUNIT_ASSERT
(numbers[7]==49);
44
CPPUNIT_ASSERT
(numbers[8]==50);
45
CPPUNIT_ASSERT
(numbers[9]==51);
46
#endif
47
}
iota
_STLP_INLINE_LOOP void iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __val)
Definition:
_numeric.h:174
IotaTest
Definition:
iota_test.cpp:14
IotaTest::CPPUNIT_TEST_SUITE_END
CPPUNIT_TEST_SUITE_END()
IotaTest::CPPUNIT_IGNORE
CPPUNIT_IGNORE
Definition:
iota_test.cpp:17
IotaTest::CPPUNIT_TEST_SUITE
CPPUNIT_TEST_SUITE(IotaTest)
IotaTest::iota1
void iota1()
Definition:
iota_test.cpp:31
IotaTest::CPPUNIT_TEST
CPPUNIT_TEST(iota1)
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
std
Definition:
features.h:417
sdk
lib
3rdparty
stlport
test
unit
iota_test.cpp
Generated on Wed Jun 25 2025 06:14:29 for ReactOS by
1.9.6