Go to the source code of this file.
TESTFUN |
( |
clause_23_3_6_1_1 |
| ) |
|
This file is supposed to be included from within FBVectorTest. Do not use otherwise.
Definition at line 22 of file FBVectorTests.cpp.h.
References a, EXPECT_TRUE, v, and VECTOR.
25 VECTOR::allocator_type
a;
#define EXPECT_TRUE(condition)
TESTFUN |
( |
clause_23_3_6_1_3 |
| ) |
|
TESTFUN |
( |
clause_23_3_6_1_9 |
| ) |
|
Definition at line 37 of file FBVectorTests.cpp.h.
References EXPECT_EQ, FOR_EACH, FOR_EACH_RANGE, i, random(), v, and VECTOR.
39 list<VECTOR::value_type> lst;
40 auto const n =
random(0U, 10000U);
42 lst.push_back(randomObject<VECTOR::value_type>());
44 VECTOR v(lst.begin(), lst.end());
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
#define FOR_EACH_RANGE(i, begin, end)
TESTFUN |
( |
clause_23_3_6_1_11 |
| ) |
|
Definition at line 53 of file FBVectorTests.cpp.h.
References EXPECT_EQ, FOR_EACH, FOR_EACH_RANGE, i, random(), v, and VECTOR.
55 list<VECTOR::value_type> lst;
56 auto const n =
random(0U, 10000U);
58 lst.push_back(randomObject<VECTOR::value_type>());
61 v.assign(lst.begin(), lst.end());
70 v.assign(v.begin(), v.begin() + v.size() / 2);
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
#define FOR_EACH_RANGE(i, begin, end)
TESTFUN |
( |
clause_23_3_6_1_12 |
| ) |
|
TESTFUN |
( |
clause_23_3_6_2_1 |
| ) |
|
TESTFUN |
( |
clause_23_3_6_2_7 |
| ) |
|
Definition at line 98 of file FBVectorTests.cpp.h.
References EXPECT_EQ, FOR_EACH, i, random(), and VECTOR.
99 auto const n1 =
random(0U, 10000U);
100 auto const n2 =
random(0U, 10000U);
101 auto const obj1 = randomObject<VECTOR::value_type>();
102 auto const obj2 = randomObject<VECTOR::value_type>();
103 VECTOR v1(n1, obj1), v2(n2, obj2);
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
TESTFUN |
( |
clause_23_3_6_2_9 |
| ) |
|
TESTFUN |
( |
clause_23_3_6_2_11 |
| ) |
|
Definition at line 119 of file FBVectorTests.cpp.h.
References EXPECT_EQ, FOR_EACH, FOR_EACH_RANGE, i, random(), v, and VECTOR.
121 auto const n1 =
random(0U, 10000U);
122 auto const obj1 = randomObject<VECTOR::value_type>();
125 auto const n2 =
random(0U, 10000U);
126 auto const obj2 = randomObject<VECTOR::value_type>();
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
#define FOR_EACH_RANGE(i, begin, end)
TESTFUN |
( |
clause_absent_element_access |
| ) |
|
Definition at line 133 of file FBVectorTests.cpp.h.
References EXPECT_EQ, random(), v, and VECTOR.
135 auto const n1 =
random(1U, 10000U);
136 auto const obj1 = randomObject<VECTOR::value_type>();
138 auto const n =
random(0U, v.size() - 1);
140 auto const obj2 = randomObject<VECTOR::value_type>();
144 auto const obj3 = randomObject<VECTOR::value_type>();
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
TESTFUN |
( |
clause_23_3_6_3_1 |
| ) |
|
Definition at line 150 of file FBVectorTests.cpp.h.
References EXPECT_EQ, random(), v, and VECTOR.
152 auto const n1 =
random(1U, 10000U);
153 auto const obj1 = randomObject<VECTOR::value_type>();
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
TESTFUN |
( |
clause_23_3_6_4_1_a |
| ) |
|
Definition at line 158 of file FBVectorTests.cpp.h.
References EXPECT_EQ, FOR_EACH_RANGE, i, random(), v, and VECTOR.
160 auto const n1 =
random(1U, 10000U);
162 auto const obj1 = randomObject<VECTOR::value_type>();
166 auto const n2 =
random(0U, n1 - 1);
167 auto pos = v.begin() + n2;
168 auto const obj2 = randomObject<VECTOR::value_type>();
170 auto r = v.insert(pos, obj2);
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
#define FOR_EACH_RANGE(i, begin, end)
TESTFUN |
( |
clause_23_3_6_4_1_c |
| ) |
|
Definition at line 179 of file FBVectorTests.cpp.h.
References EXPECT_EQ, FOR_EACH_RANGE, i, random(), and v.
181 fbvector<VECTOR::value_type>
v, w;
182 auto const n1 =
random(1U, 10000U);
184 auto const obj1 = randomObject<VECTOR::value_type>();
188 auto const n2 =
random(0U, n1 - 1);
189 auto pos = v.begin() + n2;
190 auto const obj2 = randomObject<VECTOR::value_type>();
191 auto const n3 =
random(0U, 10000U);
193 auto r = v.insert(pos, n3, obj2);
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
#define FOR_EACH_RANGE(i, begin, end)
TESTFUN |
( |
clause_23_3_6_4_1_d |
| ) |
|
Definition at line 206 of file FBVectorTests.cpp.h.
References EXPECT_EQ, FOR_EACH_RANGE, i, random(), v, and VECTOR.
208 auto const n1 =
random(0U, 10000U);
210 auto const obj1 = randomObject<VECTOR::value_type>();
216 auto const obj2 = randomObject<VECTOR::value_type>();
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
#define FOR_EACH_RANGE(i, begin, end)
TESTFUN |
( |
clause_23_3_6_4_3 |
| ) |
|
Definition at line 224 of file FBVectorTests.cpp.h.
References EXPECT_EQ, FOR_EACH_RANGE, i, random(), v, and VECTOR.
226 auto const n1 =
random(1U, 10000U);
228 auto const obj1 = randomObject<VECTOR::value_type>();
234 auto const n2 =
random(0U, n1 - 1);
235 auto it = v.erase(v.begin() + n2);
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
#define FOR_EACH_RANGE(i, begin, end)
TESTFUN |
( |
clause_23_3_6_4_4 |
| ) |
|
Definition at line 243 of file FBVectorTests.cpp.h.
References EXPECT_EQ, FOR_EACH_RANGE, i, random(), v, and VECTOR.
245 auto const n1 =
random(1U, 10000U);
247 auto const obj1 = randomObject<VECTOR::value_type>();
253 auto const n2 =
random(0U, n1 - 1);
254 auto const n3 =
random(n2, n1 - 1);
255 auto it = v.erase(v.begin() + n2, v.begin() + n3);
256 EXPECT_EQ(v.size() + (n3 - n2), w.size());
Integral2 random(Integral1 low, Integral2 up)
#define EXPECT_EQ(val1, val2)
#define FOR_EACH_RANGE(i, begin, end)
TESTFUN |
( |
clause_23_3_6_4_clear |
| ) |
|