Debian Codegraph @

src/external/catch2/tests/SelfTest/Baselines/tap.sw.approved.txt

raw
1 # filters: "*" ~[!nonportable] ~[!benchmark] ~[approvals]
2 # rng-seed: 1
3 # # A test name that starts with a #
4 ok {test-number} - with 1 message: 'yay'
5 # #1027: Bitfields can be captured
6 ok {test-number} - y.v == 0 for: 0 == 0
7 # #1027: Bitfields can be captured
8 ok {test-number} - 0 == y.v for: 0 == 0
9 # #1147
10 ok {test-number} - t1 == t2 for: {?} == {?}
11 # #1147
12 ok {test-number} - t1 != t2 for: {?} != {?}
13 # #1147
14 ok {test-number} - t1 < t2 for: {?} < {?}
15 # #1147
16 ok {test-number} - t1 > t2 for: {?} > {?}
17 # #1147
18 ok {test-number} - t1 <= t2 for: {?} <= {?}
19 # #1147
20 ok {test-number} - t1 >= t2 for: {?} >= {?}
21 # #1175 - Hidden Test
22 ok {test-number} -
23 # #1238
24 ok {test-number} - std::memcmp(uarr, "123", sizeof(uarr)) == 0 for: 0 == 0 with 2 messages: 'uarr := "123"' and 'sarr := "456"'
25 # #1238
26 ok {test-number} - std::memcmp(sarr, "456", sizeof(sarr)) == 0 for: 0 == 0 with 2 messages: 'uarr := "123"' and 'sarr := "456"'
27 # #1245
28 ok {test-number} -
29 # #1319: Sections can have description (even if it is not saved
30 ok {test-number} -
31 # #1403
32 ok {test-number} - h1 == h2 for: [1403 helper] == [1403 helper]
33 # #1455 - INFO and WARN can start with a linebreak
34 warning {test-number} - '
35 This info message starts with a linebreak' with 1 message: '
36 This warning message starts with a linebreak'
37 This would not be caught previously
38 Nor would this
39 # #1514: stderr/stdout is not captured in tests aborted by an exception
40 not ok {test-number} - explicitly with 1 message: '1514'
41 # #1548
42 ok {test-number} - std::is_same<TypeList<int>, TypeList<int>>::value for: true
43 # #1905 -- test spec parser properly clears internal state between compound tests
44 ok {test-number} - spec.matches(*fakeTestCase("spec . char")) for: true
45 # #1905 -- test spec parser properly clears internal state between compound tests
46 ok {test-number} - spec.matches(*fakeTestCase("spec , char")) for: true
47 # #1905 -- test spec parser properly clears internal state between compound tests
48 ok {test-number} - !(spec.matches(*fakeTestCase(R"(spec \, char)"))) for: !false
49 # #1912 -- test spec parser handles escaping
50 ok {test-number} - spec.matches(*fakeTestCase(R"(spec {a} char)")) for: true
51 # #1912 -- test spec parser handles escaping
52 ok {test-number} - spec.matches(*fakeTestCase(R"(spec [a] char)")) for: true
53 # #1912 -- test spec parser handles escaping
54 ok {test-number} - !(spec.matches(*fakeTestCase("differs but has similar tag", "[a]"))) for: !false
55 # #1912 -- test spec parser handles escaping
56 ok {test-number} - spec.matches(*fakeTestCase(R"(spec \ char)")) for: true
57 # #1913 - GENERATE inside a for loop should not keep recreating the generator
58 ok {test-number} - counter < 7 for: 3 < 7
59 # #1913 - GENERATE inside a for loop should not keep recreating the generator
60 ok {test-number} - counter < 7 for: 6 < 7
61 # #1913 - GENERATEs can share a line
62 ok {test-number} - i != j for: 1 != 3
63 # #1913 - GENERATEs can share a line
64 ok {test-number} - i != j for: 1 != 4
65 # #1913 - GENERATEs can share a line
66 ok {test-number} - i != j for: 2 != 3
67 # #1913 - GENERATEs can share a line
68 ok {test-number} - i != j for: 2 != 4
69 # #1938 - GENERATE after a section
70 ok {test-number} - with 1 message: 'A'
71 # #1938 - GENERATE after a section
72 ok {test-number} - m for: 1
73 # #1938 - GENERATE after a section
74 ok {test-number} - m for: 2
75 # #1938 - GENERATE after a section
76 ok {test-number} - m for: 3
77 # #1938 - Section followed by flat generate
78 ok {test-number} - 1
79 # #1938 - Section followed by flat generate
80 ok {test-number} - m for: 2
81 # #1938 - Section followed by flat generate
82 ok {test-number} - m for: 3
83 # #1938 - flat generate
84 ok {test-number} - m for: 1
85 # #1938 - flat generate
86 ok {test-number} - m for: 2
87 # #1938 - flat generate
88 ok {test-number} - m for: 3
89 # #1938 - mixed sections and generates
90 ok {test-number} - with 1 message: 'A'
91 # #1938 - mixed sections and generates
92 ok {test-number} - with 3 messages: 'i := 1' and 'j := 3' and 'k := 5'
93 # #1938 - mixed sections and generates
94 ok {test-number} - with 1 message: 'B'
95 # #1938 - mixed sections and generates
96 ok {test-number} - with 3 messages: 'i := 1' and 'j := 3' and 'k := 6'
97 # #1938 - mixed sections and generates
98 ok {test-number} - with 1 message: 'B'
99 # #1938 - mixed sections and generates
100 ok {test-number} - with 3 messages: 'i := 1' and 'j := 4' and 'k := 5'
101 # #1938 - mixed sections and generates
102 ok {test-number} - with 3 messages: 'i := 1' and 'j := 4' and 'k := 6'
103 # #1938 - mixed sections and generates
104 ok {test-number} - with 1 message: 'A'
105 # #1938 - mixed sections and generates
106 ok {test-number} - with 3 messages: 'i := 2' and 'j := 3' and 'k := 5'
107 # #1938 - mixed sections and generates
108 ok {test-number} - with 1 message: 'B'
109 # #1938 - mixed sections and generates
110 ok {test-number} - with 3 messages: 'i := 2' and 'j := 3' and 'k := 6'
111 # #1938 - mixed sections and generates
112 ok {test-number} - with 1 message: 'B'
113 # #1938 - mixed sections and generates
114 ok {test-number} - with 3 messages: 'i := 2' and 'j := 4' and 'k := 5'
115 # #1938 - mixed sections and generates
116 ok {test-number} - with 3 messages: 'i := 2' and 'j := 4' and 'k := 6'
117 # #1938 - nested generate
118 ok {test-number} - m for: 1
119 # #1938 - nested generate
120 ok {test-number} - n for: 1
121 # #1938 - nested generate
122 ok {test-number} - m for: 1
123 # #1938 - nested generate
124 ok {test-number} - n for: 2
125 # #1938 - nested generate
126 ok {test-number} - m for: 1
127 # #1938 - nested generate
128 ok {test-number} - n for: 3
129 # #1938 - nested generate
130 ok {test-number} - m for: 2
131 # #1938 - nested generate
132 ok {test-number} - n for: 1
133 # #1938 - nested generate
134 ok {test-number} - m for: 2
135 # #1938 - nested generate
136 ok {test-number} - n for: 2
137 # #1938 - nested generate
138 ok {test-number} - m for: 2
139 # #1938 - nested generate
140 ok {test-number} - n for: 3
141 # #1938 - nested generate
142 ok {test-number} - m for: 3
143 # #1938 - nested generate
144 ok {test-number} - n for: 1
145 # #1938 - nested generate
146 ok {test-number} - m for: 3
147 # #1938 - nested generate
148 ok {test-number} - n for: 2
149 # #1938 - nested generate
150 ok {test-number} - m for: 3
151 # #1938 - nested generate
152 ok {test-number} - n for: 3
153 # #1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
154 ok {test-number} -
155 # #1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0
156 ok {test-number} -
157 # #1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0
158 ok {test-number} -
159 # #2152 - ULP checks between differently signed values were wrong - double
160 ok {test-number} - smallest_non_zero, WithinULP( -smallest_non_zero, 2 ) for: 0.0 is within 2 ULPs of -4.9406564584124654e-324 ([-1.4821969375237396e-323, 4.9406564584124654e-324])
161 # #2152 - ULP checks between differently signed values were wrong - double
162 ok {test-number} - smallest_non_zero, !WithinULP( -smallest_non_zero, 1 ) for: 0.0 not is within 1 ULPs of -4.9406564584124654e-324 ([-9.8813129168249309e-324, -0.0000000000000000e+00])
163 # #2152 - ULP checks between differently signed values were wrong - float
164 ok {test-number} - smallest_non_zero, WithinULP( -smallest_non_zero, 2 ) for: 0.0f is within 2 ULPs of -1.40129846e-45f ([-4.20389539e-45, 1.40129846e-45])
165 # #2152 - ULP checks between differently signed values were wrong - float
166 ok {test-number} - smallest_non_zero, !WithinULP( -smallest_non_zero, 1 ) for: 0.0f not is within 1 ULPs of -1.40129846e-45f ([-2.80259693e-45, -0.00000000e+00])
167 # #2615 - Throwing in constructor generator fails test case but does not abort
168 not ok {test-number} - unexpected exception with message: 'failure to init'; expression was: {Unknown expression after the reported line}
169 # #3001: Enum-based bitfields can be captured
170 ok {test-number} - bf.e == 1 for: 1 == 1
171 # #3001: Enum-based bitfields can be captured
172 ok {test-number} - 1 == bf.e for: 1 == 1
173 # #748 - captures with unexpected exceptions
174 not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: {Unknown expression after the reported line}
175 # #748 - captures with unexpected exceptions
176 not ok {test-number} - unexpected exception with message: 'answer := 42'; expression was: thisThrows() with 1 message: 'expected exception'
177 # #748 - captures with unexpected exceptions
178 ok {test-number} - thisThrows() with 1 message: 'answer := 42'
179 # #809
180 ok {test-number} - 42 == f for: 42 == {?}
181 # #833
182 ok {test-number} - a == t for: 3 == 3
183 # #833
184 ok {test-number} - a == t for: 3 == 3
185 # #833
186 ok {test-number} - throws_int(true)
187 # #833
188 ok {test-number} - throws_int(true), int
189 # #833
190 ok {test-number} - throws_int(false)
191 # #833
192 ok {test-number} - "aaa", Catch::Matchers::EndsWith("aaa") for: "aaa" ends with: "aaa"
193 # #833
194 ok {test-number} - templated_tests<int>(3) for: true
195 # #835 -- errno should not be touched by Catch2
196 not ok {test-number} - f() == 0 for: 1 == 0
197 # #835 -- errno should not be touched by Catch2
198 ok {test-number} - errno_after == 1 for: 1 == 1
199 # #872
200 ok {test-number} - x == 4 for: {?} == 4 with 1 message: 'dummy := 0'
201 # #961 -- Dynamically created sections should all be reported
202 ok {test-number} - with 1 message: 'Everything is OK'
203 # #961 -- Dynamically created sections should all be reported
204 ok {test-number} - with 1 message: 'Everything is OK'
205 # #961 -- Dynamically created sections should all be reported
206 ok {test-number} - with 1 message: 'Everything is OK'
207 # #961 -- Dynamically created sections should all be reported
208 ok {test-number} - with 1 message: 'Everything is OK'
209 # #961 -- Dynamically created sections should all be reported
210 ok {test-number} - with 1 message: 'Everything is OK'
211 # 'Not' checks that should fail
212 not ok {test-number} - false != false
213 # 'Not' checks that should fail
214 not ok {test-number} - true != true
215 # 'Not' checks that should fail
216 not ok {test-number} - !true for: false
217 # 'Not' checks that should fail
218 not ok {test-number} - !(true) for: !true
219 # 'Not' checks that should fail
220 not ok {test-number} - !trueValue for: false
221 # 'Not' checks that should fail
222 not ok {test-number} - !(trueValue) for: !true
223 # 'Not' checks that should fail
224 not ok {test-number} - !(1 == 1) for: false
225 # 'Not' checks that should fail
226 not ok {test-number} - !(1 == 1)
227 # 'Not' checks that should succeed
228 ok {test-number} - false == false
229 # 'Not' checks that should succeed
230 ok {test-number} - true == true
231 # 'Not' checks that should succeed
232 ok {test-number} - !false for: true
233 # 'Not' checks that should succeed
234 ok {test-number} - !(false) for: !false
235 # 'Not' checks that should succeed
236 ok {test-number} - !falseValue for: true
237 # 'Not' checks that should succeed
238 ok {test-number} - !(falseValue) for: !false
239 # 'Not' checks that should succeed
240 ok {test-number} - !(1 == 2) for: true
241 # 'Not' checks that should succeed
242 ok {test-number} - !(1 == 2)
243 # (unimplemented) static bools can be evaluated
244 ok {test-number} - is_true<true>::value == true for: true == true
245 # (unimplemented) static bools can be evaluated
246 ok {test-number} - true == is_true<true>::value for: true == true
247 # (unimplemented) static bools can be evaluated
248 ok {test-number} - is_true<false>::value == false for: false == false
249 # (unimplemented) static bools can be evaluated
250 ok {test-number} - false == is_true<false>::value for: false == false
251 # (unimplemented) static bools can be evaluated
252 ok {test-number} - !is_true<false>::value for: true
253 # (unimplemented) static bools can be evaluated
254 ok {test-number} - !!is_true<true>::value for: true
255 # (unimplemented) static bools can be evaluated
256 ok {test-number} - is_true<true>::value for: true
257 # (unimplemented) static bools can be evaluated
258 ok {test-number} - !(is_true<false>::value) for: !false
259 # 3x3x3 ints
260 ok {test-number} - x < y for: 1 < 4
261 # 3x3x3 ints
262 ok {test-number} - y < z for: 4 < 7
263 # 3x3x3 ints
264 ok {test-number} - x < z for: 1 < 7
265 # 3x3x3 ints
266 ok {test-number} - x < y for: 1 < 4
267 # 3x3x3 ints
268 ok {test-number} - y < z for: 4 < 8
269 # 3x3x3 ints
270 ok {test-number} - x < z for: 1 < 8
271 # 3x3x3 ints
272 ok {test-number} - x < y for: 1 < 4
273 # 3x3x3 ints
274 ok {test-number} - y < z for: 4 < 9
275 # 3x3x3 ints
276 ok {test-number} - x < z for: 1 < 9
277 # 3x3x3 ints
278 ok {test-number} - x < y for: 1 < 5
279 # 3x3x3 ints
280 ok {test-number} - y < z for: 5 < 7
281 # 3x3x3 ints
282 ok {test-number} - x < z for: 1 < 7
283 # 3x3x3 ints
284 ok {test-number} - x < y for: 1 < 5
285 # 3x3x3 ints
286 ok {test-number} - y < z for: 5 < 8
287 # 3x3x3 ints
288 ok {test-number} - x < z for: 1 < 8
289 # 3x3x3 ints
290 ok {test-number} - x < y for: 1 < 5
291 # 3x3x3 ints
292 ok {test-number} - y < z for: 5 < 9
293 # 3x3x3 ints
294 ok {test-number} - x < z for: 1 < 9
295 # 3x3x3 ints
296 ok {test-number} - x < y for: 1 < 6
297 # 3x3x3 ints
298 ok {test-number} - y < z for: 6 < 7
299 # 3x3x3 ints
300 ok {test-number} - x < z for: 1 < 7
301 # 3x3x3 ints
302 ok {test-number} - x < y for: 1 < 6
303 # 3x3x3 ints
304 ok {test-number} - y < z for: 6 < 8
305 # 3x3x3 ints
306 ok {test-number} - x < z for: 1 < 8
307 # 3x3x3 ints
308 ok {test-number} - x < y for: 1 < 6
309 # 3x3x3 ints
310 ok {test-number} - y < z for: 6 < 9
311 # 3x3x3 ints
312 ok {test-number} - x < z for: 1 < 9
313 # 3x3x3 ints
314 ok {test-number} - x < y for: 2 < 4
315 # 3x3x3 ints
316 ok {test-number} - y < z for: 4 < 7
317 # 3x3x3 ints
318 ok {test-number} - x < z for: 2 < 7
319 # 3x3x3 ints
320 ok {test-number} - x < y for: 2 < 4
321 # 3x3x3 ints
322 ok {test-number} - y < z for: 4 < 8
323 # 3x3x3 ints
324 ok {test-number} - x < z for: 2 < 8
325 # 3x3x3 ints
326 ok {test-number} - x < y for: 2 < 4
327 # 3x3x3 ints
328 ok {test-number} - y < z for: 4 < 9
329 # 3x3x3 ints
330 ok {test-number} - x < z for: 2 < 9
331 # 3x3x3 ints
332 ok {test-number} - x < y for: 2 < 5
333 # 3x3x3 ints
334 ok {test-number} - y < z for: 5 < 7
335 # 3x3x3 ints
336 ok {test-number} - x < z for: 2 < 7
337 # 3x3x3 ints
338 ok {test-number} - x < y for: 2 < 5
339 # 3x3x3 ints
340 ok {test-number} - y < z for: 5 < 8
341 # 3x3x3 ints
342 ok {test-number} - x < z for: 2 < 8
343 # 3x3x3 ints
344 ok {test-number} - x < y for: 2 < 5
345 # 3x3x3 ints
346 ok {test-number} - y < z for: 5 < 9
347 # 3x3x3 ints
348 ok {test-number} - x < z for: 2 < 9
349 # 3x3x3 ints
350 ok {test-number} - x < y for: 2 < 6
351 # 3x3x3 ints
352 ok {test-number} - y < z for: 6 < 7
353 # 3x3x3 ints
354 ok {test-number} - x < z for: 2 < 7
355 # 3x3x3 ints
356 ok {test-number} - x < y for: 2 < 6
357 # 3x3x3 ints
358 ok {test-number} - y < z for: 6 < 8
359 # 3x3x3 ints
360 ok {test-number} - x < z for: 2 < 8
361 # 3x3x3 ints
362 ok {test-number} - x < y for: 2 < 6
363 # 3x3x3 ints
364 ok {test-number} - y < z for: 6 < 9
365 # 3x3x3 ints
366 ok {test-number} - x < z for: 2 < 9
367 # 3x3x3 ints
368 ok {test-number} - x < y for: 3 < 4
369 # 3x3x3 ints
370 ok {test-number} - y < z for: 4 < 7
371 # 3x3x3 ints
372 ok {test-number} - x < z for: 3 < 7
373 # 3x3x3 ints
374 ok {test-number} - x < y for: 3 < 4
375 # 3x3x3 ints
376 ok {test-number} - y < z for: 4 < 8
377 # 3x3x3 ints
378 ok {test-number} - x < z for: 3 < 8
379 # 3x3x3 ints
380 ok {test-number} - x < y for: 3 < 4
381 # 3x3x3 ints
382 ok {test-number} - y < z for: 4 < 9
383 # 3x3x3 ints
384 ok {test-number} - x < z for: 3 < 9
385 # 3x3x3 ints
386 ok {test-number} - x < y for: 3 < 5
387 # 3x3x3 ints
388 ok {test-number} - y < z for: 5 < 7
389 # 3x3x3 ints
390 ok {test-number} - x < z for: 3 < 7
391 # 3x3x3 ints
392 ok {test-number} - x < y for: 3 < 5
393 # 3x3x3 ints
394 ok {test-number} - y < z for: 5 < 8
395 # 3x3x3 ints
396 ok {test-number} - x < z for: 3 < 8
397 # 3x3x3 ints
398 ok {test-number} - x < y for: 3 < 5
399 # 3x3x3 ints
400 ok {test-number} - y < z for: 5 < 9
401 # 3x3x3 ints
402 ok {test-number} - x < z for: 3 < 9
403 # 3x3x3 ints
404 ok {test-number} - x < y for: 3 < 6
405 # 3x3x3 ints
406 ok {test-number} - y < z for: 6 < 7
407 # 3x3x3 ints
408 ok {test-number} - x < z for: 3 < 7
409 # 3x3x3 ints
410 ok {test-number} - x < y for: 3 < 6
411 # 3x3x3 ints
412 ok {test-number} - y < z for: 6 < 8
413 # 3x3x3 ints
414 ok {test-number} - x < z for: 3 < 8
415 # 3x3x3 ints
416 ok {test-number} - x < y for: 3 < 6
417 # 3x3x3 ints
418 ok {test-number} - y < z for: 6 < 9
419 # 3x3x3 ints
420 ok {test-number} - x < z for: 3 < 9
421 # A METHOD_AS_TEST_CASE based test run that fails
422 not ok {test-number} - s == "world" for: "hello" == "world"
423 # A METHOD_AS_TEST_CASE based test run that succeeds
424 ok {test-number} - s == "hello" for: "hello" == "hello"
425 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo<float>
426 not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
427 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo<int>
428 not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
429 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector<float>
430 not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
431 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector<int>
432 not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
433 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo<float>
434 ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
435 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo<int>
436 ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
437 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector<float>
438 ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
439 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector<int>
440 ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
441 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - Template_Foo_2<float, 6>
442 not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 6 < 2
443 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - Template_Foo_2<int, 2>
444 not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 2 < 2
445 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array<float, 6>
446 not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 6 < 2
447 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array<int, 2>
448 not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 2 < 2
449 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - Template_Foo_2<float,6>
450 ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 6 >= 2
451 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - Template_Foo_2<int,2>
452 ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 2 >= 2
453 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::array<float,6>
454 ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 6 >= 2
455 # A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::array<int,2>
456 ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 2 >= 2
457 # A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
458 not ok {test-number} - Template_Fixture<TestType>::m_a == 2 for: 1.0 == 2
459 # A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
460 not ok {test-number} - Template_Fixture<TestType>::m_a == 2 for: 1.0f == 2
461 # A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
462 not ok {test-number} - Template_Fixture<TestType>::m_a == 2 for: 1 == 2
463 # A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double
464 ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1.0 == 1
465 # A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float
466 ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1.0f == 1
467 # A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int
468 ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1 == 1
469 # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
470 not ok {test-number} - Nttp_Fixture<V>::value == 0 for: 1 == 0
471 # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
472 not ok {test-number} - Nttp_Fixture<V>::value == 0 for: 3 == 0
473 # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
474 not ok {test-number} - Nttp_Fixture<V>::value == 0 for: 6 == 0
475 # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1
476 ok {test-number} - Nttp_Fixture<V>::value > 0 for: 1 > 0
477 # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3
478 ok {test-number} - Nttp_Fixture<V>::value > 0 for: 3 > 0
479 # A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6
480 ok {test-number} - Nttp_Fixture<V>::value > 0 for: 6 > 0
481 # A TEST_CASE_METHOD based test run that fails
482 not ok {test-number} - m_a == 2 for: 1 == 2
483 # A TEST_CASE_METHOD based test run that succeeds
484 ok {test-number} - m_a == 1 for: 1 == 1
485 # A TEST_CASE_PERSISTENT_FIXTURE based test run that fails
486 ok {test-number} - m_a++ == 0 for: 0 == 0
487 # A TEST_CASE_PERSISTENT_FIXTURE based test run that fails
488 not ok {test-number} - m_a == 0 for: 1 == 0
489 # A TEST_CASE_PERSISTENT_FIXTURE based test run that succeeds
490 ok {test-number} - m_a++ == 0 for: 0 == 0
491 # A TEST_CASE_PERSISTENT_FIXTURE based test run that succeeds
492 ok {test-number} - m_a == 1 for: 1 == 1
493 # A Template product test case - Foo<float>
494 ok {test-number} - x.size() == 0 for: 0 == 0
495 # A Template product test case - Foo<int>
496 ok {test-number} - x.size() == 0 for: 0 == 0
497 # A Template product test case - std::vector<float>
498 ok {test-number} - x.size() == 0 for: 0 == 0
499 # A Template product test case - std::vector<int>
500 ok {test-number} - x.size() == 0 for: 0 == 0
501 # A Template product test case with array signature - Bar<float, 42>
502 ok {test-number} - x.size() > 0 for: 42 > 0
503 # A Template product test case with array signature - Bar<int, 9>
504 ok {test-number} - x.size() > 0 for: 9 > 0
505 # A Template product test case with array signature - std::array<float, 42>
506 ok {test-number} - x.size() > 0 for: 42 > 0
507 # A Template product test case with array signature - std::array<int, 9>
508 ok {test-number} - x.size() > 0 for: 9 > 0
509 # A comparison that uses literals instead of the normal constructor
510 ok {test-number} - d == 1.23_a for: 1.22999999999999998 == Approx( 1.22999999999999998 )
511 # A comparison that uses literals instead of the normal constructor
512 ok {test-number} - d != 1.22_a for: 1.22999999999999998 != Approx( 1.21999999999999997 )
513 # A comparison that uses literals instead of the normal constructor
514 ok {test-number} - -d == -1.23_a for: -1.22999999999999998 == Approx( -1.22999999999999998 )
515 # A comparison that uses literals instead of the normal constructor
516 ok {test-number} - d == 1.2_a .epsilon(.1) for: 1.22999999999999998 == Approx( 1.19999999999999996 )
517 # A comparison that uses literals instead of the normal constructor
518 ok {test-number} - d != 1.2_a .epsilon(.001) for: 1.22999999999999998 != Approx( 1.19999999999999996 )
519 # A comparison that uses literals instead of the normal constructor
520 ok {test-number} - d == 1_a .epsilon(.3) for: 1.22999999999999998 == Approx( 1.0 )
521 # A couple of nested sections followed by a failure
522 ok {test-number} - with 1 message: 'that's not flying - that's failing in style'
523 # A couple of nested sections followed by a failure
524 not ok {test-number} - explicitly with 1 message: 'to infinity and beyond'
525 # A failing expression with a non streamable type is still captured
526 not ok {test-number} - &o1 == &o2 for: 0x<hex digits> == 0x<hex digits>
527 # A failing expression with a non streamable type is still captured
528 not ok {test-number} - o1 == o2 for: {?} == {?}
529 # Absolute margin
530 ok {test-number} - 104.0 != Approx(100.0) for: 104.0 != Approx( 100.0 )
531 # Absolute margin
532 ok {test-number} - 104.0 == Approx(100.0).margin(5) for: 104.0 == Approx( 100.0 )
533 # Absolute margin
534 ok {test-number} - 104.0 == Approx(100.0).margin(4) for: 104.0 == Approx( 100.0 )
535 # Absolute margin
536 ok {test-number} - 104.0 != Approx(100.0).margin(3) for: 104.0 != Approx( 100.0 )
537 # Absolute margin
538 ok {test-number} - 100.3 != Approx(100.0) for: 100.29999999999999716 != Approx( 100.0 )
539 # Absolute margin
540 ok {test-number} - 100.3 == Approx(100.0).margin(0.5) for: 100.29999999999999716 == Approx( 100.0 )
541 # An expression with side-effects should only be evaluated once
542 ok {test-number} - i++ == 7 for: 7 == 7
543 # An expression with side-effects should only be evaluated once
544 ok {test-number} - i++ == 8 for: 8 == 8
545 # An unchecked exception reports the line of the last assertion
546 ok {test-number} - 1 == 1
547 # An unchecked exception reports the line of the last assertion
548 not ok {test-number} - unexpected exception with message: 'unexpected exception'; expression was: {Unknown expression after the reported line}
549 # Anonymous test case 1
550 ok {test-number} - with 1 message: 'anonymous test case'
551 # Approx setters validate their arguments
552 ok {test-number} - Approx(0).margin(0)
553 # Approx setters validate their arguments
554 ok {test-number} - Approx(0).margin(1234656)
555 # Approx setters validate their arguments
556 ok {test-number} - Approx(0).margin(-2), std::domain_error
557 # Approx setters validate their arguments
558 ok {test-number} - Approx(0).epsilon(0)
559 # Approx setters validate their arguments
560 ok {test-number} - Approx(0).epsilon(1)
561 # Approx setters validate their arguments
562 ok {test-number} - Approx(0).epsilon(-0.001), std::domain_error
563 # Approx setters validate their arguments
564 ok {test-number} - Approx(0).epsilon(1.0001), std::domain_error
565 # Approx with exactly-representable margin
566 ok {test-number} - 0.25f == Approx(0.0f).margin(0.25f) for: 0.25f == Approx( 0.0 )
567 # Approx with exactly-representable margin
568 ok {test-number} - 0.0f == Approx(0.25f).margin(0.25f) for: 0.0f == Approx( 0.25 )
569 # Approx with exactly-representable margin
570 ok {test-number} - 0.5f == Approx(0.25f).margin(0.25f) for: 0.5f == Approx( 0.25 )
571 # Approx with exactly-representable margin
572 ok {test-number} - 245.0f == Approx(245.25f).margin(0.25f) for: 245.0f == Approx( 245.25 )
573 # Approx with exactly-representable margin
574 ok {test-number} - 245.5f == Approx(245.25f).margin(0.25f) for: 245.5f == Approx( 245.25 )
575 # Approximate PI
576 ok {test-number} - divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) for: 3.14285714285714279 == Approx( 3.14100000000000001 )
577 # Approximate PI
578 ok {test-number} - divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) for: 3.14285714285714279 != Approx( 3.14100000000000001 )
579 # Approximate comparisons with different epsilons
580 ok {test-number} - d != Approx( 1.231 ) for: 1.22999999999999998 != Approx( 1.23100000000000009 )
581 # Approximate comparisons with different epsilons
582 ok {test-number} - d == Approx( 1.231 ).epsilon( 0.1 ) for: 1.22999999999999998 == Approx( 1.23100000000000009 )
583 # Approximate comparisons with floats
584 ok {test-number} - 1.23f == Approx( 1.23f ) for: 1.230000019f == Approx( 1.23000001907348633 )
585 # Approximate comparisons with floats
586 ok {test-number} - 0.0f == Approx( 0.0f ) for: 0.0f == Approx( 0.0 )
587 # Approximate comparisons with ints
588 ok {test-number} - 1 == Approx( 1 ) for: 1 == Approx( 1.0 )
589 # Approximate comparisons with ints
590 ok {test-number} - 0 == Approx( 0 ) for: 0 == Approx( 0.0 )
591 # Approximate comparisons with mixed numeric types
592 ok {test-number} - 1.0f == Approx( 1 ) for: 1.0f == Approx( 1.0 )
593 # Approximate comparisons with mixed numeric types
594 ok {test-number} - 0 == Approx( dZero) for: 0 == Approx( 0.0 )
595 # Approximate comparisons with mixed numeric types
596 ok {test-number} - 0 == Approx( dSmall ).margin( 0.001 ) for: 0 == Approx( 0.00001 )
597 # Approximate comparisons with mixed numeric types
598 ok {test-number} - 1.234f == Approx( dMedium ) for: 1.233999968f == Approx( 1.23399999999999999 )
599 # Approximate comparisons with mixed numeric types
600 ok {test-number} - dMedium == Approx( 1.234f ) for: 1.23399999999999999 == Approx( 1.23399996757507324 )
601 # Arbitrary predicate matcher
602 ok {test-number} - 1, Predicate<int>( alwaysTrue, "always true" ) for: 1 matches predicate: "always true"
603 # Arbitrary predicate matcher
604 ok {test-number} - 1, !Predicate<int>( alwaysFalse, "always false" ) for: 1 not matches predicate: "always false"
605 # Arbitrary predicate matcher
606 ok {test-number} - "Hello olleH", Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); }, "First and last character should be equal" ) for: "Hello olleH" matches predicate: "First and last character should be equal"
607 # Arbitrary predicate matcher
608 ok {test-number} - "This wouldn't pass", !Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); } ) for: "This wouldn't pass" not matches undescribed predicate
609 # Assertion macros support bit operators and bool conversions
610 ok {test-number} - lhs | rhs for: Val: 1 | Val: 2
611 # Assertion macros support bit operators and bool conversions
612 ok {test-number} - !(lhs & rhs) for: !(Val: 1 & Val: 2)
613 # Assertion macros support bit operators and bool conversions
614 ok {test-number} - HasBitOperators{ 1 } & HasBitOperators{ 1 } for: Val: 1 & Val: 1
615 # Assertion macros support bit operators and bool conversions
616 ok {test-number} - lhs ^ rhs for: Val: 1 ^ Val: 2
617 # Assertion macros support bit operators and bool conversions
618 ok {test-number} - !(lhs ^ lhs) for: !(Val: 1 ^ Val: 1)
619 # Assertions can be nested - CHECK
620 not ok {test-number} - i > 10 for: 2 > 10
621 # Assertions can be nested - CHECK
622 not ok {test-number} - unexpected exception with message: '{ nested assertion failed }'; expression was: foo( 2 ) == 2
623 # Assertions can be nested - CHECK
624 ok {test-number} - true
625 # Assertions can be nested - REQUIRE
626 not ok {test-number} - i > 10 for: 2 > 10
627 # Assertions can be nested - REQUIRE
628 not ok {test-number} - unexpected exception with message: '{ nested assertion failed }'; expression was: foo( 2 ) == 2
629 # Assertions then sections
630 ok {test-number} - true
631 # Assertions then sections
632 ok {test-number} - true
633 # Assertions then sections
634 ok {test-number} - true
635 # Assertions then sections
636 ok {test-number} - true
637 # Assertions then sections
638 ok {test-number} - true
639 # Assertions then sections
640 ok {test-number} - true
641 # Basic use of the Contains range matcher
642 ok {test-number} - a, Contains(1) for: { 1, 2, 3 } contains element 1
643 # Basic use of the Contains range matcher
644 ok {test-number} - b, Contains(1) for: { 0, 1, 2 } contains element 1
645 # Basic use of the Contains range matcher
646 ok {test-number} - c, !Contains(1) for: { 4, 5, 6 } not contains element 1
647 # Basic use of the Contains range matcher
648 ok {test-number} - a, Contains(0, close_enough) for: { 1, 2, 3 } contains element 0
649 # Basic use of the Contains range matcher
650 ok {test-number} - b, Contains(0, close_enough) for: { 0, 1, 2 } contains element 0
651 # Basic use of the Contains range matcher
652 ok {test-number} - c, !Contains(0, close_enough) for: { 4, 5, 6 } not contains element 0
653 # Basic use of the Contains range matcher
654 ok {test-number} - a, Contains(4, [](auto&& lhs, size_t sz) { return lhs.size() == sz; }) for: { "abc", "abcd", "abcde" } contains element 4
655 # Basic use of the Contains range matcher
656 ok {test-number} - in, Contains(1) for: { 1, 2, 3, 4, 5 } contains element 1
657 # Basic use of the Contains range matcher
658 ok {test-number} - in, !Contains(8) for: { 1, 2, 3, 4, 5 } not contains element 8
659 # Basic use of the Contains range matcher
660 ok {test-number} - in, Contains(MoveOnlyTestElement{ 2 }) for: { 1, 2, 3 } contains element 2
661 # Basic use of the Contains range matcher
662 ok {test-number} - in, !Contains(MoveOnlyTestElement{ 9 }) for: { 1, 2, 3 } not contains element 9
663 # Basic use of the Contains range matcher
664 ok {test-number} - in, Contains(Catch::Matchers::WithinAbs(0.5, 0.5)) for: { 1.0, 2.0, 3.0, 0.0 } contains element matching is within 0.5 of 0.5
665 # Basic use of the Empty range matcher
666 ok {test-number} - empty_array, IsEmpty() for: { } is empty
667 # Basic use of the Empty range matcher
668 ok {test-number} - non_empty_array, !IsEmpty() for: { 0.0 } not is empty
669 # Basic use of the Empty range matcher
670 ok {test-number} - empty_vec, IsEmpty() for: { } is empty
671 # Basic use of the Empty range matcher
672 ok {test-number} - non_empty_vec, !IsEmpty() for: { 'a', 'b', 'c' } not is empty
673 # Basic use of the Empty range matcher
674 ok {test-number} - inner_lists_are_empty, !IsEmpty() for: { { } } not is empty
675 # Basic use of the Empty range matcher
676 ok {test-number} - inner_lists_are_empty.front(), IsEmpty() for: { } is empty
677 # Basic use of the Empty range matcher
678 ok {test-number} - has_empty{}, !IsEmpty() for: {?} not is empty
679 # Basic use of the Empty range matcher
680 ok {test-number} - unrelated::ADL_empty{}, IsEmpty() for: {?} is empty
681 # CAPTURE can deal with complex expressions
682 ok {test-number} - with 7 messages: 'a := 1' and 'b := 2' and 'c := 3' and 'a + b := 3' and 'a+b := 3' and 'c > b := true' and 'a == 1 := true'
683 # CAPTURE can deal with complex expressions involving commas
684 ok {test-number} - with 7 messages: 'custom_index_op<int>{1, 2, 3}[0, 1, 2] := 0' and 'custom_index_op<int>{1, 2, 3}[(0, 1)] := 0' and 'custom_index_op<int>{1, 2, 3}[0] := 0' and '(helper_1436<int, int>{12, -12}) := { 12, -12 }' and '(helper_1436<int, int>(-12, 12)) := { -12, 12 }' and '(1, 2) := 2' and '(2, 3) := 3'
685 # CAPTURE parses string and character constants
686 ok {test-number} - with 11 messages: '("comma, in string", "escaped, \", ") := "escaped, ", "' and '"single quote in string,'," := "single quote in string,',"' and '"some escapes, \\,\\\\" := "some escapes, \,\\"' and '"some, ), unmatched, } prenheses {[<" := "some, ), unmatched, } prenheses {[<"' and ''"' := '"'' and ''\'' := '''' and '',' := ','' and ''}' := '}'' and '')' := ')'' and ''(' := '('' and ''{' := '{''
687 # Capture and info messages
688 ok {test-number} - true with 1 message: 'i := 2'
689 # Capture and info messages
690 ok {test-number} - true with 1 message: '3'
691 # Captures do not leave block with an exception
692 not ok {test-number} - false with 1 message: 'a := 1'
693 # Captures outlive section end
694 ok {test-number} - true with 1 message: 'a := 1'
695 # Captures outlive section end
696 not ok {test-number} - false with 1 message: 'a := 1'
697 # CaseInsensitiveEqualsTo is case insensitive
698 ok {test-number} - eq( "", "" ) for: true
699 # CaseInsensitiveEqualsTo is case insensitive
700 ok {test-number} - !(eq( "", "a" )) for: !false
701 # CaseInsensitiveEqualsTo is case insensitive
702 ok {test-number} - eq( "a", "a" ) for: true
703 # CaseInsensitiveEqualsTo is case insensitive
704 ok {test-number} - eq( "a", "A" ) for: true
705 # CaseInsensitiveEqualsTo is case insensitive
706 ok {test-number} - eq( "A", "a" ) for: true
707 # CaseInsensitiveEqualsTo is case insensitive
708 ok {test-number} - eq( "A", "A" ) for: true
709 # CaseInsensitiveEqualsTo is case insensitive
710 ok {test-number} - !(eq( "a", "b" )) for: !false
711 # CaseInsensitiveEqualsTo is case insensitive
712 ok {test-number} - !(eq( "a", "B" )) for: !false
713 # CaseInsensitiveLess is case insensitive
714 ok {test-number} - lt( "", "a" ) for: true
715 # CaseInsensitiveLess is case insensitive
716 ok {test-number} - !(lt( "a", "a" )) for: !false
717 # CaseInsensitiveLess is case insensitive
718 ok {test-number} - !(lt( "", "" )) for: !false
719 # CaseInsensitiveLess is case insensitive
720 ok {test-number} - lt( "a", "b" ) for: true
721 # CaseInsensitiveLess is case insensitive
722 ok {test-number} - lt( "a", "B" ) for: true
723 # CaseInsensitiveLess is case insensitive
724 ok {test-number} - lt( "A", "b" ) for: true
725 # CaseInsensitiveLess is case insensitive
726 ok {test-number} - lt( "A", "B" ) for: true
727 # Character pretty printing
728 ok {test-number} - ::Catch::Detail::stringify('\t') == "'\\t'" for: "'\t'" == "'\t'"
729 # Character pretty printing
730 ok {test-number} - ::Catch::Detail::stringify('\n') == "'\\n'" for: "'\n'" == "'\n'"
731 # Character pretty printing
732 ok {test-number} - ::Catch::Detail::stringify('\r') == "'\\r'" for: "'\r'" == "'\r'"
733 # Character pretty printing
734 ok {test-number} - ::Catch::Detail::stringify('\f') == "'\\f'" for: "'\f'" == "'\f'"
735 # Character pretty printing
736 ok {test-number} - ::Catch::Detail::stringify( ' ' ) == "' '" for: "' '" == "' '"
737 # Character pretty printing
738 ok {test-number} - ::Catch::Detail::stringify( 'A' ) == "'A'" for: "'A'" == "'A'"
739 # Character pretty printing
740 ok {test-number} - ::Catch::Detail::stringify( 'z' ) == "'z'" for: "'z'" == "'z'"
741 # Character pretty printing
742 ok {test-number} - ::Catch::Detail::stringify( '\0' ) == "0" for: "0" == "0"
743 # Character pretty printing
744 ok {test-number} - ::Catch::Detail::stringify( static_cast<char>(2) ) == "2" for: "2" == "2"
745 # Character pretty printing
746 ok {test-number} - ::Catch::Detail::stringify( static_cast<char>(5) ) == "5" for: "5" == "5"
747 # Clara::Arg does not crash on incomplete input
748 ok {test-number} - name.empty() for: true
749 # Clara::Arg does not crash on incomplete input
750 ok {test-number} - result for: {?}
751 # Clara::Arg does not crash on incomplete input
752 ok {test-number} - result.type() == Catch::Clara::Detail::ResultType::Ok for: 0 == 0
753 # Clara::Arg does not crash on incomplete input
754 ok {test-number} - parsed.type() == Catch::Clara::ParseResultType::NoMatch for: 1 == 1
755 # Clara::Arg does not crash on incomplete input
756 ok {test-number} - parsed.remainingTokens().count() == 2 for: 2 == 2
757 # Clara::Arg does not crash on incomplete input
758 ok {test-number} - name.empty() for: true
759 # Clara::Arg supports single-arg parse the way Opt does
760 ok {test-number} - name.empty() for: true
761 # Clara::Arg supports single-arg parse the way Opt does
762 ok {test-number} - name == "foo" for: "foo" == "foo"
763 # Clara::Opt supports accept-many lambdas
764 ok {test-number} - !(parse_result) for: !{?}
765 # Clara::Opt supports accept-many lambdas
766 ok {test-number} - parse_result for: {?}
767 # Clara::Opt supports accept-many lambdas
768 ok {test-number} - res == std::vector<std::string>{ "aaa", "bbb" } for: { "aaa", "bbb" } == { "aaa", "bbb" }
769 # ColourGuard behaviour
770 ok {test-number} - streamWrapper.str().empty() for: true
771 # ColourGuard behaviour
772 ok {test-number} - streamWrapper.str() == "1\nUsing code: 2\n2\nUsing code: 0\n3\n" for: "1 Using code: 2 2 Using code: 0 3 " == "1 Using code: 2 2 Using code: 0 3 "
773 # ColourGuard behaviour
774 ok {test-number} - streamWrapper.str() == "Using code: 2\nA\nB\nUsing code: 0\nC\n" for: "Using code: 2 A B Using code: 0 C " == "Using code: 2 A B Using code: 0 C "
775 # Combining MatchAllOfGeneric does not nest
776 ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() && MatcherB() ) && MatcherC() ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value'
777 # Combining MatchAllOfGeneric does not nest
778 ok {test-number} - 1, ( MatcherA() && MatcherB() ) && MatcherC() for: 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T) 1 )
779 # Combining MatchAllOfGeneric does not nest
780 ok {test-number} - with 1 message: 'std::is_same< decltype( MatcherA() && ( MatcherB() && MatcherC() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value'
781 # Combining MatchAllOfGeneric does not nest
782 ok {test-number} - 1, MatcherA() && ( MatcherB() && MatcherC() ) for: 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T) 1 )
783 # Combining MatchAllOfGeneric does not nest
784 ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD>>:: value'
785 # Combining MatchAllOfGeneric does not nest
786 ok {test-number} - 1, ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) for: 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T) 1 and equals: true )
787 # Combining MatchAnyOfGeneric does not nest
788 ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() || MatcherB() ) || MatcherC() ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value'
789 # Combining MatchAnyOfGeneric does not nest
790 ok {test-number} - 1, ( MatcherA() || MatcherB() ) || MatcherC() for: 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1 )
791 # Combining MatchAnyOfGeneric does not nest
792 ok {test-number} - with 1 message: 'std::is_same< decltype( MatcherA() || ( MatcherB() || MatcherC() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value'
793 # Combining MatchAnyOfGeneric does not nest
794 ok {test-number} - 1, MatcherA() || ( MatcherB() || MatcherC() ) for: 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1 )
795 # Combining MatchAnyOfGeneric does not nest
796 ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD>>:: value'
797 # Combining MatchAnyOfGeneric does not nest
798 ok {test-number} - 1, ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) for: 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1 or equals: true )
799 # Combining MatchNotOfGeneric does not nest
800 ok {test-number} - with 1 message: 'std::is_same< decltype( !MatcherA() ), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA>>::value'
801 # Combining MatchNotOfGeneric does not nest
802 ok {test-number} - 0, !MatcherA() for: 0 not equals: (int) 1 or (string) "1"
803 # Combining MatchNotOfGeneric does not nest
804 ok {test-number} - with 1 message: 'std::is_same<decltype( !!MatcherA() ), MatcherA const&>::value'
805 # Combining MatchNotOfGeneric does not nest
806 ok {test-number} - 1, !!MatcherA() for: 1 equals: (int) 1 or (string) "1"
807 # Combining MatchNotOfGeneric does not nest
808 ok {test-number} - with 1 message: 'std::is_same< decltype( !!!MatcherA() ), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA>>::value'
809 # Combining MatchNotOfGeneric does not nest
810 ok {test-number} - 0, !!!MatcherA() for: 0 not equals: (int) 1 or (string) "1"
811 # Combining MatchNotOfGeneric does not nest
812 ok {test-number} - with 1 message: 'std::is_same<decltype( !!!!MatcherA() ), MatcherA const&>::value'
813 # Combining MatchNotOfGeneric does not nest
814 ok {test-number} - 1, !!!!MatcherA() for: 1 equals: (int) 1 or (string) "1"
815 # Combining concrete matchers does not use templated matchers
816 ok {test-number} - with 1 message: 'std::is_same<decltype( StartsWith( "foo" ) || ( StartsWith( "bar" ) && EndsWith( "bar" ) && !EndsWith( "foo" ) ) ), Catch::Matchers::Detail::MatchAnyOf<std::string>>::value'
817 # Combining only templated matchers
818 ok {test-number} - with 1 message: 'std::is_same<decltype( MatcherA() || MatcherB() ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB>>::value'
819 # Combining only templated matchers
820 ok {test-number} - 1, MatcherA() || MatcherB() for: 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 )
821 # Combining only templated matchers
822 ok {test-number} - with 1 message: 'std::is_same<decltype( MatcherA() && MatcherB() ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB>>::value'
823 # Combining only templated matchers
824 ok {test-number} - 1, MatcherA() && MatcherB() for: 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 )
825 # Combining only templated matchers
826 ok {test-number} - with 1 message: 'std::is_same< decltype( MatcherA() || !MatcherB() ), Catch::Matchers::Detail::MatchAnyOfGeneric< MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric<MatcherB>>>::value'
827 # Combining only templated matchers
828 ok {test-number} - 1, MatcherA() || !MatcherB() for: 1 ( equals: (int) 1 or (string) "1" or not equals: (long long) 1 )
829 # Combining templated and concrete matchers
830 ok {test-number} - vec, Predicate<std::vector<int>>( []( auto const& v ) { return std::all_of( v.begin(), v.end(), []( int elem ) { return elem % 2 == 1; } ); }, "All elements are odd" ) && !EqualsRange( a ) for: { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5, 3, 1 } )
831 # Combining templated and concrete matchers
832 ok {test-number} - str, StartsWith( "foo" ) && EqualsRange( arr ) && EndsWith( "bar" ) for: "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and ends with: "bar" )
833 # Combining templated and concrete matchers
834 ok {test-number} - str, StartsWith( "foo" ) && !EqualsRange( bad_arr ) && EndsWith( "bar" ) for: "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and ends with: "bar" )
835 # Combining templated and concrete matchers
836 ok {test-number} - str, EqualsRange( arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) for: "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" )
837 # Combining templated and concrete matchers
838 ok {test-number} - str, !EqualsRange( bad_arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) for: "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" )
839 # Combining templated and concrete matchers
840 ok {test-number} - str, EqualsRange( bad_arr ) || ( StartsWith( "foo" ) && EndsWith( "bar" ) ) for: "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo" and ends with: "bar" ) )
841 # Combining templated and concrete matchers
842 ok {test-number} - str, ( StartsWith( "foo" ) && EndsWith( "bar" ) ) || EqualsRange( bad_arr ) for: "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } )
843 # Combining templated matchers
844 ok {test-number} - container, EqualsRange( a ) || EqualsRange( b ) || EqualsRange( c ) for: { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6 } )
845 # Commas in various macros are allowed
846 ok {test-number} - std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}}
847 # Commas in various macros are allowed
848 ok {test-number} - std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}}
849 # Commas in various macros are allowed
850 ok {test-number} - std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3}
851 # Commas in various macros are allowed
852 ok {test-number} - std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3}
853 # Commas in various macros are allowed
854 ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
855 # Commas in various macros are allowed
856 ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
857 # Commas in various macros are allowed
858 ok {test-number} - !(std::vector<int>{1, 2} == std::vector<int>{1, 2, 3}) for: !({ 1, 2 } == { 1, 2, 3 })
859 # Commas in various macros are allowed
860 ok {test-number} - !(std::vector<int>{1, 2} == std::vector<int>{1, 2, 3}) for: !({ 1, 2 } == { 1, 2, 3 })
861 # Commas in various macros are allowed
862 ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
863 # Commas in various macros are allowed
864 ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
865 # Commas in various macros are allowed
866 ok {test-number} - true
867 # Commas in various macros are allowed
868 ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
869 # Comparing (and stringifying) volatile pointers works
870 ok {test-number} - !(ptr) for: !0
871 # Comparing (and stringifying) volatile pointers works
872 ok {test-number} - ptr == ptr for: 0 == 0
873 # Comparing (and stringifying) volatile pointers works
874 ok {test-number} - !(ptr != ptr) for: !(0 != 0)
875 # Comparing (and stringifying) volatile pointers works
876 ok {test-number} - !(ptr < ptr) for: !(0 < 0)
877 # Comparing (and stringifying) volatile pointers works
878 ok {test-number} - ptr <= ptr for: 0 <= 0
879 # Comparing (and stringifying) volatile pointers works
880 ok {test-number} - !(ptr > ptr) for: !(0 > 0)
881 # Comparing (and stringifying) volatile pointers works
882 ok {test-number} - ptr >= ptr for: 0 >= 0
883 # Comparing function pointers
884 ok {test-number} - a for: 0x<hex digits>
885 # Comparing function pointers
886 ok {test-number} - a == &foo for: 0x<hex digits> == 0x<hex digits>
887 # Comparison ops
888 ok {test-number} - SimplePcg32{} == SimplePcg32{} for: {?} == {?}
889 # Comparison ops
890 ok {test-number} - SimplePcg32{ 0 } != SimplePcg32{} for: {?} != {?}
891 # Comparison ops
892 ok {test-number} - !(SimplePcg32{ 1 } == SimplePcg32{ 2 }) for: !({?} == {?})
893 # Comparison ops
894 ok {test-number} - !(SimplePcg32{ 1 } != SimplePcg32{ 1 }) for: !({?} != {?})
895 # Comparison with explicitly convertible types
896 ok {test-number} - td == Approx(10.0) for: StrongDoubleTypedef(10) == Approx( 10.0 )
897 # Comparison with explicitly convertible types
898 ok {test-number} - Approx(10.0) == td for: Approx( 10.0 ) == StrongDoubleTypedef(10)
899 # Comparison with explicitly convertible types
900 ok {test-number} - td != Approx(11.0) for: StrongDoubleTypedef(10) != Approx( 11.0 )
901 # Comparison with explicitly convertible types
902 ok {test-number} - Approx(11.0) != td for: Approx( 11.0 ) != StrongDoubleTypedef(10)
903 # Comparison with explicitly convertible types
904 ok {test-number} - td <= Approx(10.0) for: StrongDoubleTypedef(10) <= Approx( 10.0 )
905 # Comparison with explicitly convertible types
906 ok {test-number} - td <= Approx(11.0) for: StrongDoubleTypedef(10) <= Approx( 11.0 )
907 # Comparison with explicitly convertible types
908 ok {test-number} - Approx(10.0) <= td for: Approx( 10.0 ) <= StrongDoubleTypedef(10)
909 # Comparison with explicitly convertible types
910 ok {test-number} - Approx(9.0) <= td for: Approx( 9.0 ) <= StrongDoubleTypedef(10)
911 # Comparison with explicitly convertible types
912 ok {test-number} - td >= Approx(9.0) for: StrongDoubleTypedef(10) >= Approx( 9.0 )
913 # Comparison with explicitly convertible types
914 ok {test-number} - td >= Approx(td) for: StrongDoubleTypedef(10) >= Approx( 10.0 )
915 # Comparison with explicitly convertible types
916 ok {test-number} - Approx(td) >= td for: Approx( 10.0 ) >= StrongDoubleTypedef(10)
917 # Comparison with explicitly convertible types
918 ok {test-number} - Approx(11.0) >= td for: Approx( 11.0 ) >= StrongDoubleTypedef(10)
919 # Comparisons between ints where one side is computed
920 ok {test-number} - 54 == 6*9 for: 54 == 54
921 # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
922 ok {test-number} - ( -1 > 2u ) for: true
923 # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
924 ok {test-number} - -1 > 2u for: -1 > 2
925 # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
926 ok {test-number} - ( 2u < -1 ) for: true
927 # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
928 ok {test-number} - 2u < -1 for: 2 < -1
929 # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
930 ok {test-number} - ( minInt > 2u ) for: true
931 # Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
932 ok {test-number} - minInt > 2u for: -2147483648 > 2
933 # Comparisons with int literals don't warn when mixing signed/ unsigned
934 ok {test-number} - i == 1 for: 1 == 1
935 # Comparisons with int literals don't warn when mixing signed/ unsigned
936 ok {test-number} - ui == 2 for: 2 == 2
937 # Comparisons with int literals don't warn when mixing signed/ unsigned
938 ok {test-number} - l == 3 for: 3 == 3
939 # Comparisons with int literals don't warn when mixing signed/ unsigned
940 ok {test-number} - ul == 4 for: 4 == 4
941 # Comparisons with int literals don't warn when mixing signed/ unsigned
942 ok {test-number} - c == 5 for: 5 == 5
943 # Comparisons with int literals don't warn when mixing signed/ unsigned
944 ok {test-number} - uc == 6 for: 6 == 6
945 # Comparisons with int literals don't warn when mixing signed/ unsigned
946 ok {test-number} - 1 == i for: 1 == 1
947 # Comparisons with int literals don't warn when mixing signed/ unsigned
948 ok {test-number} - 2 == ui for: 2 == 2
949 # Comparisons with int literals don't warn when mixing signed/ unsigned
950 ok {test-number} - 3 == l for: 3 == 3
951 # Comparisons with int literals don't warn when mixing signed/ unsigned
952 ok {test-number} - 4 == ul for: 4 == 4
953 # Comparisons with int literals don't warn when mixing signed/ unsigned
954 ok {test-number} - 5 == c for: 5 == 5
955 # Comparisons with int literals don't warn when mixing signed/ unsigned
956 ok {test-number} - 6 == uc for: 6 == 6
957 # Comparisons with int literals don't warn when mixing signed/ unsigned
958 ok {test-number} - (std::numeric_limits<uint32_t>::max)() > ul for: 4294967295 (0x<hex digits>) > 4
959 # Composed generic matchers shortcircuit
960 ok {test-number} - !(matcher.match( 1 )) for: !false
961 # Composed generic matchers shortcircuit
962 ok {test-number} - first.matchCalled for: true
963 # Composed generic matchers shortcircuit
964 ok {test-number} - !second.matchCalled for: true
965 # Composed generic matchers shortcircuit
966 ok {test-number} - matcher.match( 1 ) for: true
967 # Composed generic matchers shortcircuit
968 ok {test-number} - first.matchCalled for: true
969 # Composed generic matchers shortcircuit
970 ok {test-number} - !second.matchCalled for: true
971 # Composed matchers shortcircuit
972 ok {test-number} - !(matcher.match( 1 )) for: !false
973 # Composed matchers shortcircuit
974 ok {test-number} - first.matchCalled for: true
975 # Composed matchers shortcircuit
976 ok {test-number} - !second.matchCalled for: true
977 # Composed matchers shortcircuit
978 ok {test-number} - matcher.match( 1 ) for: true
979 # Composed matchers shortcircuit
980 ok {test-number} - first.matchCalled for: true
981 # Composed matchers shortcircuit
982 ok {test-number} - !second.matchCalled for: true
983 # Contains string matcher
984 not ok {test-number} - testStringForMatching(), ContainsSubstring( "not there", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "not there" (case insensitive)
985 # Contains string matcher
986 not ok {test-number} - testStringForMatching(), ContainsSubstring( "STRING" ) for: "this string contains 'abc' as a substring" contains: "STRING"
987 # Copy and then generate a range
988 ok {test-number} - elem % 2 == 1 for: 1 == 1
989 # Copy and then generate a range
990 ok {test-number} - elem % 2 == 1 for: 1 == 1
991 # Copy and then generate a range
992 ok {test-number} - elem % 2 == 1 for: 1 == 1
993 # Copy and then generate a range
994 ok {test-number} - elem % 2 == 1 for: 1 == 1
995 # Copy and then generate a range
996 ok {test-number} - elem % 2 == 1 for: 1 == 1
997 # Copy and then generate a range
998 ok {test-number} - elem % 2 == 1 for: 1 == 1
999 # Copy and then generate a range
1000 ok {test-number} - elem % 2 == 1 for: 1 == 1
1001 # Copy and then generate a range
1002 ok {test-number} - elem % 2 == 1 for: 1 == 1
1003 # Copy and then generate a range
1004 ok {test-number} - elem % 2 == 1 for: 1 == 1
1005 # Copy and then generate a range
1006 ok {test-number} - elem % 2 == 1 for: 1 == 1
1007 # Copy and then generate a range
1008 ok {test-number} - elem % 2 == 1 for: 1 == 1
1009 # Copy and then generate a range
1010 ok {test-number} - elem % 2 == 1 for: 1 == 1
1011 # Copy and then generate a range
1012 ok {test-number} - call_count == 1 for: 1 == 1
1013 # Copy and then generate a range
1014 ok {test-number} - make_data().size() == test_count for: 6 == 6
1015 # Cout stream properly declares it writes to stdout
1016 ok {test-number} - Catch::makeStream( "-" )->isConsole() for: true
1017 # Custom exceptions can be translated when testing for nothrow
1018 not ok {test-number} - unexpected exception with message: 'custom exception - not std'; expression was: throwCustom()
1019 # Custom exceptions can be translated when testing for throwing as something else
1020 not ok {test-number} - unexpected exception with message: 'custom exception - not std'; expression was: throwCustom(), std::exception
1021 # Custom std-exceptions can be custom translated
1022 not ok {test-number} - unexpected exception with message: 'custom std exception'
1023 # Default scale is invisible to comparison
1024 ok {test-number} - 101.000001 != Approx(100).epsilon(0.01) for: 101.00000099999999748 != Approx( 100.0 )
1025 # Default scale is invisible to comparison
1026 ok {test-number} - std::pow(10, -5) != Approx(std::pow(10, -7)) for: 0.00001 != Approx( 0.0000001 )
1027 # Directly creating an EnumInfo
1028 ok {test-number} - enumInfo->lookup(0) == "Value1" for: Value1 == "Value1"
1029 # Directly creating an EnumInfo
1030 ok {test-number} - enumInfo->lookup(1) == "Value2" for: Value2 == "Value2"
1031 # Directly creating an EnumInfo
1032 ok {test-number} - enumInfo->lookup(3) == "{** unexpected enum value **}" for: {** unexpected enum value **} == "{** unexpected enum value **}"
1033 # Empty generators can SKIP in constructor
1034 ok {test-number} - # SKIP 'This generator is empty'
1035 # Empty stream name opens cout stream
1036 ok {test-number} - Catch::makeStream( "" )->isConsole() for: true
1037 # EndsWith string matcher
1038 not ok {test-number} - testStringForMatching(), EndsWith( "Substring" ) for: "this string contains 'abc' as a substring" ends with: "Substring"
1039 # EndsWith string matcher
1040 not ok {test-number} - testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" ends with: "this" (case insensitive)
1041 # Enums can quickly have stringification enabled using CATCH_REGISTER_ENUM
1042 ok {test-number} - stringify( EnumClass3::Value1 ) == "Value1" for: "Value1" == "Value1"
1043 # Enums can quickly have stringification enabled using CATCH_REGISTER_ENUM
1044 ok {test-number} - stringify( EnumClass3::Value2 ) == "Value2" for: "Value2" == "Value2"
1045 # Enums can quickly have stringification enabled using CATCH_REGISTER_ENUM
1046 ok {test-number} - stringify( EnumClass3::Value3 ) == "Value3" for: "Value3" == "Value3"
1047 # Enums can quickly have stringification enabled using CATCH_REGISTER_ENUM
1048 ok {test-number} - stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}" for: "{** unexpected enum value **}" == "{** unexpected enum value **}"
1049 # Enums can quickly have stringification enabled using CATCH_REGISTER_ENUM
1050 ok {test-number} - stringify( ec3 ) == "Value2" for: "Value2" == "Value2"
1051 # Enums in namespaces can quickly have stringification enabled using CATCH_REGISTER_ENUM
1052 ok {test-number} - stringify( Bikeshed::Colours::Red ) == "Red" for: "Red" == "Red"
1053 # Enums in namespaces can quickly have stringification enabled using CATCH_REGISTER_ENUM
1054 ok {test-number} - stringify( Bikeshed::Colours::Blue ) == "Blue" for: "Blue" == "Blue"
1055 # Epsilon only applies to Approx's value
1056 ok {test-number} - 101.01 != Approx(100).epsilon(0.01) for: 101.01000000000000512 != Approx( 100.0 )
1057 # Equality checks that should fail
1058 not ok {test-number} - data.int_seven == 6 for: 7 == 6
1059 # Equality checks that should fail
1060 not ok {test-number} - data.int_seven == 8 for: 7 == 8
1061 # Equality checks that should fail
1062 not ok {test-number} - data.int_seven == 0 for: 7 == 0
1063 # Equality checks that should fail
1064 not ok {test-number} - data.float_nine_point_one == Approx( 9.11f ) for: 9.100000381f == Approx( 9.10999965667724609 )
1065 # Equality checks that should fail
1066 not ok {test-number} - data.float_nine_point_one == Approx( 9.0f ) for: 9.100000381f == Approx( 9.0 )
1067 # Equality checks that should fail
1068 not ok {test-number} - data.float_nine_point_one == Approx( 1 ) for: 9.100000381f == Approx( 1.0 )
1069 # Equality checks that should fail
1070 not ok {test-number} - data.float_nine_point_one == Approx( 0 ) for: 9.100000381f == Approx( 0.0 )
1071 # Equality checks that should fail
1072 not ok {test-number} - data.double_pi == Approx( 3.1415 ) for: 3.14159265350000005 == Approx( 3.14150000000000018 )
1073 # Equality checks that should fail
1074 not ok {test-number} - data.str_hello == "goodbye" for: "hello" == "goodbye"
1075 # Equality checks that should fail
1076 not ok {test-number} - data.str_hello == "hell" for: "hello" == "hell"
1077 # Equality checks that should fail
1078 not ok {test-number} - data.str_hello == "hello1" for: "hello" == "hello1"
1079 # Equality checks that should fail
1080 not ok {test-number} - data.str_hello.size() == 6 for: 5 == 6
1081 # Equality checks that should fail
1082 not ok {test-number} - x == Approx( 1.301 ) for: 1.30000000000000027 == Approx( 1.30099999999999993 )
1083 # Equality checks that should succeed
1084 ok {test-number} - data.int_seven == 7 for: 7 == 7
1085 # Equality checks that should succeed
1086 ok {test-number} - data.float_nine_point_one == Approx( 9.1f ) for: 9.100000381f == Approx( 9.10000038146972656 )
1087 # Equality checks that should succeed
1088 ok {test-number} - data.double_pi == Approx( 3.1415926535 ) for: 3.14159265350000005 == Approx( 3.14159265350000005 )
1089 # Equality checks that should succeed
1090 ok {test-number} - data.str_hello == "hello" for: "hello" == "hello"
1091 # Equality checks that should succeed
1092 ok {test-number} - "hello" == data.str_hello for: "hello" == "hello"
1093 # Equality checks that should succeed
1094 ok {test-number} - data.str_hello.size() == 5 for: 5 == 5
1095 # Equality checks that should succeed
1096 ok {test-number} - x == Approx( 1.3 ) for: 1.30000000000000027 == Approx( 1.30000000000000004 )
1097 # Equals
1098 ok {test-number} - testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring"
1099 # Equals
1100 ok {test-number} - testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" (case insensitive)
1101 # Equals string matcher
1102 not ok {test-number} - testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) for: "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring"
1103 # Equals string matcher
1104 not ok {test-number} - testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" equals: "something else" (case insensitive)
1105 # Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
1106 ok {test-number} - ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" for: "This exception has overridden what() method" == "This exception has overridden what() method"
1107 # Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
1108 ok {test-number} - ::Catch::Detail::stringify(OperatorException{}) == "OperatorException" for: "OperatorException" == "OperatorException"
1109 # Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
1110 ok {test-number} - ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" for: "StringMakerException" == "StringMakerException"
1111 # Exception matchers that fail
1112 not ok {test-number} - expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }
1113 # Exception matchers that fail
1114 not ok {test-number} - expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }
1115 # Exception matchers that fail
1116 not ok {test-number} - unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }
1117 # Exception matchers that fail
1118 not ok {test-number} - unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }
1119 # Exception matchers that fail
1120 not ok {test-number} - throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1
1121 # Exception matchers that fail
1122 not ok {test-number} - throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1
1123 # Exception matchers that succeed
1124 ok {test-number} - throwsSpecialException( 1 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1
1125 # Exception matchers that succeed
1126 ok {test-number} - throwsSpecialException( 2 ), SpecialException, ExceptionMatcher{ 2 } for: SpecialException::what special exception has value of 2
1127 # Exception message can be matched
1128 ok {test-number} - throwsDerivedException(), DerivedException, MessageMatches( StartsWith( "Derived" ) ) for: DerivedException::what matches "starts with: "Derived""
1129 # Exception message can be matched
1130 ok {test-number} - throwsDerivedException(), DerivedException, MessageMatches( EndsWith( "::what" ) ) for: DerivedException::what matches "ends with: "::what""
1131 # Exception message can be matched
1132 ok {test-number} - throwsDerivedException(), DerivedException, MessageMatches( !StartsWith( "::what" ) ) for: DerivedException::what matches "not starts with: "::what""
1133 # Exception message can be matched
1134 ok {test-number} - throwsSpecialException( 2 ), SpecialException, MessageMatches( StartsWith( "Special" ) ) for: SpecialException::what matches "starts with: "Special""
1135 # Exception messages can be tested for
1136 ok {test-number} - thisThrows(), "expected exception" for: "expected exception" equals: "expected exception"
1137 # Exception messages can be tested for
1138 ok {test-number} - thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) for: "expected exception" equals: "expected exception" (case insensitive)
1139 # Exception messages can be tested for
1140 ok {test-number} - thisThrows(), StartsWith( "expected" ) for: "expected exception" starts with: "expected"
1141 # Exception messages can be tested for
1142 ok {test-number} - thisThrows(), EndsWith( "exception" ) for: "expected exception" ends with: "exception"
1143 # Exception messages can be tested for
1144 ok {test-number} - thisThrows(), ContainsSubstring( "except" ) for: "expected exception" contains: "except"
1145 # Exception messages can be tested for
1146 ok {test-number} - thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) for: "expected exception" contains: "except" (case insensitive)
1147 # Exception thrown inside stringify does not fail the test
1148 ok {test-number} - tos == tos for: { stringification failed with an exception: "Invalid" } == { stringification failed with an exception: "Invalid" }
1149 # Exceptions matchers
1150 ok {test-number} - throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) for: DerivedException::what exception message matches "DerivedException::what"
1151 # Exceptions matchers
1152 ok {test-number} - throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) for: DerivedException::what not exception message matches "derivedexception::what"
1153 # Exceptions matchers
1154 ok {test-number} - throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) for: SpecialException::what not exception message matches "DerivedException::what"
1155 # Exceptions matchers
1156 ok {test-number} - throwsSpecialException( 2 ), SpecialException, Message( "SpecialException::what" ) for: SpecialException::what exception message matches "SpecialException::what"
1157 # Expected exceptions that don't throw or unexpected exceptions fail the test
1158 not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows(), std::string
1159 # Expected exceptions that don't throw or unexpected exceptions fail the test
1160 not ok {test-number} - expected exception, got none; expression was: thisDoesntThrow(), std::domain_error
1161 # Expected exceptions that don't throw or unexpected exceptions fail the test
1162 not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows()
1163 # FAIL aborts the test
1164 not ok {test-number} - explicitly with 1 message: 'This is a failure'
1165 # FAIL can be nested in assertion
1166 not ok {test-number} - explicitly with 1 message: 'Throw a Catch::TestFailureException'
1167 # FAIL can be nested in assertion
1168 not ok {test-number} - unexpected exception with message: '{ nested assertion failed }'; expression was: do_fail()
1169 # FAIL does not require an argument
1170 not ok {test-number} - explicitly
1171 # FAIL_CHECK does not abort the test
1172 not ok {test-number} - explicitly with 1 message: 'This is a failure'
1173 # FAIL_CHECK does not abort the test
1174 warning {test-number} - 'This message appears in the output'
1175 # Factorials are computed
1176 ok {test-number} - Factorial(0) == 1 for: 1 == 1
1177 # Factorials are computed
1178 ok {test-number} - Factorial(1) == 1 for: 1 == 1
1179 # Factorials are computed
1180 ok {test-number} - Factorial(2) == 2 for: 2 == 2
1181 # Factorials are computed
1182 ok {test-number} - Factorial(3) == 6 for: 6 == 6
1183 # Factorials are computed
1184 ok {test-number} - Factorial(10) == 3628800 for: 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
1185 # Filter generator throws exception for empty generator
1186 ok {test-number} - filter( []( int ) { return false; }, value( 3 ) ), Catch::GeneratorException
1187 # Floating point matchers: double
1188 ok {test-number} - 10., WithinRel( 11.1, 0.1 ) for: 10.0 and 11.09999999999999964 are within 10% of each other
1189 # Floating point matchers: double
1190 ok {test-number} - 10., !WithinRel( 11.2, 0.1 ) for: 10.0 not and 11.19999999999999929 are within 10% of each other
1191 # Floating point matchers: double
1192 ok {test-number} - 1., !WithinRel( 0., 0.99 ) for: 1.0 not and 0.0 are within 99% of each other
1193 # Floating point matchers: double
1194 ok {test-number} - -0., WithinRel( 0. ) for: -0.0 and 0.0 are within 2.22045e-12% of each other
1195 # Floating point matchers: double
1196 ok {test-number} - v1, WithinRel( v2 ) for: 0.0 and 0.0 are within 2.22045e-12% of each other
1197 # Floating point matchers: double
1198 ok {test-number} - 1., WithinAbs( 1., 0 ) for: 1.0 is within 0.0 of 1.0
1199 # Floating point matchers: double
1200 ok {test-number} - 0., WithinAbs( 1., 1 ) for: 0.0 is within 1.0 of 1.0
1201 # Floating point matchers: double
1202 ok {test-number} - 0., !WithinAbs( 1., 0.99 ) for: 0.0 not is within 0.98999999999999999 of 1.0
1203 # Floating point matchers: double
1204 ok {test-number} - 0., !WithinAbs( 1., 0.99 ) for: 0.0 not is within 0.98999999999999999 of 1.0
1205 # Floating point matchers: double
1206 ok {test-number} - 11., !WithinAbs( 10., 0.5 ) for: 11.0 not is within 0.5 of 10.0
1207 # Floating point matchers: double
1208 ok {test-number} - 10., !WithinAbs( 11., 0.5 ) for: 10.0 not is within 0.5 of 11.0
1209 # Floating point matchers: double
1210 ok {test-number} - -10., WithinAbs( -10., 0.5 ) for: -10.0 is within 0.5 of -10.0
1211 # Floating point matchers: double
1212 ok {test-number} - -10., WithinAbs( -9.6, 0.5 ) for: -10.0 is within 0.5 of -9.59999999999999964
1213 # Floating point matchers: double
1214 ok {test-number} - 1., WithinULP( 1., 0 ) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00])
1215 # Floating point matchers: double
1216 ok {test-number} - nextafter( 1., 2. ), WithinULP( 1., 1 ) for: 1.00000000000000022 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.0000000000000002e+00])
1217 # Floating point matchers: double
1218 ok {test-number} - 0., WithinULP( nextafter( 0., 1. ), 1 ) for: 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.8813129168249309e-324])
1219 # Floating point matchers: double
1220 ok {test-number} - 1., WithinULP( nextafter( 1., 0. ), 1 ) for: 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.0000000000000000e+00])
1221 # Floating point matchers: double
1222 ok {test-number} - 1., !WithinULP( nextafter( 1., 2. ), 0 ) for: 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00, 1.0000000000000002e+00])
1223 # Floating point matchers: double
1224 ok {test-number} - 1., WithinULP( 1., 0 ) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00])
1225 # Floating point matchers: double
1226 ok {test-number} - -0., WithinULP( 0., 0 ) for: -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.0000000000000000e+00])
1227 # Floating point matchers: double
1228 ok {test-number} - 1., WithinAbs( 1., 0.5 ) || WithinULP( 2., 1 ) for: 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.9999999999999998e+00, 2.0000000000000004e+00]) )
1229 # Floating point matchers: double
1230 ok {test-number} - 1., WithinAbs( 2., 0.5 ) || WithinULP( 1., 0 ) for: 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) )
1231 # Floating point matchers: double
1232 ok {test-number} - 0.0001, WithinAbs( 0., 0.001 ) || WithinRel( 0., 0.1 ) for: 0.0001 ( is within 0.001 of 0.0 or and 0.0 are within 10% of each other )
1233 # Floating point matchers: double
1234 ok {test-number} - WithinAbs( 1., 0. )
1235 # Floating point matchers: double
1236 ok {test-number} - WithinAbs( 1., -1. ), std::domain_error
1237 # Floating point matchers: double
1238 ok {test-number} - WithinULP( 1., 0 )
1239 # Floating point matchers: double
1240 ok {test-number} - WithinRel( 1., 0. )
1241 # Floating point matchers: double
1242 ok {test-number} - WithinRel( 1., -0.2 ), std::domain_error
1243 # Floating point matchers: double
1244 ok {test-number} - WithinRel( 1., 1. ), std::domain_error
1245 # Floating point matchers: double
1246 ok {test-number} - 1., !IsNaN() for: 1.0 not is NaN
1247 # Floating point matchers: float
1248 ok {test-number} - 10.f, WithinRel( 11.1f, 0.1f ) for: 10.0f and 11.10000038146972656 are within 10% of each other
1249 # Floating point matchers: float
1250 ok {test-number} - 10.f, !WithinRel( 11.2f, 0.1f ) for: 10.0f not and 11.19999980926513672 are within 10% of each other
1251 # Floating point matchers: float
1252 ok {test-number} - 1.f, !WithinRel( 0.f, 0.99f ) for: 1.0f not and 0.0 are within 99% of each other
1253 # Floating point matchers: float
1254 ok {test-number} - -0.f, WithinRel( 0.f ) for: -0.0f and 0.0 are within 0.00119209% of each other
1255 # Floating point matchers: float
1256 ok {test-number} - v1, WithinRel( v2 ) for: 0.0f and 0.0 are within 0.00119209% of each other
1257 # Floating point matchers: float
1258 ok {test-number} - 1.f, WithinAbs( 1.f, 0 ) for: 1.0f is within 0.0 of 1.0
1259 # Floating point matchers: float
1260 ok {test-number} - 0.f, WithinAbs( 1.f, 1 ) for: 0.0f is within 1.0 of 1.0
1261 # Floating point matchers: float
1262 ok {test-number} - 0.f, !WithinAbs( 1.f, 0.99f ) for: 0.0f not is within 0.99000000953674316 of 1.0
1263 # Floating point matchers: float
1264 ok {test-number} - 0.f, !WithinAbs( 1.f, 0.99f ) for: 0.0f not is within 0.99000000953674316 of 1.0
1265 # Floating point matchers: float
1266 ok {test-number} - 0.f, WithinAbs( -0.f, 0 ) for: 0.0f is within 0.0 of -0.0
1267 # Floating point matchers: float
1268 ok {test-number} - 11.f, !WithinAbs( 10.f, 0.5f ) for: 11.0f not is within 0.5 of 10.0
1269 # Floating point matchers: float
1270 ok {test-number} - 10.f, !WithinAbs( 11.f, 0.5f ) for: 10.0f not is within 0.5 of 11.0
1271 # Floating point matchers: float
1272 ok {test-number} - -10.f, WithinAbs( -10.f, 0.5f ) for: -10.0f is within 0.5 of -10.0
1273 # Floating point matchers: float
1274 ok {test-number} - -10.f, WithinAbs( -9.6f, 0.5f ) for: -10.0f is within 0.5 of -9.60000038146972656
1275 # Floating point matchers: float
1276 ok {test-number} - 1.f, WithinULP( 1.f, 0 ) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
1277 # Floating point matchers: float
1278 ok {test-number} - -1.f, WithinULP( -1.f, 0 ) for: -1.0f is within 0 ULPs of -1.00000000e+00f ([-1.00000000e+00, -1.00000000e+00])
1279 # Floating point matchers: float
1280 ok {test-number} - nextafter( 1.f, 2.f ), WithinULP( 1.f, 1 ) for: 1.000000119f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00])
1281 # Floating point matchers: float
1282 ok {test-number} - 0.f, WithinULP( nextafter( 0.f, 1.f ), 1 ) for: 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
1283 # Floating point matchers: float
1284 ok {test-number} - 1.f, WithinULP( nextafter( 1.f, 0.f ), 1 ) for: 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
1285 # Floating point matchers: float
1286 ok {test-number} - 1.f, !WithinULP( nextafter( 1.f, 2.f ), 0 ) for: 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+00])
1287 # Floating point matchers: float
1288 ok {test-number} - 1.f, WithinULP( 1.f, 0 ) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
1289 # Floating point matchers: float
1290 ok {test-number} - -0.f, WithinULP( 0.f, 0 ) for: -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
1291 # Floating point matchers: float
1292 ok {test-number} - 1.f, WithinAbs( 1.f, 0.5 ) || WithinULP( 1.f, 1 ) for: 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) )
1293 # Floating point matchers: float
1294 ok {test-number} - 1.f, WithinAbs( 2.f, 0.5 ) || WithinULP( 1.f, 0 ) for: 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) )
1295 # Floating point matchers: float
1296 ok {test-number} - 0.0001f, WithinAbs( 0.f, 0.001f ) || WithinRel( 0.f, 0.1f ) for: 0.0001f ( is within 0.00100000004749745 of 0.0 or and 0.0 are within 10% of each other )
1297 # Floating point matchers: float
1298 ok {test-number} - WithinAbs( 1.f, 0.f )
1299 # Floating point matchers: float
1300 ok {test-number} - WithinAbs( 1.f, -1.f ), std::domain_error
1301 # Floating point matchers: float
1302 ok {test-number} - WithinULP( 1.f, 0 )
1303 # Floating point matchers: float
1304 ok {test-number} - WithinULP( 1.f, static_cast<uint64_t>( -1 ) ), std::domain_error
1305 # Floating point matchers: float
1306 ok {test-number} - WithinRel( 1.f, 0.f )
1307 # Floating point matchers: float
1308 ok {test-number} - WithinRel( 1.f, -0.2f ), std::domain_error
1309 # Floating point matchers: float
1310 ok {test-number} - WithinRel( 1.f, 1.f ), std::domain_error
1311 # Floating point matchers: float
1312 ok {test-number} - 1., !IsNaN() for: 1.0 not is NaN
1313 # GENERATE can combine literals and generators
1314 ok {test-number} - i % 2 == 0 for: 0 == 0
1315 # GENERATE can combine literals and generators
1316 ok {test-number} - i % 2 == 0 for: 0 == 0
1317 # GENERATE can combine literals and generators
1318 ok {test-number} - i % 2 == 0 for: 0 == 0
1319 # GENERATE can combine literals and generators
1320 ok {test-number} - i % 2 == 0 for: 0 == 0
1321 # Generators -- adapters
1322 ok {test-number} - i % 2 == 0 for: 0 == 0
1323 # Generators -- adapters
1324 ok {test-number} - i % 2 == 0 for: 0 == 0
1325 # Generators -- adapters
1326 ok {test-number} - i % 2 == 0 for: 0 == 0
1327 # Generators -- adapters
1328 ok {test-number} - filter([] (int) {return false; }, value(1)), Catch::GeneratorException
1329 # Generators -- adapters
1330 ok {test-number} - i < 4 for: 1 < 4
1331 # Generators -- adapters
1332 ok {test-number} - i < 4 for: 2 < 4
1333 # Generators -- adapters
1334 ok {test-number} - i < 4 for: 3 < 4
1335 # Generators -- adapters
1336 ok {test-number} - i % 2 == 0 for: 0 == 0
1337 # Generators -- adapters
1338 ok {test-number} - i % 2 == 0 for: 0 == 0
1339 # Generators -- adapters
1340 ok {test-number} - i % 2 == 0 for: 0 == 0
1341 # Generators -- adapters
1342 ok {test-number} - i.size() == 1 for: 1 == 1
1343 # Generators -- adapters
1344 ok {test-number} - i.size() == 1 for: 1 == 1
1345 # Generators -- adapters
1346 ok {test-number} - i.size() == 1 for: 1 == 1
1347 # Generators -- adapters
1348 ok {test-number} - i.size() == 1 for: 1 == 1
1349 # Generators -- adapters
1350 ok {test-number} - i.size() == 1 for: 1 == 1
1351 # Generators -- adapters
1352 ok {test-number} - i.size() == 1 for: 1 == 1
1353 # Generators -- adapters
1354 ok {test-number} - j > 0 for: 1 > 0
1355 # Generators -- adapters
1356 ok {test-number} - j > 0 for: 2 > 0
1357 # Generators -- adapters
1358 ok {test-number} - j > 0 for: 3 > 0
1359 # Generators -- adapters
1360 ok {test-number} - j > 0 for: 1 > 0
1361 # Generators -- adapters
1362 ok {test-number} - j > 0 for: 2 > 0
1363 # Generators -- adapters
1364 ok {test-number} - j > 0 for: 3 > 0
1365 # Generators -- adapters
1366 ok {test-number} - chunk2.size() == 2 for: 2 == 2
1367 # Generators -- adapters
1368 ok {test-number} - chunk2.front() == chunk2.back() for: 1 == 1
1369 # Generators -- adapters
1370 ok {test-number} - chunk2.size() == 2 for: 2 == 2
1371 # Generators -- adapters
1372 ok {test-number} - chunk2.front() == chunk2.back() for: 2 == 2
1373 # Generators -- adapters
1374 ok {test-number} - chunk2.size() == 2 for: 2 == 2
1375 # Generators -- adapters
1376 ok {test-number} - chunk2.front() == chunk2.back() for: 3 == 3
1377 # Generators -- adapters
1378 ok {test-number} - chunk2.size() == 2 for: 2 == 2
1379 # Generators -- adapters
1380 ok {test-number} - chunk2.front() == chunk2.back() for: 1 == 1
1381 # Generators -- adapters
1382 ok {test-number} - chunk2.front() < 3 for: 1 < 3
1383 # Generators -- adapters
1384 ok {test-number} - chunk2.size() == 2 for: 2 == 2
1385 # Generators -- adapters
1386 ok {test-number} - chunk2.front() == chunk2.back() for: 2 == 2
1387 # Generators -- adapters
1388 ok {test-number} - chunk2.front() < 3 for: 2 < 3
1389 # Generators -- adapters
1390 ok {test-number} - chunk2.size() == 0 for: 0 == 0
1391 # Generators -- adapters
1392 ok {test-number} - chunk2.size() == 0 for: 0 == 0
1393 # Generators -- adapters
1394 ok {test-number} - chunk2.size() == 0 for: 0 == 0
1395 # Generators -- adapters
1396 ok {test-number} - chunk(2, value(1)), Catch::GeneratorException
1397 # Generators -- simple
1398 ok {test-number} - j < i for: -3 < 1
1399 # Generators -- simple
1400 ok {test-number} - j < i for: -2 < 1
1401 # Generators -- simple
1402 ok {test-number} - j < i for: -1 < 1
1403 # Generators -- simple
1404 ok {test-number} - 4u * i > str.size() for: 4 > 1
1405 # Generators -- simple
1406 ok {test-number} - 4u * i > str.size() for: 4 > 2
1407 # Generators -- simple
1408 ok {test-number} - 4u * i > str.size() for: 4 > 3
1409 # Generators -- simple
1410 ok {test-number} - j < i for: -3 < 2
1411 # Generators -- simple
1412 ok {test-number} - j < i for: -2 < 2
1413 # Generators -- simple
1414 ok {test-number} - j < i for: -1 < 2
1415 # Generators -- simple
1416 ok {test-number} - 4u * i > str.size() for: 8 > 1
1417 # Generators -- simple
1418 ok {test-number} - 4u * i > str.size() for: 8 > 2
1419 # Generators -- simple
1420 ok {test-number} - 4u * i > str.size() for: 8 > 3
1421 # Generators -- simple
1422 ok {test-number} - j < i for: -3 < 3
1423 # Generators -- simple
1424 ok {test-number} - j < i for: -2 < 3
1425 # Generators -- simple
1426 ok {test-number} - j < i for: -1 < 3
1427 # Generators -- simple
1428 ok {test-number} - 4u * i > str.size() for: 12 > 1
1429 # Generators -- simple
1430 ok {test-number} - 4u * i > str.size() for: 12 > 2
1431 # Generators -- simple
1432 ok {test-number} - 4u * i > str.size() for: 12 > 3
1433 # Generators internals
1434 ok {test-number} - gen.get() == 123 for: 123 == 123
1435 # Generators internals
1436 ok {test-number} - !(gen.next()) for: !false
1437 # Generators internals
1438 ok {test-number} - gen.get() == 1 for: 1 == 1
1439 # Generators internals
1440 ok {test-number} - gen.next() for: true
1441 # Generators internals
1442 ok {test-number} - gen.get() == 3 for: 3 == 3
1443 # Generators internals
1444 ok {test-number} - gen.next() for: true
1445 # Generators internals
1446 ok {test-number} - gen.get() == 5 for: 5 == 5
1447 # Generators internals
1448 ok {test-number} - !(gen.next()) for: !false
1449 # Generators internals
1450 ok {test-number} - gen.get() == 1 for: 1 == 1
1451 # Generators internals
1452 ok {test-number} - gen.next() for: true
1453 # Generators internals
1454 ok {test-number} - gen.get() == 5 for: 5 == 5
1455 # Generators internals
1456 ok {test-number} - gen.next() for: true
1457 # Generators internals
1458 ok {test-number} - gen.get() == 2 for: 2 == 2
1459 # Generators internals
1460 ok {test-number} - gen.next() for: true
1461 # Generators internals
1462 ok {test-number} - gen.get() == 4 for: 4 == 4
1463 # Generators internals
1464 ok {test-number} - gen.next() for: true
1465 # Generators internals
1466 ok {test-number} - gen.get() == 0 for: 0 == 0
1467 # Generators internals
1468 ok {test-number} - !(gen.next()) for: !false
1469 # Generators internals
1470 ok {test-number} - gen.get().size() == 2 for: 2 == 2
1471 # Generators internals
1472 ok {test-number} - gen.get() == "aa" for: "aa" == "aa"
1473 # Generators internals
1474 ok {test-number} - gen.next() for: true
1475 # Generators internals
1476 ok {test-number} - gen.get() == "bb" for: "bb" == "bb"
1477 # Generators internals
1478 ok {test-number} - gen.next() for: true
1479 # Generators internals
1480 ok {test-number} - gen.get() == "cc" for: "cc" == "cc"
1481 # Generators internals
1482 ok {test-number} - !(gen.next()) for: !false
1483 # Generators internals
1484 ok {test-number} - gen.get() == 1 for: 1 == 1
1485 # Generators internals
1486 ok {test-number} - gen.next() for: true
1487 # Generators internals
1488 ok {test-number} - gen.get() == 3 for: 3 == 3
1489 # Generators internals
1490 ok {test-number} - !(gen.next()) for: !false
1491 # Generators internals
1492 ok {test-number} - gen.get() == 1 for: 1 == 1
1493 # Generators internals
1494 ok {test-number} - gen.next() for: true
1495 # Generators internals
1496 ok {test-number} - gen.get() == 3 for: 3 == 3
1497 # Generators internals
1498 ok {test-number} - !(gen.next()) for: !false
1499 # Generators internals
1500 ok {test-number} - filter([](int) { return false; }, value(1)), Catch::GeneratorException
1501 # Generators internals
1502 ok {test-number} - filter([](int) { return false; }, values({ 1, 2, 3 })), Catch::GeneratorException
1503 # Generators internals
1504 ok {test-number} - gen.get() == 1 for: 1 == 1
1505 # Generators internals
1506 ok {test-number} - gen.next() for: true
1507 # Generators internals
1508 ok {test-number} - gen.get() == 3 for: 3 == 3
1509 # Generators internals
1510 ok {test-number} - !(gen.next()) for: !false
1511 # Generators internals
1512 ok {test-number} - gen.get() == 1 for: 1 == 1
1513 # Generators internals
1514 ok {test-number} - gen.next() for: true
1515 # Generators internals
1516 ok {test-number} - gen.get() == 2 for: 2 == 2
1517 # Generators internals
1518 ok {test-number} - !(gen.next()) for: !false
1519 # Generators internals
1520 ok {test-number} - gen.get() == 1 for: 1 == 1
1521 # Generators internals
1522 ok {test-number} - !(gen.next()) for: !false
1523 # Generators internals
1524 ok {test-number} - gen.get() == 2.0 for: 2.0 == 2.0
1525 # Generators internals
1526 ok {test-number} - gen.next() for: true
1527 # Generators internals
1528 ok {test-number} - gen.get() == 4.0 for: 4.0 == 4.0
1529 # Generators internals
1530 ok {test-number} - gen.next() for: true
1531 # Generators internals
1532 ok {test-number} - gen.get() == 6.0 for: 6.0 == 6.0
1533 # Generators internals
1534 ok {test-number} - !(gen.next()) for: !false
1535 # Generators internals
1536 ok {test-number} - gen.get() == 2.0 for: 2.0 == 2.0
1537 # Generators internals
1538 ok {test-number} - gen.next() for: true
1539 # Generators internals
1540 ok {test-number} - gen.get() == 4.0 for: 4.0 == 4.0
1541 # Generators internals
1542 ok {test-number} - gen.next() for: true
1543 # Generators internals
1544 ok {test-number} - gen.get() == 6.0 for: 6.0 == 6.0
1545 # Generators internals
1546 ok {test-number} - !(gen.next()) for: !false
1547 # Generators internals
1548 ok {test-number} - gen.get() == 3 for: 3 == 3
1549 # Generators internals
1550 ok {test-number} - !(gen.next()) for: !false
1551 # Generators internals
1552 ok {test-number} - gen.get() == 1 for: 1 == 1
1553 # Generators internals
1554 ok {test-number} - gen.next() for: true
1555 # Generators internals
1556 ok {test-number} - gen.get() == 2 for: 2 == 2
1557 # Generators internals
1558 ok {test-number} - gen.next() for: true
1559 # Generators internals
1560 ok {test-number} - gen.get() == 3 for: 3 == 3
1561 # Generators internals
1562 ok {test-number} - gen.next() for: true
1563 # Generators internals
1564 ok {test-number} - gen.get() == 1 for: 1 == 1
1565 # Generators internals
1566 ok {test-number} - gen.next() for: true
1567 # Generators internals
1568 ok {test-number} - gen.get() == 2 for: 2 == 2
1569 # Generators internals
1570 ok {test-number} - gen.next() for: true
1571 # Generators internals
1572 ok {test-number} - gen.get() == 3 for: 3 == 3
1573 # Generators internals
1574 ok {test-number} - !(gen.next()) for: !false
1575 # Generators internals
1576 ok {test-number} - gen.get() == -2 for: -2 == -2
1577 # Generators internals
1578 ok {test-number} - gen.next() for: true
1579 # Generators internals
1580 ok {test-number} - gen.get() == -1 for: -1 == -1
1581 # Generators internals
1582 ok {test-number} - gen.next() for: true
1583 # Generators internals
1584 ok {test-number} - gen.get() == 0 for: 0 == 0
1585 # Generators internals
1586 ok {test-number} - gen.next() for: true
1587 # Generators internals
1588 ok {test-number} - gen.get() == 1 for: 1 == 1
1589 # Generators internals
1590 ok {test-number} - !(gen.next()) for: !false
1591 # Generators internals
1592 ok {test-number} - gen.get() == 2 for: 2 == 2
1593 # Generators internals
1594 ok {test-number} - gen.next() for: true
1595 # Generators internals
1596 ok {test-number} - gen.get() == 1 for: 1 == 1
1597 # Generators internals
1598 ok {test-number} - gen.next() for: true
1599 # Generators internals
1600 ok {test-number} - gen.get() == 0 for: 0 == 0
1601 # Generators internals
1602 ok {test-number} - gen.next() for: true
1603 # Generators internals
1604 ok {test-number} - gen.get() == -1 for: -1 == -1
1605 # Generators internals
1606 ok {test-number} - !(gen.next()) for: !false
1607 # Generators internals
1608 ok {test-number} - gen.get() == -7 for: -7 == -7
1609 # Generators internals
1610 ok {test-number} - gen.next() for: true
1611 # Generators internals
1612 ok {test-number} - gen.get() == -4 for: -4 == -4
1613 # Generators internals
1614 ok {test-number} - gen.next() for: true
1615 # Generators internals
1616 ok {test-number} - gen.get() == -1 for: -1 == -1
1617 # Generators internals
1618 ok {test-number} - gen.next() for: true
1619 # Generators internals
1620 ok {test-number} - gen.get() == 2 for: 2 == 2
1621 # Generators internals
1622 ok {test-number} - !(gen.next()) for: !false
1623 # Generators internals
1624 ok {test-number} - gen.get() == -7 for: -7 == -7
1625 # Generators internals
1626 ok {test-number} - gen.next() for: true
1627 # Generators internals
1628 ok {test-number} - gen.get() == -4 for: -4 == -4
1629 # Generators internals
1630 ok {test-number} - gen.next() for: true
1631 # Generators internals
1632 ok {test-number} - gen.get() == -1 for: -1 == -1
1633 # Generators internals
1634 ok {test-number} - gen.next() for: true
1635 # Generators internals
1636 ok {test-number} - gen.get() == 2 for: 2 == 2
1637 # Generators internals
1638 ok {test-number} - !(gen.next()) for: !false
1639 # Generators internals
1640 ok {test-number} - gen.get() == -7 for: -7 == -7
1641 # Generators internals
1642 ok {test-number} - gen.next() for: true
1643 # Generators internals
1644 ok {test-number} - gen.get() == -4 for: -4 == -4
1645 # Generators internals
1646 ok {test-number} - gen.next() for: true
1647 # Generators internals
1648 ok {test-number} - gen.get() == -1 for: -1 == -1
1649 # Generators internals
1650 ok {test-number} - gen.next() for: true
1651 # Generators internals
1652 ok {test-number} - gen.get() == 2 for: 2 == 2
1653 # Generators internals
1654 ok {test-number} - gen.next() for: true
1655 # Generators internals
1656 ok {test-number} - gen.get() == 5 for: 5 == 5
1657 # Generators internals
1658 ok {test-number} - !(gen.next()) for: !false
1659 # Generators internals
1660 ok {test-number} - gen.get() == Approx(expected) for: -1.0 == Approx( -1.0 ) with 1 message: 'Current expected value is -1'
1661 # Generators internals
1662 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1'
1663 # Generators internals
1664 ok {test-number} - gen.get() == Approx(expected) for: -0.90000000000000002 == Approx( -0.90000000000000002 ) with 1 message: 'Current expected value is -0.9'
1665 # Generators internals
1666 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.9'
1667 # Generators internals
1668 ok {test-number} - gen.get() == Approx(expected) for: -0.80000000000000004 == Approx( -0.80000000000000004 ) with 1 message: 'Current expected value is -0.8'
1669 # Generators internals
1670 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.8'
1671 # Generators internals
1672 ok {test-number} - gen.get() == Approx(expected) for: -0.70000000000000007 == Approx( -0.70000000000000007 ) with 1 message: 'Current expected value is -0.7'
1673 # Generators internals
1674 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.7'
1675 # Generators internals
1676 ok {test-number} - gen.get() == Approx(expected) for: -0.60000000000000009 == Approx( -0.60000000000000009 ) with 1 message: 'Current expected value is -0.6'
1677 # Generators internals
1678 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.6'
1679 # Generators internals
1680 ok {test-number} - gen.get() == Approx(expected) for: -0.50000000000000011 == Approx( -0.50000000000000011 ) with 1 message: 'Current expected value is -0.5'
1681 # Generators internals
1682 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.5'
1683 # Generators internals
1684 ok {test-number} - gen.get() == Approx(expected) for: -0.40000000000000013 == Approx( -0.40000000000000013 ) with 1 message: 'Current expected value is -0.4'
1685 # Generators internals
1686 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.4'
1687 # Generators internals
1688 ok {test-number} - gen.get() == Approx(expected) for: -0.30000000000000016 == Approx( -0.30000000000000016 ) with 1 message: 'Current expected value is -0.3'
1689 # Generators internals
1690 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.3'
1691 # Generators internals
1692 ok {test-number} - gen.get() == Approx(expected) for: -0.20000000000000015 == Approx( -0.20000000000000015 ) with 1 message: 'Current expected value is -0.2'
1693 # Generators internals
1694 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.2'
1695 # Generators internals
1696 ok {test-number} - gen.get() == Approx(expected) for: -0.10000000000000014 == Approx( -0.10000000000000014 ) with 1 message: 'Current expected value is -0.1'
1697 # Generators internals
1698 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.1'
1699 # Generators internals
1700 ok {test-number} - gen.get() == Approx(expected) for: -0.00000000000000014 == Approx( -0.00000000000000014 ) with 1 message: 'Current expected value is -1.38778e-16'
1701 # Generators internals
1702 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1.38778e-16'
1703 # Generators internals
1704 ok {test-number} - gen.get() == Approx(expected) for: 0.09999999999999987 == Approx( 0.09999999999999987 ) with 1 message: 'Current expected value is 0.1'
1705 # Generators internals
1706 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.1'
1707 # Generators internals
1708 ok {test-number} - gen.get() == Approx(expected) for: 0.19999999999999987 == Approx( 0.19999999999999987 ) with 1 message: 'Current expected value is 0.2'
1709 # Generators internals
1710 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.2'
1711 # Generators internals
1712 ok {test-number} - gen.get() == Approx(expected) for: 0.29999999999999988 == Approx( 0.29999999999999988 ) with 1 message: 'Current expected value is 0.3'
1713 # Generators internals
1714 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.3'
1715 # Generators internals
1716 ok {test-number} - gen.get() == Approx(expected) for: 0.39999999999999991 == Approx( 0.39999999999999991 ) with 1 message: 'Current expected value is 0.4'
1717 # Generators internals
1718 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.4'
1719 # Generators internals
1720 ok {test-number} - gen.get() == Approx(expected) for: 0.49999999999999989 == Approx( 0.49999999999999989 ) with 1 message: 'Current expected value is 0.5'
1721 # Generators internals
1722 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.5'
1723 # Generators internals
1724 ok {test-number} - gen.get() == Approx(expected) for: 0.59999999999999987 == Approx( 0.59999999999999987 ) with 1 message: 'Current expected value is 0.6'
1725 # Generators internals
1726 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.6'
1727 # Generators internals
1728 ok {test-number} - gen.get() == Approx(expected) for: 0.69999999999999984 == Approx( 0.69999999999999984 ) with 1 message: 'Current expected value is 0.7'
1729 # Generators internals
1730 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.7'
1731 # Generators internals
1732 ok {test-number} - gen.get() == Approx(expected) for: 0.79999999999999982 == Approx( 0.79999999999999982 ) with 1 message: 'Current expected value is 0.8'
1733 # Generators internals
1734 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.8'
1735 # Generators internals
1736 ok {test-number} - gen.get() == Approx(expected) for: 0.8999999999999998 == Approx( 0.8999999999999998 ) with 1 message: 'Current expected value is 0.9'
1737 # Generators internals
1738 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.9'
1739 # Generators internals
1740 ok {test-number} - gen.get() == Approx( rangeEnd ) for: 0.99999999999999978 == Approx( 1.0 )
1741 # Generators internals
1742 ok {test-number} - !(gen.next()) for: !false
1743 # Generators internals
1744 ok {test-number} - gen.get() == Approx(expected) for: -1.0 == Approx( -1.0 ) with 1 message: 'Current expected value is -1'
1745 # Generators internals
1746 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1'
1747 # Generators internals
1748 ok {test-number} - gen.get() == Approx(expected) for: -0.69999999999999996 == Approx( -0.69999999999999996 ) with 1 message: 'Current expected value is -0.7'
1749 # Generators internals
1750 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.7'
1751 # Generators internals
1752 ok {test-number} - gen.get() == Approx(expected) for: -0.39999999999999997 == Approx( -0.39999999999999997 ) with 1 message: 'Current expected value is -0.4'
1753 # Generators internals
1754 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.4'
1755 # Generators internals
1756 ok {test-number} - gen.get() == Approx(expected) for: -0.09999999999999998 == Approx( -0.09999999999999998 ) with 1 message: 'Current expected value is -0.1'
1757 # Generators internals
1758 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.1'
1759 # Generators internals
1760 ok {test-number} - gen.get() == Approx(expected) for: 0.20000000000000001 == Approx( 0.20000000000000001 ) with 1 message: 'Current expected value is 0.2'
1761 # Generators internals
1762 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.2'
1763 # Generators internals
1764 ok {test-number} - gen.get() == Approx(expected) for: 0.5 == Approx( 0.5 ) with 1 message: 'Current expected value is 0.5'
1765 # Generators internals
1766 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.5'
1767 # Generators internals
1768 ok {test-number} - !(gen.next()) for: !false
1769 # Generators internals
1770 ok {test-number} - gen.get() == Approx(expected) for: -1.0 == Approx( -1.0 ) with 1 message: 'Current expected value is -1'
1771 # Generators internals
1772 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1'
1773 # Generators internals
1774 ok {test-number} - gen.get() == Approx(expected) for: -0.69999999999999996 == Approx( -0.69999999999999996 ) with 1 message: 'Current expected value is -0.7'
1775 # Generators internals
1776 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.7'
1777 # Generators internals
1778 ok {test-number} - gen.get() == Approx(expected) for: -0.39999999999999997 == Approx( -0.39999999999999997 ) with 1 message: 'Current expected value is -0.4'
1779 # Generators internals
1780 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.4'
1781 # Generators internals
1782 ok {test-number} - gen.get() == Approx(expected) for: -0.09999999999999998 == Approx( -0.09999999999999998 ) with 1 message: 'Current expected value is -0.1'
1783 # Generators internals
1784 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.1'
1785 # Generators internals
1786 ok {test-number} - gen.get() == Approx(expected) for: 0.20000000000000001 == Approx( 0.20000000000000001 ) with 1 message: 'Current expected value is 0.2'
1787 # Generators internals
1788 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.2'
1789 # Generators internals
1790 ok {test-number} - gen.get() == Approx(expected) for: 0.5 == Approx( 0.5 ) with 1 message: 'Current expected value is 0.5'
1791 # Generators internals
1792 ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.5'
1793 # Generators internals
1794 ok {test-number} - !(gen.next()) for: !false
1795 # Generators internals
1796 ok {test-number} - gen.get() == 5 for: 5 == 5
1797 # Generators internals
1798 ok {test-number} - gen.next() for: true
1799 # Generators internals
1800 ok {test-number} - gen.get() == 2 for: 2 == 2
1801 # Generators internals
1802 ok {test-number} - gen.next() for: true
1803 # Generators internals
1804 ok {test-number} - gen.get() == -1 for: -1 == -1
1805 # Generators internals
1806 ok {test-number} - gen.next() for: true
1807 # Generators internals
1808 ok {test-number} - gen.get() == -4 for: -4 == -4
1809 # Generators internals
1810 ok {test-number} - !(gen.next()) for: !false
1811 # Generators internals
1812 ok {test-number} - gen.get() == 5 for: 5 == 5
1813 # Generators internals
1814 ok {test-number} - gen.next() for: true
1815 # Generators internals
1816 ok {test-number} - gen.get() == 2 for: 2 == 2
1817 # Generators internals
1818 ok {test-number} - gen.next() for: true
1819 # Generators internals
1820 ok {test-number} - gen.get() == -1 for: -1 == -1
1821 # Generators internals
1822 ok {test-number} - gen.next() for: true
1823 # Generators internals
1824 ok {test-number} - gen.get() == -4 for: -4 == -4
1825 # Generators internals
1826 ok {test-number} - !(gen.next()) for: !false
1827 # Generators internals
1828 ok {test-number} - gen.get() == 5 for: 5 == 5
1829 # Generators internals
1830 ok {test-number} - gen.next() for: true
1831 # Generators internals
1832 ok {test-number} - gen.get() == 2 for: 2 == 2
1833 # Generators internals
1834 ok {test-number} - gen.next() for: true
1835 # Generators internals
1836 ok {test-number} - gen.get() == -1 for: -1 == -1
1837 # Generators internals
1838 ok {test-number} - gen.next() for: true
1839 # Generators internals
1840 ok {test-number} - gen.get() == -4 for: -4 == -4
1841 # Generators internals
1842 ok {test-number} - gen.next() for: true
1843 # Generators internals
1844 ok {test-number} - gen.get() == -7 for: -7 == -7
1845 # Generators internals
1846 ok {test-number} - !(gen.next()) for: !false
1847 # Greater-than inequalities with different epsilons
1848 ok {test-number} - d >= Approx( 1.22 ) for: 1.22999999999999998 >= Approx( 1.21999999999999997 )
1849 # Greater-than inequalities with different epsilons
1850 ok {test-number} - d >= Approx( 1.23 ) for: 1.22999999999999998 >= Approx( 1.22999999999999998 )
1851 # Greater-than inequalities with different epsilons
1852 ok {test-number} - !(d >= Approx( 1.24 )) for: !(1.22999999999999998 >= Approx( 1.23999999999999999 ))
1853 # Greater-than inequalities with different epsilons
1854 ok {test-number} - d >= Approx( 1.24 ).epsilon(0.1) for: 1.22999999999999998 >= Approx( 1.23999999999999999 )
1855 # Hashers with different seed produce different hash with same test case
1856 ok {test-number} - h1( dummy ) != h2( dummy ) for: 3422778688 (0x<hex digits>) != 130711275 (0x<hex digits>)
1857 # Hashers with same seed produce same hash
1858 ok {test-number} - h1( dummy ) == h2( dummy ) for: 3422778688 (0x<hex digits>) == 3422778688 (0x<hex digits>)
1859 # Hashing different test cases produces different result
1860 ok {test-number} - h( dummy1 ) != h( dummy2 ) for: 2903002874 (0x<hex digits>) != 2668622104 (0x<hex digits>)
1861 # Hashing different test cases produces different result
1862 ok {test-number} - h( dummy1 ) != h( dummy2 ) for: 2673152918 (0x<hex digits>) != 3916075712 (0x<hex digits>)
1863 # Hashing different test cases produces different result
1864 ok {test-number} - h( dummy1 ) != h( dummy2 ) for: 2074929312 (0x<hex digits>) != 3429949824 (0x<hex digits>)
1865 # Hashing test case produces same hash across multiple calls
1866 ok {test-number} - h( dummy ) == h( dummy ) for: 3422778688 (0x<hex digits>) == 3422778688 (0x<hex digits>)
1867 # INFO and UNSCOPED_INFO can stream multiple arguments
1868 not ok {test-number} - explicitly with 3 messages: 'This info has multiple parts.' and 'This unscoped info has multiple parts.' and 'Show infos!'
1869 # INFO and WARN do not abort tests
1870 warning {test-number} - 'this is a message' with 1 message: 'this is a warning'
1871 # INFO gets logged on failure
1872 not ok {test-number} - a == 1 for: 2 == 1 with 2 messages: 'this message should be logged' and 'so should this'
1873 # INFO gets logged on failure, even if captured before successful assertions
1874 ok {test-number} - a == 2 for: 2 == 2 with 1 message: 'this message may be logged later'
1875 # INFO gets logged on failure, even if captured before successful assertions
1876 not ok {test-number} - a == 1 for: 2 == 1 with 2 messages: 'this message may be logged later' and 'this message should be logged'
1877 # INFO gets logged on failure, even if captured before successful assertions
1878 not ok {test-number} - a == 0 for: 2 == 0 with 3 messages: 'this message may be logged later' and 'this message should be logged' and 'and this, but later'
1879 # INFO gets logged on failure, even if captured before successful assertions
1880 ok {test-number} - a == 2 for: 2 == 2 with 4 messages: 'this message may be logged later' and 'this message should be logged' and 'and this, but later' and 'but not this'
1881 # INFO is reset for each loop
1882 ok {test-number} - i < 10 for: 0 < 10 with 2 messages: 'current counter 0' and 'i := 0'
1883 # INFO is reset for each loop
1884 ok {test-number} - i < 10 for: 1 < 10 with 2 messages: 'current counter 1' and 'i := 1'
1885 # INFO is reset for each loop
1886 ok {test-number} - i < 10 for: 2 < 10 with 2 messages: 'current counter 2' and 'i := 2'
1887 # INFO is reset for each loop
1888 ok {test-number} - i < 10 for: 3 < 10 with 2 messages: 'current counter 3' and 'i := 3'
1889 # INFO is reset for each loop
1890 ok {test-number} - i < 10 for: 4 < 10 with 2 messages: 'current counter 4' and 'i := 4'
1891 # INFO is reset for each loop
1892 ok {test-number} - i < 10 for: 5 < 10 with 2 messages: 'current counter 5' and 'i := 5'
1893 # INFO is reset for each loop
1894 ok {test-number} - i < 10 for: 6 < 10 with 2 messages: 'current counter 6' and 'i := 6'
1895 # INFO is reset for each loop
1896 ok {test-number} - i < 10 for: 7 < 10 with 2 messages: 'current counter 7' and 'i := 7'
1897 # INFO is reset for each loop
1898 ok {test-number} - i < 10 for: 8 < 10 with 2 messages: 'current counter 8' and 'i := 8'
1899 # INFO is reset for each loop
1900 ok {test-number} - i < 10 for: 9 < 10 with 2 messages: 'current counter 9' and 'i := 9'
1901 # INFO is reset for each loop
1902 not ok {test-number} - i < 10 for: 10 < 10 with 2 messages: 'current counter 10' and 'i := 10'
1903 # Incomplete AssertionHandler
1904 not ok {test-number} - unexpected exception with message: 'Exception translation was disabled by CATCH_CONFIG_FAST_COMPILE'; expression was: Dummy
1905 # Inequality checks that should fail
1906 not ok {test-number} - data.int_seven != 7 for: 7 != 7
1907 # Inequality checks that should fail
1908 not ok {test-number} - data.float_nine_point_one != Approx( 9.1f ) for: 9.100000381f != Approx( 9.10000038146972656 )
1909 # Inequality checks that should fail
1910 not ok {test-number} - data.double_pi != Approx( 3.1415926535 ) for: 3.14159265350000005 != Approx( 3.14159265350000005 )
1911 # Inequality checks that should fail
1912 not ok {test-number} - data.str_hello != "hello" for: "hello" != "hello"
1913 # Inequality checks that should fail
1914 not ok {test-number} - data.str_hello.size() != 5 for: 5 != 5
1915 # Inequality checks that should succeed
1916 ok {test-number} - data.int_seven != 6 for: 7 != 6
1917 # Inequality checks that should succeed
1918 ok {test-number} - data.int_seven != 8 for: 7 != 8
1919 # Inequality checks that should succeed
1920 ok {test-number} - data.float_nine_point_one != Approx( 9.11f ) for: 9.100000381f != Approx( 9.10999965667724609 )
1921 # Inequality checks that should succeed
1922 ok {test-number} - data.float_nine_point_one != Approx( 9.0f ) for: 9.100000381f != Approx( 9.0 )
1923 # Inequality checks that should succeed
1924 ok {test-number} - data.float_nine_point_one != Approx( 1 ) for: 9.100000381f != Approx( 1.0 )
1925 # Inequality checks that should succeed
1926 ok {test-number} - data.float_nine_point_one != Approx( 0 ) for: 9.100000381f != Approx( 0.0 )
1927 # Inequality checks that should succeed
1928 ok {test-number} - data.double_pi != Approx( 3.1415 ) for: 3.14159265350000005 != Approx( 3.14150000000000018 )
1929 # Inequality checks that should succeed
1930 ok {test-number} - data.str_hello != "goodbye" for: "hello" != "goodbye"
1931 # Inequality checks that should succeed
1932 ok {test-number} - data.str_hello != "hell" for: "hello" != "hell"
1933 # Inequality checks that should succeed
1934 ok {test-number} - data.str_hello != "hello1" for: "hello" != "hello1"
1935 # Inequality checks that should succeed
1936 ok {test-number} - data.str_hello.size() != 6 for: 5 != 6
1937 # JsonWriter
1938 ok {test-number} - stream.str() == "" for: "" == ""
1939 # JsonWriter
1940 ok {test-number} - stream.str() == "{\n}" for: "{ }" == "{ }"
1941 # JsonWriter
1942 ok {test-number} - stream.str(), ContainsSubstring( "\"int\": 1," ) && ContainsSubstring( "\"double\": 1.5," ) && ContainsSubstring( "\"true\": true," ) && ContainsSubstring( "\"false\": false," ) && ContainsSubstring( "\"string\": \"this is a string\"," ) && ContainsSubstring( "\"array\": [\n 1,\n 2\n ]\n}" ) for: "{ "int": 1, "double": 1.5, "true": true, "false": false, "string": "this is a string", "array": [ 1, 2 ] }" ( contains: ""int": 1," and contains: ""double": 1.5," and contains: ""true": true," and contains: ""false": false," and contains: ""string": "this is a string"," and contains: ""array": [ 1, 2 ] }" )
1943 # JsonWriter
1944 ok {test-number} - stream.str(), ContainsSubstring( "\"empty_object\": {\n }," ) && ContainsSubstring( "\"fully_object\": {\n \"key\": 1\n }" ) for: "{ "empty_object": { }, "fully_object": { "key": 1 } }" ( contains: ""empty_object": { }," and contains: ""fully_object": { "key": 1 }" )
1945 # JsonWriter
1946 ok {test-number} - stream.str() == "[\n]" for: "[ ]" == "[ ]"
1947 # JsonWriter
1948 ok {test-number} - stream.str() == "[\n 1,\n 1.5,\n true,\n false,\n \"this is a string\",\n {\n \"object\": 42\n },\n [\n \"array\",\n 42.5\n ]\n]" for: "[ 1, 1.5, true, false, "this is a string", { "object": 42 }, [ "array", 42.5 ] ]" == "[ 1, 1.5, true, false, "this is a string", { "object": 42 }, [ "array", 42.5 ] ]"
1949 # JsonWriter
1950 ok {test-number} - stream.str() == "{\n}" for: "{ }" == "{ }"
1951 # JsonWriter
1952 ok {test-number} - stream.str() == "[\n]" for: "[ ]" == "[ ]"
1953 # JsonWriter
1954 ok {test-number} - stream.str() == "\"custom\"" for: ""custom"" == ""custom""
1955 # JsonWriter escapes characters in strings properly
1956 ok {test-number} - sstream.str() == "\"\\\"\"" for: ""\""" == ""\"""
1957 # JsonWriter escapes characters in strings properly
1958 ok {test-number} - sstream.str() == "\"\\\\\"" for: ""\\"" == ""\\""
1959 # JsonWriter escapes characters in strings properly
1960 ok {test-number} - sstream.str() == "\"/\"" for: ""/"" == ""/""
1961 # JsonWriter escapes characters in strings properly
1962 ok {test-number} - sstream.str() == "\"\\b\"" for: ""\b"" == ""\b""
1963 # JsonWriter escapes characters in strings properly
1964 ok {test-number} - sstream.str() == "\"\\f\"" for: ""\f"" == ""\f""
1965 # JsonWriter escapes characters in strings properly
1966 ok {test-number} - sstream.str() == "\"\\n\"" for: ""\n"" == ""\n""
1967 # JsonWriter escapes characters in strings properly
1968 ok {test-number} - sstream.str() == "\"\\r\"" for: ""\r"" == ""\r""
1969 # JsonWriter escapes characters in strings properly
1970 ok {test-number} - sstream.str() == "\"\\t\"" for: ""\t"" == ""\t""
1971 # JsonWriter escapes characters in strings properly
1972 ok {test-number} - sstream.str() == "\"\\\\/\\t\\r\\n\"" for: ""\\/\t\r\n"" == ""\\/\t\r\n""
1973 # Lambdas in assertions
1974 ok {test-number} - []() { return true; }() for: true
1975 # Less-than inequalities with different epsilons
1976 ok {test-number} - d <= Approx( 1.24 ) for: 1.22999999999999998 <= Approx( 1.23999999999999999 )
1977 # Less-than inequalities with different epsilons
1978 ok {test-number} - d <= Approx( 1.23 ) for: 1.22999999999999998 <= Approx( 1.22999999999999998 )
1979 # Less-than inequalities with different epsilons
1980 ok {test-number} - !(d <= Approx( 1.22 )) for: !(1.22999999999999998 <= Approx( 1.21999999999999997 ))
1981 # Less-than inequalities with different epsilons
1982 ok {test-number} - d <= Approx( 1.22 ).epsilon(0.1) for: 1.22999999999999998 <= Approx( 1.21999999999999997 )
1983 # ManuallyRegistered
1984 ok {test-number} - with 1 message: 'was called'
1985 # Matchers can be (AllOf) composed with the && operator
1986 ok {test-number} - testStringForMatching(), ContainsSubstring( "string" ) && ContainsSubstring( "abc" ) && ContainsSubstring( "substring" ) && ContainsSubstring( "contains" ) for: "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" )
1987 # Matchers can be (AnyOf) composed with the || operator
1988 ok {test-number} - testStringForMatching(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) for: "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" )
1989 # Matchers can be (AnyOf) composed with the || operator
1990 ok {test-number} - testStringForMatching2(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) for: "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" )
1991 # Matchers can be composed with both && and ||
1992 ok {test-number} - testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "substring" ) for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" )
1993 # Matchers can be composed with both && and || - failing
1994 not ok {test-number} - testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "random" ) for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" )
1995 # Matchers can be negated (Not) with the ! operator
1996 ok {test-number} - testStringForMatching(), !ContainsSubstring( "different" ) for: "this string contains 'abc' as a substring" not contains: "different"
1997 # Matchers can be negated (Not) with the ! operator - failing
1998 not ok {test-number} - testStringForMatching(), !ContainsSubstring( "substring" ) for: "this string contains 'abc' as a substring" not contains: "substring"
1999 # Mayfail test case with nested sections
2000 not ok {test-number} - explicitly
2001 # Mayfail test case with nested sections
2002 not ok {test-number} - explicitly
2003 # Mayfail test case with nested sections
2004 not ok {test-number} - explicitly
2005 # Mayfail test case with nested sections
2006 not ok {test-number} - explicitly
2007 # Mismatching exception messages failing the test
2008 ok {test-number} - thisThrows(), "expected exception" for: "expected exception" equals: "expected exception"
2009 # Mismatching exception messages failing the test
2010 not ok {test-number} - thisThrows(), "should fail" for: "expected exception" equals: "should fail"
2011 # Multireporter calls reporters and listeners in correct order
2012 ok {test-number} - records == expected for: { "Hello", "world", "Goodbye", "world" } == { "Hello", "world", "Goodbye", "world" }
2013 # Multireporter updates ReporterPreferences properly
2014 ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == false for: false == false
2015 # Multireporter updates ReporterPreferences properly
2016 ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
2017 # Multireporter updates ReporterPreferences properly
2018 ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
2019 # Multireporter updates ReporterPreferences properly
2020 ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
2021 # Multireporter updates ReporterPreferences properly
2022 ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
2023 # Multireporter updates ReporterPreferences properly
2024 ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
2025 # Multireporter updates ReporterPreferences properly
2026 ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
2027 # Multireporter updates ReporterPreferences properly
2028 ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
2029 # Multireporter updates ReporterPreferences properly
2030 ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == false for: false == false
2031 # Multireporter updates ReporterPreferences properly
2032 ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
2033 # Multireporter updates ReporterPreferences properly
2034 ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
2035 # Multireporter updates ReporterPreferences properly
2036 ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
2037 # Multireporter updates ReporterPreferences properly
2038 ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
2039 # Multireporter updates ReporterPreferences properly
2040 ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
2041 # Multireporter updates ReporterPreferences properly
2042 ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
2043 # Multireporter updates ReporterPreferences properly
2044 ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
2045 # Nested generators and captured variables
2046 ok {test-number} - values > -6 for: 3 > -6
2047 # Nested generators and captured variables
2048 ok {test-number} - values > -6 for: 4 > -6
2049 # Nested generators and captured variables
2050 ok {test-number} - values > -6 for: 5 > -6
2051 # Nested generators and captured variables
2052 ok {test-number} - values > -6 for: 6 > -6
2053 # Nested generators and captured variables
2054 ok {test-number} - values > -6 for: -5 > -6
2055 # Nested generators and captured variables
2056 ok {test-number} - values > -6 for: -4 > -6
2057 # Nested generators and captured variables
2058 ok {test-number} - values > -6 for: 90 > -6
2059 # Nested generators and captured variables
2060 ok {test-number} - values > -6 for: 91 > -6
2061 # Nested generators and captured variables
2062 ok {test-number} - values > -6 for: 92 > -6
2063 # Nested generators and captured variables
2064 ok {test-number} - values > -6 for: 93 > -6
2065 # Nested generators and captured variables
2066 ok {test-number} - values > -6 for: 94 > -6
2067 # Nested generators and captured variables
2068 ok {test-number} - values > -6 for: 95 > -6
2069 # Nested generators and captured variables
2070 ok {test-number} - values > -6 for: 96 > -6
2071 # Nested generators and captured variables
2072 ok {test-number} - values > -6 for: 97 > -6
2073 # Nested generators and captured variables
2074 ok {test-number} - values > -6 for: 98 > -6
2075 # Nested generators and captured variables
2076 ok {test-number} - values > -6 for: 99 > -6
2077 # Nice descriptive name
2078 warning {test-number} - 'This one ran'
2079 # Non-std exceptions can be translated
2080 not ok {test-number} - unexpected exception with message: 'custom exception'
2081 # Objects that evaluated in boolean contexts can be checked
2082 ok {test-number} - True for: {?}
2083 # Objects that evaluated in boolean contexts can be checked
2084 ok {test-number} - !False for: true
2085 # Objects that evaluated in boolean contexts can be checked
2086 ok {test-number} - !(False) for: !{?}
2087 # Optionally static assertions
2088 ok {test-number} - with 1 message: 'std::is_void<void>::value'
2089 # Optionally static assertions
2090 ok {test-number} - with 1 message: '!(std::is_void<int>::value)'
2091 # Optionally static assertions
2092 ok {test-number} - with 1 message: 'std::is_void<void>::value'
2093 # Optionally static assertions
2094 ok {test-number} - with 1 message: '!(std::is_void<int>::value)'
2095 # Ordering comparison checks that should fail
2096 not ok {test-number} - data.int_seven > 7 for: 7 > 7
2097 # Ordering comparison checks that should fail
2098 not ok {test-number} - data.int_seven < 7 for: 7 < 7
2099 # Ordering comparison checks that should fail
2100 not ok {test-number} - data.int_seven > 8 for: 7 > 8
2101 # Ordering comparison checks that should fail
2102 not ok {test-number} - data.int_seven < 6 for: 7 < 6
2103 # Ordering comparison checks that should fail
2104 not ok {test-number} - data.int_seven < 0 for: 7 < 0
2105 # Ordering comparison checks that should fail
2106 not ok {test-number} - data.int_seven < -1 for: 7 < -1
2107 # Ordering comparison checks that should fail
2108 not ok {test-number} - data.int_seven >= 8 for: 7 >= 8
2109 # Ordering comparison checks that should fail
2110 not ok {test-number} - data.int_seven <= 6 for: 7 <= 6
2111 # Ordering comparison checks that should fail
2112 not ok {test-number} - data.float_nine_point_one < 9 for: 9.100000381f < 9
2113 # Ordering comparison checks that should fail
2114 not ok {test-number} - data.float_nine_point_one > 10 for: 9.100000381f > 10
2115 # Ordering comparison checks that should fail
2116 not ok {test-number} - data.float_nine_point_one > 9.2 for: 9.100000381f > 9.19999999999999929
2117 # Ordering comparison checks that should fail
2118 not ok {test-number} - data.str_hello > "hello" for: "hello" > "hello"
2119 # Ordering comparison checks that should fail
2120 not ok {test-number} - data.str_hello < "hello" for: "hello" < "hello"
2121 # Ordering comparison checks that should fail
2122 not ok {test-number} - data.str_hello > "hellp" for: "hello" > "hellp"
2123 # Ordering comparison checks that should fail
2124 not ok {test-number} - data.str_hello > "z" for: "hello" > "z"
2125 # Ordering comparison checks that should fail
2126 not ok {test-number} - data.str_hello < "hellm" for: "hello" < "hellm"
2127 # Ordering comparison checks that should fail
2128 not ok {test-number} - data.str_hello < "a" for: "hello" < "a"
2129 # Ordering comparison checks that should fail
2130 not ok {test-number} - data.str_hello >= "z" for: "hello" >= "z"
2131 # Ordering comparison checks that should fail
2132 not ok {test-number} - data.str_hello <= "a" for: "hello" <= "a"
2133 # Ordering comparison checks that should succeed
2134 ok {test-number} - data.int_seven < 8 for: 7 < 8
2135 # Ordering comparison checks that should succeed
2136 ok {test-number} - data.int_seven > 6 for: 7 > 6
2137 # Ordering comparison checks that should succeed
2138 ok {test-number} - data.int_seven > 0 for: 7 > 0
2139 # Ordering comparison checks that should succeed
2140 ok {test-number} - data.int_seven > -1 for: 7 > -1
2141 # Ordering comparison checks that should succeed
2142 ok {test-number} - data.int_seven >= 7 for: 7 >= 7
2143 # Ordering comparison checks that should succeed
2144 ok {test-number} - data.int_seven >= 6 for: 7 >= 6
2145 # Ordering comparison checks that should succeed
2146 ok {test-number} - data.int_seven <= 7 for: 7 <= 7
2147 # Ordering comparison checks that should succeed
2148 ok {test-number} - data.int_seven <= 8 for: 7 <= 8
2149 # Ordering comparison checks that should succeed
2150 ok {test-number} - data.float_nine_point_one > 9 for: 9.100000381f > 9
2151 # Ordering comparison checks that should succeed
2152 ok {test-number} - data.float_nine_point_one < 10 for: 9.100000381f < 10
2153 # Ordering comparison checks that should succeed
2154 ok {test-number} - data.float_nine_point_one < 9.2 for: 9.100000381f < 9.19999999999999929
2155 # Ordering comparison checks that should succeed
2156 ok {test-number} - data.str_hello <= "hello" for: "hello" <= "hello"
2157 # Ordering comparison checks that should succeed
2158 ok {test-number} - data.str_hello >= "hello" for: "hello" >= "hello"
2159 # Ordering comparison checks that should succeed
2160 ok {test-number} - data.str_hello < "hellp" for: "hello" < "hellp"
2161 # Ordering comparison checks that should succeed
2162 ok {test-number} - data.str_hello < "zebra" for: "hello" < "zebra"
2163 # Ordering comparison checks that should succeed
2164 ok {test-number} - data.str_hello > "hellm" for: "hello" > "hellm"
2165 # Ordering comparison checks that should succeed
2166 ok {test-number} - data.str_hello > "a" for: "hello" > "a"
2167 # Our PCG implementation provides expected results for known seeds
2168 ok {test-number} - rng() == 0x<hex digits> for: 4242248763 (0x<hex digits>) == 4242248763 (0x<hex digits>)
2169 # Our PCG implementation provides expected results for known seeds
2170 ok {test-number} - rng() == 0x<hex digits> for: 1867888929 (0x<hex digits>) == 1867888929 (0x<hex digits>)
2171 # Our PCG implementation provides expected results for known seeds
2172 ok {test-number} - rng() == 0x<hex digits> for: 1276619030 (0x<hex digits>) == 1276619030 (0x<hex digits>)
2173 # Our PCG implementation provides expected results for known seeds
2174 ok {test-number} - rng() == 0x<hex digits> for: 1911218783 (0x<hex digits>) == 1911218783 (0x<hex digits>)
2175 # Our PCG implementation provides expected results for known seeds
2176 ok {test-number} - rng() == 0x<hex digits> for: 1827115164 (0x<hex digits>) == 1827115164 (0x<hex digits>)
2177 # Our PCG implementation provides expected results for known seeds
2178 ok {test-number} - rng() == 0x<hex digits> for: 1472234645 (0x<hex digits>) == 1472234645 (0x<hex digits>)
2179 # Our PCG implementation provides expected results for known seeds
2180 ok {test-number} - rng() == 0x<hex digits> for: 868832940 (0x<hex digits>) == 868832940 (0x<hex digits>)
2181 # Our PCG implementation provides expected results for known seeds
2182 ok {test-number} - rng() == 0x<hex digits> for: 570883446 (0x<hex digits>) == 570883446 (0x<hex digits>)
2183 # Our PCG implementation provides expected results for known seeds
2184 ok {test-number} - rng() == 0x<hex digits> for: 889299803 (0x<hex digits>) == 889299803 (0x<hex digits>)
2185 # Our PCG implementation provides expected results for known seeds
2186 ok {test-number} - rng() == 0x<hex digits> for: 4261393167 (0x<hex digits>) == 4261393167 (0x<hex digits>)
2187 # Our PCG implementation provides expected results for known seeds
2188 ok {test-number} - rng() == 0x<hex digits> for: 1472234645 (0x<hex digits>) == 1472234645 (0x<hex digits>)
2189 # Our PCG implementation provides expected results for known seeds
2190 ok {test-number} - rng() == 0x<hex digits> for: 868832940 (0x<hex digits>) == 868832940 (0x<hex digits>)
2191 # Our PCG implementation provides expected results for known seeds
2192 ok {test-number} - rng() == 0x<hex digits> for: 570883446 (0x<hex digits>) == 570883446 (0x<hex digits>)
2193 # Our PCG implementation provides expected results for known seeds
2194 ok {test-number} - rng() == 0x<hex digits> for: 889299803 (0x<hex digits>) == 889299803 (0x<hex digits>)
2195 # Our PCG implementation provides expected results for known seeds
2196 ok {test-number} - rng() == 0x<hex digits> for: 4261393167 (0x<hex digits>) == 4261393167 (0x<hex digits>)
2197 # Output from all sections is reported
2198 not ok {test-number} - explicitly with 1 message: 'Message from section one'
2199 # Output from all sections is reported
2200 not ok {test-number} - explicitly with 1 message: 'Message from section two'
2201 # Overloaded comma or address-of operators are not used
2202 ok {test-number} - ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed
2203 # Overloaded comma or address-of operators are not used
2204 ok {test-number} - &EvilMatcher(), EvilAddressOfOperatorUsed
2205 # Overloaded comma or address-of operators are not used
2206 ok {test-number} - EvilMatcher() || ( EvilMatcher() && !EvilMatcher() )
2207 # Overloaded comma or address-of operators are not used
2208 ok {test-number} - ( EvilMatcher() && EvilMatcher() ) || !EvilMatcher()
2209 # Parse uints
2210 ok {test-number} - parseUInt( "0" ) == Optional<unsigned int>{ 0 } for: {?} == {?}
2211 # Parse uints
2212 ok {test-number} - parseUInt( "100" ) == Optional<unsigned int>{ 100 } for: {?} == {?}
2213 # Parse uints
2214 ok {test-number} - parseUInt( "4294967295" ) == Optional<unsigned int>{ 4294967295 } for: {?} == {?}
2215 # Parse uints
2216 ok {test-number} - parseUInt( "0x<hex digits>", 16 ) == Optional<unsigned int>{ 255 } for: {?} == {?}
2217 # Parse uints
2218 ok {test-number} - !(parseUInt( "" )) for: !{?}
2219 # Parse uints
2220 ok {test-number} - !(parseUInt( "!!KJHF*#" )) for: !{?}
2221 # Parse uints
2222 ok {test-number} - !(parseUInt( "-1" )) for: !{?}
2223 # Parse uints
2224 ok {test-number} - !(parseUInt( "4294967296" )) for: !{?}
2225 # Parse uints
2226 ok {test-number} - !(parseUInt( "42949672964294967296429496729642949672964294967296" )) for: !{?}
2227 # Parse uints
2228 ok {test-number} - !(parseUInt( "2 4" )) for: !{?}
2229 # Parse uints
2230 ok {test-number} - !(parseUInt( "0x<hex digits>", 10 )) for: !{?}
2231 # Parsed tags are matched case insensitive
2232 ok {test-number} - spec.hasFilters() for: true
2233 # Parsed tags are matched case insensitive
2234 ok {test-number} - spec.getInvalidSpecs().empty() for: true
2235 # Parsed tags are matched case insensitive
2236 ok {test-number} - spec.matches( testCase ) for: true
2237 # Parsing sharding-related cli flags
2238 ok {test-number} - cli.parse({ "test", "--shard-count=8" }) for: {?}
2239 # Parsing sharding-related cli flags
2240 ok {test-number} - config.shardCount == 8 for: 8 == 8
2241 # Parsing sharding-related cli flags
2242 ok {test-number} - !(result) for: !{?}
2243 # Parsing sharding-related cli flags
2244 ok {test-number} - result.errorMessage(), ContainsSubstring( "Could not parse '-1' as shard count" ) for: "Could not parse '-1' as shard count" contains: "Could not parse '-1' as shard count"
2245 # Parsing sharding-related cli flags
2246 ok {test-number} - !(result) for: !{?}
2247 # Parsing sharding-related cli flags
2248 ok {test-number} - result.errorMessage(), ContainsSubstring( "Shard count must be positive" ) for: "Shard count must be positive" contains: "Shard count must be positive"
2249 # Parsing sharding-related cli flags
2250 ok {test-number} - cli.parse({ "test", "--shard-index=2" }) for: {?}
2251 # Parsing sharding-related cli flags
2252 ok {test-number} - config.shardIndex == 2 for: 2 == 2
2253 # Parsing sharding-related cli flags
2254 ok {test-number} - !(result) for: !{?}
2255 # Parsing sharding-related cli flags
2256 ok {test-number} - result.errorMessage(), ContainsSubstring( "Could not parse '-12' as shard index" ) for: "Could not parse '-12' as shard index" contains: "Could not parse '-12' as shard index"
2257 # Parsing sharding-related cli flags
2258 ok {test-number} - cli.parse({ "test", "--shard-index=0" }) for: {?}
2259 # Parsing sharding-related cli flags
2260 ok {test-number} - config.shardIndex == 0 for: 0 == 0
2261 # Parsing tags with non-alphabetical characters is pass-through
2262 ok {test-number} - spec.hasFilters() for: true with 1 message: 'tagString := "[tag with spaces]"'
2263 # Parsing tags with non-alphabetical characters is pass-through
2264 ok {test-number} - spec.getInvalidSpecs().empty() for: true with 1 message: 'tagString := "[tag with spaces]"'
2265 # Parsing tags with non-alphabetical characters is pass-through
2266 ok {test-number} - spec.matches( testCase ) for: true with 1 message: 'tagString := "[tag with spaces]"'
2267 # Parsing tags with non-alphabetical characters is pass-through
2268 ok {test-number} - spec.hasFilters() for: true with 1 message: 'tagString := "[I said "good day" sir!]"'
2269 # Parsing tags with non-alphabetical characters is pass-through
2270 ok {test-number} - spec.getInvalidSpecs().empty() for: true with 1 message: 'tagString := "[I said "good day" sir!]"'
2271 # Parsing tags with non-alphabetical characters is pass-through
2272 ok {test-number} - spec.matches( testCase ) for: true with 1 message: 'tagString := "[I said "good day" sir!]"'
2273 # Parsing warnings
2274 ok {test-number} - cli.parse( { "test", "-w", "NoAssertions" } ) for: {?}
2275 # Parsing warnings
2276 ok {test-number} - config.warnings == WarnAbout::NoAssertions for: 1 == 1
2277 # Parsing warnings
2278 ok {test-number} - !(cli.parse( { "test", "-w", "NoTests" } )) for: !{?}
2279 # Parsing warnings
2280 ok {test-number} - cli.parse( { "test", "--warn", "NoAssertions", "--warn", "UnmatchedTestSpec" } ) for: {?}
2281 # Parsing warnings
2282 ok {test-number} - config.warnings == ( WarnAbout::NoAssertions | WarnAbout::UnmatchedTestSpec ) for: 3 == 3
2283 # Pointers can be compared to null
2284 ok {test-number} - p == 0 for: 0 == 0
2285 # Pointers can be compared to null
2286 ok {test-number} - p == pNULL for: 0 == 0
2287 # Pointers can be compared to null
2288 ok {test-number} - p != 0 for: 0x<hex digits> != 0
2289 # Pointers can be compared to null
2290 ok {test-number} - cp != 0 for: 0x<hex digits> != 0
2291 # Pointers can be compared to null
2292 ok {test-number} - cpc != 0 for: 0x<hex digits> != 0
2293 # Pointers can be compared to null
2294 ok {test-number} - returnsNull() == 0 for: {null string} == 0
2295 # Pointers can be compared to null
2296 ok {test-number} - returnsConstNull() == 0 for: {null string} == 0
2297 # Pointers can be compared to null
2298 ok {test-number} - 0 != p for: 0 != 0x<hex digits>
2299 # Precision of floating point stringification can be set
2300 ok {test-number} - str1.size() == 3 + 5 for: 8 == 8
2301 # Precision of floating point stringification can be set
2302 ok {test-number} - str2.size() == 3 + 10 for: 13 == 13
2303 # Precision of floating point stringification can be set
2304 ok {test-number} - str1.size() == 2 + 5 for: 7 == 7
2305 # Precision of floating point stringification can be set
2306 ok {test-number} - str2.size() == 2 + 15 for: 17 == 17
2307 # Predicate matcher can accept const char*
2308 ok {test-number} - "foo", Predicate<const char*>( []( const char* const& ) { return true; } ) for: "foo" matches undescribed predicate
2309 # Process can be configured on command line
2310 ok {test-number} - result for: {?}
2311 # Process can be configured on command line
2312 ok {test-number} - config.processName == "" for: "" == ""
2313 # Process can be configured on command line
2314 ok {test-number} - result for: {?}
2315 # Process can be configured on command line
2316 ok {test-number} - config.processName == "test" for: "test" == "test"
2317 # Process can be configured on command line
2318 ok {test-number} - config.shouldDebugBreak == false for: false == false
2319 # Process can be configured on command line
2320 ok {test-number} - config.abortAfter == -1 for: -1 == -1
2321 # Process can be configured on command line
2322 ok {test-number} - config.noThrow == false for: false == false
2323 # Process can be configured on command line
2324 ok {test-number} - config.reporterSpecifications.empty() for: true
2325 # Process can be configured on command line
2326 ok {test-number} - !(cfg.hasTestFilters()) for: !false
2327 # Process can be configured on command line
2328 ok {test-number} - cfg.getReporterSpecs().size() == 1 for: 1 == 1
2329 # Process can be configured on command line
2330 ok {test-number} - cfg.getReporterSpecs()[0] == Catch::ReporterSpec{ expectedReporter, {}, {}, {} } for: {?} == {?}
2331 # Process can be configured on command line
2332 ok {test-number} - cfg.getProcessedReporterSpecs().size() == 1 for: 1 == 1
2333 # Process can be configured on command line
2334 ok {test-number} - cfg.getProcessedReporterSpecs()[0] == Catch::ProcessedReporterSpec{ expectedReporter, std::string{}, Catch::ColourMode::PlatformDefault, {} } for: {?} == {?}
2335 # Process can be configured on command line
2336 ok {test-number} - result for: {?}
2337 # Process can be configured on command line
2338 ok {test-number} - cfg.hasTestFilters() for: true
2339 # Process can be configured on command line
2340 ok {test-number} - cfg.testSpec().matches(*fakeTestCase("notIncluded")) == false for: false == false
2341 # Process can be configured on command line
2342 ok {test-number} - cfg.testSpec().matches(*fakeTestCase("test1")) for: true
2343 # Process can be configured on command line
2344 ok {test-number} - result for: {?}
2345 # Process can be configured on command line
2346 ok {test-number} - cfg.hasTestFilters() for: true
2347 # Process can be configured on command line
2348 ok {test-number} - cfg.testSpec().matches(*fakeTestCase("test1")) == false for: false == false
2349 # Process can be configured on command line
2350 ok {test-number} - cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) for: true
2351 # Process can be configured on command line
2352 ok {test-number} - result for: {?}
2353 # Process can be configured on command line
2354 ok {test-number} - cfg.hasTestFilters() for: true
2355 # Process can be configured on command line
2356 ok {test-number} - cfg.testSpec().matches(*fakeTestCase("test1")) == false for: false == false
2357 # Process can be configured on command line
2358 ok {test-number} - cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) for: true
2359 # Process can be configured on command line
2360 ok {test-number} - result for: {?} with 1 message: 'result.errorMessage() := ""'
2361 # Process can be configured on command line
2362 ok {test-number} - config.reporterSpecifications == vec_Specs{ { "console", {}, {}, {} } } for: { {?} } == { {?} } with 1 message: 'result.errorMessage() := ""'
2363 # Process can be configured on command line
2364 ok {test-number} - result for: {?} with 1 message: 'result.errorMessage() := ""'
2365 # Process can be configured on command line
2366 ok {test-number} - config.reporterSpecifications == vec_Specs{ { "xml", {}, {}, {} } } for: { {?} } == { {?} } with 1 message: 'result.errorMessage() := ""'
2367 # Process can be configured on command line
2368 ok {test-number} - result for: {?} with 1 message: 'result.errorMessage() := ""'
2369 # Process can be configured on command line
2370 ok {test-number} - config.reporterSpecifications == vec_Specs{ { "junit", {}, {}, {} } } for: { {?} } == { {?} } with 1 message: 'result.errorMessage() := ""'
2371 # Process can be configured on command line
2372 ok {test-number} - !result for: true
2373 # Process can be configured on command line
2374 ok {test-number} - result.errorMessage(), ContainsSubstring("Unrecognized reporter") for: "Unrecognized reporter, 'unsupported'. Check available with --list-reporters" contains: "Unrecognized reporter"
2375 # Process can be configured on command line
2376 ok {test-number} - result for: {?} with 1 message: 'result.errorMessage() := ""'
2377 # Process can be configured on command line
2378 ok {test-number} - config.reporterSpecifications == vec_Specs{ { "console", "out.txt"s, {}, {} } } for: { {?} } == { {?} } with 1 message: 'result.errorMessage() := ""'
2379 # Process can be configured on command line
2380 ok {test-number} - result for: {?} with 1 message: 'result.errorMessage() := ""'
2381 # Process can be configured on command line
2382 ok {test-number} - config.reporterSpecifications == vec_Specs{ { "console", "C:\\Temp\\out.txt"s, {}, {} } } for: { {?} } == { {?} } with 1 message: 'result.errorMessage() := ""'
2383 # Process can be configured on command line
2384 ok {test-number} - cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "junit::out=output-junit.xml" }) for: {?}
2385 # Process can be configured on command line
2386 ok {test-number} - config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "junit", "output-junit.xml"s, {}, {} } } for: { {?}, {?} } == { {?}, {?} }
2387 # Process can be configured on command line
2388 ok {test-number} - cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "console" }) for: {?}
2389 # Process can be configured on command line
2390 ok {test-number} - config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "console", {}, {}, {} } } for: { {?}, {?} } == { {?}, {?} }
2391 # Process can be configured on command line
2392 ok {test-number} - !result for: true
2393 # Process can be configured on command line
2394 ok {test-number} - result.errorMessage(), ContainsSubstring("Only one reporter may have unspecified output file.") for: "Only one reporter may have unspecified output file." contains: "Only one reporter may have unspecified output file."
2395 # Process can be configured on command line
2396 ok {test-number} - cli.parse({"test", "-b"}) for: {?}
2397 # Process can be configured on command line
2398 ok {test-number} - config.shouldDebugBreak == true for: true == true
2399 # Process can be configured on command line
2400 ok {test-number} - cli.parse({"test", "--break"}) for: {?}
2401 # Process can be configured on command line
2402 ok {test-number} - config.shouldDebugBreak for: true
2403 # Process can be configured on command line
2404 ok {test-number} - cli.parse({"test", "-a"}) for: {?}
2405 # Process can be configured on command line
2406 ok {test-number} - config.abortAfter == 1 for: 1 == 1
2407 # Process can be configured on command line
2408 ok {test-number} - cli.parse({"test", "-x", "2"}) for: {?}
2409 # Process can be configured on command line
2410 ok {test-number} - config.abortAfter == 2 for: 2 == 2
2411 # Process can be configured on command line
2412 ok {test-number} - !result for: true
2413 # Process can be configured on command line
2414 ok {test-number} - result.errorMessage(), ContainsSubstring("convert") && ContainsSubstring("oops") for: "Unable to convert 'oops' to destination type" ( contains: "convert" and contains: "oops" )
2415 # Process can be configured on command line
2416 ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
2417 # Process can be configured on command line
2418 ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 0 == 0
2419 # Process can be configured on command line
2420 ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
2421 # Process can be configured on command line
2422 ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 1 == 1
2423 # Process can be configured on command line
2424 ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
2425 # Process can be configured on command line
2426 ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 2 == 2
2427 # Process can be configured on command line
2428 ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
2429 # Process can be configured on command line
2430 ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 3 == 3
2431 # Process can be configured on command line
2432 ok {test-number} - !result for: true
2433 # Process can be configured on command line
2434 ok {test-number} - result.errorMessage(), ContainsSubstring("never") && ContainsSubstring("both") for: "keypress argument must be one of: never, start, exit or both. 'sometimes' not recognised" ( contains: "never" and contains: "both" )
2435 # Process can be configured on command line
2436 ok {test-number} - cli.parse({"test", "-e"}) for: {?}
2437 # Process can be configured on command line
2438 ok {test-number} - config.noThrow for: true
2439 # Process can be configured on command line
2440 ok {test-number} - cli.parse({"test", "--nothrow"}) for: {?}
2441 # Process can be configured on command line
2442 ok {test-number} - config.noThrow for: true
2443 # Process can be configured on command line
2444 ok {test-number} - cli.parse({"test", "-o", "filename.ext"}) for: {?}
2445 # Process can be configured on command line
2446 ok {test-number} - config.defaultOutputFilename == "filename.ext" for: "filename.ext" == "filename.ext"
2447 # Process can be configured on command line
2448 ok {test-number} - cli.parse({"test", "--out", "filename.ext"}) for: {?}
2449 # Process can be configured on command line
2450 ok {test-number} - config.defaultOutputFilename == "filename.ext" for: "filename.ext" == "filename.ext"
2451 # Process can be configured on command line
2452 ok {test-number} - cli.parse({"test", "-abe"}) for: {?}
2453 # Process can be configured on command line
2454 ok {test-number} - config.abortAfter == 1 for: 1 == 1
2455 # Process can be configured on command line
2456 ok {test-number} - config.shouldDebugBreak for: true
2457 # Process can be configured on command line
2458 ok {test-number} - config.noThrow == true for: true == true
2459 # Process can be configured on command line
2460 ok {test-number} - cli.parse({"test"}) for: {?}
2461 # Process can be configured on command line
2462 ok {test-number} - config.defaultColourMode == ColourMode::PlatformDefault for: 0 == 0
2463 # Process can be configured on command line
2464 ok {test-number} - cli.parse( { "test", "--colour-mode", "default" } ) for: {?}
2465 # Process can be configured on command line
2466 ok {test-number} - config.defaultColourMode == ColourMode::PlatformDefault for: 0 == 0
2467 # Process can be configured on command line
2468 ok {test-number} - cli.parse({"test", "--colour-mode", "ansi"}) for: {?}
2469 # Process can be configured on command line
2470 ok {test-number} - config.defaultColourMode == ColourMode::ANSI for: 1 == 1
2471 # Process can be configured on command line
2472 ok {test-number} - cli.parse({"test", "--colour-mode", "none"}) for: {?}
2473 # Process can be configured on command line
2474 ok {test-number} - config.defaultColourMode == ColourMode::None for: 3 == 3
2475 # Process can be configured on command line
2476 ok {test-number} - !result for: true
2477 # Process can be configured on command line
2478 ok {test-number} - result.errorMessage(), ContainsSubstring( "colour mode must be one of" ) for: "colour mode must be one of: default, ansi, win32, or none. 'wrong' is not recognised" contains: "colour mode must be one of"
2479 # Process can be configured on command line
2480 ok {test-number} - cli.parse({ "test", "--benchmark-samples=200" }) for: {?}
2481 # Process can be configured on command line
2482 ok {test-number} - config.benchmarkSamples == 200 for: 200 == 200
2483 # Process can be configured on command line
2484 ok {test-number} - cli.parse({ "test", "--benchmark-resamples=20000" }) for: {?}
2485 # Process can be configured on command line
2486 ok {test-number} - config.benchmarkResamples == 20000 for: 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
2487 # Process can be configured on command line
2488 ok {test-number} - cli.parse({ "test", "--benchmark-confidence-interval=0.99" }) for: {?}
2489 # Process can be configured on command line
2490 ok {test-number} - config.benchmarkConfidenceInterval == Catch::Approx(0.99) for: 0.98999999999999999 == Approx( 0.98999999999999999 )
2491 # Process can be configured on command line
2492 ok {test-number} - cli.parse({ "test", "--benchmark-no-analysis" }) for: {?}
2493 # Process can be configured on command line
2494 ok {test-number} - config.benchmarkNoAnalysis for: true
2495 # Process can be configured on command line
2496 ok {test-number} - cli.parse({ "test", "--benchmark-warmup-time=10" }) for: {?}
2497 # Process can be configured on command line
2498 ok {test-number} - config.benchmarkWarmupTime == 10 for: 10 == 10
2499 # Product with differing arities - std::tuple<int, double, float>
2500 ok {test-number} - std::tuple_size<TestType>::value >= 1 for: 3 >= 1
2501 # Product with differing arities - std::tuple<int, double>
2502 ok {test-number} - std::tuple_size<TestType>::value >= 1 for: 2 >= 1
2503 # Product with differing arities - std::tuple<int>
2504 ok {test-number} - std::tuple_size<TestType>::value >= 1 for: 1 >= 1
2505 # Random seed generation accepts known methods
2506 ok {test-number} - Catch::generateRandomSeed(method)
2507 # Random seed generation accepts known methods
2508 ok {test-number} - Catch::generateRandomSeed(method)
2509 # Random seed generation accepts known methods
2510 ok {test-number} - Catch::generateRandomSeed(method)
2511 # Random seed generation reports unknown methods
2512 ok {test-number} - Catch::generateRandomSeed(static_cast<Catch::GenerateFrom>(77))
2513 # Range type with sentinel
2514 ok {test-number} - Catch::Detail::stringify(UsesSentinel{}) == "{ }" for: "{ }" == "{ }"
2515 # Reconstruction should be based on stringification: #914
2516 not ok {test-number} - truthy(false) for: Hey, its truthy!
2517 # Regex string matcher
2518 not ok {test-number} - testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively
2519 # Regex string matcher
2520 not ok {test-number} - testStringForMatching(), Matches( "contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively
2521 # Regex string matcher
2522 not ok {test-number} - testStringForMatching(), Matches( "this string contains 'abc' as a" ) for: "this string contains 'abc' as a substring" matches "this string contains 'abc' as a" case sensitively
2523 # Registering reporter with '::' in name fails
2524 ok {test-number} - registry.registerReporter( "with::doublecolons", Catch::Detail::make_unique<TestReporterFactory>() ), "'::' is not allowed in reporter name: 'with::doublecolons'" for: "'::' is not allowed in reporter name: 'with::doublecolons'" equals: "'::' is not allowed in reporter name: 'with::doublecolons'"
2525 # Regression test #1
2526 ok {test-number} - actual, !UnorderedEquals( expected ) for: { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
2527 # Reporter's write listings to provided stream
2528 ok {test-number} - !(factories.empty()) for: !false
2529 # Reporter's write listings to provided stream
2530 ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: Automake'
2531 # Reporter's write listings to provided stream
2532 ok {test-number} - !(factories.empty()) for: !false
2533 # Reporter's write listings to provided stream
2534 ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: Automake'
2535 # Reporter's write listings to provided stream
2536 ok {test-number} - !(factories.empty()) for: !false
2537 # Reporter's write listings to provided stream
2538 ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: Automake'
2539 # Reporter's write listings to provided stream
2540 ok {test-number} - !(factories.empty()) for: !false
2541 # Reporter's write listings to provided stream
2542 ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: compact'
2543 # Reporter's write listings to provided stream
2544 ok {test-number} - !(factories.empty()) for: !false
2545 # Reporter's write listings to provided stream
2546 ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: compact'
2547 # Reporter's write listings to provided stream
2548 ok {test-number} - !(factories.empty()) for: !false
2549 # Reporter's write listings to provided stream
2550 ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: compact'
2551 # Reporter's write listings to provided stream
2552 ok {test-number} - !(factories.empty()) for: !false
2553 # Reporter's write listings to provided stream
2554 ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: console'
2555 # Reporter's write listings to provided stream
2556 ok {test-number} - !(factories.empty()) for: !false
2557 # Reporter's write listings to provided stream
2558 ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: console'
2559 # Reporter's write listings to provided stream
2560 ok {test-number} - !(factories.empty()) for: !false
2561 # Reporter's write listings to provided stream
2562 ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: console'
2563 # Reporter's write listings to provided stream
2564 ok {test-number} - !(factories.empty()) for: !false
2565 # Reporter's write listings to provided stream
2566 ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "{ "version": 1, "metadata": { "name": "", "rng-seed": 1234, "catch2-version": "<version>" }, "listings": { "tags": [ { "aliases": [ "fakeTag" ], "count": 1 } ]" contains: "fakeTag" with 1 message: 'Tested reporter: JSON'
2567 # Reporter's write listings to provided stream
2568 ok {test-number} - !(factories.empty()) for: !false
2569 # Reporter's write listings to provided stream
2570 ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "{ "version": 1, "metadata": { "name": "", "rng-seed": 1234, "catch2-version": "<version>" }, "listings": { "reporters": [ { "name": "fake reporter", "description": "fake description" } ]" contains: "fake reporter" with 1 message: 'Tested reporter: JSON'
2571 # Reporter's write listings to provided stream
2572 ok {test-number} - !(factories.empty()) for: !false
2573 # Reporter's write listings to provided stream
2574 ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "{ "version": 1, "metadata": { "name": "", "rng-seed": 1234, "catch2-version": "<version>" }, "listings": { "tests": [ { "name": "fake test name", "class-name": "", "tags": [ "fakeTestTag" ], "source-location": { "filename": "fake-file.cpp", "line": 123456789 } } ]" ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: JSON'
2575 # Reporter's write listings to provided stream
2576 ok {test-number} - !(factories.empty()) for: !false
2577 # Reporter's write listings to provided stream
2578 ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "<?xml version="1.0" encoding="UTF-8"?> All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: JUnit'
2579 # Reporter's write listings to provided stream
2580 ok {test-number} - !(factories.empty()) for: !false
2581 # Reporter's write listings to provided stream
2582 ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "<?xml version="1.0" encoding="UTF-8"?> Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: JUnit'
2583 # Reporter's write listings to provided stream
2584 ok {test-number} - !(factories.empty()) for: !false
2585 # Reporter's write listings to provided stream
2586 ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "<?xml version="1.0" encoding="UTF-8"?> All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: JUnit'
2587 # Reporter's write listings to provided stream
2588 ok {test-number} - !(factories.empty()) for: !false
2589 # Reporter's write listings to provided stream
2590 ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "<?xml version="1.0" encoding="UTF-8"?> All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: SonarQube'
2591 # Reporter's write listings to provided stream
2592 ok {test-number} - !(factories.empty()) for: !false
2593 # Reporter's write listings to provided stream
2594 ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "<?xml version="1.0" encoding="UTF-8"?> Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: SonarQube'
2595 # Reporter's write listings to provided stream
2596 ok {test-number} - !(factories.empty()) for: !false
2597 # Reporter's write listings to provided stream
2598 ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "<?xml version="1.0" encoding="UTF-8"?> All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: SonarQube'
2599 # Reporter's write listings to provided stream
2600 ok {test-number} - !(factories.empty()) for: !false
2601 # Reporter's write listings to provided stream
2602 ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: TAP'
2603 # Reporter's write listings to provided stream
2604 ok {test-number} - !(factories.empty()) for: !false
2605 # Reporter's write listings to provided stream
2606 ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: TAP'
2607 # Reporter's write listings to provided stream
2608 ok {test-number} - !(factories.empty()) for: !false
2609 # Reporter's write listings to provided stream
2610 ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: TAP'
2611 # Reporter's write listings to provided stream
2612 ok {test-number} - !(factories.empty()) for: !false
2613 # Reporter's write listings to provided stream
2614 ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "fakeTag" with 1 message: 'Tested reporter: TeamCity'
2615 # Reporter's write listings to provided stream
2616 ok {test-number} - !(factories.empty()) for: !false
2617 # Reporter's write listings to provided stream
2618 ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "Available reporters: fake reporter: fake description " contains: "fake reporter" with 1 message: 'Tested reporter: TeamCity'
2619 # Reporter's write listings to provided stream
2620 ok {test-number} - !(factories.empty()) for: !false
2621 # Reporter's write listings to provided stream
2622 ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: TeamCity'
2623 # Reporter's write listings to provided stream
2624 ok {test-number} - !(factories.empty()) for: !false
2625 # Reporter's write listings to provided stream
2626 ok {test-number} - listingString, ContainsSubstring("fakeTag"s) for: "<?xml version="1.0" encoding="UTF-8"?> <TagsFromMatchingTests> <Tag> <Count>1</Count> <Aliases> <Alias>fakeTag</Alias> </Aliases> </Tag> </TagsFromMatchingTests>" contains: "fakeTag" with 1 message: 'Tested reporter: XML'
2627 # Reporter's write listings to provided stream
2628 ok {test-number} - !(factories.empty()) for: !false
2629 # Reporter's write listings to provided stream
2630 ok {test-number} - listingString, ContainsSubstring("fake reporter"s) for: "<?xml version="1.0" encoding="UTF-8"?> <AvailableReporters> <Reporter> <Name>fake reporter</Name> <Description>fake description</Description> </Reporter> </AvailableReporters>" contains: "fake reporter" with 1 message: 'Tested reporter: XML'
2631 # Reporter's write listings to provided stream
2632 ok {test-number} - !(factories.empty()) for: !false
2633 # Reporter's write listings to provided stream
2634 ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "<?xml version="1.0" encoding="UTF-8"?> <MatchingTests> <TestCase> <Name>fake test name</Name> <ClassName/> <Tags>[fakeTestTag]</Tags> <SourceInfo> <File>fake-file.cpp</File> <Line>123456789</Line> </SourceInfo> </TestCase> </MatchingTests>" ( contains: "fake test name" and contains: "fakeTestTag" ) with 1 message: 'Tested reporter: XML'
2635 # Reproducer for #2309 - a very long description past 80 chars (default console width) with a late colon : blablabla
2636 ok {test-number} -
2637 # SUCCEED counts as a test pass
2638 ok {test-number} - with 1 message: 'this is a success'
2639 # SUCCEED does not require an argument
2640 ok {test-number} -
2641 # Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods
2642 ok {test-number} - before == 0 for: 0 == 0
2643 # Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods
2644 ok {test-number} - after > before for: 1 > 0
2645 # Scenario: Do that thing with the thing
2646 ok {test-number} - itDoesThis() for: true
2647 # Scenario: Do that thing with the thing
2648 ok {test-number} - itDoesThat() for: true
2649 # Scenario: This is a really long scenario name to see how the list command deals with wrapping
2650 ok {test-number} - with 1 message: 'boo!'
2651 # Scenario: Vector resizing affects size and capacity
2652 ok {test-number} - v.size() == 0 for: 0 == 0
2653 # Scenario: Vector resizing affects size and capacity
2654 ok {test-number} - v.size() == 10 for: 10 == 10
2655 # Scenario: Vector resizing affects size and capacity
2656 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2657 # Scenario: Vector resizing affects size and capacity
2658 ok {test-number} - v.size() == 5 for: 5 == 5
2659 # Scenario: Vector resizing affects size and capacity
2660 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2661 # Scenario: Vector resizing affects size and capacity
2662 ok {test-number} - v.size() == 0 for: 0 == 0
2663 # Scenario: Vector resizing affects size and capacity
2664 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2665 # Scenario: Vector resizing affects size and capacity
2666 ok {test-number} - v.size() == 0 for: 0 == 0
2667 # Scoped message applies to all assertions in scope
2668 not ok {test-number} - false with 1 message: 'This will be reported multiple times'
2669 # Scoped message applies to all assertions in scope
2670 not ok {test-number} - false with 1 message: 'This will be reported multiple times'
2671 # Scoped messages do not leave block with an exception
2672 not ok {test-number} - false with 1 message: 'Should be in scope at the end'
2673 # Scoped messages outlive section end
2674 ok {test-number} - true with 1 message: 'Should survive a section end'
2675 # Scoped messages outlive section end
2676 not ok {test-number} - false with 1 message: 'Should survive a section end'
2677 A string sent directly to stdout
2678 A string sent directly to stderr
2679 A string sent to stderr via clog
2680 # Some simple comparisons between doubles
2681 ok {test-number} - d == Approx( 1.23 ) for: 1.22999999999999998 == Approx( 1.22999999999999998 )
2682 # Some simple comparisons between doubles
2683 ok {test-number} - d != Approx( 1.22 ) for: 1.22999999999999998 != Approx( 1.21999999999999997 )
2684 # Some simple comparisons between doubles
2685 ok {test-number} - d != Approx( 1.24 ) for: 1.22999999999999998 != Approx( 1.23999999999999999 )
2686 # Some simple comparisons between doubles
2687 ok {test-number} - d == 1.23_a for: 1.22999999999999998 == Approx( 1.22999999999999998 )
2688 # Some simple comparisons between doubles
2689 ok {test-number} - d != 1.22_a for: 1.22999999999999998 != Approx( 1.21999999999999997 )
2690 # Some simple comparisons between doubles
2691 ok {test-number} - Approx( d ) == 1.23 for: Approx( 1.22999999999999998 ) == 1.22999999999999998
2692 # Some simple comparisons between doubles
2693 ok {test-number} - Approx( d ) != 1.22 for: Approx( 1.22999999999999998 ) != 1.21999999999999997
2694 # Some simple comparisons between doubles
2695 ok {test-number} - Approx( d ) != 1.24 for: Approx( 1.22999999999999998 ) != 1.23999999999999999
2696 Message from section one
2697 Message from section two
2698 # StartsWith string matcher
2699 not ok {test-number} - testStringForMatching(), StartsWith( "This String" ) for: "this string contains 'abc' as a substring" starts with: "This String"
2700 # StartsWith string matcher
2701 not ok {test-number} - testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" starts with: "string" (case insensitive)
2702 # Static arrays are convertible to string
2703 ok {test-number} - Catch::Detail::stringify(singular) == "{ 1 }" for: "{ 1 }" == "{ 1 }"
2704 # Static arrays are convertible to string
2705 ok {test-number} - Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" for: "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
2706 # Static arrays are convertible to string
2707 ok {test-number} - Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" for: "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }" == "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
2708 # String matchers
2709 ok {test-number} - testStringForMatching(), ContainsSubstring( "string" ) for: "this string contains 'abc' as a substring" contains: "string"
2710 # String matchers
2711 ok {test-number} - testStringForMatching(), ContainsSubstring( "string", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "string" (case insensitive)
2712 # String matchers
2713 ok {test-number} - testStringForMatching(), ContainsSubstring( "abc" ) for: "this string contains 'abc' as a substring" contains: "abc"
2714 # String matchers
2715 ok {test-number} - testStringForMatching(), ContainsSubstring( "aBC", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "abc" (case insensitive)
2716 # String matchers
2717 ok {test-number} - testStringForMatching(), StartsWith( "this" ) for: "this string contains 'abc' as a substring" starts with: "this"
2718 # String matchers
2719 ok {test-number} - testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" starts with: "this" (case insensitive)
2720 # String matchers
2721 ok {test-number} - testStringForMatching(), EndsWith( "substring" ) for: "this string contains 'abc' as a substring" ends with: "substring"
2722 # String matchers
2723 ok {test-number} - testStringForMatching(), EndsWith( " SuBsTrInG", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" ends with: " substring" (case insensitive)
2724 # StringRef
2725 ok {test-number} - empty.empty() for: true
2726 # StringRef
2727 ok {test-number} - empty.size() == 0 for: 0 == 0
2728 # StringRef
2729 ok {test-number} - std::strcmp( empty.data(), "" ) == 0 for: 0 == 0
2730 # StringRef
2731 ok {test-number} - s.empty() == false for: false == false
2732 # StringRef
2733 ok {test-number} - s.size() == 5 for: 5 == 5
2734 # StringRef
2735 ok {test-number} - std::strcmp( rawChars, "hello" ) == 0 for: 0 == 0
2736 # StringRef
2737 ok {test-number} - s.data() == rawChars for: "hello" == "hello"
2738 # StringRef
2739 ok {test-number} - original == "original"
2740 # StringRef
2741 ok {test-number} - original.data()
2742 # StringRef
2743 ok {test-number} - original.begin() == copy.begin() for: "original string" == "original string"
2744 # StringRef
2745 ok {test-number} - original.begin() == copy.begin() for: "original string" == "original string"
2746 # StringRef
2747 ok {test-number} - ss.empty() == false for: false == false
2748 # StringRef
2749 ok {test-number} - ss.size() == 5 for: 5 == 5
2750 # StringRef
2751 ok {test-number} - std::strncmp( ss.data(), "hello", 5 ) == 0 for: 0 == 0
2752 # StringRef
2753 ok {test-number} - ss == "hello" for: hello == "hello"
2754 # StringRef
2755 ok {test-number} - ss.size() == 6 for: 6 == 6
2756 # StringRef
2757 ok {test-number} - std::strcmp( ss.data(), "world!" ) == 0 for: 0 == 0
2758 # StringRef
2759 ok {test-number} - s.data() == s2.data() for: "hello world!" == "hello world!"
2760 # StringRef
2761 ok {test-number} - s.data() == ss.data() for: "hello world!" == "hello world!"
2762 # StringRef
2763 ok {test-number} - s.substr(s.size() + 1, 123).empty() for: true
2764 # StringRef
2765 ok {test-number} - std::strcmp(ss.data(), "world!") == 0 for: 0 == 0
2766 # StringRef
2767 ok {test-number} - s.substr(1'000'000, 1).empty() for: true
2768 # StringRef
2769 ok {test-number} - reinterpret_cast<char*>(buffer1) != reinterpret_cast<char*>(buffer2) for: "Hello" != "Hello"
2770 # StringRef
2771 ok {test-number} - left == right for: Hello == Hello
2772 # StringRef
2773 ok {test-number} - left != left.substr(0, 3) for: Hello != Hel
2774 # StringRef
2775 ok {test-number} - sr == "a standard string" for: a standard string == "a standard string"
2776 # StringRef
2777 ok {test-number} - sr.size() == stdStr.size() for: 17 == 17
2778 # StringRef
2779 ok {test-number} - sr == "a standard string" for: a standard string == "a standard string"
2780 # StringRef
2781 ok {test-number} - sr.size() == stdStr.size() for: 17 == 17
2782 # StringRef
2783 ok {test-number} - sr == "a standard string" for: a standard string == "a standard string"
2784 # StringRef
2785 ok {test-number} - sr.size() == stdStr.size() for: 17 == 17
2786 # StringRef
2787 ok {test-number} - stdStr == "a stringref" for: "a stringref" == "a stringref"
2788 # StringRef
2789 ok {test-number} - stdStr.size() == sr.size() for: 11 == 11
2790 # StringRef
2791 ok {test-number} - stdStr == "a stringref" for: "a stringref" == "a stringref"
2792 # StringRef
2793 ok {test-number} - stdStr.size() == sr.size() for: 11 == 11
2794 # StringRef
2795 ok {test-number} - lhs == "some string += the stringref contents" for: "some string += the stringref contents" == "some string += the stringref contents"
2796 # StringRef
2797 ok {test-number} - together == "abrakadabra" for: "abrakadabra" == "abrakadabra"
2798 # StringRef at compilation time
2799 ok {test-number} - with 1 message: 'empty.size() == 0'
2800 # StringRef at compilation time
2801 ok {test-number} - with 1 message: 'empty.begin() == empty.end()'
2802 # StringRef at compilation time
2803 ok {test-number} - with 1 message: 'stringref.size() == 3'
2804 # StringRef at compilation time
2805 ok {test-number} - with 1 message: 'stringref.data() == abc'
2806 # StringRef at compilation time
2807 ok {test-number} - with 1 message: 'stringref.begin() == abc'
2808 # StringRef at compilation time
2809 ok {test-number} - with 1 message: 'stringref.begin() != stringref.end()'
2810 # StringRef at compilation time
2811 ok {test-number} - with 1 message: 'stringref.substr(10, 0).empty()'
2812 # StringRef at compilation time
2813 ok {test-number} - with 1 message: 'stringref.substr(2, 1).data() == abc + 2'
2814 # StringRef at compilation time
2815 ok {test-number} - with 1 message: 'stringref[1] == 'b''
2816 # StringRef at compilation time
2817 ok {test-number} - with 1 message: 'shortened.size() == 2'
2818 # StringRef at compilation time
2819 ok {test-number} - with 1 message: 'shortened.data() == abc'
2820 # StringRef at compilation time
2821 ok {test-number} - with 1 message: 'shortened.begin() != shortened.end()'
2822 # StringRef at compilation time
2823 ok {test-number} - with 1 message: '!(sr1.empty())'
2824 # StringRef at compilation time
2825 ok {test-number} - with 1 message: 'sr1.size() == 3'
2826 # StringRef at compilation time
2827 ok {test-number} - with 1 message: 'sr2.empty()'
2828 # StringRef at compilation time
2829 ok {test-number} - with 1 message: 'sr2.size() == 0'
2830 # Stringifying char arrays with statically known sizes - char
2831 ok {test-number} - ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
2832 # Stringifying char arrays with statically known sizes - char
2833 ok {test-number} - ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
2834 # Stringifying char arrays with statically known sizes - signed char
2835 ok {test-number} - ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
2836 # Stringifying char arrays with statically known sizes - signed char
2837 ok {test-number} - ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
2838 # Stringifying char arrays with statically known sizes - unsigned char
2839 ok {test-number} - ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
2840 # Stringifying char arrays with statically known sizes - unsigned char
2841 ok {test-number} - ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc""
2842 # Stringifying std::chrono::duration helpers
2843 ok {test-number} - minute == seconds for: 1 m == 60 s
2844 # Stringifying std::chrono::duration helpers
2845 ok {test-number} - hour != seconds for: 1 h != 60 s
2846 # Stringifying std::chrono::duration helpers
2847 ok {test-number} - micro != milli for: 1 us != 1 ms
2848 # Stringifying std::chrono::duration helpers
2849 ok {test-number} - nano != micro for: 1 ns != 1 us
2850 # Stringifying std::chrono::duration with weird ratios
2851 ok {test-number} - half_minute != femto_second for: 1 [30/1]s != 1 fs
2852 # Stringifying std::chrono::duration with weird ratios
2853 ok {test-number} - pico_second != atto_second for: 1 ps != 1 as
2854 # Stringifying std::chrono::time_point<system_clock>
2855 ok {test-number} - now != later for: {iso8601-timestamp} != {iso8601-timestamp}
2856 # Tabs and newlines show in output
2857 not ok {test-number} - s1 == s2 for: "if ($b == 10) { $a = 20; }" == "if ($b == 10) { $a = 20; } "
2858 # Tag alias can be registered against tag patterns
2859 ok {test-number} - what, ContainsSubstring( "[@zzz]" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "[@zzz]"
2860 # Tag alias can be registered against tag patterns
2861 ok {test-number} - what, ContainsSubstring( "file" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "file"
2862 # Tag alias can be registered against tag patterns
2863 ok {test-number} - what, ContainsSubstring( "2" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "2"
2864 # Tag alias can be registered against tag patterns
2865 ok {test-number} - what, ContainsSubstring( "10" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "10"
2866 # Tag alias can be registered against tag patterns
2867 ok {test-number} - registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
2868 # Tag alias can be registered against tag patterns
2869 ok {test-number} - registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
2870 # Tag alias can be registered against tag patterns
2871 ok {test-number} - registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
2872 # Tag alias can be registered against tag patterns
2873 ok {test-number} - registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
2874 # Tags with spaces and non-alphanumerical characters are accepted
2875 ok {test-number} - testCase.tags.size() == 2 for: 2 == 2
2876 # Tags with spaces and non-alphanumerical characters are accepted
2877 ok {test-number} - testCase.tags, VectorContains( Tag( "tag with spaces" ) ) && VectorContains( Tag( "I said \"good day\" sir!"_catch_sr ) ) for: { {?}, {?} } ( Contains: {?} and Contains: {?} )
2878 # Template test case method with test types specified inside std::tuple - MyTypes - 0
2879 ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1 == 1
2880 # Template test case method with test types specified inside std::tuple - MyTypes - 1
2881 ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1 == 1
2882 # Template test case method with test types specified inside std::tuple - MyTypes - 2
2883 ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1.0 == 1
2884 # Template test case with test types specified inside non-copyable and non-movable std::tuple - NonCopyableAndNonMovableTypes - 0
2885 ok {test-number} - std::is_default_constructible<TestType>::value for: true
2886 # Template test case with test types specified inside non-copyable and non-movable std::tuple - NonCopyableAndNonMovableTypes - 1
2887 ok {test-number} - std::is_default_constructible<TestType>::value for: true
2888 # Template test case with test types specified inside non-default-constructible std::tuple - MyNonDefaultConstructibleTypes - 0
2889 ok {test-number} - std::is_trivially_copyable<TestType>::value for: true
2890 # Template test case with test types specified inside non-default-constructible std::tuple - MyNonDefaultConstructibleTypes - 1
2891 ok {test-number} - std::is_trivially_copyable<TestType>::value for: true
2892 # Template test case with test types specified inside std::tuple - MyTypes - 0
2893 ok {test-number} - std::is_arithmetic<TestType>::value for: true
2894 # Template test case with test types specified inside std::tuple - MyTypes - 1
2895 ok {test-number} - std::is_arithmetic<TestType>::value for: true
2896 # Template test case with test types specified inside std::tuple - MyTypes - 2
2897 ok {test-number} - std::is_arithmetic<TestType>::value for: true
2898 # TemplateTest: vectors can be sized and resized - float
2899 ok {test-number} - v.size() == 5 for: 5 == 5
2900 # TemplateTest: vectors can be sized and resized - float
2901 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2902 # TemplateTest: vectors can be sized and resized - float
2903 ok {test-number} - v.size() == 10 for: 10 == 10
2904 # TemplateTest: vectors can be sized and resized - float
2905 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2906 # TemplateTest: vectors can be sized and resized - float
2907 ok {test-number} - v.size() == 5 for: 5 == 5
2908 # TemplateTest: vectors can be sized and resized - float
2909 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2910 # TemplateTest: vectors can be sized and resized - float
2911 ok {test-number} - v.size() == 0 for: 0 == 0
2912 # TemplateTest: vectors can be sized and resized - float
2913 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2914 # TemplateTest: vectors can be sized and resized - float
2915 ok {test-number} - v.capacity() == 0 for: 0 == 0
2916 # TemplateTest: vectors can be sized and resized - float
2917 ok {test-number} - v.size() == 5 for: 5 == 5
2918 # TemplateTest: vectors can be sized and resized - float
2919 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2920 # TemplateTest: vectors can be sized and resized - float
2921 ok {test-number} - v.size() == 5 for: 5 == 5
2922 # TemplateTest: vectors can be sized and resized - float
2923 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2924 # TemplateTest: vectors can be sized and resized - float
2925 ok {test-number} - v.size() == 5 for: 5 == 5
2926 # TemplateTest: vectors can be sized and resized - float
2927 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2928 # TemplateTest: vectors can be sized and resized - float
2929 ok {test-number} - v.size() == 5 for: 5 == 5
2930 # TemplateTest: vectors can be sized and resized - float
2931 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2932 # TemplateTest: vectors can be sized and resized - int
2933 ok {test-number} - v.size() == 5 for: 5 == 5
2934 # TemplateTest: vectors can be sized and resized - int
2935 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2936 # TemplateTest: vectors can be sized and resized - int
2937 ok {test-number} - v.size() == 10 for: 10 == 10
2938 # TemplateTest: vectors can be sized and resized - int
2939 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2940 # TemplateTest: vectors can be sized and resized - int
2941 ok {test-number} - v.size() == 5 for: 5 == 5
2942 # TemplateTest: vectors can be sized and resized - int
2943 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2944 # TemplateTest: vectors can be sized and resized - int
2945 ok {test-number} - v.size() == 0 for: 0 == 0
2946 # TemplateTest: vectors can be sized and resized - int
2947 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2948 # TemplateTest: vectors can be sized and resized - int
2949 ok {test-number} - v.capacity() == 0 for: 0 == 0
2950 # TemplateTest: vectors can be sized and resized - int
2951 ok {test-number} - v.size() == 5 for: 5 == 5
2952 # TemplateTest: vectors can be sized and resized - int
2953 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2954 # TemplateTest: vectors can be sized and resized - int
2955 ok {test-number} - v.size() == 5 for: 5 == 5
2956 # TemplateTest: vectors can be sized and resized - int
2957 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2958 # TemplateTest: vectors can be sized and resized - int
2959 ok {test-number} - v.size() == 5 for: 5 == 5
2960 # TemplateTest: vectors can be sized and resized - int
2961 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2962 # TemplateTest: vectors can be sized and resized - int
2963 ok {test-number} - v.size() == 5 for: 5 == 5
2964 # TemplateTest: vectors can be sized and resized - int
2965 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2966 # TemplateTest: vectors can be sized and resized - std::string
2967 ok {test-number} - v.size() == 5 for: 5 == 5
2968 # TemplateTest: vectors can be sized and resized - std::string
2969 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2970 # TemplateTest: vectors can be sized and resized - std::string
2971 ok {test-number} - v.size() == 10 for: 10 == 10
2972 # TemplateTest: vectors can be sized and resized - std::string
2973 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2974 # TemplateTest: vectors can be sized and resized - std::string
2975 ok {test-number} - v.size() == 5 for: 5 == 5
2976 # TemplateTest: vectors can be sized and resized - std::string
2977 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2978 # TemplateTest: vectors can be sized and resized - std::string
2979 ok {test-number} - v.size() == 0 for: 0 == 0
2980 # TemplateTest: vectors can be sized and resized - std::string
2981 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2982 # TemplateTest: vectors can be sized and resized - std::string
2983 ok {test-number} - v.capacity() == 0 for: 0 == 0
2984 # TemplateTest: vectors can be sized and resized - std::string
2985 ok {test-number} - v.size() == 5 for: 5 == 5
2986 # TemplateTest: vectors can be sized and resized - std::string
2987 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2988 # TemplateTest: vectors can be sized and resized - std::string
2989 ok {test-number} - v.size() == 5 for: 5 == 5
2990 # TemplateTest: vectors can be sized and resized - std::string
2991 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2992 # TemplateTest: vectors can be sized and resized - std::string
2993 ok {test-number} - v.size() == 5 for: 5 == 5
2994 # TemplateTest: vectors can be sized and resized - std::string
2995 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2996 # TemplateTest: vectors can be sized and resized - std::string
2997 ok {test-number} - v.size() == 5 for: 5 == 5
2998 # TemplateTest: vectors can be sized and resized - std::string
2999 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
3000 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3001 ok {test-number} - v.size() == 5 for: 5 == 5
3002 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3003 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
3004 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3005 ok {test-number} - v.size() == 10 for: 10 == 10
3006 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3007 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
3008 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3009 ok {test-number} - v.size() == 5 for: 5 == 5
3010 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3011 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
3012 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3013 ok {test-number} - v.size() == 0 for: 0 == 0
3014 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3015 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
3016 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3017 ok {test-number} - v.capacity() == 0 for: 0 == 0
3018 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3019 ok {test-number} - v.size() == 5 for: 5 == 5
3020 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3021 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
3022 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3023 ok {test-number} - v.size() == 5 for: 5 == 5
3024 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3025 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
3026 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3027 ok {test-number} - v.size() == 5 for: 5 == 5
3028 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3029 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
3030 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3031 ok {test-number} - v.size() == 5 for: 5 == 5
3032 # TemplateTest: vectors can be sized and resized - std::tuple<int,float>
3033 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
3034 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3035 ok {test-number} - v.size() == V for: 6 == 6
3036 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3037 ok {test-number} - v.capacity() >= V for: 6 >= 6
3038 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3039 ok {test-number} - v.size() == 2 * V for: 12 == 12
3040 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3041 ok {test-number} - v.capacity() >= 2 * V for: 12 >= 12
3042 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3043 ok {test-number} - v.size() == V for: 6 == 6
3044 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3045 ok {test-number} - v.capacity() >= V for: 6 >= 6
3046 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3047 ok {test-number} - v.size() == 0 for: 0 == 0
3048 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3049 ok {test-number} - v.capacity() >= V for: 6 >= 6
3050 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3051 ok {test-number} - v.capacity() == 0 for: 0 == 0
3052 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3053 ok {test-number} - v.size() == V for: 6 == 6
3054 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3055 ok {test-number} - v.capacity() >= V for: 6 >= 6
3056 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3057 ok {test-number} - v.size() == V for: 6 == 6
3058 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3059 ok {test-number} - v.capacity() >= 2 * V for: 12 >= 12
3060 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3061 ok {test-number} - v.size() == V for: 6 == 6
3062 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3063 ok {test-number} - v.capacity() >= V for: 6 >= 6
3064 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3065 ok {test-number} - v.size() == V for: 6 == 6
3066 # TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
3067 ok {test-number} - v.capacity() >= V for: 6 >= 6
3068 # TemplateTestSig: vectors can be sized and resized - float,4
3069 ok {test-number} - v.size() == V for: 4 == 4
3070 # TemplateTestSig: vectors can be sized and resized - float,4
3071 ok {test-number} - v.capacity() >= V for: 4 >= 4
3072 # TemplateTestSig: vectors can be sized and resized - float,4
3073 ok {test-number} - v.size() == 2 * V for: 8 == 8
3074 # TemplateTestSig: vectors can be sized and resized - float,4
3075 ok {test-number} - v.capacity() >= 2 * V for: 8 >= 8
3076 # TemplateTestSig: vectors can be sized and resized - float,4
3077 ok {test-number} - v.size() == V for: 4 == 4
3078 # TemplateTestSig: vectors can be sized and resized - float,4
3079 ok {test-number} - v.capacity() >= V for: 4 >= 4
3080 # TemplateTestSig: vectors can be sized and resized - float,4
3081 ok {test-number} - v.size() == 0 for: 0 == 0
3082 # TemplateTestSig: vectors can be sized and resized - float,4
3083 ok {test-number} - v.capacity() >= V for: 4 >= 4
3084 # TemplateTestSig: vectors can be sized and resized - float,4
3085 ok {test-number} - v.capacity() == 0 for: 0 == 0
3086 # TemplateTestSig: vectors can be sized and resized - float,4
3087 ok {test-number} - v.size() == V for: 4 == 4
3088 # TemplateTestSig: vectors can be sized and resized - float,4
3089 ok {test-number} - v.capacity() >= V for: 4 >= 4
3090 # TemplateTestSig: vectors can be sized and resized - float,4
3091 ok {test-number} - v.size() == V for: 4 == 4
3092 # TemplateTestSig: vectors can be sized and resized - float,4
3093 ok {test-number} - v.capacity() >= 2 * V for: 8 >= 8
3094 # TemplateTestSig: vectors can be sized and resized - float,4
3095 ok {test-number} - v.size() == V for: 4 == 4
3096 # TemplateTestSig: vectors can be sized and resized - float,4
3097 ok {test-number} - v.capacity() >= V for: 4 >= 4
3098 # TemplateTestSig: vectors can be sized and resized - float,4
3099 ok {test-number} - v.size() == V for: 4 == 4
3100 # TemplateTestSig: vectors can be sized and resized - float,4
3101 ok {test-number} - v.capacity() >= V for: 4 >= 4
3102 # TemplateTestSig: vectors can be sized and resized - int,5
3103 ok {test-number} - v.size() == V for: 5 == 5
3104 # TemplateTestSig: vectors can be sized and resized - int,5
3105 ok {test-number} - v.capacity() >= V for: 5 >= 5
3106 # TemplateTestSig: vectors can be sized and resized - int,5
3107 ok {test-number} - v.size() == 2 * V for: 10 == 10
3108 # TemplateTestSig: vectors can be sized and resized - int,5
3109 ok {test-number} - v.capacity() >= 2 * V for: 10 >= 10
3110 # TemplateTestSig: vectors can be sized and resized - int,5
3111 ok {test-number} - v.size() == V for: 5 == 5
3112 # TemplateTestSig: vectors can be sized and resized - int,5
3113 ok {test-number} - v.capacity() >= V for: 5 >= 5
3114 # TemplateTestSig: vectors can be sized and resized - int,5
3115 ok {test-number} - v.size() == 0 for: 0 == 0
3116 # TemplateTestSig: vectors can be sized and resized - int,5
3117 ok {test-number} - v.capacity() >= V for: 5 >= 5
3118 # TemplateTestSig: vectors can be sized and resized - int,5
3119 ok {test-number} - v.capacity() == 0 for: 0 == 0
3120 # TemplateTestSig: vectors can be sized and resized - int,5
3121 ok {test-number} - v.size() == V for: 5 == 5
3122 # TemplateTestSig: vectors can be sized and resized - int,5
3123 ok {test-number} - v.capacity() >= V for: 5 >= 5
3124 # TemplateTestSig: vectors can be sized and resized - int,5
3125 ok {test-number} - v.size() == V for: 5 == 5
3126 # TemplateTestSig: vectors can be sized and resized - int,5
3127 ok {test-number} - v.capacity() >= 2 * V for: 10 >= 10
3128 # TemplateTestSig: vectors can be sized and resized - int,5
3129 ok {test-number} - v.size() == V for: 5 == 5
3130 # TemplateTestSig: vectors can be sized and resized - int,5
3131 ok {test-number} - v.capacity() >= V for: 5 >= 5
3132 # TemplateTestSig: vectors can be sized and resized - int,5
3133 ok {test-number} - v.size() == V for: 5 == 5
3134 # TemplateTestSig: vectors can be sized and resized - int,5
3135 ok {test-number} - v.capacity() >= V for: 5 >= 5
3136 # TemplateTestSig: vectors can be sized and resized - std::string,15
3137 ok {test-number} - v.size() == V for: 15 == 15
3138 # TemplateTestSig: vectors can be sized and resized - std::string,15
3139 ok {test-number} - v.capacity() >= V for: 15 >= 15
3140 # TemplateTestSig: vectors can be sized and resized - std::string,15
3141 ok {test-number} - v.size() == 2 * V for: 30 == 30
3142 # TemplateTestSig: vectors can be sized and resized - std::string,15
3143 ok {test-number} - v.capacity() >= 2 * V for: 30 >= 30
3144 # TemplateTestSig: vectors can be sized and resized - std::string,15
3145 ok {test-number} - v.size() == V for: 15 == 15
3146 # TemplateTestSig: vectors can be sized and resized - std::string,15
3147 ok {test-number} - v.capacity() >= V for: 15 >= 15
3148 # TemplateTestSig: vectors can be sized and resized - std::string,15
3149 ok {test-number} - v.size() == 0 for: 0 == 0
3150 # TemplateTestSig: vectors can be sized and resized - std::string,15
3151 ok {test-number} - v.capacity() >= V for: 15 >= 15
3152 # TemplateTestSig: vectors can be sized and resized - std::string,15
3153 ok {test-number} - v.capacity() == 0 for: 0 == 0
3154 # TemplateTestSig: vectors can be sized and resized - std::string,15
3155 ok {test-number} - v.size() == V for: 15 == 15
3156 # TemplateTestSig: vectors can be sized and resized - std::string,15
3157 ok {test-number} - v.capacity() >= V for: 15 >= 15
3158 # TemplateTestSig: vectors can be sized and resized - std::string,15
3159 ok {test-number} - v.size() == V for: 15 == 15
3160 # TemplateTestSig: vectors can be sized and resized - std::string,15
3161 ok {test-number} - v.capacity() >= 2 * V for: 30 >= 30
3162 # TemplateTestSig: vectors can be sized and resized - std::string,15
3163 ok {test-number} - v.size() == V for: 15 == 15
3164 # TemplateTestSig: vectors can be sized and resized - std::string,15
3165 ok {test-number} - v.capacity() >= V for: 15 >= 15
3166 # TemplateTestSig: vectors can be sized and resized - std::string,15
3167 ok {test-number} - v.size() == V for: 15 == 15
3168 # TemplateTestSig: vectors can be sized and resized - std::string,15
3169 ok {test-number} - v.capacity() >= V for: 15 >= 15
3170 # Test case with identical tags keeps just one
3171 ok {test-number} - testCase.tags.size() == 1 for: 1 == 1
3172 # Test case with identical tags keeps just one
3173 ok {test-number} - testCase.tags[0] == Tag( "tag1" ) for: {?} == {?}
3174 # Test case with one argument
3175 ok {test-number} - with 1 message: 'no assertions'
3176 # Test enum bit values
3177 ok {test-number} - 0x<hex digits> == bit30and31 for: 3221225472 (0x<hex digits>) == 3221225472
3178 # Test with special, characters "in name
3179 ok {test-number} -
3180 # Testing checked-if
3181 ok {test-number} - true
3182 # Testing checked-if
3183 ok {test-number} -
3184 # Testing checked-if
3185 ok {test-number} - false # TODO
3186 # Testing checked-if
3187 ok {test-number} - true
3188 # Testing checked-if
3189 ok {test-number} - false # TODO
3190 # Testing checked-if
3191 ok {test-number} -
3192 # Testing checked-if 2
3193 ok {test-number} - true
3194 # Testing checked-if 2
3195 not ok {test-number} - explicitly
3196 # Testing checked-if 3
3197 ok {test-number} - false # TODO
3198 # Testing checked-if 3
3199 not ok {test-number} - explicitly
3200 # Testing checked-if 4
3201 ok {test-number} - true
3202 # Testing checked-if 4
3203 not ok {test-number} - unexpected exception with message: 'Uncaught exception should fail!'; expression was: {Unknown expression after the reported line}
3204 # Testing checked-if 5
3205 ok {test-number} - false # TODO
3206 # Testing checked-if 5
3207 not ok {test-number} - unexpected exception with message: 'Uncaught exception should fail!'; expression was: {Unknown expression after the reported line}
3208 # The NO_FAIL macro reports a failure but does not fail the test
3209 ok {test-number} - 1 == 2 # TODO
3210 # The default listing implementation write to provided stream
3211 ok {test-number} - listingString, ContainsSubstring("[fakeTag]"s) for: "All available tags: 1 [fakeTag] 1 tag " contains: "[fakeTag]"
3212 # The default listing implementation write to provided stream
3213 ok {test-number} - listingString, ContainsSubstring( "fake reporter"s ) && ContainsSubstring( "fake description"s ) for: "Available reporters: fake reporter: fake description " ( contains: "fake reporter" and contains: "fake description" )
3214 # The default listing implementation write to provided stream
3215 ok {test-number} - listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) for: "All available test cases: fake test name [fakeTestTag] 1 test case " ( contains: "fake test name" and contains: "fakeTestTag" )
3216 # The default listing implementation write to provided stream
3217 ok {test-number} - listingString, ContainsSubstring( "fakeListener"s ) && ContainsSubstring( "fake description"s ) for: "Registered listeners: fakeListener: fake description " ( contains: "fakeListener" and contains: "fake description" )
3218 # This test 'should' fail but doesn't
3219 ok {test-number} - with 1 message: 'oops!'
3220 # Thrown string literals are translated
3221 not ok {test-number} - unexpected exception with message: 'For some reason someone is throwing a string literal!'
3222 # Tracker
3223 ok {test-number} - testCase.isOpen() for: true
3224 # Tracker
3225 ok {test-number} - s1.isOpen() for: true
3226 # Tracker
3227 ok {test-number} - s1.isSuccessfullyCompleted() for: true
3228 # Tracker
3229 ok {test-number} - testCase.isComplete() == false for: false == false
3230 # Tracker
3231 ok {test-number} - ctx.completedCycle() for: true
3232 # Tracker
3233 ok {test-number} - testCase.isSuccessfullyCompleted() for: true
3234 # Tracker
3235 ok {test-number} - testCase.isOpen() for: true
3236 # Tracker
3237 ok {test-number} - s1.isOpen() for: true
3238 # Tracker
3239 ok {test-number} - s1.isComplete() for: true
3240 # Tracker
3241 ok {test-number} - s1.isSuccessfullyCompleted() == false for: false == false
3242 # Tracker
3243 ok {test-number} - testCase.isComplete() == false for: false == false
3244 # Tracker
3245 ok {test-number} - ctx.completedCycle() for: true
3246 # Tracker
3247 ok {test-number} - testCase.isSuccessfullyCompleted() == false for: false == false
3248 # Tracker
3249 ok {test-number} - testCase2.isOpen() for: true
3250 # Tracker
3251 ok {test-number} - s1b.isOpen() == false for: false == false
3252 # Tracker
3253 ok {test-number} - ctx.completedCycle() for: true
3254 # Tracker
3255 ok {test-number} - testCase.isComplete() for: true
3256 # Tracker
3257 ok {test-number} - testCase.isSuccessfullyCompleted() for: true
3258 # Tracker
3259 ok {test-number} - testCase.isOpen() for: true
3260 # Tracker
3261 ok {test-number} - s1.isOpen() for: true
3262 # Tracker
3263 ok {test-number} - s1.isComplete() for: true
3264 # Tracker
3265 ok {test-number} - s1.isSuccessfullyCompleted() == false for: false == false
3266 # Tracker
3267 ok {test-number} - testCase.isComplete() == false for: false == false
3268 # Tracker
3269 ok {test-number} - ctx.completedCycle() for: true
3270 # Tracker
3271 ok {test-number} - testCase.isSuccessfullyCompleted() == false for: false == false
3272 # Tracker
3273 ok {test-number} - testCase2.isOpen() for: true
3274 # Tracker
3275 ok {test-number} - s1b.isOpen() == false for: false == false
3276 # Tracker
3277 ok {test-number} - s2.isOpen() for: true
3278 # Tracker
3279 ok {test-number} - ctx.completedCycle() for: true
3280 # Tracker
3281 ok {test-number} - testCase.isComplete() for: true
3282 # Tracker
3283 ok {test-number} - testCase.isSuccessfullyCompleted() for: true
3284 # Tracker
3285 ok {test-number} - testCase.isOpen() for: true
3286 # Tracker
3287 ok {test-number} - s1.isOpen() for: true
3288 # Tracker
3289 ok {test-number} - s2.isOpen() == false for: false == false
3290 # Tracker
3291 ok {test-number} - testCase.isComplete() == false for: false == false
3292 # Tracker
3293 ok {test-number} - testCase2.isOpen() for: true
3294 # Tracker
3295 ok {test-number} - s1b.isOpen() == false for: false == false
3296 # Tracker
3297 ok {test-number} - s2b.isOpen() for: true
3298 # Tracker
3299 ok {test-number} - ctx.completedCycle() == false for: false == false
3300 # Tracker
3301 ok {test-number} - ctx.completedCycle() for: true
3302 # Tracker
3303 ok {test-number} - s2b.isSuccessfullyCompleted() for: true
3304 # Tracker
3305 ok {test-number} - testCase2.isComplete() == false for: false == false
3306 # Tracker
3307 ok {test-number} - testCase2.isSuccessfullyCompleted() for: true
3308 # Tracker
3309 ok {test-number} - testCase.isOpen() for: true
3310 # Tracker
3311 ok {test-number} - s1.isOpen() for: true
3312 # Tracker
3313 ok {test-number} - s2.isOpen() == false for: false == false
3314 # Tracker
3315 ok {test-number} - testCase.isComplete() == false for: false == false
3316 # Tracker
3317 ok {test-number} - testCase2.isOpen() for: true
3318 # Tracker
3319 ok {test-number} - s1b.isOpen() == false for: false == false
3320 # Tracker
3321 ok {test-number} - s2b.isOpen() for: true
3322 # Tracker
3323 ok {test-number} - ctx.completedCycle() == false for: false == false
3324 # Tracker
3325 ok {test-number} - ctx.completedCycle() for: true
3326 # Tracker
3327 ok {test-number} - s2b.isComplete() for: true
3328 # Tracker
3329 ok {test-number} - s2b.isSuccessfullyCompleted() == false for: false == false
3330 # Tracker
3331 ok {test-number} - testCase2.isSuccessfullyCompleted() == false for: false == false
3332 # Tracker
3333 ok {test-number} - testCase3.isOpen() for: true
3334 # Tracker
3335 ok {test-number} - s1c.isOpen() == false for: false == false
3336 # Tracker
3337 ok {test-number} - s2c.isOpen() == false for: false == false
3338 # Tracker
3339 ok {test-number} - testCase3.isSuccessfullyCompleted() for: true
3340 # Tracker
3341 ok {test-number} - testCase.isOpen() for: true
3342 # Tracker
3343 ok {test-number} - s1.isOpen() for: true
3344 # Tracker
3345 ok {test-number} - s2.isOpen() for: true
3346 # Tracker
3347 ok {test-number} - s2.isComplete() for: true
3348 # Tracker
3349 ok {test-number} - s1.isComplete() == false for: false == false
3350 # Tracker
3351 ok {test-number} - s1.isComplete() for: true
3352 # Tracker
3353 ok {test-number} - testCase.isComplete() == false for: false == false
3354 # Tracker
3355 ok {test-number} - testCase.isComplete() for: true
3356 # Trim strings
3357 ok {test-number} - trim(std::string(no_whitespace)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
3358 # Trim strings
3359 ok {test-number} - trim(std::string(leading_whitespace)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
3360 # Trim strings
3361 ok {test-number} - trim(std::string(trailing_whitespace)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
3362 # Trim strings
3363 ok {test-number} - trim(std::string(whitespace_at_both_ends)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
3364 # Trim strings
3365 ok {test-number} - trim(StringRef(no_whitespace)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
3366 # Trim strings
3367 ok {test-number} - trim(StringRef(leading_whitespace)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
3368 # Trim strings
3369 ok {test-number} - trim(StringRef(trailing_whitespace)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
3370 # Trim strings
3371 ok {test-number} - trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
3372 # Type conversions of RangeEquals and similar
3373 ok {test-number} - array_int_a, RangeEquals( c_array ) for: { 1, 2, 3 } elements are { 1, 2, 3 }
3374 # Type conversions of RangeEquals and similar
3375 ok {test-number} - array_int_a, UnorderedRangeEquals( c_array ) for: { 1, 2, 3 } unordered elements are { 1, 2, 3 }
3376 # Type conversions of RangeEquals and similar
3377 ok {test-number} - array_int_3, !RangeEquals( array_int_4 ) for: { 1, 2, 3 } not elements are { 1, 2, 3, 4 }
3378 # Type conversions of RangeEquals and similar
3379 ok {test-number} - array_int_3, !UnorderedRangeEquals( array_int_4 ) for: { 1, 2, 3 } not unordered elements are { 1, 2, 3, 4 }
3380 # Type conversions of RangeEquals and similar
3381 ok {test-number} - array_int_a, RangeEquals( vector_char_a ) for: { 1, 2, 3 } elements are { 1, 2, 3 }
3382 # Type conversions of RangeEquals and similar
3383 ok {test-number} - array_int_a, UnorderedRangeEquals( vector_char_a ) for: { 1, 2, 3 } unordered elements are { 1, 2, 3 }
3384 # Type conversions of RangeEquals and similar
3385 ok {test-number} - with 1 message: 'ContainerIsRandomAccess( array_int_a ) != ContainerIsRandomAccess( list_char_a )'
3386 # Type conversions of RangeEquals and similar
3387 ok {test-number} - array_int_a, RangeEquals( list_char_a ) for: { 1, 2, 3 } elements are { 1, 2, 3 }
3388 # Type conversions of RangeEquals and similar
3389 ok {test-number} - array_int_a, UnorderedRangeEquals( list_char_a ) for: { 1, 2, 3 } unordered elements are { 1, 2, 3 }
3390 # Type conversions of RangeEquals and similar
3391 ok {test-number} - vector_int_a, RangeEquals( vector_char_a ) for: { 1, 2, 3 } elements are { 1, 2, 3 }
3392 # Type conversions of RangeEquals and similar
3393 ok {test-number} - vector_int_a, UnorderedRangeEquals( vector_char_a ) for: { 1, 2, 3 } unordered elements are { 1, 2, 3 }
3394 # Type conversions of RangeEquals and similar
3395 ok {test-number} - vector_int_a, !RangeEquals( vector_char_b ) for: { 1, 2, 3 } not elements are { 1, 2, 2 }
3396 # Type conversions of RangeEquals and similar
3397 ok {test-number} - vector_int_a, !UnorderedRangeEquals( vector_char_b ) for: { 1, 2, 3 } not unordered elements are { 1, 2, 2 }
3398 # Type conversions of RangeEquals and similar
3399 ok {test-number} - a, !RangeEquals( b ) for: { 1, 2, 3 } not elements are { 3, 2, 1 }
3400 # Type conversions of RangeEquals and similar
3401 ok {test-number} - a, UnorderedRangeEquals( b ) for: { 1, 2, 3 } unordered elements are { 3, 2, 1 }
3402 # Type conversions of RangeEquals and similar
3403 ok {test-number} - vector_a, RangeEquals( array_a_plus_1, close_enough ) for: { 1, 2, 3 } elements are { 2, 3, 4 }
3404 # Type conversions of RangeEquals and similar
3405 ok {test-number} - vector_a, UnorderedRangeEquals( array_a_plus_1, close_enough ) for: { 1, 2, 3 } unordered elements are { 2, 3, 4 }
3406 # Unexpected exceptions can be translated
3407 not ok {test-number} - unexpected exception with message: '3.14000000000000012'
3408 # Upcasting special member functions
3409 ok {test-number} - bptr->i == 3 for: 3 == 3
3410 # Upcasting special member functions
3411 ok {test-number} - bptr->i == 3 for: 3 == 3
3412 # Usage of AllMatch range matcher
3413 ok {test-number} - data, AllMatch(SizeIs(5)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } all match has size == 5
3414 # Usage of AllMatch range matcher
3415 ok {test-number} - data, !AllMatch(Contains(0) && Contains(1)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } not all match ( contains element 0 and contains element 1 )
3416 # Usage of AllMatch range matcher
3417 ok {test-number} - needs_adl, AllMatch( Predicate<int>( []( int elem ) { return elem < 6; } ) ) for: { 1, 2, 3, 4, 5 } all match matches undescribed predicate
3418 # Usage of AllMatch range matcher
3419 ok {test-number} - mocked, allMatch for: { 1, 2, 3, 4, 5 } all match matches undescribed predicate
3420 # Usage of AllMatch range matcher
3421 ok {test-number} - mocked.m_derefed[0] for: true
3422 # Usage of AllMatch range matcher
3423 ok {test-number} - mocked.m_derefed[1] for: true
3424 # Usage of AllMatch range matcher
3425 ok {test-number} - mocked.m_derefed[2] for: true
3426 # Usage of AllMatch range matcher
3427 ok {test-number} - mocked.m_derefed[3] for: true
3428 # Usage of AllMatch range matcher
3429 ok {test-number} - mocked.m_derefed[4] for: true
3430 # Usage of AllMatch range matcher
3431 ok {test-number} - mocked, !allMatch for: { 1, 2, 3, 4, 5 } not all match matches undescribed predicate
3432 # Usage of AllMatch range matcher
3433 ok {test-number} - mocked.m_derefed[0] for: true
3434 # Usage of AllMatch range matcher
3435 ok {test-number} - mocked.m_derefed[1] for: true
3436 # Usage of AllMatch range matcher
3437 ok {test-number} - mocked.m_derefed[2] for: true
3438 # Usage of AllMatch range matcher
3439 ok {test-number} - !(mocked.m_derefed[3]) for: !false
3440 # Usage of AllMatch range matcher
3441 ok {test-number} - !(mocked.m_derefed[4]) for: !false
3442 # Usage of AllTrue range matcher
3443 ok {test-number} - data, AllTrue() for: { true, true, true, true, true } contains only true
3444 # Usage of AllTrue range matcher
3445 ok {test-number} - data, AllTrue() for: { } contains only true
3446 # Usage of AllTrue range matcher
3447 ok {test-number} - data, !AllTrue() for: { true, true, false, true, true } not contains only true
3448 # Usage of AllTrue range matcher
3449 ok {test-number} - data, !AllTrue() for: { false, false, false, false, false } not contains only true
3450 # Usage of AllTrue range matcher
3451 ok {test-number} - data, AllTrue() for: { true, true, true, true, true } contains only true
3452 # Usage of AllTrue range matcher
3453 ok {test-number} - data, !AllTrue() for: { true, true, false, true, true } not contains only true
3454 # Usage of AllTrue range matcher
3455 ok {test-number} - data, !AllTrue() for: { false, false, false, false, false } not contains only true
3456 # Usage of AllTrue range matcher
3457 ok {test-number} - mocked, AllTrue() for: { true, true, true, true, true } contains only true
3458 # Usage of AllTrue range matcher
3459 ok {test-number} - mocked.m_derefed[0] for: true
3460 # Usage of AllTrue range matcher
3461 ok {test-number} - mocked.m_derefed[1] for: true
3462 # Usage of AllTrue range matcher
3463 ok {test-number} - mocked.m_derefed[2] for: true
3464 # Usage of AllTrue range matcher
3465 ok {test-number} - mocked.m_derefed[3] for: true
3466 # Usage of AllTrue range matcher
3467 ok {test-number} - mocked.m_derefed[4] for: true
3468 # Usage of AllTrue range matcher
3469 ok {test-number} - mocked, !AllTrue() for: { true, true, false, true, true } not contains only true
3470 # Usage of AllTrue range matcher
3471 ok {test-number} - mocked.m_derefed[0] for: true
3472 # Usage of AllTrue range matcher
3473 ok {test-number} - mocked.m_derefed[1] for: true
3474 # Usage of AllTrue range matcher
3475 ok {test-number} - mocked.m_derefed[2] for: true
3476 # Usage of AllTrue range matcher
3477 ok {test-number} - !(mocked.m_derefed[3]) for: !false
3478 # Usage of AllTrue range matcher
3479 ok {test-number} - !(mocked.m_derefed[4]) for: !false
3480 # Usage of AnyMatch range matcher
3481 ok {test-number} - data, AnyMatch(SizeIs(5)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } any match has size == 5
3482 # Usage of AnyMatch range matcher
3483 ok {test-number} - data, !AnyMatch(Contains(0) && Contains(10)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } not any match ( contains element 0 and contains element 10 )
3484 # Usage of AnyMatch range matcher
3485 ok {test-number} - needs_adl, AnyMatch( Predicate<int>( []( int elem ) { return elem < 3; } ) ) for: { 1, 2, 3, 4, 5 } any match matches undescribed predicate
3486 # Usage of AnyMatch range matcher
3487 ok {test-number} - mocked, !anyMatch for: { 1, 2, 3, 4, 5 } not any match matches undescribed predicate
3488 # Usage of AnyMatch range matcher
3489 ok {test-number} - mocked.m_derefed[0] for: true
3490 # Usage of AnyMatch range matcher
3491 ok {test-number} - mocked.m_derefed[1] for: true
3492 # Usage of AnyMatch range matcher
3493 ok {test-number} - mocked.m_derefed[2] for: true
3494 # Usage of AnyMatch range matcher
3495 ok {test-number} - mocked.m_derefed[3] for: true
3496 # Usage of AnyMatch range matcher
3497 ok {test-number} - mocked.m_derefed[4] for: true
3498 # Usage of AnyMatch range matcher
3499 ok {test-number} - mocked, anyMatch for: { 1, 2, 3, 4, 5 } any match matches undescribed predicate
3500 # Usage of AnyMatch range matcher
3501 ok {test-number} - mocked.m_derefed[0] for: true
3502 # Usage of AnyMatch range matcher
3503 ok {test-number} - !(mocked.m_derefed[1]) for: !false
3504 # Usage of AnyMatch range matcher
3505 ok {test-number} - !(mocked.m_derefed[2]) for: !false
3506 # Usage of AnyMatch range matcher
3507 ok {test-number} - !(mocked.m_derefed[3]) for: !false
3508 # Usage of AnyMatch range matcher
3509 ok {test-number} - !(mocked.m_derefed[4]) for: !false
3510 # Usage of AnyTrue range matcher
3511 ok {test-number} - data, AnyTrue() for: { true, true, true, true, true } contains at least one true
3512 # Usage of AnyTrue range matcher
3513 ok {test-number} - data, !AnyTrue() for: { } not contains at least one true
3514 # Usage of AnyTrue range matcher
3515 ok {test-number} - data, AnyTrue() for: { false, false, true, false, false } contains at least one true
3516 # Usage of AnyTrue range matcher
3517 ok {test-number} - data, !AnyTrue() for: { false, false, false, false, false } not contains at least one true
3518 # Usage of AnyTrue range matcher
3519 ok {test-number} - data, AnyTrue() for: { true, true, true, true, true } contains at least one true
3520 # Usage of AnyTrue range matcher
3521 ok {test-number} - data, AnyTrue() for: { false, false, true, false, false } contains at least one true
3522 # Usage of AnyTrue range matcher
3523 ok {test-number} - data, !AnyTrue() for: { false, false, false, false, false } not contains at least one true
3524 # Usage of AnyTrue range matcher
3525 ok {test-number} - mocked, AnyTrue() for: { false, false, false, false, true } contains at least one true
3526 # Usage of AnyTrue range matcher
3527 ok {test-number} - mocked.m_derefed[0] for: true
3528 # Usage of AnyTrue range matcher
3529 ok {test-number} - mocked.m_derefed[1] for: true
3530 # Usage of AnyTrue range matcher
3531 ok {test-number} - mocked.m_derefed[2] for: true
3532 # Usage of AnyTrue range matcher
3533 ok {test-number} - mocked.m_derefed[3] for: true
3534 # Usage of AnyTrue range matcher
3535 ok {test-number} - mocked.m_derefed[4] for: true
3536 # Usage of AnyTrue range matcher
3537 ok {test-number} - mocked, AnyTrue() for: { false, false, true, true, true } contains at least one true
3538 # Usage of AnyTrue range matcher
3539 ok {test-number} - mocked.m_derefed[0] for: true
3540 # Usage of AnyTrue range matcher
3541 ok {test-number} - mocked.m_derefed[1] for: true
3542 # Usage of AnyTrue range matcher
3543 ok {test-number} - mocked.m_derefed[2] for: true
3544 # Usage of AnyTrue range matcher
3545 ok {test-number} - !(mocked.m_derefed[3]) for: !false
3546 # Usage of AnyTrue range matcher
3547 ok {test-number} - !(mocked.m_derefed[4]) for: !false
3548 # Usage of NoneMatch range matcher
3549 ok {test-number} - data, NoneMatch(SizeIs(6)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } none match has size == 6
3550 # Usage of NoneMatch range matcher
3551 ok {test-number} - data, !NoneMatch(Contains(0) && Contains(1)) for: { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0 }, { 1, 0, 0, -1, 5 } } not none match ( contains element 0 and contains element 1 )
3552 # Usage of NoneMatch range matcher
3553 ok {test-number} - needs_adl, NoneMatch( Predicate<int>( []( int elem ) { return elem > 6; } ) ) for: { 1, 2, 3, 4, 5 } none match matches undescribed predicate
3554 # Usage of NoneMatch range matcher
3555 ok {test-number} - mocked, noneMatch for: { 1, 2, 3, 4, 5 } none match matches undescribed predicate
3556 # Usage of NoneMatch range matcher
3557 ok {test-number} - mocked.m_derefed[0] for: true
3558 # Usage of NoneMatch range matcher
3559 ok {test-number} - mocked.m_derefed[1] for: true
3560 # Usage of NoneMatch range matcher
3561 ok {test-number} - mocked.m_derefed[2] for: true
3562 # Usage of NoneMatch range matcher
3563 ok {test-number} - mocked.m_derefed[3] for: true
3564 # Usage of NoneMatch range matcher
3565 ok {test-number} - mocked.m_derefed[4] for: true
3566 # Usage of NoneMatch range matcher
3567 ok {test-number} - mocked, !noneMatch for: { 1, 2, 3, 4, 5 } not none match matches undescribed predicate
3568 # Usage of NoneMatch range matcher
3569 ok {test-number} - mocked.m_derefed[0] for: true
3570 # Usage of NoneMatch range matcher
3571 ok {test-number} - !(mocked.m_derefed[1]) for: !false
3572 # Usage of NoneMatch range matcher
3573 ok {test-number} - !(mocked.m_derefed[2]) for: !false
3574 # Usage of NoneMatch range matcher
3575 ok {test-number} - !(mocked.m_derefed[3]) for: !false
3576 # Usage of NoneMatch range matcher
3577 ok {test-number} - !(mocked.m_derefed[4]) for: !false
3578 # Usage of NoneTrue range matcher
3579 ok {test-number} - data, !NoneTrue() for: { true, true, true, true, true } not contains no true
3580 # Usage of NoneTrue range matcher
3581 ok {test-number} - data, NoneTrue() for: { } contains no true
3582 # Usage of NoneTrue range matcher
3583 ok {test-number} - data, !NoneTrue() for: { false, false, true, false, false } not contains no true
3584 # Usage of NoneTrue range matcher
3585 ok {test-number} - data, NoneTrue() for: { false, false, false, false, false } contains no true
3586 # Usage of NoneTrue range matcher
3587 ok {test-number} - data, !NoneTrue() for: { true, true, true, true, true } not contains no true
3588 # Usage of NoneTrue range matcher
3589 ok {test-number} - data, !NoneTrue() for: { false, false, true, false, false } not contains no true
3590 # Usage of NoneTrue range matcher
3591 ok {test-number} - data, NoneTrue() for: { false, false, false, false, false } contains no true
3592 # Usage of NoneTrue range matcher
3593 ok {test-number} - mocked, NoneTrue() for: { false, false, false, false, false } contains no true
3594 # Usage of NoneTrue range matcher
3595 ok {test-number} - mocked.m_derefed[0] for: true
3596 # Usage of NoneTrue range matcher
3597 ok {test-number} - mocked.m_derefed[1] for: true
3598 # Usage of NoneTrue range matcher
3599 ok {test-number} - mocked.m_derefed[2] for: true
3600 # Usage of NoneTrue range matcher
3601 ok {test-number} - mocked.m_derefed[3] for: true
3602 # Usage of NoneTrue range matcher
3603 ok {test-number} - mocked.m_derefed[4] for: true
3604 # Usage of NoneTrue range matcher
3605 ok {test-number} - mocked, !NoneTrue() for: { false, false, true, true, true } not contains no true
3606 # Usage of NoneTrue range matcher
3607 ok {test-number} - mocked.m_derefed[0] for: true
3608 # Usage of NoneTrue range matcher
3609 ok {test-number} - mocked.m_derefed[1] for: true
3610 # Usage of NoneTrue range matcher
3611 ok {test-number} - mocked.m_derefed[2] for: true
3612 # Usage of NoneTrue range matcher
3613 ok {test-number} - !(mocked.m_derefed[3]) for: !false
3614 # Usage of NoneTrue range matcher
3615 ok {test-number} - !(mocked.m_derefed[4]) for: !false
3616 # Usage of RangeEquals range matcher
3617 ok {test-number} - empty_vector, RangeEquals( empty_vector ) for: { } elements are { }
3618 # Usage of RangeEquals range matcher
3619 ok {test-number} - empty_vector, !RangeEquals( non_empty_vector ) for: { } not elements are { 1 }
3620 # Usage of RangeEquals range matcher
3621 ok {test-number} - non_empty_vector, !RangeEquals( empty_vector ) for: { 1 } not elements are { }
3622 # Usage of RangeEquals range matcher
3623 ok {test-number} - non_empty_array, RangeEquals( non_empty_array ) for: { 1 } elements are { 1 }
3624 # Usage of RangeEquals range matcher
3625 ok {test-number} - array_a, RangeEquals( array_a ) for: { 1, 2, 3 } elements are { 1, 2, 3 }
3626 # Usage of RangeEquals range matcher
3627 ok {test-number} - array_a, !RangeEquals( array_b ) for: { 1, 2, 3 } not elements are { 2, 2, 3 }
3628 # Usage of RangeEquals range matcher
3629 ok {test-number} - array_a, !RangeEquals( array_c ) for: { 1, 2, 3 } not elements are { 1, 2, 2 }
3630 # Usage of RangeEquals range matcher
3631 ok {test-number} - vector_a, !RangeEquals( vector_b ) for: { 1, 2, 3 } not elements are { 1, 2, 3, 4 }
3632 # Usage of RangeEquals range matcher
3633 ok {test-number} - vector_a, RangeEquals( vector_a_plus_1, close_enough ) for: { 1, 2, 3 } elements are { 2, 3, 4 }
3634 # Usage of RangeEquals range matcher
3635 ok {test-number} - vector_a, !RangeEquals( vector_b, close_enough ) for: { 1, 2, 3 } not elements are { 3, 3, 4 }
3636 # Usage of RangeEquals range matcher
3637 ok {test-number} - needs_adl1, RangeEquals( needs_adl2 ) for: { 1, 2, 3, 4, 5 } elements are { 1, 2, 3, 4, 5 }
3638 # Usage of RangeEquals range matcher
3639 ok {test-number} - needs_adl1, RangeEquals( needs_adl3, []( int l, int r ) { return l + 1 == r; } ) for: { 1, 2, 3, 4, 5 } elements are { 2, 3, 4, 5, 6 }
3640 # Usage of RangeEquals range matcher
3641 ok {test-number} - array_a, RangeEquals( { 1, 2, 3 } ) for: { 1, 2, 3 } elements are { 1, 2, 3 }
3642 # Usage of RangeEquals range matcher
3643 ok {test-number} - array_a, RangeEquals( { 2, 4, 6 }, []( int l, int r ) { return l * 2 == r; } ) for: { 1, 2, 3 } elements are { 2, 4, 6 }
3644 # Usage of RangeEquals range matcher
3645 ok {test-number} - mocked1, !RangeEquals( arr ) for: { 1, 2, 3, 4 } not elements are { 1, 2, 4, 4 }
3646 # Usage of RangeEquals range matcher
3647 ok {test-number} - mocked1.m_derefed[0] for: true
3648 # Usage of RangeEquals range matcher
3649 ok {test-number} - mocked1.m_derefed[1] for: true
3650 # Usage of RangeEquals range matcher
3651 ok {test-number} - mocked1.m_derefed[2] for: true
3652 # Usage of RangeEquals range matcher
3653 ok {test-number} - !(mocked1.m_derefed[3]) for: !false
3654 # Usage of RangeEquals range matcher
3655 ok {test-number} - mocked1, RangeEquals( arr ) for: { 1, 2, 3, 4 } elements are { 1, 2, 3, 4 }
3656 # Usage of RangeEquals range matcher
3657 ok {test-number} - mocked1.m_derefed[0] for: true
3658 # Usage of RangeEquals range matcher
3659 ok {test-number} - mocked1.m_derefed[1] for: true
3660 # Usage of RangeEquals range matcher
3661 ok {test-number} - mocked1.m_derefed[2] for: true
3662 # Usage of RangeEquals range matcher
3663 ok {test-number} - mocked1.m_derefed[3] for: true
3664 # Usage of UnorderedRangeEquals range matcher
3665 ok {test-number} - empty_vector, UnorderedRangeEquals( empty_vector ) for: { } unordered elements are { }
3666 # Usage of UnorderedRangeEquals range matcher
3667 ok {test-number} - empty_vector, !UnorderedRangeEquals( non_empty_vector ) for: { } not unordered elements are { 1 }
3668 # Usage of UnorderedRangeEquals range matcher
3669 ok {test-number} - non_empty_vector, !UnorderedRangeEquals( empty_vector ) for: { 1 } not unordered elements are { }
3670 # Usage of UnorderedRangeEquals range matcher
3671 ok {test-number} - non_empty_array, UnorderedRangeEquals( non_empty_array ) for: { 1 } unordered elements are { 1 }
3672 # Usage of UnorderedRangeEquals range matcher
3673 ok {test-number} - array_a, UnorderedRangeEquals( array_a ) for: { 1, 2, 3 } unordered elements are { 1, 2, 3 }
3674 # Usage of UnorderedRangeEquals range matcher
3675 ok {test-number} - array_a, !UnorderedRangeEquals( array_b ) for: { 1, 2, 3 } not unordered elements are { 2, 2, 3 }
3676 # Usage of UnorderedRangeEquals range matcher
3677 ok {test-number} - vector_a, !UnorderedRangeEquals( vector_b ) for: { 1, 2, 3 } not unordered elements are { 1, 2, 3, 4 }
3678 # Usage of UnorderedRangeEquals range matcher
3679 ok {test-number} - vector_a, UnorderedRangeEquals( vector_a_plus_1, close_enough ) for: { 1, 10, 20 } unordered elements are { 11, 21, 2 }
3680 # Usage of UnorderedRangeEquals range matcher
3681 ok {test-number} - vector_a, !UnorderedRangeEquals( vector_b, close_enough ) for: { 1, 10, 21 } not unordered elements are { 11, 21, 3 }
3682 # Usage of UnorderedRangeEquals range matcher
3683 ok {test-number} - needs_adl1, UnorderedRangeEquals( needs_adl2 ) for: { 1, 2, 3, 4, 5 } unordered elements are { 1, 2, 3, 4, 5 }
3684 # Usage of UnorderedRangeEquals range matcher
3685 ok {test-number} - array_a, UnorderedRangeEquals( { 10, 20, 1 } ) for: { 1, 10, 20 } unordered elements are { 10, 20, 1 }
3686 # Usage of UnorderedRangeEquals range matcher
3687 ok {test-number} - array_a, UnorderedRangeEquals( { 11, 21, 2 }, []( int l, int r ) { return std::abs( l - r ) <= 1; } ) for: { 1, 10, 20 } unordered elements are { 11, 21, 2 }
3688 # Usage of the SizeIs range matcher
3689 ok {test-number} - empty_vec, SizeIs(0) for: { } has size == 0
3690 # Usage of the SizeIs range matcher
3691 ok {test-number} - empty_vec, !SizeIs(2) for: { } not has size == 2
3692 # Usage of the SizeIs range matcher
3693 ok {test-number} - empty_vec, SizeIs(Lt(2)) for: { } size matches is less than 2
3694 # Usage of the SizeIs range matcher
3695 ok {test-number} - arr, SizeIs(2) for: { 0, 0 } has size == 2
3696 # Usage of the SizeIs range matcher
3697 ok {test-number} - arr, SizeIs( Lt(3)) for: { 0, 0 } size matches is less than 3
3698 # Usage of the SizeIs range matcher
3699 ok {test-number} - arr, !SizeIs(!Lt(3)) for: { 0, 0 } not size matches not is less than 3
3700 # Usage of the SizeIs range matcher
3701 ok {test-number} - map, SizeIs(3) for: { {?}, {?}, {?} } has size == 3
3702 # Usage of the SizeIs range matcher
3703 ok {test-number} - unrelated::ADL_size{}, SizeIs(12) for: {?} has size == 12
3704 # Usage of the SizeIs range matcher
3705 ok {test-number} - has_size{}, SizeIs(13) for: {?} has size == 13
3706 # Use a custom approx
3707 ok {test-number} - d == approx( 1.23 ) for: 1.22999999999999998 == Approx( 1.22999999999999998 )
3708 # Use a custom approx
3709 ok {test-number} - d == approx( 1.22 ) for: 1.22999999999999998 == Approx( 1.21999999999999997 )
3710 # Use a custom approx
3711 ok {test-number} - d == approx( 1.24 ) for: 1.22999999999999998 == Approx( 1.23999999999999999 )
3712 # Use a custom approx
3713 ok {test-number} - d != approx( 1.25 ) for: 1.22999999999999998 != Approx( 1.25 )
3714 # Use a custom approx
3715 ok {test-number} - approx( d ) == 1.23 for: Approx( 1.22999999999999998 ) == 1.22999999999999998
3716 # Use a custom approx
3717 ok {test-number} - approx( d ) == 1.22 for: Approx( 1.22999999999999998 ) == 1.21999999999999997
3718 # Use a custom approx
3719 ok {test-number} - approx( d ) == 1.24 for: Approx( 1.22999999999999998 ) == 1.23999999999999999
3720 # Use a custom approx
3721 ok {test-number} - approx( d ) != 1.25 for: Approx( 1.22999999999999998 ) != 1.25
3722 # Variadic macros
3723 ok {test-number} - with 1 message: 'no assertions'
3724 # Vector Approx matcher
3725 ok {test-number} - empty, Approx( empty ) for: { } is approx: { }
3726 # Vector Approx matcher
3727 ok {test-number} - v1, Approx( v1 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
3728 # Vector Approx matcher
3729 ok {test-number} - v1, Approx<double>( { 1., 2., 3. } ) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
3730 # Vector Approx matcher
3731 ok {test-number} - v1, !Approx( temp ) for: { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
3732 # Vector Approx matcher
3733 ok {test-number} - v1, !Approx( v2 ) for: { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
3734 # Vector Approx matcher
3735 ok {test-number} - v1, Approx( v2 ).margin( 0.5 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
3736 # Vector Approx matcher
3737 ok {test-number} - v1, Approx( v2 ).epsilon( 0.5 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
3738 # Vector Approx matcher
3739 ok {test-number} - v1, Approx( v2 ).epsilon( 0.1 ).scale( 500 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
3740 # Vector Approx matcher -- failing
3741 not ok {test-number} - empty, Approx( t1 ) for: { } is approx: { 1.0, 2.0 }
3742 # Vector Approx matcher -- failing
3743 not ok {test-number} - v1, Approx( v2 ) for: { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
3744 # Vector matchers
3745 ok {test-number} - v, VectorContains( 1 ) for: { 1, 2, 3 } Contains: 1
3746 # Vector matchers
3747 ok {test-number} - v, VectorContains( 2 ) for: { 1, 2, 3 } Contains: 2
3748 # Vector matchers
3749 ok {test-number} - v5, ( VectorContains<int, CustomAllocator<int>>( 2 ) ) for: { 1, 2, 3 } Contains: 2
3750 # Vector matchers
3751 ok {test-number} - v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2 }
3752 # Vector matchers
3753 ok {test-number} - v, Contains<int>( { 1, 2 } ) for: { 1, 2, 3 } Contains: { 1, 2 }
3754 # Vector matchers
3755 ok {test-number} - v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Contains: { 1, 2 }
3756 # Vector matchers
3757 ok {test-number} - v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2, 3 }
3758 # Vector matchers
3759 ok {test-number} - v, Contains( empty ) for: { 1, 2, 3 } Contains: { }
3760 # Vector matchers
3761 ok {test-number} - empty, Contains( empty ) for: { } Contains: { }
3762 # Vector matchers
3763 ok {test-number} - v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Contains: { 1, 2, 3 }
3764 # Vector matchers
3765 ok {test-number} - v5, Contains( v6 ) for: { 1, 2, 3 } Contains: { 1, 2 }
3766 # Vector matchers
3767 ok {test-number} - v, VectorContains( 1 ) && VectorContains( 2 ) for: { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
3768 # Vector matchers
3769 ok {test-number} - v, Equals( v ) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
3770 # Vector matchers
3771 ok {test-number} - empty, Equals( empty ) for: { } Equals: { }
3772 # Vector matchers
3773 ok {test-number} - v, Equals<int>( { 1, 2, 3 } ) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
3774 # Vector matchers
3775 ok {test-number} - v, Equals( v2 ) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
3776 # Vector matchers
3777 ok {test-number} - v5, ( Equals<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
3778 # Vector matchers
3779 ok {test-number} - v5, Equals( v6 ) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
3780 # Vector matchers
3781 ok {test-number} - v, UnorderedEquals( v ) for: { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
3782 # Vector matchers
3783 ok {test-number} - v, UnorderedEquals<int>( { 3, 2, 1 } ) for: { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
3784 # Vector matchers
3785 ok {test-number} - empty, UnorderedEquals( empty ) for: { } UnorderedEquals: { }
3786 # Vector matchers
3787 ok {test-number} - permuted, UnorderedEquals( v ) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
3788 # Vector matchers
3789 ok {test-number} - permuted, UnorderedEquals( v ) for: { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
3790 # Vector matchers
3791 ok {test-number} - v5, ( UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>( permuted ) ) for: { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
3792 # Vector matchers
3793 ok {test-number} - v5_permuted, UnorderedEquals( v5 ) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
3794 # Vector matchers that fail
3795 not ok {test-number} - v, VectorContains( -1 ) for: { 1, 2, 3 } Contains: -1
3796 # Vector matchers that fail
3797 not ok {test-number} - empty, VectorContains( 1 ) for: { } Contains: 1
3798 # Vector matchers that fail
3799 not ok {test-number} - empty, Contains( v ) for: { } Contains: { 1, 2, 3 }
3800 # Vector matchers that fail
3801 not ok {test-number} - v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2, 4 }
3802 # Vector matchers that fail
3803 not ok {test-number} - v, Equals( v2 ) for: { 1, 2, 3 } Equals: { 1, 2 }
3804 # Vector matchers that fail
3805 not ok {test-number} - v2, Equals( v ) for: { 1, 2 } Equals: { 1, 2, 3 }
3806 # Vector matchers that fail
3807 not ok {test-number} - empty, Equals( v ) for: { } Equals: { 1, 2, 3 }
3808 # Vector matchers that fail
3809 not ok {test-number} - v, Equals( empty ) for: { 1, 2, 3 } Equals: { }
3810 # Vector matchers that fail
3811 not ok {test-number} - v, UnorderedEquals( empty ) for: { 1, 2, 3 } UnorderedEquals: { }
3812 # Vector matchers that fail
3813 not ok {test-number} - empty, UnorderedEquals( v ) for: { } UnorderedEquals: { 1, 2, 3 }
3814 # Vector matchers that fail
3815 not ok {test-number} - permuted, UnorderedEquals( v ) for: { 1, 3 } UnorderedEquals: { 1, 2, 3 }
3816 # Vector matchers that fail
3817 not ok {test-number} - permuted, UnorderedEquals( v ) for: { 3, 1 } UnorderedEquals: { 1, 2, 3 }
3818 # When checked exceptions are thrown they can be expected or unexpected
3819 ok {test-number} - thisThrows(), std::domain_error
3820 # When checked exceptions are thrown they can be expected or unexpected
3821 ok {test-number} - thisDoesntThrow()
3822 # When checked exceptions are thrown they can be expected or unexpected
3823 ok {test-number} - thisThrows()
3824 # When unchecked exceptions are thrown directly they are always failures
3825 not ok {test-number} - unexpected exception with message: 'unexpected exception'
3826 # When unchecked exceptions are thrown during a CHECK the test should continue
3827 not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows() == 0
3828 # When unchecked exceptions are thrown during a REQUIRE the test should abort fail
3829 not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows() == 0
3830 # When unchecked exceptions are thrown from functions they are always failures
3831 not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows() == 0
3832 # When unchecked exceptions are thrown from sections they are always failures
3833 not ok {test-number} - unexpected exception with message: 'unexpected exception'; expression was: {Unknown expression after the reported line}
3834 # X/level/0/a
3835 ok {test-number} -
3836 # X/level/0/b
3837 ok {test-number} -
3838 # X/level/1/a
3839 ok {test-number} -
3840 # X/level/1/b
3841 ok {test-number} -
3842 # XmlEncode
3843 ok {test-number} - encode( "normal string" ) == "normal string" for: "normal string" == "normal string"
3844 # XmlEncode
3845 ok {test-number} - encode( "" ) == "" for: "" == ""
3846 # XmlEncode
3847 ok {test-number} - encode( "smith & jones" ) == "smith &amp; jones" for: "smith &amp; jones" == "smith &amp; jones"
3848 # XmlEncode
3849 ok {test-number} - encode( "smith < jones" ) == "smith &lt; jones" for: "smith &lt; jones" == "smith &lt; jones"
3850 # XmlEncode
3851 ok {test-number} - encode( "smith > jones" ) == "smith > jones" for: "smith > jones" == "smith > jones"
3852 # XmlEncode
3853 ok {test-number} - encode( "smith ]]> jones" ) == "smith ]]&gt; jones" for: "smith ]]&gt; jones" == "smith ]]&gt; jones"
3854 # XmlEncode
3855 ok {test-number} - encode( stringWithQuotes ) == stringWithQuotes for: "don't "quote" me on that" == "don't "quote" me on that"
3856 # XmlEncode
3857 ok {test-number} - encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" for: "don't &quot;quote&quot; me on that" == "don't &quot;quote&quot; me on that"
3858 # XmlEncode
3859 ok {test-number} - encode( "[\x01]" ) == "[\\x01]" for: "[\x01]" == "[\x01]"
3860 # XmlEncode
3861 ok {test-number} - encode( "[\x7F]" ) == "[\\x7F]" for: "[\x7F]" == "[\x7F]"
3862 # XmlWriter writes boolean attributes as true/false
3863 ok {test-number} - stream.str(), ContainsSubstring(R"(attr1="true")") && ContainsSubstring(R"(attr2="false")") for: "<?xml version="1.0" encoding="UTF-8"?> <Element1 attr1="true" attr2="false"/> " ( contains: "attr1="true"" and contains: "attr2="false"" )
3864 # a succeeding test can still be skipped
3865 ok {test-number} -
3866 # a succeeding test can still be skipped
3867 ok {test-number} - # SKIP
3868 # analyse no analysis
3869 ok {test-number} - analysis.mean.point.count() == 23 for: 23.0 == 23
3870 # analyse no analysis
3871 ok {test-number} - analysis.mean.lower_bound.count() == 23 for: 23.0 == 23
3872 # analyse no analysis
3873 ok {test-number} - analysis.mean.upper_bound.count() == 23 for: 23.0 == 23
3874 # analyse no analysis
3875 ok {test-number} - analysis.standard_deviation.point.count() == 0 for: 0.0 == 0
3876 # analyse no analysis
3877 ok {test-number} - analysis.standard_deviation.lower_bound.count() == 0 for: 0.0 == 0
3878 # analyse no analysis
3879 ok {test-number} - analysis.standard_deviation.upper_bound.count() == 0 for: 0.0 == 0
3880 # analyse no analysis
3881 ok {test-number} - analysis.outliers.total() == 0 for: 0 == 0
3882 # analyse no analysis
3883 ok {test-number} - analysis.outliers.low_mild == 0 for: 0 == 0
3884 # analyse no analysis
3885 ok {test-number} - analysis.outliers.low_severe == 0 for: 0 == 0
3886 # analyse no analysis
3887 ok {test-number} - analysis.outliers.high_mild == 0 for: 0 == 0
3888 # analyse no analysis
3889 ok {test-number} - analysis.outliers.high_severe == 0 for: 0 == 0
3890 # analyse no analysis
3891 ok {test-number} - analysis.outliers.samples_seen == 0 for: 0 == 0
3892 # analyse no analysis
3893 ok {test-number} - analysis.outlier_variance == 0 for: 0.0 == 0
3894 # array<int, N> -> toString
3895 ok {test-number} - Catch::Detail::stringify( empty ) == "{ }" for: "{ }" == "{ }"
3896 # array<int, N> -> toString
3897 ok {test-number} - Catch::Detail::stringify( oneValue ) == "{ 42 }" for: "{ 42 }" == "{ 42 }"
3898 # array<int, N> -> toString
3899 ok {test-number} - Catch::Detail::stringify( twoValues ) == "{ 42, 250 }" for: "{ 42, 250 }" == "{ 42, 250 }"
3900 # benchmark function call
3901 ok {test-number} - model.started == 1 for: 1 == 1
3902 # benchmark function call
3903 ok {test-number} - model.finished == 0 for: 0 == 0
3904 # benchmark function call
3905 ok {test-number} - model.started == 1 for: 1 == 1
3906 # benchmark function call
3907 ok {test-number} - model.finished == 1 for: 1 == 1
3908 # benchmark function call
3909 ok {test-number} - called == 1 for: 1 == 1
3910 # benchmark function call
3911 ok {test-number} - model.started == 0 for: 0 == 0
3912 # benchmark function call
3913 ok {test-number} - model.finished == 0 for: 0 == 0
3914 # benchmark function call
3915 ok {test-number} - model.started == 0 for: 0 == 0
3916 # benchmark function call
3917 ok {test-number} - model.finished == 0 for: 0 == 0
3918 # benchmark function call
3919 ok {test-number} - called == 1 for: 1 == 1
3920 # boolean member
3921 ok {test-number} - obj.prop != 0 for: 0x<hex digits> != 0
3922 # checkedElse
3923 ok {test-number} - flag for: true
3924 # checkedElse
3925 ok {test-number} - testCheckedElse( true ) for: true
3926 # checkedElse, failing
3927 ok {test-number} - flag for: false # TODO
3928 # checkedElse, failing
3929 not ok {test-number} - testCheckedElse( false ) for: false
3930 # checkedIf
3931 ok {test-number} - flag for: true
3932 # checkedIf
3933 ok {test-number} - testCheckedIf( true ) for: true
3934 # checkedIf, failing
3935 ok {test-number} - flag for: false # TODO
3936 # checkedIf, failing
3937 not ok {test-number} - testCheckedIf( false ) for: false
3938 # classify_outliers
3939 ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
3940 # classify_outliers
3941 ok {test-number} - o.low_severe == los for: 0 == 0
3942 # classify_outliers
3943 ok {test-number} - o.low_mild == lom for: 0 == 0
3944 # classify_outliers
3945 ok {test-number} - o.high_mild == him for: 0 == 0
3946 # classify_outliers
3947 ok {test-number} - o.high_severe == his for: 0 == 0
3948 # classify_outliers
3949 ok {test-number} - o.total() == los + lom + him + his for: 0 == 0
3950 # classify_outliers
3951 ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
3952 # classify_outliers
3953 ok {test-number} - o.low_severe == los for: 1 == 1
3954 # classify_outliers
3955 ok {test-number} - o.low_mild == lom for: 0 == 0
3956 # classify_outliers
3957 ok {test-number} - o.high_mild == him for: 0 == 0
3958 # classify_outliers
3959 ok {test-number} - o.high_severe == his for: 0 == 0
3960 # classify_outliers
3961 ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
3962 # classify_outliers
3963 ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
3964 # classify_outliers
3965 ok {test-number} - o.low_severe == los for: 0 == 0
3966 # classify_outliers
3967 ok {test-number} - o.low_mild == lom for: 1 == 1
3968 # classify_outliers
3969 ok {test-number} - o.high_mild == him for: 0 == 0
3970 # classify_outliers
3971 ok {test-number} - o.high_severe == his for: 0 == 0
3972 # classify_outliers
3973 ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
3974 # classify_outliers
3975 ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
3976 # classify_outliers
3977 ok {test-number} - o.low_severe == los for: 0 == 0
3978 # classify_outliers
3979 ok {test-number} - o.low_mild == lom for: 0 == 0
3980 # classify_outliers
3981 ok {test-number} - o.high_mild == him for: 1 == 1
3982 # classify_outliers
3983 ok {test-number} - o.high_severe == his for: 0 == 0
3984 # classify_outliers
3985 ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
3986 # classify_outliers
3987 ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
3988 # classify_outliers
3989 ok {test-number} - o.low_severe == los for: 0 == 0
3990 # classify_outliers
3991 ok {test-number} - o.low_mild == lom for: 0 == 0
3992 # classify_outliers
3993 ok {test-number} - o.high_mild == him for: 0 == 0
3994 # classify_outliers
3995 ok {test-number} - o.high_severe == his for: 1 == 1
3996 # classify_outliers
3997 ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
3998 # classify_outliers
3999 ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
4000 # classify_outliers
4001 ok {test-number} - o.low_severe == los for: 1 == 1
4002 # classify_outliers
4003 ok {test-number} - o.low_mild == lom for: 0 == 0
4004 # classify_outliers
4005 ok {test-number} - o.high_mild == him for: 1 == 1
4006 # classify_outliers
4007 ok {test-number} - o.high_severe == his for: 0 == 0
4008 # classify_outliers
4009 ok {test-number} - o.total() == los + lom + him + his for: 2 == 2
4010 # comparisons between const int variables
4011 ok {test-number} - unsigned_char_var == 1 for: 1 == 1
4012 # comparisons between const int variables
4013 ok {test-number} - unsigned_short_var == 1 for: 1 == 1
4014 # comparisons between const int variables
4015 ok {test-number} - unsigned_int_var == 1 for: 1 == 1
4016 # comparisons between const int variables
4017 ok {test-number} - unsigned_long_var == 1 for: 1 == 1
4018 # comparisons between int variables
4019 ok {test-number} - long_var == unsigned_char_var for: 1 == 1
4020 # comparisons between int variables
4021 ok {test-number} - long_var == unsigned_short_var for: 1 == 1
4022 # comparisons between int variables
4023 ok {test-number} - long_var == unsigned_int_var for: 1 == 1
4024 # comparisons between int variables
4025 ok {test-number} - long_var == unsigned_long_var for: 1 == 1
4026 # convertToBits
4027 ok {test-number} - convertToBits( 0.f ) == 0 for: 0 == 0
4028 # convertToBits
4029 ok {test-number} - convertToBits( -0.f ) == ( 1ULL << 31 ) for: 2147483648 (0x<hex digits>) == 2147483648 (0x<hex digits>)
4030 # convertToBits
4031 ok {test-number} - convertToBits( 0. ) == 0 for: 0 == 0
4032 # convertToBits
4033 ok {test-number} - convertToBits( -0. ) == ( 1ULL << 63 ) for: 9223372036854775808 (0x<hex digits>) == 9223372036854775808 (0x<hex digits>)
4034 # convertToBits
4035 ok {test-number} - convertToBits( std::numeric_limits<float>::denorm_min() ) == 1 for: 1 == 1
4036 # convertToBits
4037 ok {test-number} - convertToBits( std::numeric_limits<double>::denorm_min() ) == 1 for: 1 == 1
4038 # dynamic skipping works with generators
4039 ok {test-number} - # SKIP 'skipping because answer = 41'
4040 # dynamic skipping works with generators
4041 ok {test-number} -
4042 # dynamic skipping works with generators
4043 ok {test-number} - # SKIP 'skipping because answer = 43'
4044 # empty tags are not allowed
4045 ok {test-number} - Catch::TestCaseInfo("", { "test with an empty tag", "[]" }, dummySourceLineInfo)
4046 # erfc_inv
4047 ok {test-number} - erfc_inv(1.103560) == Approx(-0.09203687623843015) for: -0.09203687623843014 == Approx( -0.09203687623843015 )
4048 # erfc_inv
4049 ok {test-number} - erfc_inv(1.067400) == Approx(-0.05980291115763361) for: -0.05980291115763361 == Approx( -0.05980291115763361 )
4050 # erfc_inv
4051 ok {test-number} - erfc_inv(0.050000) == Approx(1.38590382434967796) for: 1.38590382434967774 == Approx( 1.38590382434967796 )
4052 # estimate_clock_resolution
4053 ok {test-number} - res.mean.count() == rate for: 2000.0 == 2000 (0x<hex digits>)
4054 # estimate_clock_resolution
4055 ok {test-number} - res.outliers.total() == 0 for: 0 == 0
4056 # even more nested SECTION tests
4057 ok {test-number} -
4058 # even more nested SECTION tests
4059 ok {test-number} -
4060 # even more nested SECTION tests
4061 ok {test-number} -
4062 # failed assertions before SKIP cause test case to fail
4063 not ok {test-number} - 3 == 4
4064 # failed assertions before SKIP cause test case to fail
4065 ok {test-number} - # SKIP
4066 # failing for some generator values causes entire test case to fail
4067 not ok {test-number} - explicitly
4068 # failing for some generator values causes entire test case to fail
4069 ok {test-number} - # SKIP
4070 # failing for some generator values causes entire test case to fail
4071 not ok {test-number} - explicitly
4072 # failing for some generator values causes entire test case to fail
4073 ok {test-number} - # SKIP
4074 # failing in some unskipped sections causes entire test case to fail
4075 ok {test-number} - # SKIP
4076 # failing in some unskipped sections causes entire test case to fail
4077 not ok {test-number} - explicitly
4078 loose text artifact
4079 # is_unary_function
4080 ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function_v<decltype(unary1)>'
4081 # is_unary_function
4082 ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function_v<decltype(unary2)>'
4083 # is_unary_function
4084 ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function_v<decltype(unary3)>'
4085 # is_unary_function
4086 ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function_v<decltype(unary4)>'
4087 # is_unary_function
4088 ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function_v<decltype(unary5)>'
4089 # is_unary_function
4090 ok {test-number} - with 1 message: 'Catch::Clara::Detail::is_unary_function_v<decltype(unary6)>'
4091 # is_unary_function
4092 ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function_v<decltype(binary1)>)'
4093 # is_unary_function
4094 ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function_v<decltype(binary2)>)'
4095 # is_unary_function
4096 ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function_v<decltype(nullary1)>)'
4097 # is_unary_function
4098 ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function_v<decltype(nullary2)>)'
4099 # is_unary_function
4100 ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function_v<int>)'
4101 # is_unary_function
4102 ok {test-number} - with 1 message: '!(Catch::Clara::Detail::is_unary_function_v<std::string const&>)'
4103 # just failure
4104 not ok {test-number} - explicitly with 1 message: 'Previous info should not be seen'
4105 # just failure after unscoped info
4106 not ok {test-number} - explicitly with 1 message: 'previous unscoped info SHOULD not be seen'
4107 # long long
4108 ok {test-number} - l == std::numeric_limits<long long>::max() for: 9223372036854775807 (0x<hex digits>) == 9223372036854775807 (0x<hex digits>)
4109 # looped SECTION tests
4110 not ok {test-number} - b > a for: 0 > 1
4111 # looped SECTION tests
4112 not ok {test-number} - b > a for: 1 > 1
4113 # looped SECTION tests
4114 ok {test-number} - b > a for: 2 > 1
4115 # looped SECTION tests
4116 ok {test-number} - b > a for: 3 > 1
4117 # looped SECTION tests
4118 ok {test-number} - b > a for: 4 > 1
4119 # looped SECTION tests
4120 ok {test-number} - b > a for: 5 > 1
4121 # looped SECTION tests
4122 ok {test-number} - b > a for: 6 > 1
4123 # looped SECTION tests
4124 ok {test-number} - b > a for: 7 > 1
4125 # looped SECTION tests
4126 ok {test-number} - b > a for: 8 > 1
4127 # looped SECTION tests
4128 ok {test-number} - b > a for: 9 > 1
4129 # looped tests
4130 not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[0] (1) is even'
4131 # looped tests
4132 not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[1] (1) is even'
4133 # looped tests
4134 ok {test-number} - ( fib[i] % 2 ) == 0 for: 0 == 0 with 1 message: 'Testing if fib[2] (2) is even'
4135 # looped tests
4136 not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[3] (3) is even'
4137 # looped tests
4138 not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[4] (5) is even'
4139 # looped tests
4140 ok {test-number} - ( fib[i] % 2 ) == 0 for: 0 == 0 with 1 message: 'Testing if fib[5] (8) is even'
4141 # looped tests
4142 not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[6] (13) is even'
4143 # looped tests
4144 not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[7] (21) is even'
4145 # makeStream recognizes %debug stream name
4146 ok {test-number} - Catch::makeStream( "%debug" )
4147 # make_unique reimplementation
4148 ok {test-number} - !(lval.has_moved) for: !false
4149 # make_unique reimplementation
4150 ok {test-number} - rval.has_moved for: true
4151 # make_unique reimplementation
4152 ok {test-number} - *ptr == std::tuple<int, double, int>{1, 2., 3} for: {?} == {?}
4153 # mean
4154 ok {test-number} - m == 19. for: 19.0 == 19.0
4155 # measure
4156 ok {test-number} - x == 17 for: 17 == 17
4157 # measure
4158 ok {test-number} - x == 23 for: 23 == 23
4159 # measure
4160 ok {test-number} - r.elapsed.count() == 42 for: 42 == 42
4161 # measure
4162 ok {test-number} - r.result == 23 for: 23 == 23
4163 # measure
4164 ok {test-number} - r.iterations == 1 for: 1 == 1
4165 # measure
4166 ok {test-number} - s.elapsed.count() == 69 for: 69 == 69
4167 # measure
4168 ok {test-number} - s.result == 17 for: 17 == 17
4169 # measure
4170 ok {test-number} - s.iterations == 1 for: 1 == 1
4171 # mix info, unscoped info and warning
4172 warning {test-number} - 'info' with 2 messages: 'unscoped info' and 'and warn may mix'
4173 # mix info, unscoped info and warning
4174 warning {test-number} - 'info' with 2 messages: 'unscoped info' and 'they are not cleared after warnings'
4175 # more nested SECTION tests
4176 not ok {test-number} - a == b for: 1 == 2
4177 # more nested SECTION tests
4178 ok {test-number} - a != b for: 1 != 2
4179 # more nested SECTION tests
4180 ok {test-number} - a < b for: 1 < 2
4181 # nested SECTION tests
4182 ok {test-number} - a != b for: 1 != 2
4183 # nested SECTION tests
4184 ok {test-number} - b != a for: 2 != 1
4185 # nested SECTION tests
4186 ok {test-number} - a != b for: 1 != 2
4187 a!
4188 b1!
4189 # nested sections can be skipped dynamically at runtime
4190 ok {test-number} - # SKIP
4191 !
4192 # non streamable - with conv. op
4193 ok {test-number} - s == "7" for: "7" == "7"
4194 # non-copyable objects
4195 ok {test-number} - ti == typeid(int) for: {?} == {?}
4196 # normal_quantile
4197 ok {test-number} - normal_quantile(0.551780) == Approx(0.13015979861484198) for: 0.13015979861484195 == Approx( 0.13015979861484198 )
4198 # normal_quantile
4199 ok {test-number} - normal_quantile(0.533700) == Approx(0.08457408802851875) for: 0.08457408802851875 == Approx( 0.08457408802851875 )
4200 # normal_quantile
4201 ok {test-number} - normal_quantile(0.025000) == Approx(-1.95996398454005449) for: -1.95996398454005405 == Approx( -1.95996398454005449 )
4202 # not allowed
4203 ok {test-number} -
4204 # not prints unscoped info from previous failures
4205 ok {test-number} - true with 1 message: 'this MAY be seen only for the FIRST assertion IF info is printed for passing assertions'
4206 # not prints unscoped info from previous failures
4207 ok {test-number} - true with 1 message: 'this MAY be seen only for the SECOND assertion IF info is printed for passing assertions'
4208 # not prints unscoped info from previous failures
4209 not ok {test-number} - false with 1 message: 'this SHOULD be seen'
4210 # null strings
4211 ok {test-number} - makeString( false ) != static_cast<char*>(0) for: "valid string" != {null string}
4212 # null strings
4213 ok {test-number} - makeString( true ) == static_cast<char*>(0) for: {null string} == {null string}
4214 # null_ptr
4215 ok {test-number} - ptr.get() == 0 for: 0 == 0
4216 # pair<pair<int,const char *,pair<std::string,int> > -> toString
4217 ok {test-number} - ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" for: "{ { 42, "Arthur" }, { "Ford", 24 } }" == "{ { 42, "Arthur" }, { "Ford", 24 } }"
4218 # parseEnums
4219 ok {test-number} - parseEnums( "" ), Equals( std::vector<Catch::StringRef>{} ) for: { } Equals: { }
4220 # parseEnums
4221 ok {test-number} - parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) for: { Value1 } Equals: { Value1 }
4222 # parseEnums
4223 ok {test-number} - parseEnums( "Value1" ), Equals( std::vector<Catch::StringRef>{"Value1"} ) for: { Value1 } Equals: { Value1 }
4224 # parseEnums
4225 ok {test-number} - parseEnums( "EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) for: { Value1 } Equals: { Value1 }
4226 # parseEnums
4227 ok {test-number} - parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2"} ) for: { Value1, Value2 } Equals: { Value1, Value2 }
4228 # parseEnums
4229 ok {test-number} - parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) for: { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
4230 # parseEnums
4231 ok {test-number} - parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) for: { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
4232 # pointer to class
4233 ok {test-number} - p == 0 for: 0 == 0
4234 # print unscoped info if passing unscoped info is printed
4235 ok {test-number} - true with 1 message: 'this MAY be seen IF info is printed for passing assertions'
4236 # prints unscoped info on failure
4237 not ok {test-number} - false with 2 messages: 'this SHOULD be seen' and 'this SHOULD also be seen'
4238 # prints unscoped info only for the first assertion
4239 not ok {test-number} - false with 1 message: 'this SHOULD be seen only ONCE'
4240 # prints unscoped info only for the first assertion
4241 ok {test-number} - true
4242 # prints unscoped info only for the first assertion
4243 ok {test-number} - true with 1 message: 'this MAY also be seen only ONCE IF info is printed for passing assertions'
4244 # prints unscoped info only for the first assertion
4245 ok {test-number} - true
4246 # random SECTION tests
4247 ok {test-number} - a != b for: 1 != 2
4248 # random SECTION tests
4249 ok {test-number} - b != a for: 2 != 1
4250 # random SECTION tests
4251 ok {test-number} - a != b for: 1 != 2
4252 # replaceInPlace
4253 ok {test-number} - Catch::replaceInPlace(letters, "b", "z") for: true
4254 # replaceInPlace
4255 ok {test-number} - letters == "azcdefcg" for: "azcdefcg" == "azcdefcg"
4256 # replaceInPlace
4257 ok {test-number} - Catch::replaceInPlace(letters, "c", "z") for: true
4258 # replaceInPlace
4259 ok {test-number} - letters == "abzdefzg" for: "abzdefzg" == "abzdefzg"
4260 # replaceInPlace
4261 ok {test-number} - Catch::replaceInPlace(letters, "a", "z") for: true
4262 # replaceInPlace
4263 ok {test-number} - letters == "zbcdefcg" for: "zbcdefcg" == "zbcdefcg"
4264 # replaceInPlace
4265 ok {test-number} - Catch::replaceInPlace(letters, "g", "z") for: true
4266 # replaceInPlace
4267 ok {test-number} - letters == "abcdefcz" for: "abcdefcz" == "abcdefcz"
4268 # replaceInPlace
4269 ok {test-number} - Catch::replaceInPlace(letters, letters, "replaced") for: true
4270 # replaceInPlace
4271 ok {test-number} - letters == "replaced" for: "replaced" == "replaced"
4272 # replaceInPlace
4273 ok {test-number} - !(Catch::replaceInPlace(letters, "x", "z")) for: !false
4274 # replaceInPlace
4275 ok {test-number} - letters == letters for: "abcdefcg" == "abcdefcg"
4276 # replaceInPlace
4277 ok {test-number} - Catch::replaceInPlace(letters, "c", "cc") for: true
4278 # replaceInPlace
4279 ok {test-number} - letters == "abccdefccg" for: "abccdefccg" == "abccdefccg"
4280 # replaceInPlace
4281 ok {test-number} - Catch::replaceInPlace(s, "--", "-") for: true
4282 # replaceInPlace
4283 ok {test-number} - s == "--" for: "--" == "--"
4284 # replaceInPlace
4285 ok {test-number} - Catch::replaceInPlace(s, "'", "|'") for: true
4286 # replaceInPlace
4287 ok {test-number} - s == "didn|'t" for: "didn|'t" == "didn|'t"
4288 # request an unknown %-starting stream fails
4289 ok {test-number} - Catch::makeStream( "%somestream" )
4290 # resolution
4291 ok {test-number} - res.size() == count for: 10 == 10
4292 # resolution
4293 ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
4294 # resolution
4295 ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
4296 # resolution
4297 ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
4298 # resolution
4299 ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
4300 # resolution
4301 ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
4302 # resolution
4303 ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
4304 # resolution
4305 ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
4306 # resolution
4307 ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
4308 # resolution
4309 ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
4310 # run_for_at_least, chronometer
4311 ok {test-number} - meter.runs() >= old_runs for: 1 >= 1
4312 # run_for_at_least, chronometer
4313 ok {test-number} - meter.runs() >= old_runs for: 2 >= 1
4314 # run_for_at_least, chronometer
4315 ok {test-number} - meter.runs() >= old_runs for: 4 >= 2
4316 # run_for_at_least, chronometer
4317 ok {test-number} - meter.runs() >= old_runs for: 8 >= 4
4318 # run_for_at_least, chronometer
4319 ok {test-number} - meter.runs() >= old_runs for: 16 >= 8
4320 # run_for_at_least, chronometer
4321 ok {test-number} - meter.runs() >= old_runs for: 32 >= 16
4322 # run_for_at_least, chronometer
4323 ok {test-number} - meter.runs() >= old_runs for: 64 >= 32
4324 # run_for_at_least, chronometer
4325 ok {test-number} - meter.runs() >= old_runs for: 128 >= 64
4326 # run_for_at_least, chronometer
4327 ok {test-number} - Timing.elapsed >= time for: 128 ns >= 100 ns
4328 # run_for_at_least, chronometer
4329 ok {test-number} - Timing.result == Timing.iterations + 17 for: 145 == 145
4330 # run_for_at_least, chronometer
4331 ok {test-number} - Timing.iterations >= time.count() for: 128 >= 100
4332 # run_for_at_least, int
4333 ok {test-number} - x >= old_x for: 1 >= 1
4334 # run_for_at_least, int
4335 ok {test-number} - x >= old_x for: 2 >= 1
4336 # run_for_at_least, int
4337 ok {test-number} - x >= old_x for: 4 >= 2
4338 # run_for_at_least, int
4339 ok {test-number} - x >= old_x for: 8 >= 4
4340 # run_for_at_least, int
4341 ok {test-number} - x >= old_x for: 16 >= 8
4342 # run_for_at_least, int
4343 ok {test-number} - x >= old_x for: 32 >= 16
4344 # run_for_at_least, int
4345 ok {test-number} - x >= old_x for: 64 >= 32
4346 # run_for_at_least, int
4347 ok {test-number} - x >= old_x for: 128 >= 64
4348 # run_for_at_least, int
4349 ok {test-number} - Timing.elapsed >= time for: 128 ns >= 100 ns
4350 # run_for_at_least, int
4351 ok {test-number} - Timing.result == Timing.iterations + 17 for: 145 == 145
4352 # run_for_at_least, int
4353 ok {test-number} - Timing.iterations >= time.count() for: 128 >= 100
4354 # sections can be skipped dynamically at runtime
4355 ok {test-number} -
4356 # sections can be skipped dynamically at runtime
4357 ok {test-number} - # SKIP
4358 # sections can be skipped dynamically at runtime
4359 ok {test-number} -
4360 # send a single char to INFO
4361 not ok {test-number} - false with 1 message: '3'
4362 # sends information to INFO
4363 not ok {test-number} - false with 2 messages: 'hi' and 'i := 7'
4364 # shortened hide tags are split apart
4365 ok {test-number} - testcase.tags, VectorContains( Tag( "magic-tag" ) ) && VectorContains( Tag( "."_catch_sr ) ) for: { {?}, {?} } ( Contains: {?} and Contains: {?} )
4366 # skipped tests can optionally provide a reason
4367 ok {test-number} - # SKIP 'skipping because answer = 43'
4368 # splitString
4369 ok {test-number} - splitStringRef("", ','), Equals(std::vector<StringRef>()) for: { } Equals: { }
4370 # splitString
4371 ok {test-number} - splitStringRef("abc", ','), Equals(std::vector<StringRef>{"abc"}) for: { abc } Equals: { abc }
4372 # splitString
4373 ok {test-number} - splitStringRef("abc,def", ','), Equals(std::vector<StringRef>{"abc", "def"}) for: { abc, def } Equals: { abc, def }
4374 # stacks unscoped info in loops
4375 not ok {test-number} - false with 4 messages: 'Count 1 to 3...' and '1' and '2' and '3'
4376 # stacks unscoped info in loops
4377 not ok {test-number} - false with 4 messages: 'Count 4 to 6...' and '4' and '5' and '6'
4378 # startsWith
4379 ok {test-number} - !(startsWith("", 'c')) for: !false
4380 # startsWith
4381 ok {test-number} - startsWith(std::string("abc"), 'a') for: true
4382 # startsWith
4383 ok {test-number} - startsWith("def"_catch_sr, 'd') for: true
4384 # std::map is convertible string
4385 ok {test-number} - Catch::Detail::stringify( emptyMap ) == "{ }" for: "{ }" == "{ }"
4386 # std::map is convertible string
4387 ok {test-number} - Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" for: "{ { "one", 1 } }" == "{ { "one", 1 } }"
4388 # std::map is convertible string
4389 ok {test-number} - Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" for: "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }" == "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
4390 # std::pair<int,const std::string> -> toString
4391 ok {test-number} - ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" for: "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
4392 # std::pair<int,std::string> -> toString
4393 ok {test-number} - ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" for: "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
4394 # std::set is convertible string
4395 ok {test-number} - Catch::Detail::stringify( emptySet ) == "{ }" for: "{ }" == "{ }"
4396 # std::set is convertible string
4397 ok {test-number} - Catch::Detail::stringify( set ) == "{ \"one\" }" for: "{ "one" }" == "{ "one" }"
4398 # std::set is convertible string
4399 ok {test-number} - Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" for: "{ "abc", "def", "ghi" }" == "{ "abc", "def", "ghi" }"
4400 # std::vector<std::pair<std::string,int> > -> toString
4401 ok {test-number} - ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" for: "{ { "green", 55 } }" == "{ { "green", 55 } }"
4402 # stdout and stderr streams have %-starting name
4403 ok {test-number} - Catch::makeStream( "%stderr" )->isConsole() for: true
4404 # stdout and stderr streams have %-starting name
4405 ok {test-number} - Catch::makeStream( "%stdout" )->isConsole() for: true
4406 # stringify ranges
4407 ok {test-number} - ::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)" for: "op<<(streamable_range)" == "op<<(streamable_range)"
4408 # stringify ranges
4409 ok {test-number} - ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)" for: "stringmaker(streamable_range)" == "stringmaker(streamable_range)"
4410 # stringify ranges
4411 ok {test-number} - ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }" for: "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
4412 # stringify ranges
4413 ok {test-number} - ::Catch::Detail::stringify(disabled_range{}) == "{?}" for: "{?}" == "{?}"
4414 # stringify( has_maker )
4415 ok {test-number} - ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" for: "StringMaker<has_maker>" == "StringMaker<has_maker>"
4416 # stringify( has_maker_and_operator )
4417 ok {test-number} - ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" for: "StringMaker<has_maker_and_operator>" == "StringMaker<has_maker_and_operator>"
4418 # stringify( has_neither )
4419 ok {test-number} - ::Catch::Detail::stringify(item) == "{?}" for: "{?}" == "{?}"
4420 # stringify( has_operator )
4421 ok {test-number} - ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" for: "operator<<( has_operator )" == "operator<<( has_operator )"
4422 # stringify( has_template_operator )
4423 ok {test-number} - ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" for: "operator<<( has_template_operator )" == "operator<<( has_template_operator )"
4424 # stringify( vectors<has_maker> )
4425 ok {test-number} - ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" for: "{ StringMaker<has_maker> }" == "{ StringMaker<has_maker> }"
4426 # stringify( vectors<has_maker_and_operator> )
4427 ok {test-number} - ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" for: "{ StringMaker<has_maker_and_operator> }" == "{ StringMaker<has_maker_and_operator> }"
4428 # stringify( vectors<has_operator> )
4429 ok {test-number} - ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" for: "{ operator<<( has_operator ) }" == "{ operator<<( has_operator ) }"
4430 # strlen3
4431 ok {test-number} - data.str.size() == data.len for: 3 == 3
4432 # strlen3
4433 ok {test-number} - data.str.size() == data.len for: 3 == 3
4434 # strlen3
4435 ok {test-number} - data.str.size() == data.len for: 5 == 5
4436 # strlen3
4437 ok {test-number} - data.str.size() == data.len for: 4 == 4
4438 # system_clock timepoint with non-default duration
4439 ok {test-number} - tp1 == tp2 for: {iso8601-timestamp} == {iso8601-timestamp}
4440 # tables
4441 ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 5 == 5
4442 # tables
4443 ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 6 == 6
4444 # tables
4445 ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 5 == 5
4446 # tables
4447 ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 6 == 6
4448 # tags with dots in later positions are not parsed as hidden
4449 ok {test-number} - testcase.tags.size() == 1 for: 1 == 1
4450 # tags with dots in later positions are not parsed as hidden
4451 ok {test-number} - testcase.tags[0].original == "magic.tag"_catch_sr for: magic.tag == magic.tag
4452 # tests can be skipped dynamically at runtime
4453 ok {test-number} - # SKIP
4454 # thrown std::strings are translated
4455 not ok {test-number} - unexpected exception with message: 'Why would you throw a std::string?'
4456 # toString on const wchar_t const pointer returns the string contents
4457 ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
4458 # toString on const wchar_t pointer returns the string contents
4459 ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
4460 # toString on wchar_t const pointer returns the string contents
4461 ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
4462 # toString on wchar_t returns the string contents
4463 ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
4464 # toString(enum class w/operator<<)
4465 ok {test-number} - ::Catch::Detail::stringify(e0) == "E2/V0" for: "E2/V0" == "E2/V0"
4466 # toString(enum class w/operator<<)
4467 ok {test-number} - ::Catch::Detail::stringify(e1) == "E2/V1" for: "E2/V1" == "E2/V1"
4468 # toString(enum class w/operator<<)
4469 ok {test-number} - ::Catch::Detail::stringify(e3) == "Unknown enum value 10" for: "Unknown enum value 10" == "Unknown enum value 10"
4470 # toString(enum class)
4471 ok {test-number} - ::Catch::Detail::stringify(e0) == "0" for: "0" == "0"
4472 # toString(enum class)
4473 ok {test-number} - ::Catch::Detail::stringify(e1) == "1" for: "1" == "1"
4474 # toString(enum w/operator<<)
4475 ok {test-number} - ::Catch::Detail::stringify(e0) == "E2{0}" for: "E2{0}" == "E2{0}"
4476 # toString(enum w/operator<<)
4477 ok {test-number} - ::Catch::Detail::stringify(e1) == "E2{1}" for: "E2{1}" == "E2{1}"
4478 # toString(enum)
4479 ok {test-number} - ::Catch::Detail::stringify(e0) == "0" for: "0" == "0"
4480 # toString(enum)
4481 ok {test-number} - ::Catch::Detail::stringify(e1) == "1" for: "1" == "1"
4482 # tuple<>
4483 ok {test-number} - "{ }" == ::Catch::Detail::stringify(type{}) for: "{ }" == "{ }"
4484 # tuple<>
4485 ok {test-number} - "{ }" == ::Catch::Detail::stringify(value) for: "{ }" == "{ }"
4486 # tuple<float,int>
4487 ok {test-number} - "1.5f" == ::Catch::Detail::stringify(float(1.5)) for: "1.5f" == "1.5f"
4488 # tuple<float,int>
4489 ok {test-number} - "{ 1.5f, 0 }" == ::Catch::Detail::stringify(type{1.5f,0}) for: "{ 1.5f, 0 }" == "{ 1.5f, 0 }"
4490 # tuple<int>
4491 ok {test-number} - "{ 0 }" == ::Catch::Detail::stringify(type{0}) for: "{ 0 }" == "{ 0 }"
4492 # tuple<string,string>
4493 ok {test-number} - "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) for: "{ "hello", "world" }" == "{ "hello", "world" }"
4494 # tuple<tuple<int>,tuple<>,float>
4495 ok {test-number} - "{ { 42 }, { }, 1.5f }" == ::Catch::Detail::stringify(value) for: "{ { 42 }, { }, 1.5f }" == "{ { 42 }, { }, 1.5f }"
4496 # uniform samples
4497 ok {test-number} - e.point == 23 for: 23.0 == 23
4498 # uniform samples
4499 ok {test-number} - e.upper_bound == 23 for: 23.0 == 23
4500 # uniform samples
4501 ok {test-number} - e.lower_bound == 23 for: 23.0 == 23
4502 # uniform samples
4503 ok {test-number} - e.confidence_interval == 0.95 for: 0.94999999999999996 == 0.94999999999999996
4504 # uniform_integer_distribution can return the bounds
4505 ok {test-number} - dist.a() == -10 for: -10 == -10
4506 # uniform_integer_distribution can return the bounds
4507 ok {test-number} - dist.b() == 10 for: 10 == 10
4508 # unique_ptr reimplementation: basic functionality
4509 ok {test-number} - !(ptr) for: !{?}
4510 # unique_ptr reimplementation: basic functionality
4511 ok {test-number} - ptr.get() == 0 for: 0 == 0
4512 # unique_ptr reimplementation: basic functionality
4513 ok {test-number} - ptr for: {?}
4514 # unique_ptr reimplementation: basic functionality
4515 ok {test-number} - *ptr == 0 for: 0 == 0
4516 # unique_ptr reimplementation: basic functionality
4517 ok {test-number} - ptr.get() == naked_ptr for: 0x<hex digits> == 0x<hex digits>
4518 # unique_ptr reimplementation: basic functionality
4519 ok {test-number} - !(ptr) for: !{?}
4520 # unique_ptr reimplementation: basic functionality
4521 ok {test-number} - ptr.get() == 0 for: 0 == 0
4522 # unique_ptr reimplementation: basic functionality
4523 ok {test-number} - ptr for: {?}
4524 # unique_ptr reimplementation: basic functionality
4525 ok {test-number} - *ptr == 0 for: 0 == 0
4526 # unique_ptr reimplementation: basic functionality
4527 ok {test-number} - ptr.get() == naked_ptr for: 0x<hex digits> == 0x<hex digits>
4528 # unique_ptr reimplementation: basic functionality
4529 ok {test-number} - ptr for: {?}
4530 # unique_ptr reimplementation: basic functionality
4531 ok {test-number} - ptr.get() != 0 for: 0x<hex digits> != 0
4532 # unique_ptr reimplementation: basic functionality
4533 ok {test-number} - *ptr == 2 for: 2 == 2
4534 # unique_ptr reimplementation: basic functionality
4535 ok {test-number} - !(ptr) for: !{?}
4536 # unique_ptr reimplementation: basic functionality
4537 ok {test-number} - ptr.get() == 0 for: 0 == 0
4538 # unique_ptr reimplementation: basic functionality
4539 ok {test-number} - !(ptr1) for: !{?}
4540 # unique_ptr reimplementation: basic functionality
4541 ok {test-number} - ptr2 for: {?}
4542 # unique_ptr reimplementation: basic functionality
4543 ok {test-number} - *ptr2 == 1 for: 1 == 1
4544 # unique_ptr reimplementation: basic functionality
4545 ok {test-number} - !(ptr2) for: !{?}
4546 # unique_ptr reimplementation: basic functionality
4547 ok {test-number} - ptr1 for: {?}
4548 # unique_ptr reimplementation: basic functionality
4549 ok {test-number} - *ptr1 == 2 for: 2 == 2
4550 # unique_ptr reimplementation: basic functionality
4551 ok {test-number} - *ptr1 == 2 for: 2 == 2
4552 # unique_ptr reimplementation: basic functionality
4553 ok {test-number} - *ptr2 == 1 for: 1 == 1
4554 # vec<vec<string,alloc>> -> toString
4555 ok {test-number} - ::Catch::Detail::stringify(v) == "{ }" for: "{ }" == "{ }"
4556 # vec<vec<string,alloc>> -> toString
4557 ok {test-number} - ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" for: "{ { "hello" }, { "world" } }" == "{ { "hello" }, { "world" } }"
4558 # vector<bool> -> toString
4559 ok {test-number} - ::Catch::Detail::stringify(bools) == "{ }" for: "{ }" == "{ }"
4560 # vector<bool> -> toString
4561 ok {test-number} - ::Catch::Detail::stringify(bools) == "{ true }" for: "{ true }" == "{ true }"
4562 # vector<bool> -> toString
4563 ok {test-number} - ::Catch::Detail::stringify(bools) == "{ true, false }" for: "{ true, false }" == "{ true, false }"
4564 # vector<int,allocator> -> toString
4565 ok {test-number} - ::Catch::Detail::stringify(vv) == "{ }" for: "{ }" == "{ }"
4566 # vector<int,allocator> -> toString
4567 ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42 }" for: "{ 42 }" == "{ 42 }"
4568 # vector<int,allocator> -> toString
4569 ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42, 250 }" for: "{ 42, 250 }" == "{ 42, 250 }"
4570 # vector<int> -> toString
4571 ok {test-number} - ::Catch::Detail::stringify(vv) == "{ }" for: "{ }" == "{ }"
4572 # vector<int> -> toString
4573 ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42 }" for: "{ 42 }" == "{ 42 }"
4574 # vector<int> -> toString
4575 ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42, 250 }" for: "{ 42, 250 }" == "{ 42, 250 }"
4576 # vector<string> -> toString
4577 ok {test-number} - ::Catch::Detail::stringify(vv) == "{ }" for: "{ }" == "{ }"
4578 # vector<string> -> toString
4579 ok {test-number} - ::Catch::Detail::stringify(vv) == "{ \"hello\" }" for: "{ "hello" }" == "{ "hello" }"
4580 # vector<string> -> toString
4581 ok {test-number} - ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" for: "{ "hello", "world" }" == "{ "hello", "world" }"
4582 # vectors can be sized and resized
4583 ok {test-number} - v.size() == 5 for: 5 == 5
4584 # vectors can be sized and resized
4585 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
4586 # vectors can be sized and resized
4587 ok {test-number} - v.size() == 10 for: 10 == 10
4588 # vectors can be sized and resized
4589 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
4590 # vectors can be sized and resized
4591 ok {test-number} - v.size() == 5 for: 5 == 5
4592 # vectors can be sized and resized
4593 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
4594 # vectors can be sized and resized
4595 ok {test-number} - v.size() == 0 for: 0 == 0
4596 # vectors can be sized and resized
4597 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
4598 # vectors can be sized and resized
4599 ok {test-number} - v.capacity() == 0 for: 0 == 0
4600 # vectors can be sized and resized
4601 ok {test-number} - v.size() == 5 for: 5 == 5
4602 # vectors can be sized and resized
4603 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
4604 # vectors can be sized and resized
4605 ok {test-number} - v.size() == 5 for: 5 == 5
4606 # vectors can be sized and resized
4607 ok {test-number} - v.capacity() >= 10 for: 10 >= 10
4608 # vectors can be sized and resized
4609 ok {test-number} - v.size() == 5 for: 5 == 5
4610 # vectors can be sized and resized
4611 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
4612 # vectors can be sized and resized
4613 ok {test-number} - v.size() == 5 for: 5 == 5
4614 # vectors can be sized and resized
4615 ok {test-number} - v.capacity() >= 5 for: 5 >= 5
4616 # warmup
4617 ok {test-number} - (iterations * rate) > Catch::Benchmark::Detail::warmup_time.count() for: 160000000 (0x<hex digits>) > 100
4618 # warmup
4619 ok {test-number} - (end - start) > Catch::Benchmark::Detail::warmup_time for: 310016000 ns > 100 ms
4620 # weighted_average_quantile
4621 ok {test-number} - q1 == 14.5 for: 14.5 == 14.5
4622 # weighted_average_quantile
4623 ok {test-number} - med == 18. for: 18.0 == 18.0
4624 # weighted_average_quantile
4625 ok {test-number} - q3 == 23. for: 23.0 == 23.0
4626 # xmlentitycheck
4627 ok {test-number} -
4628 # xmlentitycheck
4629 ok {test-number} -
4630 1..2315
4631