Debian Codegraph @

src/external/catch2/tests/SelfTest/Baselines/console.sw.multi.approved.txt

raw
1 Filters: "*" ~[!nonportable] ~[!benchmark] ~[approvals]
2 Randomness seeded to: 1
3
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 <exe-name> is a Catch2 v<version> host application.
6 Run with -? for options
7
8 -------------------------------------------------------------------------------
9 # A test name that starts with a #
10 -------------------------------------------------------------------------------
11 Misc.tests.cpp:<line number>
12 ...............................................................................
13
14 Misc.tests.cpp:<line number>: PASSED:
15 with message:
16 yay
17
18 -------------------------------------------------------------------------------
19 #1027: Bitfields can be captured
20 -------------------------------------------------------------------------------
21 Compilation.tests.cpp:<line number>
22 ...............................................................................
23
24 Compilation.tests.cpp:<line number>: PASSED:
25 REQUIRE( y.v == 0 )
26 with expansion:
27 0 == 0
28
29 Compilation.tests.cpp:<line number>: PASSED:
30 REQUIRE( 0 == y.v )
31 with expansion:
32 0 == 0
33
34 -------------------------------------------------------------------------------
35 #1147
36 -------------------------------------------------------------------------------
37 Compilation.tests.cpp:<line number>
38 ...............................................................................
39
40 Compilation.tests.cpp:<line number>: PASSED:
41 REQUIRE( t1 == t2 )
42 with expansion:
43 {?} == {?}
44
45 Compilation.tests.cpp:<line number>: PASSED:
46 REQUIRE( t1 != t2 )
47 with expansion:
48 {?} != {?}
49
50 Compilation.tests.cpp:<line number>: PASSED:
51 REQUIRE( t1 < t2 )
52 with expansion:
53 {?} < {?}
54
55 Compilation.tests.cpp:<line number>: PASSED:
56 REQUIRE( t1 > t2 )
57 with expansion:
58 {?} > {?}
59
60 Compilation.tests.cpp:<line number>: PASSED:
61 REQUIRE( t1 <= t2 )
62 with expansion:
63 {?} <= {?}
64
65 Compilation.tests.cpp:<line number>: PASSED:
66 REQUIRE( t1 >= t2 )
67 with expansion:
68 {?} >= {?}
69
70 -------------------------------------------------------------------------------
71 #1175 - Hidden Test
72 -------------------------------------------------------------------------------
73 Misc.tests.cpp:<line number>
74 ...............................................................................
75
76 Misc.tests.cpp:<line number>: PASSED:
77
78 -------------------------------------------------------------------------------
79 #1238
80 -------------------------------------------------------------------------------
81 Compilation.tests.cpp:<line number>
82 ...............................................................................
83
84 Compilation.tests.cpp:<line number>: PASSED:
85 REQUIRE( std::memcmp(uarr, "123", sizeof(uarr)) == 0 )
86 with expansion:
87 0 == 0
88 with messages:
89 uarr := "123"
90 sarr := "456"
91
92 Compilation.tests.cpp:<line number>: PASSED:
93 REQUIRE( std::memcmp(sarr, "456", sizeof(sarr)) == 0 )
94 with expansion:
95 0 == 0
96 with messages:
97 uarr := "123"
98 sarr := "456"
99
100 -------------------------------------------------------------------------------
101 #1245
102 -------------------------------------------------------------------------------
103 Compilation.tests.cpp:<line number>
104 ...............................................................................
105
106 Compilation.tests.cpp:<line number>: PASSED:
107
108 -------------------------------------------------------------------------------
109 #1319: Sections can have description (even if it is not saved
110 SectionName
111 -------------------------------------------------------------------------------
112 Compilation.tests.cpp:<line number>
113 ...............................................................................
114
115 Compilation.tests.cpp:<line number>: PASSED:
116
117 -------------------------------------------------------------------------------
118 #1403
119 -------------------------------------------------------------------------------
120 Compilation.tests.cpp:<line number>
121 ...............................................................................
122
123 Compilation.tests.cpp:<line number>: PASSED:
124 REQUIRE( h1 == h2 )
125 with expansion:
126 [1403 helper] == [1403 helper]
127
128 -------------------------------------------------------------------------------
129 #1455 - INFO and WARN can start with a linebreak
130 -------------------------------------------------------------------------------
131 Message.tests.cpp:<line number>
132 ...............................................................................
133
134 Message.tests.cpp:<line number>: warning:
135
136 This info message starts with a linebreak
137
138 This warning message starts with a linebreak
139
140
141 No assertions in test case '#1455 - INFO and WARN can start with a linebreak'
142
143 -------------------------------------------------------------------------------
144 #1514: stderr/stdout is not captured in tests aborted by an exception
145 -------------------------------------------------------------------------------
146 Tricky.tests.cpp:<line number>
147 ...............................................................................
148
149 Tricky.tests.cpp:<line number>: FAILED:
150 explicitly with message:
151 1514
152
153 -------------------------------------------------------------------------------
154 #1548
155 -------------------------------------------------------------------------------
156 Compilation.tests.cpp:<line number>
157 ...............................................................................
158
159 Compilation.tests.cpp:<line number>: PASSED:
160 REQUIRE( std::is_same<TypeList<int>, TypeList<int>>::value )
161 with expansion:
162 true
163
164 -------------------------------------------------------------------------------
165 #1905 -- test spec parser properly clears internal state between compound tests
166 -------------------------------------------------------------------------------
167 TestSpec.tests.cpp:<line number>
168 ...............................................................................
169
170 TestSpec.tests.cpp:<line number>: PASSED:
171 REQUIRE( spec.matches(*fakeTestCase("spec . char")) )
172 with expansion:
173 true
174
175 TestSpec.tests.cpp:<line number>: PASSED:
176 REQUIRE( spec.matches(*fakeTestCase("spec , char")) )
177 with expansion:
178 true
179
180 TestSpec.tests.cpp:<line number>: PASSED:
181 REQUIRE_FALSE( spec.matches(*fakeTestCase(R"(spec \, char)")) )
182 with expansion:
183 !false
184
185 -------------------------------------------------------------------------------
186 #1912 -- test spec parser handles escaping
187 Various parentheses
188 -------------------------------------------------------------------------------
189 TestSpec.tests.cpp:<line number>
190 ...............................................................................
191
192 TestSpec.tests.cpp:<line number>: PASSED:
193 REQUIRE( spec.matches(*fakeTestCase(R"(spec {a} char)")) )
194 with expansion:
195 true
196
197 TestSpec.tests.cpp:<line number>: PASSED:
198 REQUIRE( spec.matches(*fakeTestCase(R"(spec [a] char)")) )
199 with expansion:
200 true
201
202 TestSpec.tests.cpp:<line number>: PASSED:
203 REQUIRE_FALSE( spec.matches(*fakeTestCase("differs but has similar tag", "[a]")) )
204 with expansion:
205 !false
206
207 -------------------------------------------------------------------------------
208 #1912 -- test spec parser handles escaping
209 backslash in test name
210 -------------------------------------------------------------------------------
211 TestSpec.tests.cpp:<line number>
212 ...............................................................................
213
214 TestSpec.tests.cpp:<line number>: PASSED:
215 REQUIRE( spec.matches(*fakeTestCase(R"(spec \ char)")) )
216 with expansion:
217 true
218
219 -------------------------------------------------------------------------------
220 #1913 - GENERATE inside a for loop should not keep recreating the generator
221 -------------------------------------------------------------------------------
222 Generators.tests.cpp:<line number>
223 ...............................................................................
224
225 Generators.tests.cpp:<line number>: PASSED:
226 REQUIRE( counter < 7 )
227 with expansion:
228 3 < 7
229
230 -------------------------------------------------------------------------------
231 #1913 - GENERATE inside a for loop should not keep recreating the generator
232 -------------------------------------------------------------------------------
233 Generators.tests.cpp:<line number>
234 ...............................................................................
235
236 Generators.tests.cpp:<line number>: PASSED:
237 REQUIRE( counter < 7 )
238 with expansion:
239 6 < 7
240
241 -------------------------------------------------------------------------------
242 #1913 - GENERATEs can share a line
243 -------------------------------------------------------------------------------
244 Generators.tests.cpp:<line number>
245 ...............................................................................
246
247 Generators.tests.cpp:<line number>: PASSED:
248 REQUIRE( i != j )
249 with expansion:
250 1 != 3
251
252 -------------------------------------------------------------------------------
253 #1913 - GENERATEs can share a line
254 -------------------------------------------------------------------------------
255 Generators.tests.cpp:<line number>
256 ...............................................................................
257
258 Generators.tests.cpp:<line number>: PASSED:
259 REQUIRE( i != j )
260 with expansion:
261 1 != 4
262
263 -------------------------------------------------------------------------------
264 #1913 - GENERATEs can share a line
265 -------------------------------------------------------------------------------
266 Generators.tests.cpp:<line number>
267 ...............................................................................
268
269 Generators.tests.cpp:<line number>: PASSED:
270 REQUIRE( i != j )
271 with expansion:
272 2 != 3
273
274 -------------------------------------------------------------------------------
275 #1913 - GENERATEs can share a line
276 -------------------------------------------------------------------------------
277 Generators.tests.cpp:<line number>
278 ...............................................................................
279
280 Generators.tests.cpp:<line number>: PASSED:
281 REQUIRE( i != j )
282 with expansion:
283 2 != 4
284
285 -------------------------------------------------------------------------------
286 #1938 - GENERATE after a section
287 A
288 -------------------------------------------------------------------------------
289 PartTracker.tests.cpp:<line number>
290 ...............................................................................
291
292 PartTracker.tests.cpp:<line number>: PASSED:
293 with message:
294 A
295
296 -------------------------------------------------------------------------------
297 #1938 - GENERATE after a section
298 B
299 -------------------------------------------------------------------------------
300 PartTracker.tests.cpp:<line number>
301 ...............................................................................
302
303 PartTracker.tests.cpp:<line number>: PASSED:
304 REQUIRE( m )
305 with expansion:
306 1
307
308 -------------------------------------------------------------------------------
309 #1938 - GENERATE after a section
310 B
311 -------------------------------------------------------------------------------
312 PartTracker.tests.cpp:<line number>
313 ...............................................................................
314
315 PartTracker.tests.cpp:<line number>: PASSED:
316 REQUIRE( m )
317 with expansion:
318 2
319
320 -------------------------------------------------------------------------------
321 #1938 - GENERATE after a section
322 B
323 -------------------------------------------------------------------------------
324 PartTracker.tests.cpp:<line number>
325 ...............................................................................
326
327 PartTracker.tests.cpp:<line number>: PASSED:
328 REQUIRE( m )
329 with expansion:
330 3
331
332 -------------------------------------------------------------------------------
333 #1938 - Section followed by flat generate
334 A
335 -------------------------------------------------------------------------------
336 PartTracker.tests.cpp:<line number>
337 ...............................................................................
338
339 PartTracker.tests.cpp:<line number>: PASSED:
340 REQUIRE( 1 )
341
342 -------------------------------------------------------------------------------
343 #1938 - Section followed by flat generate
344 -------------------------------------------------------------------------------
345 PartTracker.tests.cpp:<line number>
346 ...............................................................................
347
348 PartTracker.tests.cpp:<line number>: PASSED:
349 REQUIRE( m )
350 with expansion:
351 2
352
353 -------------------------------------------------------------------------------
354 #1938 - Section followed by flat generate
355 -------------------------------------------------------------------------------
356 PartTracker.tests.cpp:<line number>
357 ...............................................................................
358
359 PartTracker.tests.cpp:<line number>: PASSED:
360 REQUIRE( m )
361 with expansion:
362 3
363
364 -------------------------------------------------------------------------------
365 #1938 - flat generate
366 -------------------------------------------------------------------------------
367 PartTracker.tests.cpp:<line number>
368 ...............................................................................
369
370 PartTracker.tests.cpp:<line number>: PASSED:
371 REQUIRE( m )
372 with expansion:
373 1
374
375 -------------------------------------------------------------------------------
376 #1938 - flat generate
377 -------------------------------------------------------------------------------
378 PartTracker.tests.cpp:<line number>
379 ...............................................................................
380
381 PartTracker.tests.cpp:<line number>: PASSED:
382 REQUIRE( m )
383 with expansion:
384 2
385
386 -------------------------------------------------------------------------------
387 #1938 - flat generate
388 -------------------------------------------------------------------------------
389 PartTracker.tests.cpp:<line number>
390 ...............................................................................
391
392 PartTracker.tests.cpp:<line number>: PASSED:
393 REQUIRE( m )
394 with expansion:
395 3
396
397 -------------------------------------------------------------------------------
398 #1938 - mixed sections and generates
399 A
400 -------------------------------------------------------------------------------
401 PartTracker.tests.cpp:<line number>
402 ...............................................................................
403
404 PartTracker.tests.cpp:<line number>: PASSED:
405 with message:
406 A
407
408 -------------------------------------------------------------------------------
409 #1938 - mixed sections and generates
410 -------------------------------------------------------------------------------
411 PartTracker.tests.cpp:<line number>
412 ...............................................................................
413
414 PartTracker.tests.cpp:<line number>: PASSED:
415 with messages:
416 i := 1
417 j := 3
418 k := 5
419
420 -------------------------------------------------------------------------------
421 #1938 - mixed sections and generates
422 B
423 -------------------------------------------------------------------------------
424 PartTracker.tests.cpp:<line number>
425 ...............................................................................
426
427 PartTracker.tests.cpp:<line number>: PASSED:
428 with message:
429 B
430
431 -------------------------------------------------------------------------------
432 #1938 - mixed sections and generates
433 -------------------------------------------------------------------------------
434 PartTracker.tests.cpp:<line number>
435 ...............................................................................
436
437 PartTracker.tests.cpp:<line number>: PASSED:
438 with messages:
439 i := 1
440 j := 3
441 k := 6
442
443 -------------------------------------------------------------------------------
444 #1938 - mixed sections and generates
445 B
446 -------------------------------------------------------------------------------
447 PartTracker.tests.cpp:<line number>
448 ...............................................................................
449
450 PartTracker.tests.cpp:<line number>: PASSED:
451 with message:
452 B
453
454 -------------------------------------------------------------------------------
455 #1938 - mixed sections and generates
456 -------------------------------------------------------------------------------
457 PartTracker.tests.cpp:<line number>
458 ...............................................................................
459
460 PartTracker.tests.cpp:<line number>: PASSED:
461 with messages:
462 i := 1
463 j := 4
464 k := 5
465
466 -------------------------------------------------------------------------------
467 #1938 - mixed sections and generates
468 -------------------------------------------------------------------------------
469 PartTracker.tests.cpp:<line number>
470 ...............................................................................
471
472 PartTracker.tests.cpp:<line number>: PASSED:
473 with messages:
474 i := 1
475 j := 4
476 k := 6
477
478 -------------------------------------------------------------------------------
479 #1938 - mixed sections and generates
480 A
481 -------------------------------------------------------------------------------
482 PartTracker.tests.cpp:<line number>
483 ...............................................................................
484
485 PartTracker.tests.cpp:<line number>: PASSED:
486 with message:
487 A
488
489 -------------------------------------------------------------------------------
490 #1938 - mixed sections and generates
491 -------------------------------------------------------------------------------
492 PartTracker.tests.cpp:<line number>
493 ...............................................................................
494
495 PartTracker.tests.cpp:<line number>: PASSED:
496 with messages:
497 i := 2
498 j := 3
499 k := 5
500
501 -------------------------------------------------------------------------------
502 #1938 - mixed sections and generates
503 B
504 -------------------------------------------------------------------------------
505 PartTracker.tests.cpp:<line number>
506 ...............................................................................
507
508 PartTracker.tests.cpp:<line number>: PASSED:
509 with message:
510 B
511
512 -------------------------------------------------------------------------------
513 #1938 - mixed sections and generates
514 -------------------------------------------------------------------------------
515 PartTracker.tests.cpp:<line number>
516 ...............................................................................
517
518 PartTracker.tests.cpp:<line number>: PASSED:
519 with messages:
520 i := 2
521 j := 3
522 k := 6
523
524 -------------------------------------------------------------------------------
525 #1938 - mixed sections and generates
526 B
527 -------------------------------------------------------------------------------
528 PartTracker.tests.cpp:<line number>
529 ...............................................................................
530
531 PartTracker.tests.cpp:<line number>: PASSED:
532 with message:
533 B
534
535 -------------------------------------------------------------------------------
536 #1938 - mixed sections and generates
537 -------------------------------------------------------------------------------
538 PartTracker.tests.cpp:<line number>
539 ...............................................................................
540
541 PartTracker.tests.cpp:<line number>: PASSED:
542 with messages:
543 i := 2
544 j := 4
545 k := 5
546
547 -------------------------------------------------------------------------------
548 #1938 - mixed sections and generates
549 -------------------------------------------------------------------------------
550 PartTracker.tests.cpp:<line number>
551 ...............................................................................
552
553 PartTracker.tests.cpp:<line number>: PASSED:
554 with messages:
555 i := 2
556 j := 4
557 k := 6
558
559 -------------------------------------------------------------------------------
560 #1938 - nested generate
561 -------------------------------------------------------------------------------
562 PartTracker.tests.cpp:<line number>
563 ...............................................................................
564
565 PartTracker.tests.cpp:<line number>: PASSED:
566 REQUIRE( m )
567 with expansion:
568 1
569
570 PartTracker.tests.cpp:<line number>: PASSED:
571 REQUIRE( n )
572 with expansion:
573 1
574
575 -------------------------------------------------------------------------------
576 #1938 - nested generate
577 -------------------------------------------------------------------------------
578 PartTracker.tests.cpp:<line number>
579 ...............................................................................
580
581 PartTracker.tests.cpp:<line number>: PASSED:
582 REQUIRE( m )
583 with expansion:
584 1
585
586 PartTracker.tests.cpp:<line number>: PASSED:
587 REQUIRE( n )
588 with expansion:
589 2
590
591 -------------------------------------------------------------------------------
592 #1938 - nested generate
593 -------------------------------------------------------------------------------
594 PartTracker.tests.cpp:<line number>
595 ...............................................................................
596
597 PartTracker.tests.cpp:<line number>: PASSED:
598 REQUIRE( m )
599 with expansion:
600 1
601
602 PartTracker.tests.cpp:<line number>: PASSED:
603 REQUIRE( n )
604 with expansion:
605 3
606
607 -------------------------------------------------------------------------------
608 #1938 - nested generate
609 -------------------------------------------------------------------------------
610 PartTracker.tests.cpp:<line number>
611 ...............................................................................
612
613 PartTracker.tests.cpp:<line number>: PASSED:
614 REQUIRE( m )
615 with expansion:
616 2
617
618 PartTracker.tests.cpp:<line number>: PASSED:
619 REQUIRE( n )
620 with expansion:
621 1
622
623 -------------------------------------------------------------------------------
624 #1938 - nested generate
625 -------------------------------------------------------------------------------
626 PartTracker.tests.cpp:<line number>
627 ...............................................................................
628
629 PartTracker.tests.cpp:<line number>: PASSED:
630 REQUIRE( m )
631 with expansion:
632 2
633
634 PartTracker.tests.cpp:<line number>: PASSED:
635 REQUIRE( n )
636 with expansion:
637 2
638
639 -------------------------------------------------------------------------------
640 #1938 - nested generate
641 -------------------------------------------------------------------------------
642 PartTracker.tests.cpp:<line number>
643 ...............................................................................
644
645 PartTracker.tests.cpp:<line number>: PASSED:
646 REQUIRE( m )
647 with expansion:
648 2
649
650 PartTracker.tests.cpp:<line number>: PASSED:
651 REQUIRE( n )
652 with expansion:
653 3
654
655 -------------------------------------------------------------------------------
656 #1938 - nested generate
657 -------------------------------------------------------------------------------
658 PartTracker.tests.cpp:<line number>
659 ...............................................................................
660
661 PartTracker.tests.cpp:<line number>: PASSED:
662 REQUIRE( m )
663 with expansion:
664 3
665
666 PartTracker.tests.cpp:<line number>: PASSED:
667 REQUIRE( n )
668 with expansion:
669 1
670
671 -------------------------------------------------------------------------------
672 #1938 - nested generate
673 -------------------------------------------------------------------------------
674 PartTracker.tests.cpp:<line number>
675 ...............................................................................
676
677 PartTracker.tests.cpp:<line number>: PASSED:
678 REQUIRE( m )
679 with expansion:
680 3
681
682 PartTracker.tests.cpp:<line number>: PASSED:
683 REQUIRE( n )
684 with expansion:
685 2
686
687 -------------------------------------------------------------------------------
688 #1938 - nested generate
689 -------------------------------------------------------------------------------
690 PartTracker.tests.cpp:<line number>
691 ...............................................................................
692
693 PartTracker.tests.cpp:<line number>: PASSED:
694 REQUIRE( m )
695 with expansion:
696 3
697
698 PartTracker.tests.cpp:<line number>: PASSED:
699 REQUIRE( n )
700 with expansion:
701 3
702
703 -------------------------------------------------------------------------------
704 #1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
705 -------------------------------------------------------------------------------
706 Misc.tests.cpp:<line number>
707 ...............................................................................
708
709 Misc.tests.cpp:<line number>: PASSED:
710
711 -------------------------------------------------------------------------------
712 #1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0
713 -------------------------------------------------------------------------------
714 Misc.tests.cpp:<line number>
715 ...............................................................................
716
717 Misc.tests.cpp:<line number>: PASSED:
718
719 -------------------------------------------------------------------------------
720 #1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0
721 -------------------------------------------------------------------------------
722 Misc.tests.cpp:<line number>
723 ...............................................................................
724
725 Misc.tests.cpp:<line number>: PASSED:
726
727 -------------------------------------------------------------------------------
728 #2152 - ULP checks between differently signed values were wrong - double
729 -------------------------------------------------------------------------------
730 Matchers.tests.cpp:<line number>
731 ...............................................................................
732
733 Matchers.tests.cpp:<line number>: PASSED:
734 CHECK_THAT( smallest_non_zero, WithinULP( -smallest_non_zero, 2 ) )
735 with expansion:
736 0.0 is within 2 ULPs of -4.9406564584124654e-324 ([-1.4821969375237396e-323,
737 4.9406564584124654e-324])
738
739 Matchers.tests.cpp:<line number>: PASSED:
740 CHECK_THAT( smallest_non_zero, !WithinULP( -smallest_non_zero, 1 ) )
741 with expansion:
742 0.0 not is within 1 ULPs of -4.9406564584124654e-324 ([-9.8813129168249309e-
743 324, -0.0000000000000000e+00])
744
745 -------------------------------------------------------------------------------
746 #2152 - ULP checks between differently signed values were wrong - float
747 -------------------------------------------------------------------------------
748 Matchers.tests.cpp:<line number>
749 ...............................................................................
750
751 Matchers.tests.cpp:<line number>: PASSED:
752 CHECK_THAT( smallest_non_zero, WithinULP( -smallest_non_zero, 2 ) )
753 with expansion:
754 0.0f is within 2 ULPs of -1.40129846e-45f ([-4.20389539e-45, 1.40129846e-45])
755
756 Matchers.tests.cpp:<line number>: PASSED:
757 CHECK_THAT( smallest_non_zero, !WithinULP( -smallest_non_zero, 1 ) )
758 with expansion:
759 0.0f not is within 1 ULPs of -1.40129846e-45f ([-2.80259693e-45, -0.
760 00000000e+00])
761
762 -------------------------------------------------------------------------------
763 #2615 - Throwing in constructor generator fails test case but does not abort
764 -------------------------------------------------------------------------------
765 Generators.tests.cpp:<line number>
766 ...............................................................................
767
768 Generators.tests.cpp:<line number>: FAILED:
769 {Unknown expression after the reported line}
770 due to unexpected exception with message:
771 failure to init
772
773 -------------------------------------------------------------------------------
774 #3001: Enum-based bitfields can be captured
775 -------------------------------------------------------------------------------
776 Compilation.tests.cpp:<line number>
777 ...............................................................................
778
779 Compilation.tests.cpp:<line number>: PASSED:
780 REQUIRE( bf.e == 1 )
781 with expansion:
782 1 == 1
783
784 Compilation.tests.cpp:<line number>: PASSED:
785 REQUIRE( 1 == bf.e )
786 with expansion:
787 1 == 1
788
789 -------------------------------------------------------------------------------
790 #748 - captures with unexpected exceptions
791 outside assertions
792 -------------------------------------------------------------------------------
793 Exception.tests.cpp:<line number>
794 ...............................................................................
795
796 Exception.tests.cpp:<line number>: FAILED:
797 {Unknown expression after the reported line}
798 due to unexpected exception with message:
799 expected exception
800
801 -------------------------------------------------------------------------------
802 #748 - captures with unexpected exceptions
803 inside REQUIRE_NOTHROW
804 -------------------------------------------------------------------------------
805 Exception.tests.cpp:<line number>
806 ...............................................................................
807
808 Exception.tests.cpp:<line number>: FAILED:
809 REQUIRE_NOTHROW( thisThrows() )
810 due to unexpected exception with messages:
811 answer := 42
812 expected exception
813
814 -------------------------------------------------------------------------------
815 #748 - captures with unexpected exceptions
816 inside REQUIRE_THROWS
817 -------------------------------------------------------------------------------
818 Exception.tests.cpp:<line number>
819 ...............................................................................
820
821 Exception.tests.cpp:<line number>: PASSED:
822 REQUIRE_THROWS( thisThrows() )
823 with message:
824 answer := 42
825
826 -------------------------------------------------------------------------------
827 #809
828 -------------------------------------------------------------------------------
829 Compilation.tests.cpp:<line number>
830 ...............................................................................
831
832 Compilation.tests.cpp:<line number>: PASSED:
833 REQUIRE( 42 == f )
834 with expansion:
835 42 == {?}
836
837 -------------------------------------------------------------------------------
838 #833
839 -------------------------------------------------------------------------------
840 Compilation.tests.cpp:<line number>
841 ...............................................................................
842
843 Compilation.tests.cpp:<line number>: PASSED:
844 REQUIRE( a == t )
845 with expansion:
846 3 == 3
847
848 Compilation.tests.cpp:<line number>: PASSED:
849 CHECK( a == t )
850 with expansion:
851 3 == 3
852
853 Compilation.tests.cpp:<line number>: PASSED:
854 REQUIRE_THROWS( throws_int(true) )
855
856 Compilation.tests.cpp:<line number>: PASSED:
857 CHECK_THROWS_AS( throws_int(true), int )
858
859 Compilation.tests.cpp:<line number>: PASSED:
860 REQUIRE_NOTHROW( throws_int(false) )
861
862 Compilation.tests.cpp:<line number>: PASSED:
863 REQUIRE_THAT( "aaa", Catch::Matchers::EndsWith("aaa") )
864 with expansion:
865 "aaa" ends with: "aaa"
866
867 Compilation.tests.cpp:<line number>: PASSED:
868 REQUIRE( templated_tests<int>(3) )
869 with expansion:
870 true
871
872 -------------------------------------------------------------------------------
873 #835 -- errno should not be touched by Catch2
874 -------------------------------------------------------------------------------
875 Misc.tests.cpp:<line number>
876 ...............................................................................
877
878 Misc.tests.cpp:<line number>: FAILED:
879 CHECK( f() == 0 )
880 with expansion:
881 1 == 0
882
883 Misc.tests.cpp:<line number>: PASSED:
884 REQUIRE( errno_after == 1 )
885 with expansion:
886 1 == 1
887
888 -------------------------------------------------------------------------------
889 #872
890 -------------------------------------------------------------------------------
891 Compilation.tests.cpp:<line number>
892 ...............................................................................
893
894 Compilation.tests.cpp:<line number>: PASSED:
895 REQUIRE( x == 4 )
896 with expansion:
897 {?} == 4
898 with message:
899 dummy := 0
900
901 -------------------------------------------------------------------------------
902 #961 -- Dynamically created sections should all be reported
903 Looped section 0
904 -------------------------------------------------------------------------------
905 Misc.tests.cpp:<line number>
906 ...............................................................................
907
908 Misc.tests.cpp:<line number>: PASSED:
909 with message:
910 Everything is OK
911
912 -------------------------------------------------------------------------------
913 #961 -- Dynamically created sections should all be reported
914 Looped section 1
915 -------------------------------------------------------------------------------
916 Misc.tests.cpp:<line number>
917 ...............................................................................
918
919 Misc.tests.cpp:<line number>: PASSED:
920 with message:
921 Everything is OK
922
923 -------------------------------------------------------------------------------
924 #961 -- Dynamically created sections should all be reported
925 Looped section 2
926 -------------------------------------------------------------------------------
927 Misc.tests.cpp:<line number>
928 ...............................................................................
929
930 Misc.tests.cpp:<line number>: PASSED:
931 with message:
932 Everything is OK
933
934 -------------------------------------------------------------------------------
935 #961 -- Dynamically created sections should all be reported
936 Looped section 3
937 -------------------------------------------------------------------------------
938 Misc.tests.cpp:<line number>
939 ...............................................................................
940
941 Misc.tests.cpp:<line number>: PASSED:
942 with message:
943 Everything is OK
944
945 -------------------------------------------------------------------------------
946 #961 -- Dynamically created sections should all be reported
947 Looped section 4
948 -------------------------------------------------------------------------------
949 Misc.tests.cpp:<line number>
950 ...............................................................................
951
952 Misc.tests.cpp:<line number>: PASSED:
953 with message:
954 Everything is OK
955
956 -------------------------------------------------------------------------------
957 'Not' checks that should fail
958 -------------------------------------------------------------------------------
959 Condition.tests.cpp:<line number>
960 ...............................................................................
961
962 Condition.tests.cpp:<line number>: FAILED:
963 CHECK( false != false )
964
965 Condition.tests.cpp:<line number>: FAILED:
966 CHECK( true != true )
967
968 Condition.tests.cpp:<line number>: FAILED:
969 CHECK( !true )
970 with expansion:
971 false
972
973 Condition.tests.cpp:<line number>: FAILED:
974 CHECK_FALSE( true )
975 with expansion:
976 !true
977
978 Condition.tests.cpp:<line number>: FAILED:
979 CHECK( !trueValue )
980 with expansion:
981 false
982
983 Condition.tests.cpp:<line number>: FAILED:
984 CHECK_FALSE( trueValue )
985 with expansion:
986 !true
987
988 Condition.tests.cpp:<line number>: FAILED:
989 CHECK( !(1 == 1) )
990 with expansion:
991 false
992
993 Condition.tests.cpp:<line number>: FAILED:
994 CHECK_FALSE( 1 == 1 )
995
996 -------------------------------------------------------------------------------
997 'Not' checks that should succeed
998 -------------------------------------------------------------------------------
999 Condition.tests.cpp:<line number>
1000 ...............................................................................
1001
1002 Condition.tests.cpp:<line number>: PASSED:
1003 REQUIRE( false == false )
1004
1005 Condition.tests.cpp:<line number>: PASSED:
1006 REQUIRE( true == true )
1007
1008 Condition.tests.cpp:<line number>: PASSED:
1009 REQUIRE( !false )
1010 with expansion:
1011 true
1012
1013 Condition.tests.cpp:<line number>: PASSED:
1014 REQUIRE_FALSE( false )
1015 with expansion:
1016 !false
1017
1018 Condition.tests.cpp:<line number>: PASSED:
1019 REQUIRE( !falseValue )
1020 with expansion:
1021 true
1022
1023 Condition.tests.cpp:<line number>: PASSED:
1024 REQUIRE_FALSE( falseValue )
1025 with expansion:
1026 !false
1027
1028 Condition.tests.cpp:<line number>: PASSED:
1029 REQUIRE( !(1 == 2) )
1030 with expansion:
1031 true
1032
1033 Condition.tests.cpp:<line number>: PASSED:
1034 REQUIRE_FALSE( 1 == 2 )
1035
1036 -------------------------------------------------------------------------------
1037 (unimplemented) static bools can be evaluated
1038 compare to true
1039 -------------------------------------------------------------------------------
1040 Tricky.tests.cpp:<line number>
1041 ...............................................................................
1042
1043 Tricky.tests.cpp:<line number>: PASSED:
1044 REQUIRE( is_true<true>::value == true )
1045 with expansion:
1046 true == true
1047
1048 Tricky.tests.cpp:<line number>: PASSED:
1049 REQUIRE( true == is_true<true>::value )
1050 with expansion:
1051 true == true
1052
1053 -------------------------------------------------------------------------------
1054 (unimplemented) static bools can be evaluated
1055 compare to false
1056 -------------------------------------------------------------------------------
1057 Tricky.tests.cpp:<line number>
1058 ...............................................................................
1059
1060 Tricky.tests.cpp:<line number>: PASSED:
1061 REQUIRE( is_true<false>::value == false )
1062 with expansion:
1063 false == false
1064
1065 Tricky.tests.cpp:<line number>: PASSED:
1066 REQUIRE( false == is_true<false>::value )
1067 with expansion:
1068 false == false
1069
1070 -------------------------------------------------------------------------------
1071 (unimplemented) static bools can be evaluated
1072 negation
1073 -------------------------------------------------------------------------------
1074 Tricky.tests.cpp:<line number>
1075 ...............................................................................
1076
1077 Tricky.tests.cpp:<line number>: PASSED:
1078 REQUIRE( !is_true<false>::value )
1079 with expansion:
1080 true
1081
1082 -------------------------------------------------------------------------------
1083 (unimplemented) static bools can be evaluated
1084 double negation
1085 -------------------------------------------------------------------------------
1086 Tricky.tests.cpp:<line number>
1087 ...............................................................................
1088
1089 Tricky.tests.cpp:<line number>: PASSED:
1090 REQUIRE( !!is_true<true>::value )
1091 with expansion:
1092 true
1093
1094 -------------------------------------------------------------------------------
1095 (unimplemented) static bools can be evaluated
1096 direct
1097 -------------------------------------------------------------------------------
1098 Tricky.tests.cpp:<line number>
1099 ...............................................................................
1100
1101 Tricky.tests.cpp:<line number>: PASSED:
1102 REQUIRE( is_true<true>::value )
1103 with expansion:
1104 true
1105
1106 Tricky.tests.cpp:<line number>: PASSED:
1107 REQUIRE_FALSE( is_true<false>::value )
1108 with expansion:
1109 !false
1110
1111 -------------------------------------------------------------------------------
1112 3x3x3 ints
1113 -------------------------------------------------------------------------------
1114 Generators.tests.cpp:<line number>
1115 ...............................................................................
1116
1117 Generators.tests.cpp:<line number>: PASSED:
1118 CHECK( x < y )
1119 with expansion:
1120 1 < 4
1121
1122 Generators.tests.cpp:<line number>: PASSED:
1123 CHECK( y < z )
1124 with expansion:
1125 4 < 7
1126
1127 Generators.tests.cpp:<line number>: PASSED:
1128 REQUIRE( x < z )
1129 with expansion:
1130 1 < 7
1131
1132 -------------------------------------------------------------------------------
1133 3x3x3 ints
1134 -------------------------------------------------------------------------------
1135 Generators.tests.cpp:<line number>
1136 ...............................................................................
1137
1138 Generators.tests.cpp:<line number>: PASSED:
1139 CHECK( x < y )
1140 with expansion:
1141 1 < 4
1142
1143 Generators.tests.cpp:<line number>: PASSED:
1144 CHECK( y < z )
1145 with expansion:
1146 4 < 8
1147
1148 Generators.tests.cpp:<line number>: PASSED:
1149 REQUIRE( x < z )
1150 with expansion:
1151 1 < 8
1152
1153 -------------------------------------------------------------------------------
1154 3x3x3 ints
1155 -------------------------------------------------------------------------------
1156 Generators.tests.cpp:<line number>
1157 ...............................................................................
1158
1159 Generators.tests.cpp:<line number>: PASSED:
1160 CHECK( x < y )
1161 with expansion:
1162 1 < 4
1163
1164 Generators.tests.cpp:<line number>: PASSED:
1165 CHECK( y < z )
1166 with expansion:
1167 4 < 9
1168
1169 Generators.tests.cpp:<line number>: PASSED:
1170 REQUIRE( x < z )
1171 with expansion:
1172 1 < 9
1173
1174 -------------------------------------------------------------------------------
1175 3x3x3 ints
1176 -------------------------------------------------------------------------------
1177 Generators.tests.cpp:<line number>
1178 ...............................................................................
1179
1180 Generators.tests.cpp:<line number>: PASSED:
1181 CHECK( x < y )
1182 with expansion:
1183 1 < 5
1184
1185 Generators.tests.cpp:<line number>: PASSED:
1186 CHECK( y < z )
1187 with expansion:
1188 5 < 7
1189
1190 Generators.tests.cpp:<line number>: PASSED:
1191 REQUIRE( x < z )
1192 with expansion:
1193 1 < 7
1194
1195 -------------------------------------------------------------------------------
1196 3x3x3 ints
1197 -------------------------------------------------------------------------------
1198 Generators.tests.cpp:<line number>
1199 ...............................................................................
1200
1201 Generators.tests.cpp:<line number>: PASSED:
1202 CHECK( x < y )
1203 with expansion:
1204 1 < 5
1205
1206 Generators.tests.cpp:<line number>: PASSED:
1207 CHECK( y < z )
1208 with expansion:
1209 5 < 8
1210
1211 Generators.tests.cpp:<line number>: PASSED:
1212 REQUIRE( x < z )
1213 with expansion:
1214 1 < 8
1215
1216 -------------------------------------------------------------------------------
1217 3x3x3 ints
1218 -------------------------------------------------------------------------------
1219 Generators.tests.cpp:<line number>
1220 ...............................................................................
1221
1222 Generators.tests.cpp:<line number>: PASSED:
1223 CHECK( x < y )
1224 with expansion:
1225 1 < 5
1226
1227 Generators.tests.cpp:<line number>: PASSED:
1228 CHECK( y < z )
1229 with expansion:
1230 5 < 9
1231
1232 Generators.tests.cpp:<line number>: PASSED:
1233 REQUIRE( x < z )
1234 with expansion:
1235 1 < 9
1236
1237 -------------------------------------------------------------------------------
1238 3x3x3 ints
1239 -------------------------------------------------------------------------------
1240 Generators.tests.cpp:<line number>
1241 ...............................................................................
1242
1243 Generators.tests.cpp:<line number>: PASSED:
1244 CHECK( x < y )
1245 with expansion:
1246 1 < 6
1247
1248 Generators.tests.cpp:<line number>: PASSED:
1249 CHECK( y < z )
1250 with expansion:
1251 6 < 7
1252
1253 Generators.tests.cpp:<line number>: PASSED:
1254 REQUIRE( x < z )
1255 with expansion:
1256 1 < 7
1257
1258 -------------------------------------------------------------------------------
1259 3x3x3 ints
1260 -------------------------------------------------------------------------------
1261 Generators.tests.cpp:<line number>
1262 ...............................................................................
1263
1264 Generators.tests.cpp:<line number>: PASSED:
1265 CHECK( x < y )
1266 with expansion:
1267 1 < 6
1268
1269 Generators.tests.cpp:<line number>: PASSED:
1270 CHECK( y < z )
1271 with expansion:
1272 6 < 8
1273
1274 Generators.tests.cpp:<line number>: PASSED:
1275 REQUIRE( x < z )
1276 with expansion:
1277 1 < 8
1278
1279 -------------------------------------------------------------------------------
1280 3x3x3 ints
1281 -------------------------------------------------------------------------------
1282 Generators.tests.cpp:<line number>
1283 ...............................................................................
1284
1285 Generators.tests.cpp:<line number>: PASSED:
1286 CHECK( x < y )
1287 with expansion:
1288 1 < 6
1289
1290 Generators.tests.cpp:<line number>: PASSED:
1291 CHECK( y < z )
1292 with expansion:
1293 6 < 9
1294
1295 Generators.tests.cpp:<line number>: PASSED:
1296 REQUIRE( x < z )
1297 with expansion:
1298 1 < 9
1299
1300 -------------------------------------------------------------------------------
1301 3x3x3 ints
1302 -------------------------------------------------------------------------------
1303 Generators.tests.cpp:<line number>
1304 ...............................................................................
1305
1306 Generators.tests.cpp:<line number>: PASSED:
1307 CHECK( x < y )
1308 with expansion:
1309 2 < 4
1310
1311 Generators.tests.cpp:<line number>: PASSED:
1312 CHECK( y < z )
1313 with expansion:
1314 4 < 7
1315
1316 Generators.tests.cpp:<line number>: PASSED:
1317 REQUIRE( x < z )
1318 with expansion:
1319 2 < 7
1320
1321 -------------------------------------------------------------------------------
1322 3x3x3 ints
1323 -------------------------------------------------------------------------------
1324 Generators.tests.cpp:<line number>
1325 ...............................................................................
1326
1327 Generators.tests.cpp:<line number>: PASSED:
1328 CHECK( x < y )
1329 with expansion:
1330 2 < 4
1331
1332 Generators.tests.cpp:<line number>: PASSED:
1333 CHECK( y < z )
1334 with expansion:
1335 4 < 8
1336
1337 Generators.tests.cpp:<line number>: PASSED:
1338 REQUIRE( x < z )
1339 with expansion:
1340 2 < 8
1341
1342 -------------------------------------------------------------------------------
1343 3x3x3 ints
1344 -------------------------------------------------------------------------------
1345 Generators.tests.cpp:<line number>
1346 ...............................................................................
1347
1348 Generators.tests.cpp:<line number>: PASSED:
1349 CHECK( x < y )
1350 with expansion:
1351 2 < 4
1352
1353 Generators.tests.cpp:<line number>: PASSED:
1354 CHECK( y < z )
1355 with expansion:
1356 4 < 9
1357
1358 Generators.tests.cpp:<line number>: PASSED:
1359 REQUIRE( x < z )
1360 with expansion:
1361 2 < 9
1362
1363 -------------------------------------------------------------------------------
1364 3x3x3 ints
1365 -------------------------------------------------------------------------------
1366 Generators.tests.cpp:<line number>
1367 ...............................................................................
1368
1369 Generators.tests.cpp:<line number>: PASSED:
1370 CHECK( x < y )
1371 with expansion:
1372 2 < 5
1373
1374 Generators.tests.cpp:<line number>: PASSED:
1375 CHECK( y < z )
1376 with expansion:
1377 5 < 7
1378
1379 Generators.tests.cpp:<line number>: PASSED:
1380 REQUIRE( x < z )
1381 with expansion:
1382 2 < 7
1383
1384 -------------------------------------------------------------------------------
1385 3x3x3 ints
1386 -------------------------------------------------------------------------------
1387 Generators.tests.cpp:<line number>
1388 ...............................................................................
1389
1390 Generators.tests.cpp:<line number>: PASSED:
1391 CHECK( x < y )
1392 with expansion:
1393 2 < 5
1394
1395 Generators.tests.cpp:<line number>: PASSED:
1396 CHECK( y < z )
1397 with expansion:
1398 5 < 8
1399
1400 Generators.tests.cpp:<line number>: PASSED:
1401 REQUIRE( x < z )
1402 with expansion:
1403 2 < 8
1404
1405 -------------------------------------------------------------------------------
1406 3x3x3 ints
1407 -------------------------------------------------------------------------------
1408 Generators.tests.cpp:<line number>
1409 ...............................................................................
1410
1411 Generators.tests.cpp:<line number>: PASSED:
1412 CHECK( x < y )
1413 with expansion:
1414 2 < 5
1415
1416 Generators.tests.cpp:<line number>: PASSED:
1417 CHECK( y < z )
1418 with expansion:
1419 5 < 9
1420
1421 Generators.tests.cpp:<line number>: PASSED:
1422 REQUIRE( x < z )
1423 with expansion:
1424 2 < 9
1425
1426 -------------------------------------------------------------------------------
1427 3x3x3 ints
1428 -------------------------------------------------------------------------------
1429 Generators.tests.cpp:<line number>
1430 ...............................................................................
1431
1432 Generators.tests.cpp:<line number>: PASSED:
1433 CHECK( x < y )
1434 with expansion:
1435 2 < 6
1436
1437 Generators.tests.cpp:<line number>: PASSED:
1438 CHECK( y < z )
1439 with expansion:
1440 6 < 7
1441
1442 Generators.tests.cpp:<line number>: PASSED:
1443 REQUIRE( x < z )
1444 with expansion:
1445 2 < 7
1446
1447 -------------------------------------------------------------------------------
1448 3x3x3 ints
1449 -------------------------------------------------------------------------------
1450 Generators.tests.cpp:<line number>
1451 ...............................................................................
1452
1453 Generators.tests.cpp:<line number>: PASSED:
1454 CHECK( x < y )
1455 with expansion:
1456 2 < 6
1457
1458 Generators.tests.cpp:<line number>: PASSED:
1459 CHECK( y < z )
1460 with expansion:
1461 6 < 8
1462
1463 Generators.tests.cpp:<line number>: PASSED:
1464 REQUIRE( x < z )
1465 with expansion:
1466 2 < 8
1467
1468 -------------------------------------------------------------------------------
1469 3x3x3 ints
1470 -------------------------------------------------------------------------------
1471 Generators.tests.cpp:<line number>
1472 ...............................................................................
1473
1474 Generators.tests.cpp:<line number>: PASSED:
1475 CHECK( x < y )
1476 with expansion:
1477 2 < 6
1478
1479 Generators.tests.cpp:<line number>: PASSED:
1480 CHECK( y < z )
1481 with expansion:
1482 6 < 9
1483
1484 Generators.tests.cpp:<line number>: PASSED:
1485 REQUIRE( x < z )
1486 with expansion:
1487 2 < 9
1488
1489 -------------------------------------------------------------------------------
1490 3x3x3 ints
1491 -------------------------------------------------------------------------------
1492 Generators.tests.cpp:<line number>
1493 ...............................................................................
1494
1495 Generators.tests.cpp:<line number>: PASSED:
1496 CHECK( x < y )
1497 with expansion:
1498 3 < 4
1499
1500 Generators.tests.cpp:<line number>: PASSED:
1501 CHECK( y < z )
1502 with expansion:
1503 4 < 7
1504
1505 Generators.tests.cpp:<line number>: PASSED:
1506 REQUIRE( x < z )
1507 with expansion:
1508 3 < 7
1509
1510 -------------------------------------------------------------------------------
1511 3x3x3 ints
1512 -------------------------------------------------------------------------------
1513 Generators.tests.cpp:<line number>
1514 ...............................................................................
1515
1516 Generators.tests.cpp:<line number>: PASSED:
1517 CHECK( x < y )
1518 with expansion:
1519 3 < 4
1520
1521 Generators.tests.cpp:<line number>: PASSED:
1522 CHECK( y < z )
1523 with expansion:
1524 4 < 8
1525
1526 Generators.tests.cpp:<line number>: PASSED:
1527 REQUIRE( x < z )
1528 with expansion:
1529 3 < 8
1530
1531 -------------------------------------------------------------------------------
1532 3x3x3 ints
1533 -------------------------------------------------------------------------------
1534 Generators.tests.cpp:<line number>
1535 ...............................................................................
1536
1537 Generators.tests.cpp:<line number>: PASSED:
1538 CHECK( x < y )
1539 with expansion:
1540 3 < 4
1541
1542 Generators.tests.cpp:<line number>: PASSED:
1543 CHECK( y < z )
1544 with expansion:
1545 4 < 9
1546
1547 Generators.tests.cpp:<line number>: PASSED:
1548 REQUIRE( x < z )
1549 with expansion:
1550 3 < 9
1551
1552 -------------------------------------------------------------------------------
1553 3x3x3 ints
1554 -------------------------------------------------------------------------------
1555 Generators.tests.cpp:<line number>
1556 ...............................................................................
1557
1558 Generators.tests.cpp:<line number>: PASSED:
1559 CHECK( x < y )
1560 with expansion:
1561 3 < 5
1562
1563 Generators.tests.cpp:<line number>: PASSED:
1564 CHECK( y < z )
1565 with expansion:
1566 5 < 7
1567
1568 Generators.tests.cpp:<line number>: PASSED:
1569 REQUIRE( x < z )
1570 with expansion:
1571 3 < 7
1572
1573 -------------------------------------------------------------------------------
1574 3x3x3 ints
1575 -------------------------------------------------------------------------------
1576 Generators.tests.cpp:<line number>
1577 ...............................................................................
1578
1579 Generators.tests.cpp:<line number>: PASSED:
1580 CHECK( x < y )
1581 with expansion:
1582 3 < 5
1583
1584 Generators.tests.cpp:<line number>: PASSED:
1585 CHECK( y < z )
1586 with expansion:
1587 5 < 8
1588
1589 Generators.tests.cpp:<line number>: PASSED:
1590 REQUIRE( x < z )
1591 with expansion:
1592 3 < 8
1593
1594 -------------------------------------------------------------------------------
1595 3x3x3 ints
1596 -------------------------------------------------------------------------------
1597 Generators.tests.cpp:<line number>
1598 ...............................................................................
1599
1600 Generators.tests.cpp:<line number>: PASSED:
1601 CHECK( x < y )
1602 with expansion:
1603 3 < 5
1604
1605 Generators.tests.cpp:<line number>: PASSED:
1606 CHECK( y < z )
1607 with expansion:
1608 5 < 9
1609
1610 Generators.tests.cpp:<line number>: PASSED:
1611 REQUIRE( x < z )
1612 with expansion:
1613 3 < 9
1614
1615 -------------------------------------------------------------------------------
1616 3x3x3 ints
1617 -------------------------------------------------------------------------------
1618 Generators.tests.cpp:<line number>
1619 ...............................................................................
1620
1621 Generators.tests.cpp:<line number>: PASSED:
1622 CHECK( x < y )
1623 with expansion:
1624 3 < 6
1625
1626 Generators.tests.cpp:<line number>: PASSED:
1627 CHECK( y < z )
1628 with expansion:
1629 6 < 7
1630
1631 Generators.tests.cpp:<line number>: PASSED:
1632 REQUIRE( x < z )
1633 with expansion:
1634 3 < 7
1635
1636 -------------------------------------------------------------------------------
1637 3x3x3 ints
1638 -------------------------------------------------------------------------------
1639 Generators.tests.cpp:<line number>
1640 ...............................................................................
1641
1642 Generators.tests.cpp:<line number>: PASSED:
1643 CHECK( x < y )
1644 with expansion:
1645 3 < 6
1646
1647 Generators.tests.cpp:<line number>: PASSED:
1648 CHECK( y < z )
1649 with expansion:
1650 6 < 8
1651
1652 Generators.tests.cpp:<line number>: PASSED:
1653 REQUIRE( x < z )
1654 with expansion:
1655 3 < 8
1656
1657 -------------------------------------------------------------------------------
1658 3x3x3 ints
1659 -------------------------------------------------------------------------------
1660 Generators.tests.cpp:<line number>
1661 ...............................................................................
1662
1663 Generators.tests.cpp:<line number>: PASSED:
1664 CHECK( x < y )
1665 with expansion:
1666 3 < 6
1667
1668 Generators.tests.cpp:<line number>: PASSED:
1669 CHECK( y < z )
1670 with expansion:
1671 6 < 9
1672
1673 Generators.tests.cpp:<line number>: PASSED:
1674 REQUIRE( x < z )
1675 with expansion:
1676 3 < 9
1677
1678 -------------------------------------------------------------------------------
1679 A METHOD_AS_TEST_CASE based test run that fails
1680 -------------------------------------------------------------------------------
1681 Class.tests.cpp:<line number>
1682 ...............................................................................
1683
1684 Class.tests.cpp:<line number>: FAILED:
1685 REQUIRE( s == "world" )
1686 with expansion:
1687 "hello" == "world"
1688
1689 -------------------------------------------------------------------------------
1690 A METHOD_AS_TEST_CASE based test run that succeeds
1691 -------------------------------------------------------------------------------
1692 Class.tests.cpp:<line number>
1693 ...............................................................................
1694
1695 Class.tests.cpp:<line number>: PASSED:
1696 REQUIRE( s == "hello" )
1697 with expansion:
1698 "hello" == "hello"
1699
1700 -------------------------------------------------------------------------------
1701 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
1702 <float>
1703 -------------------------------------------------------------------------------
1704 Class.tests.cpp:<line number>
1705 ...............................................................................
1706
1707 Class.tests.cpp:<line number>: FAILED:
1708 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1709 with expansion:
1710 0 == 1
1711
1712 -------------------------------------------------------------------------------
1713 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
1714 <int>
1715 -------------------------------------------------------------------------------
1716 Class.tests.cpp:<line number>
1717 ...............................................................................
1718
1719 Class.tests.cpp:<line number>: FAILED:
1720 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1721 with expansion:
1722 0 == 1
1723
1724 -------------------------------------------------------------------------------
1725 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
1726 <float>
1727 -------------------------------------------------------------------------------
1728 Class.tests.cpp:<line number>
1729 ...............................................................................
1730
1731 Class.tests.cpp:<line number>: FAILED:
1732 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1733 with expansion:
1734 0 == 1
1735
1736 -------------------------------------------------------------------------------
1737 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
1738 <int>
1739 -------------------------------------------------------------------------------
1740 Class.tests.cpp:<line number>
1741 ...............................................................................
1742
1743 Class.tests.cpp:<line number>: FAILED:
1744 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1745 with expansion:
1746 0 == 1
1747
1748 -------------------------------------------------------------------------------
1749 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
1750 <float>
1751 -------------------------------------------------------------------------------
1752 Class.tests.cpp:<line number>
1753 ...............................................................................
1754
1755 Class.tests.cpp:<line number>: PASSED:
1756 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1757 with expansion:
1758 0 == 0
1759
1760 -------------------------------------------------------------------------------
1761 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
1762 <int>
1763 -------------------------------------------------------------------------------
1764 Class.tests.cpp:<line number>
1765 ...............................................................................
1766
1767 Class.tests.cpp:<line number>: PASSED:
1768 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1769 with expansion:
1770 0 == 0
1771
1772 -------------------------------------------------------------------------------
1773 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
1774 <float>
1775 -------------------------------------------------------------------------------
1776 Class.tests.cpp:<line number>
1777 ...............................................................................
1778
1779 Class.tests.cpp:<line number>: PASSED:
1780 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1781 with expansion:
1782 0 == 0
1783
1784 -------------------------------------------------------------------------------
1785 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
1786 <int>
1787 -------------------------------------------------------------------------------
1788 Class.tests.cpp:<line number>
1789 ...............................................................................
1790
1791 Class.tests.cpp:<line number>: PASSED:
1792 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1793 with expansion:
1794 0 == 0
1795
1796 -------------------------------------------------------------------------------
1797 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
1798 Template_Foo_2<float, 6>
1799 -------------------------------------------------------------------------------
1800 Class.tests.cpp:<line number>
1801 ...............................................................................
1802
1803 Class.tests.cpp:<line number>: FAILED:
1804 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1805 with expansion:
1806 6 < 2
1807
1808 -------------------------------------------------------------------------------
1809 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
1810 Template_Foo_2<int, 2>
1811 -------------------------------------------------------------------------------
1812 Class.tests.cpp:<line number>
1813 ...............................................................................
1814
1815 Class.tests.cpp:<line number>: FAILED:
1816 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1817 with expansion:
1818 2 < 2
1819
1820 -------------------------------------------------------------------------------
1821 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
1822 <float, 6>
1823 -------------------------------------------------------------------------------
1824 Class.tests.cpp:<line number>
1825 ...............................................................................
1826
1827 Class.tests.cpp:<line number>: FAILED:
1828 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1829 with expansion:
1830 6 < 2
1831
1832 -------------------------------------------------------------------------------
1833 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
1834 <int, 2>
1835 -------------------------------------------------------------------------------
1836 Class.tests.cpp:<line number>
1837 ...............................................................................
1838
1839 Class.tests.cpp:<line number>: FAILED:
1840 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1841 with expansion:
1842 2 < 2
1843
1844 -------------------------------------------------------------------------------
1845 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
1846 Template_Foo_2<float,6>
1847 -------------------------------------------------------------------------------
1848 Class.tests.cpp:<line number>
1849 ...............................................................................
1850
1851 Class.tests.cpp:<line number>: PASSED:
1852 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1853 with expansion:
1854 6 >= 2
1855
1856 -------------------------------------------------------------------------------
1857 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
1858 Template_Foo_2<int,2>
1859 -------------------------------------------------------------------------------
1860 Class.tests.cpp:<line number>
1861 ...............................................................................
1862
1863 Class.tests.cpp:<line number>: PASSED:
1864 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1865 with expansion:
1866 2 >= 2
1867
1868 -------------------------------------------------------------------------------
1869 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
1870 array<float,6>
1871 -------------------------------------------------------------------------------
1872 Class.tests.cpp:<line number>
1873 ...............................................................................
1874
1875 Class.tests.cpp:<line number>: PASSED:
1876 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1877 with expansion:
1878 6 >= 2
1879
1880 -------------------------------------------------------------------------------
1881 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
1882 array<int,2>
1883 -------------------------------------------------------------------------------
1884 Class.tests.cpp:<line number>
1885 ...............................................................................
1886
1887 Class.tests.cpp:<line number>: PASSED:
1888 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1889 with expansion:
1890 2 >= 2
1891
1892 -------------------------------------------------------------------------------
1893 A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
1894 -------------------------------------------------------------------------------
1895 Class.tests.cpp:<line number>
1896 ...............................................................................
1897
1898 Class.tests.cpp:<line number>: FAILED:
1899 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1900 with expansion:
1901 1.0 == 2
1902
1903 -------------------------------------------------------------------------------
1904 A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
1905 -------------------------------------------------------------------------------
1906 Class.tests.cpp:<line number>
1907 ...............................................................................
1908
1909 Class.tests.cpp:<line number>: FAILED:
1910 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1911 with expansion:
1912 1.0f == 2
1913
1914 -------------------------------------------------------------------------------
1915 A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
1916 -------------------------------------------------------------------------------
1917 Class.tests.cpp:<line number>
1918 ...............................................................................
1919
1920 Class.tests.cpp:<line number>: FAILED:
1921 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1922 with expansion:
1923 1 == 2
1924
1925 -------------------------------------------------------------------------------
1926 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double
1927 -------------------------------------------------------------------------------
1928 Class.tests.cpp:<line number>
1929 ...............................................................................
1930
1931 Class.tests.cpp:<line number>: PASSED:
1932 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1933 with expansion:
1934 1.0 == 1
1935
1936 -------------------------------------------------------------------------------
1937 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float
1938 -------------------------------------------------------------------------------
1939 Class.tests.cpp:<line number>
1940 ...............................................................................
1941
1942 Class.tests.cpp:<line number>: PASSED:
1943 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1944 with expansion:
1945 1.0f == 1
1946
1947 -------------------------------------------------------------------------------
1948 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int
1949 -------------------------------------------------------------------------------
1950 Class.tests.cpp:<line number>
1951 ...............................................................................
1952
1953 Class.tests.cpp:<line number>: PASSED:
1954 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1955 with expansion:
1956 1 == 1
1957
1958 -------------------------------------------------------------------------------
1959 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
1960 -------------------------------------------------------------------------------
1961 Class.tests.cpp:<line number>
1962 ...............................................................................
1963
1964 Class.tests.cpp:<line number>: FAILED:
1965 REQUIRE( Nttp_Fixture<V>::value == 0 )
1966 with expansion:
1967 1 == 0
1968
1969 -------------------------------------------------------------------------------
1970 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
1971 -------------------------------------------------------------------------------
1972 Class.tests.cpp:<line number>
1973 ...............................................................................
1974
1975 Class.tests.cpp:<line number>: FAILED:
1976 REQUIRE( Nttp_Fixture<V>::value == 0 )
1977 with expansion:
1978 3 == 0
1979
1980 -------------------------------------------------------------------------------
1981 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
1982 -------------------------------------------------------------------------------
1983 Class.tests.cpp:<line number>
1984 ...............................................................................
1985
1986 Class.tests.cpp:<line number>: FAILED:
1987 REQUIRE( Nttp_Fixture<V>::value == 0 )
1988 with expansion:
1989 6 == 0
1990
1991 -------------------------------------------------------------------------------
1992 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1
1993 -------------------------------------------------------------------------------
1994 Class.tests.cpp:<line number>
1995 ...............................................................................
1996
1997 Class.tests.cpp:<line number>: PASSED:
1998 REQUIRE( Nttp_Fixture<V>::value > 0 )
1999 with expansion:
2000 1 > 0
2001
2002 -------------------------------------------------------------------------------
2003 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3
2004 -------------------------------------------------------------------------------
2005 Class.tests.cpp:<line number>
2006 ...............................................................................
2007
2008 Class.tests.cpp:<line number>: PASSED:
2009 REQUIRE( Nttp_Fixture<V>::value > 0 )
2010 with expansion:
2011 3 > 0
2012
2013 -------------------------------------------------------------------------------
2014 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6
2015 -------------------------------------------------------------------------------
2016 Class.tests.cpp:<line number>
2017 ...............................................................................
2018
2019 Class.tests.cpp:<line number>: PASSED:
2020 REQUIRE( Nttp_Fixture<V>::value > 0 )
2021 with expansion:
2022 6 > 0
2023
2024 -------------------------------------------------------------------------------
2025 A TEST_CASE_METHOD based test run that fails
2026 -------------------------------------------------------------------------------
2027 Class.tests.cpp:<line number>
2028 ...............................................................................
2029
2030 Class.tests.cpp:<line number>: FAILED:
2031 REQUIRE( m_a == 2 )
2032 with expansion:
2033 1 == 2
2034
2035 -------------------------------------------------------------------------------
2036 A TEST_CASE_METHOD based test run that succeeds
2037 -------------------------------------------------------------------------------
2038 Class.tests.cpp:<line number>
2039 ...............................................................................
2040
2041 Class.tests.cpp:<line number>: PASSED:
2042 REQUIRE( m_a == 1 )
2043 with expansion:
2044 1 == 1
2045
2046 -------------------------------------------------------------------------------
2047 A TEST_CASE_PERSISTENT_FIXTURE based test run that fails
2048 First partial run
2049 -------------------------------------------------------------------------------
2050 Class.tests.cpp:<line number>
2051 ...............................................................................
2052
2053 Class.tests.cpp:<line number>: PASSED:
2054 REQUIRE( m_a++ == 0 )
2055 with expansion:
2056 0 == 0
2057
2058 -------------------------------------------------------------------------------
2059 A TEST_CASE_PERSISTENT_FIXTURE based test run that fails
2060 Second partial run
2061 -------------------------------------------------------------------------------
2062 Class.tests.cpp:<line number>
2063 ...............................................................................
2064
2065 Class.tests.cpp:<line number>: FAILED:
2066 REQUIRE( m_a == 0 )
2067 with expansion:
2068 1 == 0
2069
2070 -------------------------------------------------------------------------------
2071 A TEST_CASE_PERSISTENT_FIXTURE based test run that succeeds
2072 First partial run
2073 -------------------------------------------------------------------------------
2074 Class.tests.cpp:<line number>
2075 ...............................................................................
2076
2077 Class.tests.cpp:<line number>: PASSED:
2078 REQUIRE( m_a++ == 0 )
2079 with expansion:
2080 0 == 0
2081
2082 -------------------------------------------------------------------------------
2083 A TEST_CASE_PERSISTENT_FIXTURE based test run that succeeds
2084 Second partial run
2085 -------------------------------------------------------------------------------
2086 Class.tests.cpp:<line number>
2087 ...............................................................................
2088
2089 Class.tests.cpp:<line number>: PASSED:
2090 REQUIRE( m_a == 1 )
2091 with expansion:
2092 1 == 1
2093
2094 -------------------------------------------------------------------------------
2095 A Template product test case - Foo<float>
2096 -------------------------------------------------------------------------------
2097 Misc.tests.cpp:<line number>
2098 ...............................................................................
2099
2100 Misc.tests.cpp:<line number>: PASSED:
2101 REQUIRE( x.size() == 0 )
2102 with expansion:
2103 0 == 0
2104
2105 -------------------------------------------------------------------------------
2106 A Template product test case - Foo<int>
2107 -------------------------------------------------------------------------------
2108 Misc.tests.cpp:<line number>
2109 ...............................................................................
2110
2111 Misc.tests.cpp:<line number>: PASSED:
2112 REQUIRE( x.size() == 0 )
2113 with expansion:
2114 0 == 0
2115
2116 -------------------------------------------------------------------------------
2117 A Template product test case - std::vector<float>
2118 -------------------------------------------------------------------------------
2119 Misc.tests.cpp:<line number>
2120 ...............................................................................
2121
2122 Misc.tests.cpp:<line number>: PASSED:
2123 REQUIRE( x.size() == 0 )
2124 with expansion:
2125 0 == 0
2126
2127 -------------------------------------------------------------------------------
2128 A Template product test case - std::vector<int>
2129 -------------------------------------------------------------------------------
2130 Misc.tests.cpp:<line number>
2131 ...............................................................................
2132
2133 Misc.tests.cpp:<line number>: PASSED:
2134 REQUIRE( x.size() == 0 )
2135 with expansion:
2136 0 == 0
2137
2138 -------------------------------------------------------------------------------
2139 A Template product test case with array signature - Bar<float, 42>
2140 -------------------------------------------------------------------------------
2141 Misc.tests.cpp:<line number>
2142 ...............................................................................
2143
2144 Misc.tests.cpp:<line number>: PASSED:
2145 REQUIRE( x.size() > 0 )
2146 with expansion:
2147 42 > 0
2148
2149 -------------------------------------------------------------------------------
2150 A Template product test case with array signature - Bar<int, 9>
2151 -------------------------------------------------------------------------------
2152 Misc.tests.cpp:<line number>
2153 ...............................................................................
2154
2155 Misc.tests.cpp:<line number>: PASSED:
2156 REQUIRE( x.size() > 0 )
2157 with expansion:
2158 9 > 0
2159
2160 -------------------------------------------------------------------------------
2161 A Template product test case with array signature - std::array<float, 42>
2162 -------------------------------------------------------------------------------
2163 Misc.tests.cpp:<line number>
2164 ...............................................................................
2165
2166 Misc.tests.cpp:<line number>: PASSED:
2167 REQUIRE( x.size() > 0 )
2168 with expansion:
2169 42 > 0
2170
2171 -------------------------------------------------------------------------------
2172 A Template product test case with array signature - std::array<int, 9>
2173 -------------------------------------------------------------------------------
2174 Misc.tests.cpp:<line number>
2175 ...............................................................................
2176
2177 Misc.tests.cpp:<line number>: PASSED:
2178 REQUIRE( x.size() > 0 )
2179 with expansion:
2180 9 > 0
2181
2182 -------------------------------------------------------------------------------
2183 A comparison that uses literals instead of the normal constructor
2184 -------------------------------------------------------------------------------
2185 Approx.tests.cpp:<line number>
2186 ...............................................................................
2187
2188 Approx.tests.cpp:<line number>: PASSED:
2189 REQUIRE( d == 1.23_a )
2190 with expansion:
2191 1.22999999999999998
2192 ==
2193 Approx( 1.22999999999999998 )
2194
2195 Approx.tests.cpp:<line number>: PASSED:
2196 REQUIRE( d != 1.22_a )
2197 with expansion:
2198 1.22999999999999998
2199 !=
2200 Approx( 1.21999999999999997 )
2201
2202 Approx.tests.cpp:<line number>: PASSED:
2203 REQUIRE( -d == -1.23_a )
2204 with expansion:
2205 -1.22999999999999998
2206 ==
2207 Approx( -1.22999999999999998 )
2208
2209 Approx.tests.cpp:<line number>: PASSED:
2210 REQUIRE( d == 1.2_a .epsilon(.1) )
2211 with expansion:
2212 1.22999999999999998
2213 ==
2214 Approx( 1.19999999999999996 )
2215
2216 Approx.tests.cpp:<line number>: PASSED:
2217 REQUIRE( d != 1.2_a .epsilon(.001) )
2218 with expansion:
2219 1.22999999999999998
2220 !=
2221 Approx( 1.19999999999999996 )
2222
2223 Approx.tests.cpp:<line number>: PASSED:
2224 REQUIRE( d == 1_a .epsilon(.3) )
2225 with expansion:
2226 1.22999999999999998 == Approx( 1.0 )
2227
2228 -------------------------------------------------------------------------------
2229 A couple of nested sections followed by a failure
2230 Outer
2231 Inner
2232 -------------------------------------------------------------------------------
2233 Misc.tests.cpp:<line number>
2234 ...............................................................................
2235
2236 Misc.tests.cpp:<line number>: PASSED:
2237 with message:
2238 that's not flying - that's failing in style
2239
2240 -------------------------------------------------------------------------------
2241 A couple of nested sections followed by a failure
2242 -------------------------------------------------------------------------------
2243 Misc.tests.cpp:<line number>
2244 ...............................................................................
2245
2246 Misc.tests.cpp:<line number>: FAILED:
2247 explicitly with message:
2248 to infinity and beyond
2249
2250 -------------------------------------------------------------------------------
2251 A failing expression with a non streamable type is still captured
2252 -------------------------------------------------------------------------------
2253 Tricky.tests.cpp:<line number>
2254 ...............................................................................
2255
2256 Tricky.tests.cpp:<line number>: FAILED:
2257 CHECK( &o1 == &o2 )
2258 with expansion:
2259 0x<hex digits> == 0x<hex digits>
2260
2261 Tricky.tests.cpp:<line number>: FAILED:
2262 CHECK( o1 == o2 )
2263 with expansion:
2264 {?} == {?}
2265
2266 -------------------------------------------------------------------------------
2267 Absolute margin
2268 -------------------------------------------------------------------------------
2269 Approx.tests.cpp:<line number>
2270 ...............................................................................
2271
2272 Approx.tests.cpp:<line number>: PASSED:
2273 REQUIRE( 104.0 != Approx(100.0) )
2274 with expansion:
2275 104.0 != Approx( 100.0 )
2276
2277 Approx.tests.cpp:<line number>: PASSED:
2278 REQUIRE( 104.0 == Approx(100.0).margin(5) )
2279 with expansion:
2280 104.0 == Approx( 100.0 )
2281
2282 Approx.tests.cpp:<line number>: PASSED:
2283 REQUIRE( 104.0 == Approx(100.0).margin(4) )
2284 with expansion:
2285 104.0 == Approx( 100.0 )
2286
2287 Approx.tests.cpp:<line number>: PASSED:
2288 REQUIRE( 104.0 != Approx(100.0).margin(3) )
2289 with expansion:
2290 104.0 != Approx( 100.0 )
2291
2292 Approx.tests.cpp:<line number>: PASSED:
2293 REQUIRE( 100.3 != Approx(100.0) )
2294 with expansion:
2295 100.29999999999999716 != Approx( 100.0 )
2296
2297 Approx.tests.cpp:<line number>: PASSED:
2298 REQUIRE( 100.3 == Approx(100.0).margin(0.5) )
2299 with expansion:
2300 100.29999999999999716 == Approx( 100.0 )
2301
2302 -------------------------------------------------------------------------------
2303 An empty test with no assertions
2304 -------------------------------------------------------------------------------
2305 Misc.tests.cpp:<line number>
2306 ...............................................................................
2307
2308
2309 No assertions in test case 'An empty test with no assertions'
2310
2311 -------------------------------------------------------------------------------
2312 An expression with side-effects should only be evaluated once
2313 -------------------------------------------------------------------------------
2314 Tricky.tests.cpp:<line number>
2315 ...............................................................................
2316
2317 Tricky.tests.cpp:<line number>: PASSED:
2318 REQUIRE( i++ == 7 )
2319 with expansion:
2320 7 == 7
2321
2322 Tricky.tests.cpp:<line number>: PASSED:
2323 REQUIRE( i++ == 8 )
2324 with expansion:
2325 8 == 8
2326
2327 -------------------------------------------------------------------------------
2328 An unchecked exception reports the line of the last assertion
2329 -------------------------------------------------------------------------------
2330 Exception.tests.cpp:<line number>
2331 ...............................................................................
2332
2333 Exception.tests.cpp:<line number>: PASSED:
2334 CHECK( 1 == 1 )
2335
2336 Exception.tests.cpp:<line number>: FAILED:
2337 {Unknown expression after the reported line}
2338 due to unexpected exception with message:
2339 unexpected exception
2340
2341 -------------------------------------------------------------------------------
2342 Anonymous test case 1
2343 -------------------------------------------------------------------------------
2344 VariadicMacros.tests.cpp:<line number>
2345 ...............................................................................
2346
2347 VariadicMacros.tests.cpp:<line number>: PASSED:
2348 with message:
2349 anonymous test case
2350
2351 -------------------------------------------------------------------------------
2352 Approx setters validate their arguments
2353 -------------------------------------------------------------------------------
2354 Approx.tests.cpp:<line number>
2355 ...............................................................................
2356
2357 Approx.tests.cpp:<line number>: PASSED:
2358 REQUIRE_NOTHROW( Approx(0).margin(0) )
2359
2360 Approx.tests.cpp:<line number>: PASSED:
2361 REQUIRE_NOTHROW( Approx(0).margin(1234656) )
2362
2363 Approx.tests.cpp:<line number>: PASSED:
2364 REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error )
2365
2366 Approx.tests.cpp:<line number>: PASSED:
2367 REQUIRE_NOTHROW( Approx(0).epsilon(0) )
2368
2369 Approx.tests.cpp:<line number>: PASSED:
2370 REQUIRE_NOTHROW( Approx(0).epsilon(1) )
2371
2372 Approx.tests.cpp:<line number>: PASSED:
2373 REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error )
2374
2375 Approx.tests.cpp:<line number>: PASSED:
2376 REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error )
2377
2378 -------------------------------------------------------------------------------
2379 Approx with exactly-representable margin
2380 -------------------------------------------------------------------------------
2381 Approx.tests.cpp:<line number>
2382 ...............................................................................
2383
2384 Approx.tests.cpp:<line number>: PASSED:
2385 CHECK( 0.25f == Approx(0.0f).margin(0.25f) )
2386 with expansion:
2387 0.25f == Approx( 0.0 )
2388
2389 Approx.tests.cpp:<line number>: PASSED:
2390 CHECK( 0.0f == Approx(0.25f).margin(0.25f) )
2391 with expansion:
2392 0.0f == Approx( 0.25 )
2393
2394 Approx.tests.cpp:<line number>: PASSED:
2395 CHECK( 0.5f == Approx(0.25f).margin(0.25f) )
2396 with expansion:
2397 0.5f == Approx( 0.25 )
2398
2399 Approx.tests.cpp:<line number>: PASSED:
2400 CHECK( 245.0f == Approx(245.25f).margin(0.25f) )
2401 with expansion:
2402 245.0f == Approx( 245.25 )
2403
2404 Approx.tests.cpp:<line number>: PASSED:
2405 CHECK( 245.5f == Approx(245.25f).margin(0.25f) )
2406 with expansion:
2407 245.5f == Approx( 245.25 )
2408
2409 -------------------------------------------------------------------------------
2410 Approximate PI
2411 -------------------------------------------------------------------------------
2412 Approx.tests.cpp:<line number>
2413 ...............................................................................
2414
2415 Approx.tests.cpp:<line number>: PASSED:
2416 REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) )
2417 with expansion:
2418 3.14285714285714279
2419 ==
2420 Approx( 3.14100000000000001 )
2421
2422 Approx.tests.cpp:<line number>: PASSED:
2423 REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) )
2424 with expansion:
2425 3.14285714285714279
2426 !=
2427 Approx( 3.14100000000000001 )
2428
2429 -------------------------------------------------------------------------------
2430 Approximate comparisons with different epsilons
2431 -------------------------------------------------------------------------------
2432 Approx.tests.cpp:<line number>
2433 ...............................................................................
2434
2435 Approx.tests.cpp:<line number>: PASSED:
2436 REQUIRE( d != Approx( 1.231 ) )
2437 with expansion:
2438 1.22999999999999998
2439 !=
2440 Approx( 1.23100000000000009 )
2441
2442 Approx.tests.cpp:<line number>: PASSED:
2443 REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) )
2444 with expansion:
2445 1.22999999999999998
2446 ==
2447 Approx( 1.23100000000000009 )
2448
2449 -------------------------------------------------------------------------------
2450 Approximate comparisons with floats
2451 -------------------------------------------------------------------------------
2452 Approx.tests.cpp:<line number>
2453 ...............................................................................
2454
2455 Approx.tests.cpp:<line number>: PASSED:
2456 REQUIRE( 1.23f == Approx( 1.23f ) )
2457 with expansion:
2458 1.230000019f
2459 ==
2460 Approx( 1.23000001907348633 )
2461
2462 Approx.tests.cpp:<line number>: PASSED:
2463 REQUIRE( 0.0f == Approx( 0.0f ) )
2464 with expansion:
2465 0.0f == Approx( 0.0 )
2466
2467 -------------------------------------------------------------------------------
2468 Approximate comparisons with ints
2469 -------------------------------------------------------------------------------
2470 Approx.tests.cpp:<line number>
2471 ...............................................................................
2472
2473 Approx.tests.cpp:<line number>: PASSED:
2474 REQUIRE( 1 == Approx( 1 ) )
2475 with expansion:
2476 1 == Approx( 1.0 )
2477
2478 Approx.tests.cpp:<line number>: PASSED:
2479 REQUIRE( 0 == Approx( 0 ) )
2480 with expansion:
2481 0 == Approx( 0.0 )
2482
2483 -------------------------------------------------------------------------------
2484 Approximate comparisons with mixed numeric types
2485 -------------------------------------------------------------------------------
2486 Approx.tests.cpp:<line number>
2487 ...............................................................................
2488
2489 Approx.tests.cpp:<line number>: PASSED:
2490 REQUIRE( 1.0f == Approx( 1 ) )
2491 with expansion:
2492 1.0f == Approx( 1.0 )
2493
2494 Approx.tests.cpp:<line number>: PASSED:
2495 REQUIRE( 0 == Approx( dZero) )
2496 with expansion:
2497 0 == Approx( 0.0 )
2498
2499 Approx.tests.cpp:<line number>: PASSED:
2500 REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) )
2501 with expansion:
2502 0 == Approx( 0.00001 )
2503
2504 Approx.tests.cpp:<line number>: PASSED:
2505 REQUIRE( 1.234f == Approx( dMedium ) )
2506 with expansion:
2507 1.233999968f
2508 ==
2509 Approx( 1.23399999999999999 )
2510
2511 Approx.tests.cpp:<line number>: PASSED:
2512 REQUIRE( dMedium == Approx( 1.234f ) )
2513 with expansion:
2514 1.23399999999999999
2515 ==
2516 Approx( 1.23399996757507324 )
2517
2518 -------------------------------------------------------------------------------
2519 Arbitrary predicate matcher
2520 Function pointer
2521 -------------------------------------------------------------------------------
2522 Matchers.tests.cpp:<line number>
2523 ...............................................................................
2524
2525 Matchers.tests.cpp:<line number>: PASSED:
2526 REQUIRE_THAT( 1, Predicate<int>( alwaysTrue, "always true" ) )
2527 with expansion:
2528 1 matches predicate: "always true"
2529
2530 Matchers.tests.cpp:<line number>: PASSED:
2531 REQUIRE_THAT( 1, !Predicate<int>( alwaysFalse, "always false" ) )
2532 with expansion:
2533 1 not matches predicate: "always false"
2534
2535 -------------------------------------------------------------------------------
2536 Arbitrary predicate matcher
2537 Lambdas + different type
2538 -------------------------------------------------------------------------------
2539 Matchers.tests.cpp:<line number>
2540 ...............................................................................
2541
2542 Matchers.tests.cpp:<line number>: PASSED:
2543 REQUIRE_THAT( "Hello olleH", Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); }, "First and last character should be equal" ) )
2544 with expansion:
2545 "Hello olleH" matches predicate: "First and last character should be equal"
2546
2547 Matchers.tests.cpp:<line number>: PASSED:
2548 REQUIRE_THAT( "This wouldn't pass", !Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); } ) )
2549 with expansion:
2550 "This wouldn't pass" not matches undescribed predicate
2551
2552 -------------------------------------------------------------------------------
2553 Assertion macros support bit operators and bool conversions
2554 -------------------------------------------------------------------------------
2555 Compilation.tests.cpp:<line number>
2556 ...............................................................................
2557
2558 Compilation.tests.cpp:<line number>: PASSED:
2559 REQUIRE( lhs | rhs )
2560 with expansion:
2561 Val: 1 | Val: 2
2562
2563 Compilation.tests.cpp:<line number>: PASSED:
2564 REQUIRE_FALSE( lhs & rhs )
2565 with expansion:
2566 !(Val: 1 & Val: 2)
2567
2568 Compilation.tests.cpp:<line number>: PASSED:
2569 REQUIRE( HasBitOperators{ 1 } & HasBitOperators{ 1 } )
2570 with expansion:
2571 Val: 1 & Val: 1
2572
2573 Compilation.tests.cpp:<line number>: PASSED:
2574 REQUIRE( lhs ^ rhs )
2575 with expansion:
2576 Val: 1 ^ Val: 2
2577
2578 Compilation.tests.cpp:<line number>: PASSED:
2579 REQUIRE_FALSE( lhs ^ lhs )
2580 with expansion:
2581 !(Val: 1 ^ Val: 1)
2582
2583 -------------------------------------------------------------------------------
2584 Assertions can be nested - CHECK
2585 -------------------------------------------------------------------------------
2586 AssertionHandler.tests.cpp:<line number>
2587 ...............................................................................
2588
2589 AssertionHandler.tests.cpp:<line number>: FAILED:
2590 REQUIRE( i > 10 )
2591 with expansion:
2592 2 > 10
2593
2594 AssertionHandler.tests.cpp:<line number>: FAILED:
2595 CHECK( foo( 2 ) == 2 )
2596 due to unexpected exception with message:
2597 { nested assertion failed }
2598
2599 AssertionHandler.tests.cpp:<line number>: PASSED:
2600 CHECK( true )
2601
2602 -------------------------------------------------------------------------------
2603 Assertions can be nested - REQUIRE
2604 -------------------------------------------------------------------------------
2605 AssertionHandler.tests.cpp:<line number>
2606 ...............................................................................
2607
2608 AssertionHandler.tests.cpp:<line number>: FAILED:
2609 REQUIRE( i > 10 )
2610 with expansion:
2611 2 > 10
2612
2613 AssertionHandler.tests.cpp:<line number>: FAILED:
2614 REQUIRE( foo( 2 ) == 2 )
2615 due to unexpected exception with message:
2616 { nested assertion failed }
2617
2618 -------------------------------------------------------------------------------
2619 Assertions then sections
2620 -------------------------------------------------------------------------------
2621 Tricky.tests.cpp:<line number>
2622 ...............................................................................
2623
2624 Tricky.tests.cpp:<line number>: PASSED:
2625 REQUIRE( true )
2626
2627 -------------------------------------------------------------------------------
2628 Assertions then sections
2629 A section
2630 -------------------------------------------------------------------------------
2631 Tricky.tests.cpp:<line number>
2632 ...............................................................................
2633
2634 Tricky.tests.cpp:<line number>: PASSED:
2635 REQUIRE( true )
2636
2637 -------------------------------------------------------------------------------
2638 Assertions then sections
2639 A section
2640 Another section
2641 -------------------------------------------------------------------------------
2642 Tricky.tests.cpp:<line number>
2643 ...............................................................................
2644
2645 Tricky.tests.cpp:<line number>: PASSED:
2646 REQUIRE( true )
2647
2648 -------------------------------------------------------------------------------
2649 Assertions then sections
2650 -------------------------------------------------------------------------------
2651 Tricky.tests.cpp:<line number>
2652 ...............................................................................
2653
2654 Tricky.tests.cpp:<line number>: PASSED:
2655 REQUIRE( true )
2656
2657 -------------------------------------------------------------------------------
2658 Assertions then sections
2659 A section
2660 -------------------------------------------------------------------------------
2661 Tricky.tests.cpp:<line number>
2662 ...............................................................................
2663
2664 Tricky.tests.cpp:<line number>: PASSED:
2665 REQUIRE( true )
2666
2667 -------------------------------------------------------------------------------
2668 Assertions then sections
2669 A section
2670 Another other section
2671 -------------------------------------------------------------------------------
2672 Tricky.tests.cpp:<line number>
2673 ...............................................................................
2674
2675 Tricky.tests.cpp:<line number>: PASSED:
2676 REQUIRE( true )
2677
2678 -------------------------------------------------------------------------------
2679 Basic use of the Contains range matcher
2680 Different argument ranges, same element type, default comparison
2681 -------------------------------------------------------------------------------
2682 MatchersRanges.tests.cpp:<line number>
2683 ...............................................................................
2684
2685 MatchersRanges.tests.cpp:<line number>: PASSED:
2686 REQUIRE_THAT( a, Contains(1) )
2687 with expansion:
2688 { 1, 2, 3 } contains element 1
2689
2690 MatchersRanges.tests.cpp:<line number>: PASSED:
2691 REQUIRE_THAT( b, Contains(1) )
2692 with expansion:
2693 { 0, 1, 2 } contains element 1
2694
2695 MatchersRanges.tests.cpp:<line number>: PASSED:
2696 REQUIRE_THAT( c, !Contains(1) )
2697 with expansion:
2698 { 4, 5, 6 } not contains element 1
2699
2700 -------------------------------------------------------------------------------
2701 Basic use of the Contains range matcher
2702 Different argument ranges, same element type, custom comparison
2703 -------------------------------------------------------------------------------
2704 MatchersRanges.tests.cpp:<line number>
2705 ...............................................................................
2706
2707 MatchersRanges.tests.cpp:<line number>: PASSED:
2708 REQUIRE_THAT( a, Contains(0, close_enough) )
2709 with expansion:
2710 { 1, 2, 3 } contains element 0
2711
2712 MatchersRanges.tests.cpp:<line number>: PASSED:
2713 REQUIRE_THAT( b, Contains(0, close_enough) )
2714 with expansion:
2715 { 0, 1, 2 } contains element 0
2716
2717 MatchersRanges.tests.cpp:<line number>: PASSED:
2718 REQUIRE_THAT( c, !Contains(0, close_enough) )
2719 with expansion:
2720 { 4, 5, 6 } not contains element 0
2721
2722 -------------------------------------------------------------------------------
2723 Basic use of the Contains range matcher
2724 Different element type, custom comparisons
2725 -------------------------------------------------------------------------------
2726 MatchersRanges.tests.cpp:<line number>
2727 ...............................................................................
2728
2729 MatchersRanges.tests.cpp:<line number>: PASSED:
2730 REQUIRE_THAT( a, Contains(4, [](auto&& lhs, size_t sz) { return lhs.size() == sz; }) )
2731 with expansion:
2732 { "abc", "abcd", "abcde" } contains element 4
2733
2734 -------------------------------------------------------------------------------
2735 Basic use of the Contains range matcher
2736 Can handle type that requires ADL-found free function begin and end
2737 -------------------------------------------------------------------------------
2738 MatchersRanges.tests.cpp:<line number>
2739 ...............................................................................
2740
2741 MatchersRanges.tests.cpp:<line number>: PASSED:
2742 REQUIRE_THAT( in, Contains(1) )
2743 with expansion:
2744 { 1, 2, 3, 4, 5 } contains element 1
2745
2746 MatchersRanges.tests.cpp:<line number>: PASSED:
2747 REQUIRE_THAT( in, !Contains(8) )
2748 with expansion:
2749 { 1, 2, 3, 4, 5 } not contains element 8
2750
2751 -------------------------------------------------------------------------------
2752 Basic use of the Contains range matcher
2753 Initialization with move only types
2754 -------------------------------------------------------------------------------
2755 MatchersRanges.tests.cpp:<line number>
2756 ...............................................................................
2757
2758 MatchersRanges.tests.cpp:<line number>: PASSED:
2759 REQUIRE_THAT( in, Contains(MoveOnlyTestElement{ 2 }) )
2760 with expansion:
2761 { 1, 2, 3 } contains element 2
2762
2763 MatchersRanges.tests.cpp:<line number>: PASSED:
2764 REQUIRE_THAT( in, !Contains(MoveOnlyTestElement{ 9 }) )
2765 with expansion:
2766 { 1, 2, 3 } not contains element 9
2767
2768 -------------------------------------------------------------------------------
2769 Basic use of the Contains range matcher
2770 Matching using matcher
2771 -------------------------------------------------------------------------------
2772 MatchersRanges.tests.cpp:<line number>
2773 ...............................................................................
2774
2775 MatchersRanges.tests.cpp:<line number>: PASSED:
2776 REQUIRE_THAT( in, Contains(Catch::Matchers::WithinAbs(0.5, 0.5)) )
2777 with expansion:
2778 { 1.0, 2.0, 3.0, 0.0 } contains element matching is within 0.5 of 0.5
2779
2780 -------------------------------------------------------------------------------
2781 Basic use of the Empty range matcher
2782 Simple, std-provided containers
2783 -------------------------------------------------------------------------------
2784 MatchersRanges.tests.cpp:<line number>
2785 ...............................................................................
2786
2787 MatchersRanges.tests.cpp:<line number>: PASSED:
2788 REQUIRE_THAT( empty_array, IsEmpty() )
2789 with expansion:
2790 { } is empty
2791
2792 MatchersRanges.tests.cpp:<line number>: PASSED:
2793 REQUIRE_THAT( non_empty_array, !IsEmpty() )
2794 with expansion:
2795 { 0.0 } not is empty
2796
2797 MatchersRanges.tests.cpp:<line number>: PASSED:
2798 REQUIRE_THAT( empty_vec, IsEmpty() )
2799 with expansion:
2800 { } is empty
2801
2802 MatchersRanges.tests.cpp:<line number>: PASSED:
2803 REQUIRE_THAT( non_empty_vec, !IsEmpty() )
2804 with expansion:
2805 { 'a', 'b', 'c' } not is empty
2806
2807 MatchersRanges.tests.cpp:<line number>: PASSED:
2808 REQUIRE_THAT( inner_lists_are_empty, !IsEmpty() )
2809 with expansion:
2810 { { } } not is empty
2811
2812 MatchersRanges.tests.cpp:<line number>: PASSED:
2813 REQUIRE_THAT( inner_lists_are_empty.front(), IsEmpty() )
2814 with expansion:
2815 { } is empty
2816
2817 -------------------------------------------------------------------------------
2818 Basic use of the Empty range matcher
2819 Type with empty
2820 -------------------------------------------------------------------------------
2821 MatchersRanges.tests.cpp:<line number>
2822 ...............................................................................
2823
2824 MatchersRanges.tests.cpp:<line number>: PASSED:
2825 REQUIRE_THAT( has_empty{}, !IsEmpty() )
2826 with expansion:
2827 {?} not is empty
2828
2829 -------------------------------------------------------------------------------
2830 Basic use of the Empty range matcher
2831 Type requires ADL found empty free function
2832 -------------------------------------------------------------------------------
2833 MatchersRanges.tests.cpp:<line number>
2834 ...............................................................................
2835
2836 MatchersRanges.tests.cpp:<line number>: PASSED:
2837 REQUIRE_THAT( unrelated::ADL_empty{}, IsEmpty() )
2838 with expansion:
2839 {?} is empty
2840
2841 -------------------------------------------------------------------------------
2842 CAPTURE can deal with complex expressions
2843 -------------------------------------------------------------------------------
2844 Message.tests.cpp:<line number>
2845 ...............................................................................
2846
2847 Message.tests.cpp:<line number>: PASSED:
2848 with messages:
2849 a := 1
2850 b := 2
2851 c := 3
2852 a + b := 3
2853 a+b := 3
2854 c > b := true
2855 a == 1 := true
2856
2857 -------------------------------------------------------------------------------
2858 CAPTURE can deal with complex expressions involving commas
2859 -------------------------------------------------------------------------------
2860 Message.tests.cpp:<line number>
2861 ...............................................................................
2862
2863 Message.tests.cpp:<line number>: PASSED:
2864 with messages:
2865 custom_index_op<int>{1, 2, 3}[0, 1, 2] := 0
2866 custom_index_op<int>{1, 2, 3}[(0, 1)] := 0
2867 custom_index_op<int>{1, 2, 3}[0] := 0
2868 (helper_1436<int, int>{12, -12}) := { 12, -12 }
2869 (helper_1436<int, int>(-12, 12)) := { -12, 12 }
2870 (1, 2) := 2
2871 (2, 3) := 3
2872
2873 -------------------------------------------------------------------------------
2874 CAPTURE parses string and character constants
2875 -------------------------------------------------------------------------------
2876 Message.tests.cpp:<line number>
2877 ...............................................................................
2878
2879 Message.tests.cpp:<line number>: PASSED:
2880 with messages:
2881 ("comma, in string", "escaped, \", ") := "escaped, ", "
2882 "single quote in string,'," := "single quote in string,',"
2883 "some escapes, \\,\\\\" := "some escapes, \,\\"
2884 "some, ), unmatched, } prenheses {[<" := "some, ), unmatched, } prenheses {[
2885 <"
2886 '"' := '"'
2887 '\'' := '''
2888 ',' := ','
2889 '}' := '}'
2890 ')' := ')'
2891 '(' := '('
2892 '{' := '{'
2893
2894 -------------------------------------------------------------------------------
2895 Capture and info messages
2896 Capture should stringify like assertions
2897 -------------------------------------------------------------------------------
2898 ToStringGeneral.tests.cpp:<line number>
2899 ...............................................................................
2900
2901 ToStringGeneral.tests.cpp:<line number>: PASSED:
2902 REQUIRE( true )
2903 with message:
2904 i := 2
2905
2906 -------------------------------------------------------------------------------
2907 Capture and info messages
2908 Info should NOT stringify the way assertions do
2909 -------------------------------------------------------------------------------
2910 ToStringGeneral.tests.cpp:<line number>
2911 ...............................................................................
2912
2913 ToStringGeneral.tests.cpp:<line number>: PASSED:
2914 REQUIRE( true )
2915 with message:
2916 3
2917
2918 -------------------------------------------------------------------------------
2919 Captures do not leave block with an exception
2920 -------------------------------------------------------------------------------
2921 Message.tests.cpp:<line number>
2922 ...............................................................................
2923
2924 Message.tests.cpp:<line number>: FAILED:
2925 REQUIRE( false )
2926 with message:
2927 a := 1
2928
2929 -------------------------------------------------------------------------------
2930 Captures outlive section end
2931 Dummy section
2932 -------------------------------------------------------------------------------
2933 Message.tests.cpp:<line number>
2934 ...............................................................................
2935
2936 Message.tests.cpp:<line number>: PASSED:
2937 CHECK( true )
2938 with message:
2939 a := 1
2940
2941 -------------------------------------------------------------------------------
2942 Captures outlive section end
2943 -------------------------------------------------------------------------------
2944 Message.tests.cpp:<line number>
2945 ...............................................................................
2946
2947 Message.tests.cpp:<line number>: FAILED:
2948 REQUIRE( false )
2949 with message:
2950 a := 1
2951
2952 -------------------------------------------------------------------------------
2953 CaseInsensitiveEqualsTo is case insensitive
2954 Degenerate cases
2955 -------------------------------------------------------------------------------
2956 Details.tests.cpp:<line number>
2957 ...............................................................................
2958
2959 Details.tests.cpp:<line number>: PASSED:
2960 REQUIRE( eq( "", "" ) )
2961 with expansion:
2962 true
2963
2964 Details.tests.cpp:<line number>: PASSED:
2965 REQUIRE_FALSE( eq( "", "a" ) )
2966 with expansion:
2967 !false
2968
2969 -------------------------------------------------------------------------------
2970 CaseInsensitiveEqualsTo is case insensitive
2971 Plain comparisons
2972 -------------------------------------------------------------------------------
2973 Details.tests.cpp:<line number>
2974 ...............................................................................
2975
2976 Details.tests.cpp:<line number>: PASSED:
2977 REQUIRE( eq( "a", "a" ) )
2978 with expansion:
2979 true
2980
2981 Details.tests.cpp:<line number>: PASSED:
2982 REQUIRE( eq( "a", "A" ) )
2983 with expansion:
2984 true
2985
2986 Details.tests.cpp:<line number>: PASSED:
2987 REQUIRE( eq( "A", "a" ) )
2988 with expansion:
2989 true
2990
2991 Details.tests.cpp:<line number>: PASSED:
2992 REQUIRE( eq( "A", "A" ) )
2993 with expansion:
2994 true
2995
2996 Details.tests.cpp:<line number>: PASSED:
2997 REQUIRE_FALSE( eq( "a", "b" ) )
2998 with expansion:
2999 !false
3000
3001 Details.tests.cpp:<line number>: PASSED:
3002 REQUIRE_FALSE( eq( "a", "B" ) )
3003 with expansion:
3004 !false
3005
3006 -------------------------------------------------------------------------------
3007 CaseInsensitiveLess is case insensitive
3008 Degenerate cases
3009 -------------------------------------------------------------------------------
3010 Details.tests.cpp:<line number>
3011 ...............................................................................
3012
3013 Details.tests.cpp:<line number>: PASSED:
3014 REQUIRE( lt( "", "a" ) )
3015 with expansion:
3016 true
3017
3018 Details.tests.cpp:<line number>: PASSED:
3019 REQUIRE_FALSE( lt( "a", "a" ) )
3020 with expansion:
3021 !false
3022
3023 Details.tests.cpp:<line number>: PASSED:
3024 REQUIRE_FALSE( lt( "", "" ) )
3025 with expansion:
3026 !false
3027
3028 -------------------------------------------------------------------------------
3029 CaseInsensitiveLess is case insensitive
3030 Plain comparisons
3031 -------------------------------------------------------------------------------
3032 Details.tests.cpp:<line number>
3033 ...............................................................................
3034
3035 Details.tests.cpp:<line number>: PASSED:
3036 REQUIRE( lt( "a", "b" ) )
3037 with expansion:
3038 true
3039
3040 Details.tests.cpp:<line number>: PASSED:
3041 REQUIRE( lt( "a", "B" ) )
3042 with expansion:
3043 true
3044
3045 Details.tests.cpp:<line number>: PASSED:
3046 REQUIRE( lt( "A", "b" ) )
3047 with expansion:
3048 true
3049
3050 Details.tests.cpp:<line number>: PASSED:
3051 REQUIRE( lt( "A", "B" ) )
3052 with expansion:
3053 true
3054
3055 -------------------------------------------------------------------------------
3056 Character pretty printing
3057 Specifically escaped
3058 -------------------------------------------------------------------------------
3059 ToStringGeneral.tests.cpp:<line number>
3060 ...............................................................................
3061
3062 ToStringGeneral.tests.cpp:<line number>: PASSED:
3063 CHECK( ::Catch::Detail::stringify('\t') == "'\\t'" )
3064 with expansion:
3065 "'\t'" == "'\t'"
3066
3067 ToStringGeneral.tests.cpp:<line number>: PASSED:
3068 CHECK( ::Catch::Detail::stringify('\n') == "'\\n'" )
3069 with expansion:
3070 "'\n'" == "'\n'"
3071
3072 ToStringGeneral.tests.cpp:<line number>: PASSED:
3073 CHECK( ::Catch::Detail::stringify('\r') == "'\\r'" )
3074 with expansion:
3075 "'\r'" == "'\r'"
3076
3077 ToStringGeneral.tests.cpp:<line number>: PASSED:
3078 CHECK( ::Catch::Detail::stringify('\f') == "'\\f'" )
3079 with expansion:
3080 "'\f'" == "'\f'"
3081
3082 -------------------------------------------------------------------------------
3083 Character pretty printing
3084 General chars
3085 -------------------------------------------------------------------------------
3086 ToStringGeneral.tests.cpp:<line number>
3087 ...............................................................................
3088
3089 ToStringGeneral.tests.cpp:<line number>: PASSED:
3090 CHECK( ::Catch::Detail::stringify( ' ' ) == "' '" )
3091 with expansion:
3092 "' '" == "' '"
3093
3094 ToStringGeneral.tests.cpp:<line number>: PASSED:
3095 CHECK( ::Catch::Detail::stringify( 'A' ) == "'A'" )
3096 with expansion:
3097 "'A'" == "'A'"
3098
3099 ToStringGeneral.tests.cpp:<line number>: PASSED:
3100 CHECK( ::Catch::Detail::stringify( 'z' ) == "'z'" )
3101 with expansion:
3102 "'z'" == "'z'"
3103
3104 -------------------------------------------------------------------------------
3105 Character pretty printing
3106 Low ASCII
3107 -------------------------------------------------------------------------------
3108 ToStringGeneral.tests.cpp:<line number>
3109 ...............................................................................
3110
3111 ToStringGeneral.tests.cpp:<line number>: PASSED:
3112 CHECK( ::Catch::Detail::stringify( '\0' ) == "0" )
3113 with expansion:
3114 "0" == "0"
3115
3116 ToStringGeneral.tests.cpp:<line number>: PASSED:
3117 CHECK( ::Catch::Detail::stringify( static_cast<char>(2) ) == "2" )
3118 with expansion:
3119 "2" == "2"
3120
3121 ToStringGeneral.tests.cpp:<line number>: PASSED:
3122 CHECK( ::Catch::Detail::stringify( static_cast<char>(5) ) == "5" )
3123 with expansion:
3124 "5" == "5"
3125
3126 -------------------------------------------------------------------------------
3127 Clara::Arg does not crash on incomplete input
3128 -------------------------------------------------------------------------------
3129 Clara.tests.cpp:<line number>
3130 ...............................................................................
3131
3132 Clara.tests.cpp:<line number>: PASSED:
3133 CHECK( name.empty() )
3134 with expansion:
3135 true
3136
3137 Clara.tests.cpp:<line number>: PASSED:
3138 CHECK( result )
3139 with expansion:
3140 {?}
3141
3142 Clara.tests.cpp:<line number>: PASSED:
3143 CHECK( result.type() == Catch::Clara::Detail::ResultType::Ok )
3144 with expansion:
3145 0 == 0
3146
3147 Clara.tests.cpp:<line number>: PASSED:
3148 CHECK( parsed.type() == Catch::Clara::ParseResultType::NoMatch )
3149 with expansion:
3150 1 == 1
3151
3152 Clara.tests.cpp:<line number>: PASSED:
3153 CHECK( parsed.remainingTokens().count() == 2 )
3154 with expansion:
3155 2 == 2
3156
3157 Clara.tests.cpp:<line number>: PASSED:
3158 CHECK( name.empty() )
3159 with expansion:
3160 true
3161
3162 -------------------------------------------------------------------------------
3163 Clara::Arg supports single-arg parse the way Opt does
3164 -------------------------------------------------------------------------------
3165 Clara.tests.cpp:<line number>
3166 ...............................................................................
3167
3168 Clara.tests.cpp:<line number>: PASSED:
3169 CHECK( name.empty() )
3170 with expansion:
3171 true
3172
3173 Clara.tests.cpp:<line number>: PASSED:
3174 REQUIRE( name == "foo" )
3175 with expansion:
3176 "foo" == "foo"
3177
3178 -------------------------------------------------------------------------------
3179 Clara::Opt supports accept-many lambdas
3180 Parsing fails on multiple options without accept_many
3181 -------------------------------------------------------------------------------
3182 Clara.tests.cpp:<line number>
3183 ...............................................................................
3184
3185 Clara.tests.cpp:<line number>: PASSED:
3186 CHECK_FALSE( parse_result )
3187 with expansion:
3188 !{?}
3189
3190 -------------------------------------------------------------------------------
3191 Clara::Opt supports accept-many lambdas
3192 Parsing succeeds on multiple options with accept_many
3193 -------------------------------------------------------------------------------
3194 Clara.tests.cpp:<line number>
3195 ...............................................................................
3196
3197 Clara.tests.cpp:<line number>: PASSED:
3198 CHECK( parse_result )
3199 with expansion:
3200 {?}
3201
3202 Clara.tests.cpp:<line number>: PASSED:
3203 CHECK( res == std::vector<std::string>{ "aaa", "bbb" } )
3204 with expansion:
3205 { "aaa", "bbb" } == { "aaa", "bbb" }
3206
3207 -------------------------------------------------------------------------------
3208 ColourGuard behaviour
3209 ColourGuard is disengaged by default
3210 -------------------------------------------------------------------------------
3211 ColourImpl.tests.cpp:<line number>
3212 ...............................................................................
3213
3214 ColourImpl.tests.cpp:<line number>: PASSED:
3215 REQUIRE( streamWrapper.str().empty() )
3216 with expansion:
3217 true
3218
3219 -------------------------------------------------------------------------------
3220 ColourGuard behaviour
3221 ColourGuard is engaged by op<<
3222 -------------------------------------------------------------------------------
3223 ColourImpl.tests.cpp:<line number>
3224 ...............................................................................
3225
3226 ColourImpl.tests.cpp:<line number>: PASSED:
3227 REQUIRE( streamWrapper.str() == "1\nUsing code: 2\n2\nUsing code: 0\n3\n" )
3228 with expansion:
3229 "1
3230 Using code: 2
3231 2
3232 Using code: 0
3233 3
3234 "
3235 ==
3236 "1
3237 Using code: 2
3238 2
3239 Using code: 0
3240 3
3241 "
3242
3243 -------------------------------------------------------------------------------
3244 ColourGuard behaviour
3245 ColourGuard can be engaged explicitly
3246 -------------------------------------------------------------------------------
3247 ColourImpl.tests.cpp:<line number>
3248 ...............................................................................
3249
3250 ColourImpl.tests.cpp:<line number>: PASSED:
3251 REQUIRE( streamWrapper.str() == "Using code: 2\nA\nB\nUsing code: 0\nC\n" )
3252 with expansion:
3253 "Using code: 2
3254 A
3255 B
3256 Using code: 0
3257 C
3258 "
3259 ==
3260 "Using code: 2
3261 A
3262 B
3263 Using code: 0
3264 C
3265 "
3266
3267 -------------------------------------------------------------------------------
3268 Combining MatchAllOfGeneric does not nest
3269 -------------------------------------------------------------------------------
3270 Matchers.tests.cpp:<line number>
3271 ...............................................................................
3272
3273 Matchers.tests.cpp:<line number>: PASSED:
3274 with message:
3275 std::is_same< decltype( ( MatcherA() && MatcherB() ) && MatcherC() ), Catch::
3276 Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3277
3278 Matchers.tests.cpp:<line number>: PASSED:
3279 REQUIRE_THAT( 1, ( MatcherA() && MatcherB() ) && MatcherC() )
3280 with expansion:
3281 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3282 1 )
3283
3284 Matchers.tests.cpp:<line number>: PASSED:
3285 with message:
3286 std::is_same< decltype( MatcherA() && ( MatcherB() && MatcherC() ) ), Catch::
3287 Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3288
3289 Matchers.tests.cpp:<line number>: PASSED:
3290 REQUIRE_THAT( 1, MatcherA() && ( MatcherB() && MatcherC() ) )
3291 with expansion:
3292 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3293 1 )
3294
3295 Matchers.tests.cpp:<line number>: PASSED:
3296 with message:
3297 std::is_same< decltype( ( MatcherA() && MatcherB() ) && ( MatcherC() &&
3298 MatcherD() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA,
3299 MatcherB, MatcherC, MatcherD>>:: value
3300
3301 Matchers.tests.cpp:<line number>: PASSED:
3302 REQUIRE_THAT( 1, ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) )
3303 with expansion:
3304 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3305 1 and equals: true )
3306
3307 -------------------------------------------------------------------------------
3308 Combining MatchAnyOfGeneric does not nest
3309 -------------------------------------------------------------------------------
3310 Matchers.tests.cpp:<line number>
3311 ...............................................................................
3312
3313 Matchers.tests.cpp:<line number>: PASSED:
3314 with message:
3315 std::is_same< decltype( ( MatcherA() || MatcherB() ) || MatcherC() ), Catch::
3316 Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3317
3318 Matchers.tests.cpp:<line number>: PASSED:
3319 REQUIRE_THAT( 1, ( MatcherA() || MatcherB() ) || MatcherC() )
3320 with expansion:
3321 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3322 )
3323
3324 Matchers.tests.cpp:<line number>: PASSED:
3325 with message:
3326 std::is_same< decltype( MatcherA() || ( MatcherB() || MatcherC() ) ), Catch::
3327 Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3328
3329 Matchers.tests.cpp:<line number>: PASSED:
3330 REQUIRE_THAT( 1, MatcherA() || ( MatcherB() || MatcherC() ) )
3331 with expansion:
3332 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3333 )
3334
3335 Matchers.tests.cpp:<line number>: PASSED:
3336 with message:
3337 std::is_same< decltype( ( MatcherA() || MatcherB() ) || ( MatcherC() ||
3338 MatcherD() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA,
3339 MatcherB, MatcherC, MatcherD>>:: value
3340
3341 Matchers.tests.cpp:<line number>: PASSED:
3342 REQUIRE_THAT( 1, ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) )
3343 with expansion:
3344 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3345 or equals: true )
3346
3347 -------------------------------------------------------------------------------
3348 Combining MatchNotOfGeneric does not nest
3349 -------------------------------------------------------------------------------
3350 Matchers.tests.cpp:<line number>
3351 ...............................................................................
3352
3353 Matchers.tests.cpp:<line number>: PASSED:
3354 with message:
3355 std::is_same< decltype( !MatcherA() ), Catch::Matchers::Detail::
3356 MatchNotOfGeneric<MatcherA>>::value
3357
3358 Matchers.tests.cpp:<line number>: PASSED:
3359 REQUIRE_THAT( 0, !MatcherA() )
3360 with expansion:
3361 0 not equals: (int) 1 or (string) "1"
3362
3363 Matchers.tests.cpp:<line number>: PASSED:
3364 with message:
3365 std::is_same<decltype( !!MatcherA() ), MatcherA const&>::value
3366
3367 Matchers.tests.cpp:<line number>: PASSED:
3368 REQUIRE_THAT( 1, !!MatcherA() )
3369 with expansion:
3370 1 equals: (int) 1 or (string) "1"
3371
3372 Matchers.tests.cpp:<line number>: PASSED:
3373 with message:
3374 std::is_same< decltype( !!!MatcherA() ), Catch::Matchers::Detail::
3375 MatchNotOfGeneric<MatcherA>>::value
3376
3377 Matchers.tests.cpp:<line number>: PASSED:
3378 REQUIRE_THAT( 0, !!!MatcherA() )
3379 with expansion:
3380 0 not equals: (int) 1 or (string) "1"
3381
3382 Matchers.tests.cpp:<line number>: PASSED:
3383 with message:
3384 std::is_same<decltype( !!!!MatcherA() ), MatcherA const&>::value
3385
3386 Matchers.tests.cpp:<line number>: PASSED:
3387 REQUIRE_THAT( 1, !!!!MatcherA() )
3388 with expansion:
3389 1 equals: (int) 1 or (string) "1"
3390
3391 -------------------------------------------------------------------------------
3392 Combining concrete matchers does not use templated matchers
3393 -------------------------------------------------------------------------------
3394 Matchers.tests.cpp:<line number>
3395 ...............................................................................
3396
3397 Matchers.tests.cpp:<line number>: PASSED:
3398 with message:
3399 std::is_same<decltype( StartsWith( "foo" ) || ( StartsWith( "bar" ) &&
3400 EndsWith( "bar" ) && !EndsWith( "foo" ) ) ), Catch::Matchers::Detail::
3401 MatchAnyOf<std::string>>::value
3402
3403 -------------------------------------------------------------------------------
3404 Combining only templated matchers
3405 -------------------------------------------------------------------------------
3406 Matchers.tests.cpp:<line number>
3407 ...............................................................................
3408
3409 Matchers.tests.cpp:<line number>: PASSED:
3410 with message:
3411 std::is_same<decltype( MatcherA() || MatcherB() ), Catch::Matchers::Detail::
3412 MatchAnyOfGeneric<MatcherA, MatcherB>>::value
3413
3414 Matchers.tests.cpp:<line number>: PASSED:
3415 REQUIRE_THAT( 1, MatcherA() || MatcherB() )
3416 with expansion:
3417 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 )
3418
3419 Matchers.tests.cpp:<line number>: PASSED:
3420 with message:
3421 std::is_same<decltype( MatcherA() && MatcherB() ), Catch::Matchers::Detail::
3422 MatchAllOfGeneric<MatcherA, MatcherB>>::value
3423
3424 Matchers.tests.cpp:<line number>: PASSED:
3425 REQUIRE_THAT( 1, MatcherA() && MatcherB() )
3426 with expansion:
3427 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 )
3428
3429 Matchers.tests.cpp:<line number>: PASSED:
3430 with message:
3431 std::is_same< decltype( MatcherA() || !MatcherB() ), Catch::Matchers::Detail:
3432 :MatchAnyOfGeneric< MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric
3433 <MatcherB>>>::value
3434
3435 Matchers.tests.cpp:<line number>: PASSED:
3436 REQUIRE_THAT( 1, MatcherA() || !MatcherB() )
3437 with expansion:
3438 1 ( equals: (int) 1 or (string) "1" or not equals: (long long) 1 )
3439
3440 -------------------------------------------------------------------------------
3441 Combining templated and concrete matchers
3442 -------------------------------------------------------------------------------
3443 Matchers.tests.cpp:<line number>
3444 ...............................................................................
3445
3446 Matchers.tests.cpp:<line number>: PASSED:
3447 REQUIRE_THAT( 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 ) )
3448 with expansion:
3449 { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5,
3450 3, 1 } )
3451
3452 Matchers.tests.cpp:<line number>: PASSED:
3453 REQUIRE_THAT( str, StartsWith( "foo" ) && EqualsRange( arr ) && EndsWith( "bar" ) )
3454 with expansion:
3455 "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' }
3456 and ends with: "bar" )
3457
3458 Matchers.tests.cpp:<line number>: PASSED:
3459 REQUIRE_THAT( str, StartsWith( "foo" ) && !EqualsRange( bad_arr ) && EndsWith( "bar" ) )
3460 with expansion:
3461 "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r'
3462 } and ends with: "bar" )
3463
3464 Matchers.tests.cpp:<line number>: PASSED:
3465 REQUIRE_THAT( str, EqualsRange( arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) )
3466 with expansion:
3467 "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo"
3468 and ends with: "bar" )
3469
3470 Matchers.tests.cpp:<line number>: PASSED:
3471 REQUIRE_THAT( str, !EqualsRange( bad_arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) )
3472 with expansion:
3473 "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with:
3474 "foo" and ends with: "bar" )
3475
3476 Matchers.tests.cpp:<line number>: PASSED:
3477 REQUIRE_THAT( str, EqualsRange( bad_arr ) || ( StartsWith( "foo" ) && EndsWith( "bar" ) ) )
3478 with expansion:
3479 "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo"
3480 and ends with: "bar" ) )
3481
3482 Matchers.tests.cpp:<line number>: PASSED:
3483 REQUIRE_THAT( str, ( StartsWith( "foo" ) && EndsWith( "bar" ) ) || EqualsRange( bad_arr ) )
3484 with expansion:
3485 "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o',
3486 'f', 'b', 'a', 'r' } )
3487
3488 -------------------------------------------------------------------------------
3489 Combining templated matchers
3490 -------------------------------------------------------------------------------
3491 Matchers.tests.cpp:<line number>
3492 ...............................................................................
3493
3494 Matchers.tests.cpp:<line number>: PASSED:
3495 REQUIRE_THAT( container, EqualsRange( a ) || EqualsRange( b ) || EqualsRange( c ) )
3496 with expansion:
3497 { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6
3498 } )
3499
3500 -------------------------------------------------------------------------------
3501 Commas in various macros are allowed
3502 -------------------------------------------------------------------------------
3503 Tricky.tests.cpp:<line number>
3504 ...............................................................................
3505
3506 Tricky.tests.cpp:<line number>: PASSED:
3507 REQUIRE_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
3508
3509 Tricky.tests.cpp:<line number>: PASSED:
3510 CHECK_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
3511
3512 Tricky.tests.cpp:<line number>: PASSED:
3513 REQUIRE_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
3514
3515 Tricky.tests.cpp:<line number>: PASSED:
3516 CHECK_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
3517
3518 Tricky.tests.cpp:<line number>: PASSED:
3519 REQUIRE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3520 with expansion:
3521 { 1, 2 } == { 1, 2 }
3522
3523 Tricky.tests.cpp:<line number>: PASSED:
3524 CHECK( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3525 with expansion:
3526 { 1, 2 } == { 1, 2 }
3527
3528 Tricky.tests.cpp:<line number>: PASSED:
3529 REQUIRE_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
3530 with expansion:
3531 !({ 1, 2 } == { 1, 2, 3 })
3532
3533 Tricky.tests.cpp:<line number>: PASSED:
3534 CHECK_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
3535 with expansion:
3536 !({ 1, 2 } == { 1, 2, 3 })
3537
3538 Tricky.tests.cpp:<line number>: PASSED:
3539 CHECK_NOFAIL( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3540 with expansion:
3541 { 1, 2 } == { 1, 2 }
3542
3543 Tricky.tests.cpp:<line number>: PASSED:
3544 CHECKED_IF( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3545 with expansion:
3546 { 1, 2 } == { 1, 2 }
3547
3548 Tricky.tests.cpp:<line number>: PASSED:
3549 REQUIRE( true )
3550
3551 Tricky.tests.cpp:<line number>: PASSED:
3552 CHECKED_ELSE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3553 with expansion:
3554 { 1, 2 } == { 1, 2 }
3555
3556 -------------------------------------------------------------------------------
3557 Comparing (and stringifying) volatile pointers works
3558 -------------------------------------------------------------------------------
3559 Misc.tests.cpp:<line number>
3560 ...............................................................................
3561
3562 Misc.tests.cpp:<line number>: PASSED:
3563 REQUIRE_FALSE( ptr )
3564 with expansion:
3565 !0
3566
3567 Misc.tests.cpp:<line number>: PASSED:
3568 REQUIRE( ptr == ptr )
3569 with expansion:
3570 0 == 0
3571
3572 Misc.tests.cpp:<line number>: PASSED:
3573 REQUIRE_FALSE( ptr != ptr )
3574 with expansion:
3575 !(0 != 0)
3576
3577 Misc.tests.cpp:<line number>: PASSED:
3578 REQUIRE_FALSE( ptr < ptr )
3579 with expansion:
3580 !(0 < 0)
3581
3582 Misc.tests.cpp:<line number>: PASSED:
3583 REQUIRE( ptr <= ptr )
3584 with expansion:
3585 0 <= 0
3586
3587 Misc.tests.cpp:<line number>: PASSED:
3588 REQUIRE_FALSE( ptr > ptr )
3589 with expansion:
3590 !(0 > 0)
3591
3592 Misc.tests.cpp:<line number>: PASSED:
3593 REQUIRE( ptr >= ptr )
3594 with expansion:
3595 0 >= 0
3596
3597 -------------------------------------------------------------------------------
3598 Comparing function pointers
3599 -------------------------------------------------------------------------------
3600 Tricky.tests.cpp:<line number>
3601 ...............................................................................
3602
3603 Tricky.tests.cpp:<line number>: PASSED:
3604 REQUIRE( a )
3605 with expansion:
3606 0x<hex digits>
3607
3608 Tricky.tests.cpp:<line number>: PASSED:
3609 REQUIRE( a == &foo )
3610 with expansion:
3611 0x<hex digits> == 0x<hex digits>
3612
3613 -------------------------------------------------------------------------------
3614 Comparison ops
3615 -------------------------------------------------------------------------------
3616 RandomNumberGeneration.tests.cpp:<line number>
3617 ...............................................................................
3618
3619 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3620 REQUIRE( SimplePcg32{} == SimplePcg32{} )
3621 with expansion:
3622 {?} == {?}
3623
3624 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3625 REQUIRE( SimplePcg32{ 0 } != SimplePcg32{} )
3626 with expansion:
3627 {?} != {?}
3628
3629 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3630 REQUIRE_FALSE( SimplePcg32{ 1 } == SimplePcg32{ 2 } )
3631 with expansion:
3632 !({?} == {?})
3633
3634 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3635 REQUIRE_FALSE( SimplePcg32{ 1 } != SimplePcg32{ 1 } )
3636 with expansion:
3637 !({?} != {?})
3638
3639 -------------------------------------------------------------------------------
3640 Comparison with explicitly convertible types
3641 -------------------------------------------------------------------------------
3642 Approx.tests.cpp:<line number>
3643 ...............................................................................
3644
3645 Approx.tests.cpp:<line number>: PASSED:
3646 REQUIRE( td == Approx(10.0) )
3647 with expansion:
3648 StrongDoubleTypedef(10) == Approx( 10.0 )
3649
3650 Approx.tests.cpp:<line number>: PASSED:
3651 REQUIRE( Approx(10.0) == td )
3652 with expansion:
3653 Approx( 10.0 ) == StrongDoubleTypedef(10)
3654
3655 Approx.tests.cpp:<line number>: PASSED:
3656 REQUIRE( td != Approx(11.0) )
3657 with expansion:
3658 StrongDoubleTypedef(10) != Approx( 11.0 )
3659
3660 Approx.tests.cpp:<line number>: PASSED:
3661 REQUIRE( Approx(11.0) != td )
3662 with expansion:
3663 Approx( 11.0 ) != StrongDoubleTypedef(10)
3664
3665 Approx.tests.cpp:<line number>: PASSED:
3666 REQUIRE( td <= Approx(10.0) )
3667 with expansion:
3668 StrongDoubleTypedef(10) <= Approx( 10.0 )
3669
3670 Approx.tests.cpp:<line number>: PASSED:
3671 REQUIRE( td <= Approx(11.0) )
3672 with expansion:
3673 StrongDoubleTypedef(10) <= Approx( 11.0 )
3674
3675 Approx.tests.cpp:<line number>: PASSED:
3676 REQUIRE( Approx(10.0) <= td )
3677 with expansion:
3678 Approx( 10.0 ) <= StrongDoubleTypedef(10)
3679
3680 Approx.tests.cpp:<line number>: PASSED:
3681 REQUIRE( Approx(9.0) <= td )
3682 with expansion:
3683 Approx( 9.0 ) <= StrongDoubleTypedef(10)
3684
3685 Approx.tests.cpp:<line number>: PASSED:
3686 REQUIRE( td >= Approx(9.0) )
3687 with expansion:
3688 StrongDoubleTypedef(10) >= Approx( 9.0 )
3689
3690 Approx.tests.cpp:<line number>: PASSED:
3691 REQUIRE( td >= Approx(td) )
3692 with expansion:
3693 StrongDoubleTypedef(10) >= Approx( 10.0 )
3694
3695 Approx.tests.cpp:<line number>: PASSED:
3696 REQUIRE( Approx(td) >= td )
3697 with expansion:
3698 Approx( 10.0 ) >= StrongDoubleTypedef(10)
3699
3700 Approx.tests.cpp:<line number>: PASSED:
3701 REQUIRE( Approx(11.0) >= td )
3702 with expansion:
3703 Approx( 11.0 ) >= StrongDoubleTypedef(10)
3704
3705 -------------------------------------------------------------------------------
3706 Comparisons between ints where one side is computed
3707 -------------------------------------------------------------------------------
3708 Condition.tests.cpp:<line number>
3709 ...............................................................................
3710
3711 Condition.tests.cpp:<line number>: PASSED:
3712 CHECK( 54 == 6*9 )
3713 with expansion:
3714 54 == 54
3715
3716 -------------------------------------------------------------------------------
3717 Comparisons between unsigned ints and negative signed ints match c++ standard
3718 behaviour
3719 -------------------------------------------------------------------------------
3720 Condition.tests.cpp:<line number>
3721 ...............................................................................
3722
3723 Condition.tests.cpp:<line number>: PASSED:
3724 CHECK( ( -1 > 2u ) )
3725 with expansion:
3726 true
3727
3728 Condition.tests.cpp:<line number>: PASSED:
3729 CHECK( -1 > 2u )
3730 with expansion:
3731 -1 > 2
3732
3733 Condition.tests.cpp:<line number>: PASSED:
3734 CHECK( ( 2u < -1 ) )
3735 with expansion:
3736 true
3737
3738 Condition.tests.cpp:<line number>: PASSED:
3739 CHECK( 2u < -1 )
3740 with expansion:
3741 2 < -1
3742
3743 Condition.tests.cpp:<line number>: PASSED:
3744 CHECK( ( minInt > 2u ) )
3745 with expansion:
3746 true
3747
3748 Condition.tests.cpp:<line number>: PASSED:
3749 CHECK( minInt > 2u )
3750 with expansion:
3751 -2147483648 > 2
3752
3753 -------------------------------------------------------------------------------
3754 Comparisons with int literals don't warn when mixing signed/ unsigned
3755 -------------------------------------------------------------------------------
3756 Condition.tests.cpp:<line number>
3757 ...............................................................................
3758
3759 Condition.tests.cpp:<line number>: PASSED:
3760 REQUIRE( i == 1 )
3761 with expansion:
3762 1 == 1
3763
3764 Condition.tests.cpp:<line number>: PASSED:
3765 REQUIRE( ui == 2 )
3766 with expansion:
3767 2 == 2
3768
3769 Condition.tests.cpp:<line number>: PASSED:
3770 REQUIRE( l == 3 )
3771 with expansion:
3772 3 == 3
3773
3774 Condition.tests.cpp:<line number>: PASSED:
3775 REQUIRE( ul == 4 )
3776 with expansion:
3777 4 == 4
3778
3779 Condition.tests.cpp:<line number>: PASSED:
3780 REQUIRE( c == 5 )
3781 with expansion:
3782 5 == 5
3783
3784 Condition.tests.cpp:<line number>: PASSED:
3785 REQUIRE( uc == 6 )
3786 with expansion:
3787 6 == 6
3788
3789 Condition.tests.cpp:<line number>: PASSED:
3790 REQUIRE( 1 == i )
3791 with expansion:
3792 1 == 1
3793
3794 Condition.tests.cpp:<line number>: PASSED:
3795 REQUIRE( 2 == ui )
3796 with expansion:
3797 2 == 2
3798
3799 Condition.tests.cpp:<line number>: PASSED:
3800 REQUIRE( 3 == l )
3801 with expansion:
3802 3 == 3
3803
3804 Condition.tests.cpp:<line number>: PASSED:
3805 REQUIRE( 4 == ul )
3806 with expansion:
3807 4 == 4
3808
3809 Condition.tests.cpp:<line number>: PASSED:
3810 REQUIRE( 5 == c )
3811 with expansion:
3812 5 == 5
3813
3814 Condition.tests.cpp:<line number>: PASSED:
3815 REQUIRE( 6 == uc )
3816 with expansion:
3817 6 == 6
3818
3819 Condition.tests.cpp:<line number>: PASSED:
3820 REQUIRE( (std::numeric_limits<uint32_t>::max)() > ul )
3821 with expansion:
3822 4294967295 (0x<hex digits>) > 4
3823
3824 -------------------------------------------------------------------------------
3825 Composed generic matchers shortcircuit
3826 MatchAllOf
3827 -------------------------------------------------------------------------------
3828 Matchers.tests.cpp:<line number>
3829 ...............................................................................
3830
3831 Matchers.tests.cpp:<line number>: PASSED:
3832 CHECK_FALSE( matcher.match( 1 ) )
3833 with expansion:
3834 !false
3835
3836 Matchers.tests.cpp:<line number>: PASSED:
3837 REQUIRE( first.matchCalled )
3838 with expansion:
3839 true
3840
3841 Matchers.tests.cpp:<line number>: PASSED:
3842 REQUIRE( !second.matchCalled )
3843 with expansion:
3844 true
3845
3846 -------------------------------------------------------------------------------
3847 Composed generic matchers shortcircuit
3848 MatchAnyOf
3849 -------------------------------------------------------------------------------
3850 Matchers.tests.cpp:<line number>
3851 ...............................................................................
3852
3853 Matchers.tests.cpp:<line number>: PASSED:
3854 CHECK( matcher.match( 1 ) )
3855 with expansion:
3856 true
3857
3858 Matchers.tests.cpp:<line number>: PASSED:
3859 REQUIRE( first.matchCalled )
3860 with expansion:
3861 true
3862
3863 Matchers.tests.cpp:<line number>: PASSED:
3864 REQUIRE( !second.matchCalled )
3865 with expansion:
3866 true
3867
3868 -------------------------------------------------------------------------------
3869 Composed matchers shortcircuit
3870 MatchAllOf
3871 -------------------------------------------------------------------------------
3872 Matchers.tests.cpp:<line number>
3873 ...............................................................................
3874
3875 Matchers.tests.cpp:<line number>: PASSED:
3876 CHECK_FALSE( matcher.match( 1 ) )
3877 with expansion:
3878 !false
3879
3880 Matchers.tests.cpp:<line number>: PASSED:
3881 REQUIRE( first.matchCalled )
3882 with expansion:
3883 true
3884
3885 Matchers.tests.cpp:<line number>: PASSED:
3886 REQUIRE( !second.matchCalled )
3887 with expansion:
3888 true
3889
3890 -------------------------------------------------------------------------------
3891 Composed matchers shortcircuit
3892 MatchAnyOf
3893 -------------------------------------------------------------------------------
3894 Matchers.tests.cpp:<line number>
3895 ...............................................................................
3896
3897 Matchers.tests.cpp:<line number>: PASSED:
3898 CHECK( matcher.match( 1 ) )
3899 with expansion:
3900 true
3901
3902 Matchers.tests.cpp:<line number>: PASSED:
3903 REQUIRE( first.matchCalled )
3904 with expansion:
3905 true
3906
3907 Matchers.tests.cpp:<line number>: PASSED:
3908 REQUIRE( !second.matchCalled )
3909 with expansion:
3910 true
3911
3912 -------------------------------------------------------------------------------
3913 Contains string matcher
3914 -------------------------------------------------------------------------------
3915 Matchers.tests.cpp:<line number>
3916 ...............................................................................
3917
3918 Matchers.tests.cpp:<line number>: FAILED:
3919 CHECK_THAT( testStringForMatching(), ContainsSubstring( "not there", Catch::CaseSensitive::No ) )
3920 with expansion:
3921 "this string contains 'abc' as a substring" contains: "not there" (case
3922 insensitive)
3923
3924 Matchers.tests.cpp:<line number>: FAILED:
3925 CHECK_THAT( testStringForMatching(), ContainsSubstring( "STRING" ) )
3926 with expansion:
3927 "this string contains 'abc' as a substring" contains: "STRING"
3928
3929 -------------------------------------------------------------------------------
3930 Copy and then generate a range
3931 from var and iterators
3932 -------------------------------------------------------------------------------
3933 Generators.tests.cpp:<line number>
3934 ...............................................................................
3935
3936 Generators.tests.cpp:<line number>: PASSED:
3937 REQUIRE( elem % 2 == 1 )
3938 with expansion:
3939 1 == 1
3940
3941 -------------------------------------------------------------------------------
3942 Copy and then generate a range
3943 from var and iterators
3944 -------------------------------------------------------------------------------
3945 Generators.tests.cpp:<line number>
3946 ...............................................................................
3947
3948 Generators.tests.cpp:<line number>: PASSED:
3949 REQUIRE( elem % 2 == 1 )
3950 with expansion:
3951 1 == 1
3952
3953 -------------------------------------------------------------------------------
3954 Copy and then generate a range
3955 from var and iterators
3956 -------------------------------------------------------------------------------
3957 Generators.tests.cpp:<line number>
3958 ...............................................................................
3959
3960 Generators.tests.cpp:<line number>: PASSED:
3961 REQUIRE( elem % 2 == 1 )
3962 with expansion:
3963 1 == 1
3964
3965 -------------------------------------------------------------------------------
3966 Copy and then generate a range
3967 from var and iterators
3968 -------------------------------------------------------------------------------
3969 Generators.tests.cpp:<line number>
3970 ...............................................................................
3971
3972 Generators.tests.cpp:<line number>: PASSED:
3973 REQUIRE( elem % 2 == 1 )
3974 with expansion:
3975 1 == 1
3976
3977 -------------------------------------------------------------------------------
3978 Copy and then generate a range
3979 from var and iterators
3980 -------------------------------------------------------------------------------
3981 Generators.tests.cpp:<line number>
3982 ...............................................................................
3983
3984 Generators.tests.cpp:<line number>: PASSED:
3985 REQUIRE( elem % 2 == 1 )
3986 with expansion:
3987 1 == 1
3988
3989 -------------------------------------------------------------------------------
3990 Copy and then generate a range
3991 from var and iterators
3992 -------------------------------------------------------------------------------
3993 Generators.tests.cpp:<line number>
3994 ...............................................................................
3995
3996 Generators.tests.cpp:<line number>: PASSED:
3997 REQUIRE( elem % 2 == 1 )
3998 with expansion:
3999 1 == 1
4000
4001 -------------------------------------------------------------------------------
4002 Copy and then generate a range
4003 From a temporary container
4004 -------------------------------------------------------------------------------
4005 Generators.tests.cpp:<line number>
4006 ...............................................................................
4007
4008 Generators.tests.cpp:<line number>: PASSED:
4009 REQUIRE( elem % 2 == 1 )
4010 with expansion:
4011 1 == 1
4012
4013 -------------------------------------------------------------------------------
4014 Copy and then generate a range
4015 From a temporary container
4016 -------------------------------------------------------------------------------
4017 Generators.tests.cpp:<line number>
4018 ...............................................................................
4019
4020 Generators.tests.cpp:<line number>: PASSED:
4021 REQUIRE( elem % 2 == 1 )
4022 with expansion:
4023 1 == 1
4024
4025 -------------------------------------------------------------------------------
4026 Copy and then generate a range
4027 From a temporary container
4028 -------------------------------------------------------------------------------
4029 Generators.tests.cpp:<line number>
4030 ...............................................................................
4031
4032 Generators.tests.cpp:<line number>: PASSED:
4033 REQUIRE( elem % 2 == 1 )
4034 with expansion:
4035 1 == 1
4036
4037 -------------------------------------------------------------------------------
4038 Copy and then generate a range
4039 From a temporary container
4040 -------------------------------------------------------------------------------
4041 Generators.tests.cpp:<line number>
4042 ...............................................................................
4043
4044 Generators.tests.cpp:<line number>: PASSED:
4045 REQUIRE( elem % 2 == 1 )
4046 with expansion:
4047 1 == 1
4048
4049 -------------------------------------------------------------------------------
4050 Copy and then generate a range
4051 From a temporary container
4052 -------------------------------------------------------------------------------
4053 Generators.tests.cpp:<line number>
4054 ...............................................................................
4055
4056 Generators.tests.cpp:<line number>: PASSED:
4057 REQUIRE( elem % 2 == 1 )
4058 with expansion:
4059 1 == 1
4060
4061 -------------------------------------------------------------------------------
4062 Copy and then generate a range
4063 From a temporary container
4064 -------------------------------------------------------------------------------
4065 Generators.tests.cpp:<line number>
4066 ...............................................................................
4067
4068 Generators.tests.cpp:<line number>: PASSED:
4069 REQUIRE( elem % 2 == 1 )
4070 with expansion:
4071 1 == 1
4072
4073 -------------------------------------------------------------------------------
4074 Copy and then generate a range
4075 Final validation
4076 -------------------------------------------------------------------------------
4077 Generators.tests.cpp:<line number>
4078 ...............................................................................
4079
4080 Generators.tests.cpp:<line number>: PASSED:
4081 REQUIRE( call_count == 1 )
4082 with expansion:
4083 1 == 1
4084
4085 Generators.tests.cpp:<line number>: PASSED:
4086 REQUIRE( make_data().size() == test_count )
4087 with expansion:
4088 6 == 6
4089
4090 -------------------------------------------------------------------------------
4091 Cout stream properly declares it writes to stdout
4092 -------------------------------------------------------------------------------
4093 Stream.tests.cpp:<line number>
4094 ...............................................................................
4095
4096 Stream.tests.cpp:<line number>: PASSED:
4097 REQUIRE( Catch::makeStream( "-" )->isConsole() )
4098 with expansion:
4099 true
4100
4101 -------------------------------------------------------------------------------
4102 Custom exceptions can be translated when testing for nothrow
4103 -------------------------------------------------------------------------------
4104 Exception.tests.cpp:<line number>
4105 ...............................................................................
4106
4107 Exception.tests.cpp:<line number>: FAILED:
4108 REQUIRE_NOTHROW( throwCustom() )
4109 due to unexpected exception with message:
4110 custom exception - not std
4111
4112 -------------------------------------------------------------------------------
4113 Custom exceptions can be translated when testing for throwing as something else
4114 -------------------------------------------------------------------------------
4115 Exception.tests.cpp:<line number>
4116 ...............................................................................
4117
4118 Exception.tests.cpp:<line number>: FAILED:
4119 REQUIRE_THROWS_AS( throwCustom(), std::exception )
4120 due to unexpected exception with message:
4121 custom exception - not std
4122
4123 -------------------------------------------------------------------------------
4124 Custom std-exceptions can be custom translated
4125 -------------------------------------------------------------------------------
4126 Exception.tests.cpp:<line number>
4127 ...............................................................................
4128
4129 Exception.tests.cpp:<line number>: FAILED:
4130 due to unexpected exception with message:
4131 custom std exception
4132
4133 -------------------------------------------------------------------------------
4134 Default scale is invisible to comparison
4135 -------------------------------------------------------------------------------
4136 Approx.tests.cpp:<line number>
4137 ...............................................................................
4138
4139 Approx.tests.cpp:<line number>: PASSED:
4140 REQUIRE( 101.000001 != Approx(100).epsilon(0.01) )
4141 with expansion:
4142 101.00000099999999748 != Approx( 100.0 )
4143
4144 Approx.tests.cpp:<line number>: PASSED:
4145 REQUIRE( std::pow(10, -5) != Approx(std::pow(10, -7)) )
4146 with expansion:
4147 0.00001 != Approx( 0.0000001 )
4148
4149 -------------------------------------------------------------------------------
4150 Directly creating an EnumInfo
4151 -------------------------------------------------------------------------------
4152 ToString.tests.cpp:<line number>
4153 ...............................................................................
4154
4155 ToString.tests.cpp:<line number>: PASSED:
4156 CHECK( enumInfo->lookup(0) == "Value1" )
4157 with expansion:
4158 Value1 == "Value1"
4159
4160 ToString.tests.cpp:<line number>: PASSED:
4161 CHECK( enumInfo->lookup(1) == "Value2" )
4162 with expansion:
4163 Value2 == "Value2"
4164
4165 ToString.tests.cpp:<line number>: PASSED:
4166 CHECK( enumInfo->lookup(3) == "{** unexpected enum value **}" )
4167 with expansion:
4168 {** unexpected enum value **}
4169 ==
4170 "{** unexpected enum value **}"
4171
4172 -------------------------------------------------------------------------------
4173 Empty generators can SKIP in constructor
4174 -------------------------------------------------------------------------------
4175 Skip.tests.cpp:<line number>
4176 ...............................................................................
4177
4178 Skip.tests.cpp:<line number>: SKIPPED:
4179 explicitly with message:
4180 This generator is empty
4181
4182 -------------------------------------------------------------------------------
4183 Empty stream name opens cout stream
4184 -------------------------------------------------------------------------------
4185 Stream.tests.cpp:<line number>
4186 ...............................................................................
4187
4188 Stream.tests.cpp:<line number>: PASSED:
4189 REQUIRE( Catch::makeStream( "" )->isConsole() )
4190 with expansion:
4191 true
4192
4193 -------------------------------------------------------------------------------
4194 EndsWith string matcher
4195 -------------------------------------------------------------------------------
4196 Matchers.tests.cpp:<line number>
4197 ...............................................................................
4198
4199 Matchers.tests.cpp:<line number>: FAILED:
4200 CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) )
4201 with expansion:
4202 "this string contains 'abc' as a substring" ends with: "Substring"
4203
4204 Matchers.tests.cpp:<line number>: FAILED:
4205 CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) )
4206 with expansion:
4207 "this string contains 'abc' as a substring" ends with: "this" (case
4208 insensitive)
4209
4210 -------------------------------------------------------------------------------
4211 Enums can quickly have stringification enabled using CATCH_REGISTER_ENUM
4212 -------------------------------------------------------------------------------
4213 EnumToString.tests.cpp:<line number>
4214 ...............................................................................
4215
4216 EnumToString.tests.cpp:<line number>: PASSED:
4217 REQUIRE( stringify( EnumClass3::Value1 ) == "Value1" )
4218 with expansion:
4219 "Value1" == "Value1"
4220
4221 EnumToString.tests.cpp:<line number>: PASSED:
4222 REQUIRE( stringify( EnumClass3::Value2 ) == "Value2" )
4223 with expansion:
4224 "Value2" == "Value2"
4225
4226 EnumToString.tests.cpp:<line number>: PASSED:
4227 REQUIRE( stringify( EnumClass3::Value3 ) == "Value3" )
4228 with expansion:
4229 "Value3" == "Value3"
4230
4231 EnumToString.tests.cpp:<line number>: PASSED:
4232 REQUIRE( stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}" )
4233 with expansion:
4234 "{** unexpected enum value **}"
4235 ==
4236 "{** unexpected enum value **}"
4237
4238 EnumToString.tests.cpp:<line number>: PASSED:
4239 REQUIRE( stringify( ec3 ) == "Value2" )
4240 with expansion:
4241 "Value2" == "Value2"
4242
4243 -------------------------------------------------------------------------------
4244 Enums in namespaces can quickly have stringification enabled using
4245 CATCH_REGISTER_ENUM
4246 -------------------------------------------------------------------------------
4247 EnumToString.tests.cpp:<line number>
4248 ...............................................................................
4249
4250 EnumToString.tests.cpp:<line number>: PASSED:
4251 REQUIRE( stringify( Bikeshed::Colours::Red ) == "Red" )
4252 with expansion:
4253 "Red" == "Red"
4254
4255 EnumToString.tests.cpp:<line number>: PASSED:
4256 REQUIRE( stringify( Bikeshed::Colours::Blue ) == "Blue" )
4257 with expansion:
4258 "Blue" == "Blue"
4259
4260 -------------------------------------------------------------------------------
4261 Epsilon only applies to Approx's value
4262 -------------------------------------------------------------------------------
4263 Approx.tests.cpp:<line number>
4264 ...............................................................................
4265
4266 Approx.tests.cpp:<line number>: PASSED:
4267 REQUIRE( 101.01 != Approx(100).epsilon(0.01) )
4268 with expansion:
4269 101.01000000000000512 != Approx( 100.0 )
4270
4271 -------------------------------------------------------------------------------
4272 Equality checks that should fail
4273 -------------------------------------------------------------------------------
4274 Condition.tests.cpp:<line number>
4275 ...............................................................................
4276
4277 Condition.tests.cpp:<line number>: FAILED:
4278 CHECK( data.int_seven == 6 )
4279 with expansion:
4280 7 == 6
4281
4282 Condition.tests.cpp:<line number>: FAILED:
4283 CHECK( data.int_seven == 8 )
4284 with expansion:
4285 7 == 8
4286
4287 Condition.tests.cpp:<line number>: FAILED:
4288 CHECK( data.int_seven == 0 )
4289 with expansion:
4290 7 == 0
4291
4292 Condition.tests.cpp:<line number>: FAILED:
4293 CHECK( data.float_nine_point_one == Approx( 9.11f ) )
4294 with expansion:
4295 9.100000381f
4296 ==
4297 Approx( 9.10999965667724609 )
4298
4299 Condition.tests.cpp:<line number>: FAILED:
4300 CHECK( data.float_nine_point_one == Approx( 9.0f ) )
4301 with expansion:
4302 9.100000381f == Approx( 9.0 )
4303
4304 Condition.tests.cpp:<line number>: FAILED:
4305 CHECK( data.float_nine_point_one == Approx( 1 ) )
4306 with expansion:
4307 9.100000381f == Approx( 1.0 )
4308
4309 Condition.tests.cpp:<line number>: FAILED:
4310 CHECK( data.float_nine_point_one == Approx( 0 ) )
4311 with expansion:
4312 9.100000381f == Approx( 0.0 )
4313
4314 Condition.tests.cpp:<line number>: FAILED:
4315 CHECK( data.double_pi == Approx( 3.1415 ) )
4316 with expansion:
4317 3.14159265350000005
4318 ==
4319 Approx( 3.14150000000000018 )
4320
4321 Condition.tests.cpp:<line number>: FAILED:
4322 CHECK( data.str_hello == "goodbye" )
4323 with expansion:
4324 "hello" == "goodbye"
4325
4326 Condition.tests.cpp:<line number>: FAILED:
4327 CHECK( data.str_hello == "hell" )
4328 with expansion:
4329 "hello" == "hell"
4330
4331 Condition.tests.cpp:<line number>: FAILED:
4332 CHECK( data.str_hello == "hello1" )
4333 with expansion:
4334 "hello" == "hello1"
4335
4336 Condition.tests.cpp:<line number>: FAILED:
4337 CHECK( data.str_hello.size() == 6 )
4338 with expansion:
4339 5 == 6
4340
4341 Condition.tests.cpp:<line number>: FAILED:
4342 CHECK( x == Approx( 1.301 ) )
4343 with expansion:
4344 1.30000000000000027
4345 ==
4346 Approx( 1.30099999999999993 )
4347
4348 -------------------------------------------------------------------------------
4349 Equality checks that should succeed
4350 -------------------------------------------------------------------------------
4351 Condition.tests.cpp:<line number>
4352 ...............................................................................
4353
4354 Condition.tests.cpp:<line number>: PASSED:
4355 REQUIRE( data.int_seven == 7 )
4356 with expansion:
4357 7 == 7
4358
4359 Condition.tests.cpp:<line number>: PASSED:
4360 REQUIRE( data.float_nine_point_one == Approx( 9.1f ) )
4361 with expansion:
4362 9.100000381f
4363 ==
4364 Approx( 9.10000038146972656 )
4365
4366 Condition.tests.cpp:<line number>: PASSED:
4367 REQUIRE( data.double_pi == Approx( 3.1415926535 ) )
4368 with expansion:
4369 3.14159265350000005
4370 ==
4371 Approx( 3.14159265350000005 )
4372
4373 Condition.tests.cpp:<line number>: PASSED:
4374 REQUIRE( data.str_hello == "hello" )
4375 with expansion:
4376 "hello" == "hello"
4377
4378 Condition.tests.cpp:<line number>: PASSED:
4379 REQUIRE( "hello" == data.str_hello )
4380 with expansion:
4381 "hello" == "hello"
4382
4383 Condition.tests.cpp:<line number>: PASSED:
4384 REQUIRE( data.str_hello.size() == 5 )
4385 with expansion:
4386 5 == 5
4387
4388 Condition.tests.cpp:<line number>: PASSED:
4389 REQUIRE( x == Approx( 1.3 ) )
4390 with expansion:
4391 1.30000000000000027
4392 ==
4393 Approx( 1.30000000000000004 )
4394
4395 -------------------------------------------------------------------------------
4396 Equals
4397 -------------------------------------------------------------------------------
4398 Matchers.tests.cpp:<line number>
4399 ...............................................................................
4400
4401 Matchers.tests.cpp:<line number>: PASSED:
4402 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) )
4403 with expansion:
4404 "this string contains 'abc' as a substring" equals: "this string contains
4405 'abc' as a substring"
4406
4407 Matchers.tests.cpp:<line number>: PASSED:
4408 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) )
4409 with expansion:
4410 "this string contains 'abc' as a substring" equals: "this string contains
4411 'abc' as a substring" (case insensitive)
4412
4413 -------------------------------------------------------------------------------
4414 Equals string matcher
4415 -------------------------------------------------------------------------------
4416 Matchers.tests.cpp:<line number>
4417 ...............................................................................
4418
4419 Matchers.tests.cpp:<line number>: FAILED:
4420 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) )
4421 with expansion:
4422 "this string contains 'abc' as a substring" equals: "this string contains
4423 'ABC' as a substring"
4424
4425 Matchers.tests.cpp:<line number>: FAILED:
4426 CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) )
4427 with expansion:
4428 "this string contains 'abc' as a substring" equals: "something else" (case
4429 insensitive)
4430
4431 -------------------------------------------------------------------------------
4432 Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
4433 -------------------------------------------------------------------------------
4434 ToStringGeneral.tests.cpp:<line number>
4435 ...............................................................................
4436
4437 ToStringGeneral.tests.cpp:<line number>: PASSED:
4438 REQUIRE( ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" )
4439 with expansion:
4440 "This exception has overridden what() method"
4441 ==
4442 "This exception has overridden what() method"
4443
4444 ToStringGeneral.tests.cpp:<line number>: PASSED:
4445 REQUIRE( ::Catch::Detail::stringify(OperatorException{}) == "OperatorException" )
4446 with expansion:
4447 "OperatorException" == "OperatorException"
4448
4449 ToStringGeneral.tests.cpp:<line number>: PASSED:
4450 REQUIRE( ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" )
4451 with expansion:
4452 "StringMakerException"
4453 ==
4454 "StringMakerException"
4455
4456 -------------------------------------------------------------------------------
4457 Exception matchers that fail
4458 No exception
4459 -------------------------------------------------------------------------------
4460 Matchers.tests.cpp:<line number>
4461 ...............................................................................
4462
4463 Matchers.tests.cpp:<line number>: FAILED:
4464 CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
4465 because no exception was thrown where one was expected:
4466
4467 Matchers.tests.cpp:<line number>: FAILED:
4468 REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
4469 because no exception was thrown where one was expected:
4470
4471 -------------------------------------------------------------------------------
4472 Exception matchers that fail
4473 Type mismatch
4474 -------------------------------------------------------------------------------
4475 Matchers.tests.cpp:<line number>
4476 ...............................................................................
4477
4478 Matchers.tests.cpp:<line number>: FAILED:
4479 CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4480 due to unexpected exception with message:
4481 Unknown exception
4482
4483 Matchers.tests.cpp:<line number>: FAILED:
4484 REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4485 due to unexpected exception with message:
4486 Unknown exception
4487
4488 -------------------------------------------------------------------------------
4489 Exception matchers that fail
4490 Contents are wrong
4491 -------------------------------------------------------------------------------
4492 Matchers.tests.cpp:<line number>
4493 ...............................................................................
4494
4495 Matchers.tests.cpp:<line number>: FAILED:
4496 CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } )
4497 with expansion:
4498 SpecialException::what special exception has value of 1
4499
4500 Matchers.tests.cpp:<line number>: FAILED:
4501 REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } )
4502 with expansion:
4503 SpecialException::what special exception has value of 1
4504
4505 -------------------------------------------------------------------------------
4506 Exception matchers that succeed
4507 -------------------------------------------------------------------------------
4508 Matchers.tests.cpp:<line number>
4509 ...............................................................................
4510
4511 Matchers.tests.cpp:<line number>: PASSED:
4512 CHECK_THROWS_MATCHES( throwsSpecialException( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4513 with expansion:
4514 SpecialException::what special exception has value of 1
4515
4516 Matchers.tests.cpp:<line number>: PASSED:
4517 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, ExceptionMatcher{ 2 } )
4518 with expansion:
4519 SpecialException::what special exception has value of 2
4520
4521 -------------------------------------------------------------------------------
4522 Exception message can be matched
4523 -------------------------------------------------------------------------------
4524 Matchers.tests.cpp:<line number>
4525 ...............................................................................
4526
4527 Matchers.tests.cpp:<line number>: PASSED:
4528 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( StartsWith( "Derived" ) ) )
4529 with expansion:
4530 DerivedException::what matches "starts with: "Derived""
4531
4532 Matchers.tests.cpp:<line number>: PASSED:
4533 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( EndsWith( "::what" ) ) )
4534 with expansion:
4535 DerivedException::what matches "ends with: "::what""
4536
4537 Matchers.tests.cpp:<line number>: PASSED:
4538 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( !StartsWith( "::what" ) ) )
4539 with expansion:
4540 DerivedException::what matches "not starts with: "::what""
4541
4542 Matchers.tests.cpp:<line number>: PASSED:
4543 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, MessageMatches( StartsWith( "Special" ) ) )
4544 with expansion:
4545 SpecialException::what matches "starts with: "Special""
4546
4547 -------------------------------------------------------------------------------
4548 Exception messages can be tested for
4549 exact match
4550 -------------------------------------------------------------------------------
4551 Exception.tests.cpp:<line number>
4552 ...............................................................................
4553
4554 Exception.tests.cpp:<line number>: PASSED:
4555 REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
4556 with expansion:
4557 "expected exception" equals: "expected exception"
4558
4559 -------------------------------------------------------------------------------
4560 Exception messages can be tested for
4561 different case
4562 -------------------------------------------------------------------------------
4563 Exception.tests.cpp:<line number>
4564 ...............................................................................
4565
4566 Exception.tests.cpp:<line number>: PASSED:
4567 REQUIRE_THROWS_WITH( thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) )
4568 with expansion:
4569 "expected exception" equals: "expected exception" (case insensitive)
4570
4571 -------------------------------------------------------------------------------
4572 Exception messages can be tested for
4573 wildcarded
4574 -------------------------------------------------------------------------------
4575 Exception.tests.cpp:<line number>
4576 ...............................................................................
4577
4578 Exception.tests.cpp:<line number>: PASSED:
4579 REQUIRE_THROWS_WITH( thisThrows(), StartsWith( "expected" ) )
4580 with expansion:
4581 "expected exception" starts with: "expected"
4582
4583 Exception.tests.cpp:<line number>: PASSED:
4584 REQUIRE_THROWS_WITH( thisThrows(), EndsWith( "exception" ) )
4585 with expansion:
4586 "expected exception" ends with: "exception"
4587
4588 Exception.tests.cpp:<line number>: PASSED:
4589 REQUIRE_THROWS_WITH( thisThrows(), ContainsSubstring( "except" ) )
4590 with expansion:
4591 "expected exception" contains: "except"
4592
4593 Exception.tests.cpp:<line number>: PASSED:
4594 REQUIRE_THROWS_WITH( thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) )
4595 with expansion:
4596 "expected exception" contains: "except" (case insensitive)
4597
4598 -------------------------------------------------------------------------------
4599 Exception thrown inside stringify does not fail the test
4600 -------------------------------------------------------------------------------
4601 ToString.tests.cpp:<line number>
4602 ...............................................................................
4603
4604 ToString.tests.cpp:<line number>: PASSED:
4605 CHECK( tos == tos )
4606 with expansion:
4607 { stringification failed with an exception: "Invalid" }
4608 ==
4609 { stringification failed with an exception: "Invalid" }
4610
4611 -------------------------------------------------------------------------------
4612 Exceptions matchers
4613 -------------------------------------------------------------------------------
4614 Matchers.tests.cpp:<line number>
4615 ...............................................................................
4616
4617 Matchers.tests.cpp:<line number>: PASSED:
4618 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) )
4619 with expansion:
4620 DerivedException::what exception message matches "DerivedException::what"
4621
4622 Matchers.tests.cpp:<line number>: PASSED:
4623 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) )
4624 with expansion:
4625 DerivedException::what not exception message matches "derivedexception::what"
4626
4627 Matchers.tests.cpp:<line number>: PASSED:
4628 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) )
4629 with expansion:
4630 SpecialException::what not exception message matches "DerivedException::what"
4631
4632 Matchers.tests.cpp:<line number>: PASSED:
4633 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, Message( "SpecialException::what" ) )
4634 with expansion:
4635 SpecialException::what exception message matches "SpecialException::what"
4636
4637 -------------------------------------------------------------------------------
4638 Expected exceptions that don't throw or unexpected exceptions fail the test
4639 -------------------------------------------------------------------------------
4640 Exception.tests.cpp:<line number>
4641 ...............................................................................
4642
4643 Exception.tests.cpp:<line number>: FAILED:
4644 CHECK_THROWS_AS( thisThrows(), std::string )
4645 due to unexpected exception with message:
4646 expected exception
4647
4648 Exception.tests.cpp:<line number>: FAILED:
4649 CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error )
4650 because no exception was thrown where one was expected:
4651
4652 Exception.tests.cpp:<line number>: FAILED:
4653 CHECK_NOTHROW( thisThrows() )
4654 due to unexpected exception with message:
4655 expected exception
4656
4657 -------------------------------------------------------------------------------
4658 FAIL aborts the test
4659 -------------------------------------------------------------------------------
4660 Message.tests.cpp:<line number>
4661 ...............................................................................
4662
4663 Message.tests.cpp:<line number>: FAILED:
4664 explicitly with message:
4665 This is a failure
4666
4667 -------------------------------------------------------------------------------
4668 FAIL can be nested in assertion
4669 -------------------------------------------------------------------------------
4670 AssertionHandler.tests.cpp:<line number>
4671 ...............................................................................
4672
4673 AssertionHandler.tests.cpp:<line number>: FAILED:
4674 explicitly with message:
4675 Throw a Catch::TestFailureException
4676
4677 AssertionHandler.tests.cpp:<line number>: FAILED:
4678 CHECK_NOTHROW( do_fail() )
4679 due to unexpected exception with message:
4680 { nested assertion failed }
4681
4682 -------------------------------------------------------------------------------
4683 FAIL does not require an argument
4684 -------------------------------------------------------------------------------
4685 Message.tests.cpp:<line number>
4686 ...............................................................................
4687
4688 Message.tests.cpp:<line number>: FAILED:
4689
4690 -------------------------------------------------------------------------------
4691 FAIL_CHECK does not abort the test
4692 -------------------------------------------------------------------------------
4693 Message.tests.cpp:<line number>
4694 ...............................................................................
4695
4696 Message.tests.cpp:<line number>: FAILED:
4697 explicitly with message:
4698 This is a failure
4699
4700 Message.tests.cpp:<line number>: warning:
4701 This message appears in the output
4702
4703 -------------------------------------------------------------------------------
4704 Factorials are computed
4705 -------------------------------------------------------------------------------
4706 Misc.tests.cpp:<line number>
4707 ...............................................................................
4708
4709 Misc.tests.cpp:<line number>: PASSED:
4710 REQUIRE( Factorial(0) == 1 )
4711 with expansion:
4712 1 == 1
4713
4714 Misc.tests.cpp:<line number>: PASSED:
4715 REQUIRE( Factorial(1) == 1 )
4716 with expansion:
4717 1 == 1
4718
4719 Misc.tests.cpp:<line number>: PASSED:
4720 REQUIRE( Factorial(2) == 2 )
4721 with expansion:
4722 2 == 2
4723
4724 Misc.tests.cpp:<line number>: PASSED:
4725 REQUIRE( Factorial(3) == 6 )
4726 with expansion:
4727 6 == 6
4728
4729 Misc.tests.cpp:<line number>: PASSED:
4730 REQUIRE( Factorial(10) == 3628800 )
4731 with expansion:
4732 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
4733
4734 -------------------------------------------------------------------------------
4735 Filter generator throws exception for empty generator
4736 -------------------------------------------------------------------------------
4737 GeneratorsImpl.tests.cpp:<line number>
4738 ...............................................................................
4739
4740 GeneratorsImpl.tests.cpp:<line number>: PASSED:
4741 REQUIRE_THROWS_AS( filter( []( int ) { return false; }, value( 3 ) ), Catch::GeneratorException )
4742
4743 -------------------------------------------------------------------------------
4744 Floating point matchers: double
4745 Relative
4746 -------------------------------------------------------------------------------
4747 Matchers.tests.cpp:<line number>
4748 ...............................................................................
4749
4750 Matchers.tests.cpp:<line number>: PASSED:
4751 REQUIRE_THAT( 10., WithinRel( 11.1, 0.1 ) )
4752 with expansion:
4753 10.0 and 11.09999999999999964 are within 10% of each other
4754
4755 Matchers.tests.cpp:<line number>: PASSED:
4756 REQUIRE_THAT( 10., !WithinRel( 11.2, 0.1 ) )
4757 with expansion:
4758 10.0 not and 11.19999999999999929 are within 10% of each other
4759
4760 Matchers.tests.cpp:<line number>: PASSED:
4761 REQUIRE_THAT( 1., !WithinRel( 0., 0.99 ) )
4762 with expansion:
4763 1.0 not and 0.0 are within 99% of each other
4764
4765 Matchers.tests.cpp:<line number>: PASSED:
4766 REQUIRE_THAT( -0., WithinRel( 0. ) )
4767 with expansion:
4768 -0.0 and 0.0 are within 2.22045e-12% of each other
4769
4770 -------------------------------------------------------------------------------
4771 Floating point matchers: double
4772 Relative
4773 Some subnormal values
4774 -------------------------------------------------------------------------------
4775 Matchers.tests.cpp:<line number>
4776 ...............................................................................
4777
4778 Matchers.tests.cpp:<line number>: PASSED:
4779 REQUIRE_THAT( v1, WithinRel( v2 ) )
4780 with expansion:
4781 0.0 and 0.0 are within 2.22045e-12% of each other
4782
4783 -------------------------------------------------------------------------------
4784 Floating point matchers: double
4785 Margin
4786 -------------------------------------------------------------------------------
4787 Matchers.tests.cpp:<line number>
4788 ...............................................................................
4789
4790 Matchers.tests.cpp:<line number>: PASSED:
4791 REQUIRE_THAT( 1., WithinAbs( 1., 0 ) )
4792 with expansion:
4793 1.0 is within 0.0 of 1.0
4794
4795 Matchers.tests.cpp:<line number>: PASSED:
4796 REQUIRE_THAT( 0., WithinAbs( 1., 1 ) )
4797 with expansion:
4798 0.0 is within 1.0 of 1.0
4799
4800 Matchers.tests.cpp:<line number>: PASSED:
4801 REQUIRE_THAT( 0., !WithinAbs( 1., 0.99 ) )
4802 with expansion:
4803 0.0 not is within 0.98999999999999999 of 1.0
4804
4805 Matchers.tests.cpp:<line number>: PASSED:
4806 REQUIRE_THAT( 0., !WithinAbs( 1., 0.99 ) )
4807 with expansion:
4808 0.0 not is within 0.98999999999999999 of 1.0
4809
4810 Matchers.tests.cpp:<line number>: PASSED:
4811 REQUIRE_THAT( 11., !WithinAbs( 10., 0.5 ) )
4812 with expansion:
4813 11.0 not is within 0.5 of 10.0
4814
4815 Matchers.tests.cpp:<line number>: PASSED:
4816 REQUIRE_THAT( 10., !WithinAbs( 11., 0.5 ) )
4817 with expansion:
4818 10.0 not is within 0.5 of 11.0
4819
4820 Matchers.tests.cpp:<line number>: PASSED:
4821 REQUIRE_THAT( -10., WithinAbs( -10., 0.5 ) )
4822 with expansion:
4823 -10.0 is within 0.5 of -10.0
4824
4825 Matchers.tests.cpp:<line number>: PASSED:
4826 REQUIRE_THAT( -10., WithinAbs( -9.6, 0.5 ) )
4827 with expansion:
4828 -10.0 is within 0.5 of -9.59999999999999964
4829
4830 -------------------------------------------------------------------------------
4831 Floating point matchers: double
4832 ULPs
4833 -------------------------------------------------------------------------------
4834 Matchers.tests.cpp:<line number>
4835 ...............................................................................
4836
4837 Matchers.tests.cpp:<line number>: PASSED:
4838 REQUIRE_THAT( 1., WithinULP( 1., 0 ) )
4839 with expansion:
4840 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
4841 0000000000000000e+00])
4842
4843 Matchers.tests.cpp:<line number>: PASSED:
4844 REQUIRE_THAT( nextafter( 1., 2. ), WithinULP( 1., 1 ) )
4845 with expansion:
4846 1.00000000000000022 is within 1 ULPs of 1.0000000000000000e+00 ([9.
4847 9999999999999989e-01, 1.0000000000000002e+00])
4848
4849 Matchers.tests.cpp:<line number>: PASSED:
4850 REQUIRE_THAT( 0., WithinULP( nextafter( 0., 1. ), 1 ) )
4851 with expansion:
4852 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.
4853 8813129168249309e-324])
4854
4855 Matchers.tests.cpp:<line number>: PASSED:
4856 REQUIRE_THAT( 1., WithinULP( nextafter( 1., 0. ), 1 ) )
4857 with expansion:
4858 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.
4859 0000000000000000e+00])
4860
4861 Matchers.tests.cpp:<line number>: PASSED:
4862 REQUIRE_THAT( 1., !WithinULP( nextafter( 1., 2. ), 0 ) )
4863 with expansion:
4864 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00,
4865 1.0000000000000002e+00])
4866
4867 Matchers.tests.cpp:<line number>: PASSED:
4868 REQUIRE_THAT( 1., WithinULP( 1., 0 ) )
4869 with expansion:
4870 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
4871 0000000000000000e+00])
4872
4873 Matchers.tests.cpp:<line number>: PASSED:
4874 REQUIRE_THAT( -0., WithinULP( 0., 0 ) )
4875 with expansion:
4876 -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.
4877 0000000000000000e+00])
4878
4879 -------------------------------------------------------------------------------
4880 Floating point matchers: double
4881 Composed
4882 -------------------------------------------------------------------------------
4883 Matchers.tests.cpp:<line number>
4884 ...............................................................................
4885
4886 Matchers.tests.cpp:<line number>: PASSED:
4887 REQUIRE_THAT( 1., WithinAbs( 1., 0.5 ) || WithinULP( 2., 1 ) )
4888 with expansion:
4889 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.
4890 9999999999999998e+00, 2.0000000000000004e+00]) )
4891
4892 Matchers.tests.cpp:<line number>: PASSED:
4893 REQUIRE_THAT( 1., WithinAbs( 2., 0.5 ) || WithinULP( 1., 0 ) )
4894 with expansion:
4895 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.
4896 0000000000000000e+00, 1.0000000000000000e+00]) )
4897
4898 Matchers.tests.cpp:<line number>: PASSED:
4899 REQUIRE_THAT( 0.0001, WithinAbs( 0., 0.001 ) || WithinRel( 0., 0.1 ) )
4900 with expansion:
4901 0.0001 ( is within 0.001 of 0.0 or and 0.0 are within 10% of each other )
4902
4903 -------------------------------------------------------------------------------
4904 Floating point matchers: double
4905 Constructor validation
4906 -------------------------------------------------------------------------------
4907 Matchers.tests.cpp:<line number>
4908 ...............................................................................
4909
4910 Matchers.tests.cpp:<line number>: PASSED:
4911 REQUIRE_NOTHROW( WithinAbs( 1., 0. ) )
4912
4913 Matchers.tests.cpp:<line number>: PASSED:
4914 REQUIRE_THROWS_AS( WithinAbs( 1., -1. ), std::domain_error )
4915
4916 Matchers.tests.cpp:<line number>: PASSED:
4917 REQUIRE_NOTHROW( WithinULP( 1., 0 ) )
4918
4919 Matchers.tests.cpp:<line number>: PASSED:
4920 REQUIRE_NOTHROW( WithinRel( 1., 0. ) )
4921
4922 Matchers.tests.cpp:<line number>: PASSED:
4923 REQUIRE_THROWS_AS( WithinRel( 1., -0.2 ), std::domain_error )
4924
4925 Matchers.tests.cpp:<line number>: PASSED:
4926 REQUIRE_THROWS_AS( WithinRel( 1., 1. ), std::domain_error )
4927
4928 -------------------------------------------------------------------------------
4929 Floating point matchers: double
4930 IsNaN
4931 -------------------------------------------------------------------------------
4932 Matchers.tests.cpp:<line number>
4933 ...............................................................................
4934
4935 Matchers.tests.cpp:<line number>: PASSED:
4936 REQUIRE_THAT( 1., !IsNaN() )
4937 with expansion:
4938 1.0 not is NaN
4939
4940 -------------------------------------------------------------------------------
4941 Floating point matchers: float
4942 Relative
4943 -------------------------------------------------------------------------------
4944 Matchers.tests.cpp:<line number>
4945 ...............................................................................
4946
4947 Matchers.tests.cpp:<line number>: PASSED:
4948 REQUIRE_THAT( 10.f, WithinRel( 11.1f, 0.1f ) )
4949 with expansion:
4950 10.0f and 11.10000038146972656 are within 10% of each other
4951
4952 Matchers.tests.cpp:<line number>: PASSED:
4953 REQUIRE_THAT( 10.f, !WithinRel( 11.2f, 0.1f ) )
4954 with expansion:
4955 10.0f not and 11.19999980926513672 are within 10% of each other
4956
4957 Matchers.tests.cpp:<line number>: PASSED:
4958 REQUIRE_THAT( 1.f, !WithinRel( 0.f, 0.99f ) )
4959 with expansion:
4960 1.0f not and 0.0 are within 99% of each other
4961
4962 Matchers.tests.cpp:<line number>: PASSED:
4963 REQUIRE_THAT( -0.f, WithinRel( 0.f ) )
4964 with expansion:
4965 -0.0f and 0.0 are within 0.00119209% of each other
4966
4967 -------------------------------------------------------------------------------
4968 Floating point matchers: float
4969 Relative
4970 Some subnormal values
4971 -------------------------------------------------------------------------------
4972 Matchers.tests.cpp:<line number>
4973 ...............................................................................
4974
4975 Matchers.tests.cpp:<line number>: PASSED:
4976 REQUIRE_THAT( v1, WithinRel( v2 ) )
4977 with expansion:
4978 0.0f and 0.0 are within 0.00119209% of each other
4979
4980 -------------------------------------------------------------------------------
4981 Floating point matchers: float
4982 Margin
4983 -------------------------------------------------------------------------------
4984 Matchers.tests.cpp:<line number>
4985 ...............................................................................
4986
4987 Matchers.tests.cpp:<line number>: PASSED:
4988 REQUIRE_THAT( 1.f, WithinAbs( 1.f, 0 ) )
4989 with expansion:
4990 1.0f is within 0.0 of 1.0
4991
4992 Matchers.tests.cpp:<line number>: PASSED:
4993 REQUIRE_THAT( 0.f, WithinAbs( 1.f, 1 ) )
4994 with expansion:
4995 0.0f is within 1.0 of 1.0
4996
4997 Matchers.tests.cpp:<line number>: PASSED:
4998 REQUIRE_THAT( 0.f, !WithinAbs( 1.f, 0.99f ) )
4999 with expansion:
5000 0.0f not is within 0.99000000953674316 of 1.0
5001
5002 Matchers.tests.cpp:<line number>: PASSED:
5003 REQUIRE_THAT( 0.f, !WithinAbs( 1.f, 0.99f ) )
5004 with expansion:
5005 0.0f not is within 0.99000000953674316 of 1.0
5006
5007 Matchers.tests.cpp:<line number>: PASSED:
5008 REQUIRE_THAT( 0.f, WithinAbs( -0.f, 0 ) )
5009 with expansion:
5010 0.0f is within 0.0 of -0.0
5011
5012 Matchers.tests.cpp:<line number>: PASSED:
5013 REQUIRE_THAT( 11.f, !WithinAbs( 10.f, 0.5f ) )
5014 with expansion:
5015 11.0f not is within 0.5 of 10.0
5016
5017 Matchers.tests.cpp:<line number>: PASSED:
5018 REQUIRE_THAT( 10.f, !WithinAbs( 11.f, 0.5f ) )
5019 with expansion:
5020 10.0f not is within 0.5 of 11.0
5021
5022 Matchers.tests.cpp:<line number>: PASSED:
5023 REQUIRE_THAT( -10.f, WithinAbs( -10.f, 0.5f ) )
5024 with expansion:
5025 -10.0f is within 0.5 of -10.0
5026
5027 Matchers.tests.cpp:<line number>: PASSED:
5028 REQUIRE_THAT( -10.f, WithinAbs( -9.6f, 0.5f ) )
5029 with expansion:
5030 -10.0f is within 0.5 of -9.60000038146972656
5031
5032 -------------------------------------------------------------------------------
5033 Floating point matchers: float
5034 ULPs
5035 -------------------------------------------------------------------------------
5036 Matchers.tests.cpp:<line number>
5037 ...............................................................................
5038
5039 Matchers.tests.cpp:<line number>: PASSED:
5040 REQUIRE_THAT( 1.f, WithinULP( 1.f, 0 ) )
5041 with expansion:
5042 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
5043
5044 Matchers.tests.cpp:<line number>: PASSED:
5045 REQUIRE_THAT( -1.f, WithinULP( -1.f, 0 ) )
5046 with expansion:
5047 -1.0f is within 0 ULPs of -1.00000000e+00f ([-1.00000000e+00, -1.00000000e+
5048 00])
5049
5050 Matchers.tests.cpp:<line number>: PASSED:
5051 REQUIRE_THAT( nextafter( 1.f, 2.f ), WithinULP( 1.f, 1 ) )
5052 with expansion:
5053 1.000000119f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.
5054 00000012e+00])
5055
5056 Matchers.tests.cpp:<line number>: PASSED:
5057 REQUIRE_THAT( 0.f, WithinULP( nextafter( 0.f, 1.f ), 1 ) )
5058 with expansion:
5059 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
5060
5061 Matchers.tests.cpp:<line number>: PASSED:
5062 REQUIRE_THAT( 1.f, WithinULP( nextafter( 1.f, 0.f ), 1 ) )
5063 with expansion:
5064 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
5065
5066 Matchers.tests.cpp:<line number>: PASSED:
5067 REQUIRE_THAT( 1.f, !WithinULP( nextafter( 1.f, 2.f ), 0 ) )
5068 with expansion:
5069 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+
5070 00])
5071
5072 Matchers.tests.cpp:<line number>: PASSED:
5073 REQUIRE_THAT( 1.f, WithinULP( 1.f, 0 ) )
5074 with expansion:
5075 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
5076
5077 Matchers.tests.cpp:<line number>: PASSED:
5078 REQUIRE_THAT( -0.f, WithinULP( 0.f, 0 ) )
5079 with expansion:
5080 -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
5081
5082 -------------------------------------------------------------------------------
5083 Floating point matchers: float
5084 Composed
5085 -------------------------------------------------------------------------------
5086 Matchers.tests.cpp:<line number>
5087 ...............................................................................
5088
5089 Matchers.tests.cpp:<line number>: PASSED:
5090 REQUIRE_THAT( 1.f, WithinAbs( 1.f, 0.5 ) || WithinULP( 1.f, 1 ) )
5091 with expansion:
5092 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.
5093 99999940e-01, 1.00000012e+00]) )
5094
5095 Matchers.tests.cpp:<line number>: PASSED:
5096 REQUIRE_THAT( 1.f, WithinAbs( 2.f, 0.5 ) || WithinULP( 1.f, 0 ) )
5097 with expansion:
5098 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.
5099 00000000e+00, 1.00000000e+00]) )
5100
5101 Matchers.tests.cpp:<line number>: PASSED:
5102 REQUIRE_THAT( 0.0001f, WithinAbs( 0.f, 0.001f ) || WithinRel( 0.f, 0.1f ) )
5103 with expansion:
5104 0.0001f ( is within 0.00100000004749745 of 0.0 or and 0.0 are within 10% of
5105 each other )
5106
5107 -------------------------------------------------------------------------------
5108 Floating point matchers: float
5109 Constructor validation
5110 -------------------------------------------------------------------------------
5111 Matchers.tests.cpp:<line number>
5112 ...............................................................................
5113
5114 Matchers.tests.cpp:<line number>: PASSED:
5115 REQUIRE_NOTHROW( WithinAbs( 1.f, 0.f ) )
5116
5117 Matchers.tests.cpp:<line number>: PASSED:
5118 REQUIRE_THROWS_AS( WithinAbs( 1.f, -1.f ), std::domain_error )
5119
5120 Matchers.tests.cpp:<line number>: PASSED:
5121 REQUIRE_NOTHROW( WithinULP( 1.f, 0 ) )
5122
5123 Matchers.tests.cpp:<line number>: PASSED:
5124 REQUIRE_THROWS_AS( WithinULP( 1.f, static_cast<uint64_t>( -1 ) ), std::domain_error )
5125
5126 Matchers.tests.cpp:<line number>: PASSED:
5127 REQUIRE_NOTHROW( WithinRel( 1.f, 0.f ) )
5128
5129 Matchers.tests.cpp:<line number>: PASSED:
5130 REQUIRE_THROWS_AS( WithinRel( 1.f, -0.2f ), std::domain_error )
5131
5132 Matchers.tests.cpp:<line number>: PASSED:
5133 REQUIRE_THROWS_AS( WithinRel( 1.f, 1.f ), std::domain_error )
5134
5135 -------------------------------------------------------------------------------
5136 Floating point matchers: float
5137 IsNaN
5138 -------------------------------------------------------------------------------
5139 Matchers.tests.cpp:<line number>
5140 ...............................................................................
5141
5142 Matchers.tests.cpp:<line number>: PASSED:
5143 REQUIRE_THAT( 1., !IsNaN() )
5144 with expansion:
5145 1.0 not is NaN
5146
5147 -------------------------------------------------------------------------------
5148 GENERATE can combine literals and generators
5149 -------------------------------------------------------------------------------
5150 Generators.tests.cpp:<line number>
5151 ...............................................................................
5152
5153 Generators.tests.cpp:<line number>: PASSED:
5154 REQUIRE( i % 2 == 0 )
5155 with expansion:
5156 0 == 0
5157
5158 -------------------------------------------------------------------------------
5159 GENERATE can combine literals and generators
5160 -------------------------------------------------------------------------------
5161 Generators.tests.cpp:<line number>
5162 ...............................................................................
5163
5164 Generators.tests.cpp:<line number>: PASSED:
5165 REQUIRE( i % 2 == 0 )
5166 with expansion:
5167 0 == 0
5168
5169 -------------------------------------------------------------------------------
5170 GENERATE can combine literals and generators
5171 -------------------------------------------------------------------------------
5172 Generators.tests.cpp:<line number>
5173 ...............................................................................
5174
5175 Generators.tests.cpp:<line number>: PASSED:
5176 REQUIRE( i % 2 == 0 )
5177 with expansion:
5178 0 == 0
5179
5180 -------------------------------------------------------------------------------
5181 GENERATE can combine literals and generators
5182 -------------------------------------------------------------------------------
5183 Generators.tests.cpp:<line number>
5184 ...............................................................................
5185
5186 Generators.tests.cpp:<line number>: PASSED:
5187 REQUIRE( i % 2 == 0 )
5188 with expansion:
5189 0 == 0
5190
5191 -------------------------------------------------------------------------------
5192 Generators -- adapters
5193 Filtering by predicate
5194 Basic usage
5195 -------------------------------------------------------------------------------
5196 Generators.tests.cpp:<line number>
5197 ...............................................................................
5198
5199 Generators.tests.cpp:<line number>: PASSED:
5200 REQUIRE( i % 2 == 0 )
5201 with expansion:
5202 0 == 0
5203
5204 -------------------------------------------------------------------------------
5205 Generators -- adapters
5206 Filtering by predicate
5207 Basic usage
5208 -------------------------------------------------------------------------------
5209 Generators.tests.cpp:<line number>
5210 ...............................................................................
5211
5212 Generators.tests.cpp:<line number>: PASSED:
5213 REQUIRE( i % 2 == 0 )
5214 with expansion:
5215 0 == 0
5216
5217 -------------------------------------------------------------------------------
5218 Generators -- adapters
5219 Filtering by predicate
5220 Basic usage
5221 -------------------------------------------------------------------------------
5222 Generators.tests.cpp:<line number>
5223 ...............................................................................
5224
5225 Generators.tests.cpp:<line number>: PASSED:
5226 REQUIRE( i % 2 == 0 )
5227 with expansion:
5228 0 == 0
5229
5230 -------------------------------------------------------------------------------
5231 Generators -- adapters
5232 Filtering by predicate
5233 Throws if there are no matching values
5234 -------------------------------------------------------------------------------
5235 Generators.tests.cpp:<line number>
5236 ...............................................................................
5237
5238 Generators.tests.cpp:<line number>: PASSED:
5239 REQUIRE_THROWS_AS( filter([] (int) {return false; }, value(1)), Catch::GeneratorException )
5240
5241 -------------------------------------------------------------------------------
5242 Generators -- adapters
5243 Shortening a range
5244 -------------------------------------------------------------------------------
5245 Generators.tests.cpp:<line number>
5246 ...............................................................................
5247
5248 Generators.tests.cpp:<line number>: PASSED:
5249 REQUIRE( i < 4 )
5250 with expansion:
5251 1 < 4
5252
5253 -------------------------------------------------------------------------------
5254 Generators -- adapters
5255 Shortening a range
5256 -------------------------------------------------------------------------------
5257 Generators.tests.cpp:<line number>
5258 ...............................................................................
5259
5260 Generators.tests.cpp:<line number>: PASSED:
5261 REQUIRE( i < 4 )
5262 with expansion:
5263 2 < 4
5264
5265 -------------------------------------------------------------------------------
5266 Generators -- adapters
5267 Shortening a range
5268 -------------------------------------------------------------------------------
5269 Generators.tests.cpp:<line number>
5270 ...............................................................................
5271
5272 Generators.tests.cpp:<line number>: PASSED:
5273 REQUIRE( i < 4 )
5274 with expansion:
5275 3 < 4
5276
5277 -------------------------------------------------------------------------------
5278 Generators -- adapters
5279 Transforming elements
5280 Same type
5281 -------------------------------------------------------------------------------
5282 Generators.tests.cpp:<line number>
5283 ...............................................................................
5284
5285 Generators.tests.cpp:<line number>: PASSED:
5286 REQUIRE( i % 2 == 0 )
5287 with expansion:
5288 0 == 0
5289
5290 -------------------------------------------------------------------------------
5291 Generators -- adapters
5292 Transforming elements
5293 Same type
5294 -------------------------------------------------------------------------------
5295 Generators.tests.cpp:<line number>
5296 ...............................................................................
5297
5298 Generators.tests.cpp:<line number>: PASSED:
5299 REQUIRE( i % 2 == 0 )
5300 with expansion:
5301 0 == 0
5302
5303 -------------------------------------------------------------------------------
5304 Generators -- adapters
5305 Transforming elements
5306 Same type
5307 -------------------------------------------------------------------------------
5308 Generators.tests.cpp:<line number>
5309 ...............................................................................
5310
5311 Generators.tests.cpp:<line number>: PASSED:
5312 REQUIRE( i % 2 == 0 )
5313 with expansion:
5314 0 == 0
5315
5316 -------------------------------------------------------------------------------
5317 Generators -- adapters
5318 Transforming elements
5319 Different type
5320 -------------------------------------------------------------------------------
5321 Generators.tests.cpp:<line number>
5322 ...............................................................................
5323
5324 Generators.tests.cpp:<line number>: PASSED:
5325 REQUIRE( i.size() == 1 )
5326 with expansion:
5327 1 == 1
5328
5329 -------------------------------------------------------------------------------
5330 Generators -- adapters
5331 Transforming elements
5332 Different type
5333 -------------------------------------------------------------------------------
5334 Generators.tests.cpp:<line number>
5335 ...............................................................................
5336
5337 Generators.tests.cpp:<line number>: PASSED:
5338 REQUIRE( i.size() == 1 )
5339 with expansion:
5340 1 == 1
5341
5342 -------------------------------------------------------------------------------
5343 Generators -- adapters
5344 Transforming elements
5345 Different type
5346 -------------------------------------------------------------------------------
5347 Generators.tests.cpp:<line number>
5348 ...............................................................................
5349
5350 Generators.tests.cpp:<line number>: PASSED:
5351 REQUIRE( i.size() == 1 )
5352 with expansion:
5353 1 == 1
5354
5355 -------------------------------------------------------------------------------
5356 Generators -- adapters
5357 Transforming elements
5358 Different deduced type
5359 -------------------------------------------------------------------------------
5360 Generators.tests.cpp:<line number>
5361 ...............................................................................
5362
5363 Generators.tests.cpp:<line number>: PASSED:
5364 REQUIRE( i.size() == 1 )
5365 with expansion:
5366 1 == 1
5367
5368 -------------------------------------------------------------------------------
5369 Generators -- adapters
5370 Transforming elements
5371 Different deduced type
5372 -------------------------------------------------------------------------------
5373 Generators.tests.cpp:<line number>
5374 ...............................................................................
5375
5376 Generators.tests.cpp:<line number>: PASSED:
5377 REQUIRE( i.size() == 1 )
5378 with expansion:
5379 1 == 1
5380
5381 -------------------------------------------------------------------------------
5382 Generators -- adapters
5383 Transforming elements
5384 Different deduced type
5385 -------------------------------------------------------------------------------
5386 Generators.tests.cpp:<line number>
5387 ...............................................................................
5388
5389 Generators.tests.cpp:<line number>: PASSED:
5390 REQUIRE( i.size() == 1 )
5391 with expansion:
5392 1 == 1
5393
5394 -------------------------------------------------------------------------------
5395 Generators -- adapters
5396 Repeating a generator
5397 -------------------------------------------------------------------------------
5398 Generators.tests.cpp:<line number>
5399 ...............................................................................
5400
5401 Generators.tests.cpp:<line number>: PASSED:
5402 REQUIRE( j > 0 )
5403 with expansion:
5404 1 > 0
5405
5406 -------------------------------------------------------------------------------
5407 Generators -- adapters
5408 Repeating a generator
5409 -------------------------------------------------------------------------------
5410 Generators.tests.cpp:<line number>
5411 ...............................................................................
5412
5413 Generators.tests.cpp:<line number>: PASSED:
5414 REQUIRE( j > 0 )
5415 with expansion:
5416 2 > 0
5417
5418 -------------------------------------------------------------------------------
5419 Generators -- adapters
5420 Repeating a generator
5421 -------------------------------------------------------------------------------
5422 Generators.tests.cpp:<line number>
5423 ...............................................................................
5424
5425 Generators.tests.cpp:<line number>: PASSED:
5426 REQUIRE( j > 0 )
5427 with expansion:
5428 3 > 0
5429
5430 -------------------------------------------------------------------------------
5431 Generators -- adapters
5432 Repeating a generator
5433 -------------------------------------------------------------------------------
5434 Generators.tests.cpp:<line number>
5435 ...............................................................................
5436
5437 Generators.tests.cpp:<line number>: PASSED:
5438 REQUIRE( j > 0 )
5439 with expansion:
5440 1 > 0
5441
5442 -------------------------------------------------------------------------------
5443 Generators -- adapters
5444 Repeating a generator
5445 -------------------------------------------------------------------------------
5446 Generators.tests.cpp:<line number>
5447 ...............................................................................
5448
5449 Generators.tests.cpp:<line number>: PASSED:
5450 REQUIRE( j > 0 )
5451 with expansion:
5452 2 > 0
5453
5454 -------------------------------------------------------------------------------
5455 Generators -- adapters
5456 Repeating a generator
5457 -------------------------------------------------------------------------------
5458 Generators.tests.cpp:<line number>
5459 ...............................................................................
5460
5461 Generators.tests.cpp:<line number>: PASSED:
5462 REQUIRE( j > 0 )
5463 with expansion:
5464 3 > 0
5465
5466 -------------------------------------------------------------------------------
5467 Generators -- adapters
5468 Chunking a generator into sized pieces
5469 Number of elements in source is divisible by chunk size
5470 -------------------------------------------------------------------------------
5471 Generators.tests.cpp:<line number>
5472 ...............................................................................
5473
5474 Generators.tests.cpp:<line number>: PASSED:
5475 REQUIRE( chunk2.size() == 2 )
5476 with expansion:
5477 2 == 2
5478
5479 Generators.tests.cpp:<line number>: PASSED:
5480 REQUIRE( chunk2.front() == chunk2.back() )
5481 with expansion:
5482 1 == 1
5483
5484 -------------------------------------------------------------------------------
5485 Generators -- adapters
5486 Chunking a generator into sized pieces
5487 Number of elements in source is divisible by chunk size
5488 -------------------------------------------------------------------------------
5489 Generators.tests.cpp:<line number>
5490 ...............................................................................
5491
5492 Generators.tests.cpp:<line number>: PASSED:
5493 REQUIRE( chunk2.size() == 2 )
5494 with expansion:
5495 2 == 2
5496
5497 Generators.tests.cpp:<line number>: PASSED:
5498 REQUIRE( chunk2.front() == chunk2.back() )
5499 with expansion:
5500 2 == 2
5501
5502 -------------------------------------------------------------------------------
5503 Generators -- adapters
5504 Chunking a generator into sized pieces
5505 Number of elements in source is divisible by chunk size
5506 -------------------------------------------------------------------------------
5507 Generators.tests.cpp:<line number>
5508 ...............................................................................
5509
5510 Generators.tests.cpp:<line number>: PASSED:
5511 REQUIRE( chunk2.size() == 2 )
5512 with expansion:
5513 2 == 2
5514
5515 Generators.tests.cpp:<line number>: PASSED:
5516 REQUIRE( chunk2.front() == chunk2.back() )
5517 with expansion:
5518 3 == 3
5519
5520 -------------------------------------------------------------------------------
5521 Generators -- adapters
5522 Chunking a generator into sized pieces
5523 Number of elements in source is not divisible by chunk size
5524 -------------------------------------------------------------------------------
5525 Generators.tests.cpp:<line number>
5526 ...............................................................................
5527
5528 Generators.tests.cpp:<line number>: PASSED:
5529 REQUIRE( chunk2.size() == 2 )
5530 with expansion:
5531 2 == 2
5532
5533 Generators.tests.cpp:<line number>: PASSED:
5534 REQUIRE( chunk2.front() == chunk2.back() )
5535 with expansion:
5536 1 == 1
5537
5538 Generators.tests.cpp:<line number>: PASSED:
5539 REQUIRE( chunk2.front() < 3 )
5540 with expansion:
5541 1 < 3
5542
5543 -------------------------------------------------------------------------------
5544 Generators -- adapters
5545 Chunking a generator into sized pieces
5546 Number of elements in source is not divisible by chunk size
5547 -------------------------------------------------------------------------------
5548 Generators.tests.cpp:<line number>
5549 ...............................................................................
5550
5551 Generators.tests.cpp:<line number>: PASSED:
5552 REQUIRE( chunk2.size() == 2 )
5553 with expansion:
5554 2 == 2
5555
5556 Generators.tests.cpp:<line number>: PASSED:
5557 REQUIRE( chunk2.front() == chunk2.back() )
5558 with expansion:
5559 2 == 2
5560
5561 Generators.tests.cpp:<line number>: PASSED:
5562 REQUIRE( chunk2.front() < 3 )
5563 with expansion:
5564 2 < 3
5565
5566 -------------------------------------------------------------------------------
5567 Generators -- adapters
5568 Chunking a generator into sized pieces
5569 Chunk size of zero
5570 -------------------------------------------------------------------------------
5571 Generators.tests.cpp:<line number>
5572 ...............................................................................
5573
5574 Generators.tests.cpp:<line number>: PASSED:
5575 REQUIRE( chunk2.size() == 0 )
5576 with expansion:
5577 0 == 0
5578
5579 -------------------------------------------------------------------------------
5580 Generators -- adapters
5581 Chunking a generator into sized pieces
5582 Chunk size of zero
5583 -------------------------------------------------------------------------------
5584 Generators.tests.cpp:<line number>
5585 ...............................................................................
5586
5587 Generators.tests.cpp:<line number>: PASSED:
5588 REQUIRE( chunk2.size() == 0 )
5589 with expansion:
5590 0 == 0
5591
5592 -------------------------------------------------------------------------------
5593 Generators -- adapters
5594 Chunking a generator into sized pieces
5595 Chunk size of zero
5596 -------------------------------------------------------------------------------
5597 Generators.tests.cpp:<line number>
5598 ...............................................................................
5599
5600 Generators.tests.cpp:<line number>: PASSED:
5601 REQUIRE( chunk2.size() == 0 )
5602 with expansion:
5603 0 == 0
5604
5605 -------------------------------------------------------------------------------
5606 Generators -- adapters
5607 Chunking a generator into sized pieces
5608 Throws on too small generators
5609 -------------------------------------------------------------------------------
5610 Generators.tests.cpp:<line number>
5611 ...............................................................................
5612
5613 Generators.tests.cpp:<line number>: PASSED:
5614 REQUIRE_THROWS_AS( chunk(2, value(1)), Catch::GeneratorException )
5615
5616 -------------------------------------------------------------------------------
5617 Generators -- simple
5618 one
5619 -------------------------------------------------------------------------------
5620 Generators.tests.cpp:<line number>
5621 ...............................................................................
5622
5623 Generators.tests.cpp:<line number>: PASSED:
5624 REQUIRE( j < i )
5625 with expansion:
5626 -3 < 1
5627
5628 -------------------------------------------------------------------------------
5629 Generators -- simple
5630 one
5631 -------------------------------------------------------------------------------
5632 Generators.tests.cpp:<line number>
5633 ...............................................................................
5634
5635 Generators.tests.cpp:<line number>: PASSED:
5636 REQUIRE( j < i )
5637 with expansion:
5638 -2 < 1
5639
5640 -------------------------------------------------------------------------------
5641 Generators -- simple
5642 one
5643 -------------------------------------------------------------------------------
5644 Generators.tests.cpp:<line number>
5645 ...............................................................................
5646
5647 Generators.tests.cpp:<line number>: PASSED:
5648 REQUIRE( j < i )
5649 with expansion:
5650 -1 < 1
5651
5652 -------------------------------------------------------------------------------
5653 Generators -- simple
5654 two
5655 -------------------------------------------------------------------------------
5656 Generators.tests.cpp:<line number>
5657 ...............................................................................
5658
5659 Generators.tests.cpp:<line number>: PASSED:
5660 REQUIRE( 4u * i > str.size() )
5661 with expansion:
5662 4 > 1
5663
5664 -------------------------------------------------------------------------------
5665 Generators -- simple
5666 two
5667 -------------------------------------------------------------------------------
5668 Generators.tests.cpp:<line number>
5669 ...............................................................................
5670
5671 Generators.tests.cpp:<line number>: PASSED:
5672 REQUIRE( 4u * i > str.size() )
5673 with expansion:
5674 4 > 2
5675
5676 -------------------------------------------------------------------------------
5677 Generators -- simple
5678 two
5679 -------------------------------------------------------------------------------
5680 Generators.tests.cpp:<line number>
5681 ...............................................................................
5682
5683 Generators.tests.cpp:<line number>: PASSED:
5684 REQUIRE( 4u * i > str.size() )
5685 with expansion:
5686 4 > 3
5687
5688 -------------------------------------------------------------------------------
5689 Generators -- simple
5690 one
5691 -------------------------------------------------------------------------------
5692 Generators.tests.cpp:<line number>
5693 ...............................................................................
5694
5695 Generators.tests.cpp:<line number>: PASSED:
5696 REQUIRE( j < i )
5697 with expansion:
5698 -3 < 2
5699
5700 -------------------------------------------------------------------------------
5701 Generators -- simple
5702 one
5703 -------------------------------------------------------------------------------
5704 Generators.tests.cpp:<line number>
5705 ...............................................................................
5706
5707 Generators.tests.cpp:<line number>: PASSED:
5708 REQUIRE( j < i )
5709 with expansion:
5710 -2 < 2
5711
5712 -------------------------------------------------------------------------------
5713 Generators -- simple
5714 one
5715 -------------------------------------------------------------------------------
5716 Generators.tests.cpp:<line number>
5717 ...............................................................................
5718
5719 Generators.tests.cpp:<line number>: PASSED:
5720 REQUIRE( j < i )
5721 with expansion:
5722 -1 < 2
5723
5724 -------------------------------------------------------------------------------
5725 Generators -- simple
5726 two
5727 -------------------------------------------------------------------------------
5728 Generators.tests.cpp:<line number>
5729 ...............................................................................
5730
5731 Generators.tests.cpp:<line number>: PASSED:
5732 REQUIRE( 4u * i > str.size() )
5733 with expansion:
5734 8 > 1
5735
5736 -------------------------------------------------------------------------------
5737 Generators -- simple
5738 two
5739 -------------------------------------------------------------------------------
5740 Generators.tests.cpp:<line number>
5741 ...............................................................................
5742
5743 Generators.tests.cpp:<line number>: PASSED:
5744 REQUIRE( 4u * i > str.size() )
5745 with expansion:
5746 8 > 2
5747
5748 -------------------------------------------------------------------------------
5749 Generators -- simple
5750 two
5751 -------------------------------------------------------------------------------
5752 Generators.tests.cpp:<line number>
5753 ...............................................................................
5754
5755 Generators.tests.cpp:<line number>: PASSED:
5756 REQUIRE( 4u * i > str.size() )
5757 with expansion:
5758 8 > 3
5759
5760 -------------------------------------------------------------------------------
5761 Generators -- simple
5762 one
5763 -------------------------------------------------------------------------------
5764 Generators.tests.cpp:<line number>
5765 ...............................................................................
5766
5767 Generators.tests.cpp:<line number>: PASSED:
5768 REQUIRE( j < i )
5769 with expansion:
5770 -3 < 3
5771
5772 -------------------------------------------------------------------------------
5773 Generators -- simple
5774 one
5775 -------------------------------------------------------------------------------
5776 Generators.tests.cpp:<line number>
5777 ...............................................................................
5778
5779 Generators.tests.cpp:<line number>: PASSED:
5780 REQUIRE( j < i )
5781 with expansion:
5782 -2 < 3
5783
5784 -------------------------------------------------------------------------------
5785 Generators -- simple
5786 one
5787 -------------------------------------------------------------------------------
5788 Generators.tests.cpp:<line number>
5789 ...............................................................................
5790
5791 Generators.tests.cpp:<line number>: PASSED:
5792 REQUIRE( j < i )
5793 with expansion:
5794 -1 < 3
5795
5796 -------------------------------------------------------------------------------
5797 Generators -- simple
5798 two
5799 -------------------------------------------------------------------------------
5800 Generators.tests.cpp:<line number>
5801 ...............................................................................
5802
5803 Generators.tests.cpp:<line number>: PASSED:
5804 REQUIRE( 4u * i > str.size() )
5805 with expansion:
5806 12 > 1
5807
5808 -------------------------------------------------------------------------------
5809 Generators -- simple
5810 two
5811 -------------------------------------------------------------------------------
5812 Generators.tests.cpp:<line number>
5813 ...............................................................................
5814
5815 Generators.tests.cpp:<line number>: PASSED:
5816 REQUIRE( 4u * i > str.size() )
5817 with expansion:
5818 12 > 2
5819
5820 -------------------------------------------------------------------------------
5821 Generators -- simple
5822 two
5823 -------------------------------------------------------------------------------
5824 Generators.tests.cpp:<line number>
5825 ...............................................................................
5826
5827 Generators.tests.cpp:<line number>: PASSED:
5828 REQUIRE( 4u * i > str.size() )
5829 with expansion:
5830 12 > 3
5831
5832 -------------------------------------------------------------------------------
5833 Generators internals
5834 Single value
5835 -------------------------------------------------------------------------------
5836 GeneratorsImpl.tests.cpp:<line number>
5837 ...............................................................................
5838
5839 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5840 REQUIRE( gen.get() == 123 )
5841 with expansion:
5842 123 == 123
5843
5844 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5845 REQUIRE_FALSE( gen.next() )
5846 with expansion:
5847 !false
5848
5849 -------------------------------------------------------------------------------
5850 Generators internals
5851 Preset values
5852 -------------------------------------------------------------------------------
5853 GeneratorsImpl.tests.cpp:<line number>
5854 ...............................................................................
5855
5856 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5857 REQUIRE( gen.get() == 1 )
5858 with expansion:
5859 1 == 1
5860
5861 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5862 REQUIRE( gen.next() )
5863 with expansion:
5864 true
5865
5866 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5867 REQUIRE( gen.get() == 3 )
5868 with expansion:
5869 3 == 3
5870
5871 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5872 REQUIRE( gen.next() )
5873 with expansion:
5874 true
5875
5876 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5877 REQUIRE( gen.get() == 5 )
5878 with expansion:
5879 5 == 5
5880
5881 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5882 REQUIRE_FALSE( gen.next() )
5883 with expansion:
5884 !false
5885
5886 -------------------------------------------------------------------------------
5887 Generators internals
5888 Generator combinator
5889 -------------------------------------------------------------------------------
5890 GeneratorsImpl.tests.cpp:<line number>
5891 ...............................................................................
5892
5893 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5894 REQUIRE( gen.get() == 1 )
5895 with expansion:
5896 1 == 1
5897
5898 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5899 REQUIRE( gen.next() )
5900 with expansion:
5901 true
5902
5903 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5904 REQUIRE( gen.get() == 5 )
5905 with expansion:
5906 5 == 5
5907
5908 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5909 REQUIRE( gen.next() )
5910 with expansion:
5911 true
5912
5913 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5914 REQUIRE( gen.get() == 2 )
5915 with expansion:
5916 2 == 2
5917
5918 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5919 REQUIRE( gen.next() )
5920 with expansion:
5921 true
5922
5923 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5924 REQUIRE( gen.get() == 4 )
5925 with expansion:
5926 4 == 4
5927
5928 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5929 REQUIRE( gen.next() )
5930 with expansion:
5931 true
5932
5933 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5934 REQUIRE( gen.get() == 0 )
5935 with expansion:
5936 0 == 0
5937
5938 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5939 REQUIRE_FALSE( gen.next() )
5940 with expansion:
5941 !false
5942
5943 -------------------------------------------------------------------------------
5944 Generators internals
5945 Explicitly typed generator sequence
5946 -------------------------------------------------------------------------------
5947 GeneratorsImpl.tests.cpp:<line number>
5948 ...............................................................................
5949
5950 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5951 REQUIRE( gen.get().size() == 2 )
5952 with expansion:
5953 2 == 2
5954
5955 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5956 REQUIRE( gen.get() == "aa" )
5957 with expansion:
5958 "aa" == "aa"
5959
5960 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5961 REQUIRE( gen.next() )
5962 with expansion:
5963 true
5964
5965 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5966 REQUIRE( gen.get() == "bb" )
5967 with expansion:
5968 "bb" == "bb"
5969
5970 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5971 REQUIRE( gen.next() )
5972 with expansion:
5973 true
5974
5975 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5976 REQUIRE( gen.get() == "cc" )
5977 with expansion:
5978 "cc" == "cc"
5979
5980 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5981 REQUIRE_FALSE( gen.next() )
5982 with expansion:
5983 !false
5984
5985 -------------------------------------------------------------------------------
5986 Generators internals
5987 Filter generator
5988 Simple filtering
5989 -------------------------------------------------------------------------------
5990 GeneratorsImpl.tests.cpp:<line number>
5991 ...............................................................................
5992
5993 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5994 REQUIRE( gen.get() == 1 )
5995 with expansion:
5996 1 == 1
5997
5998 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5999 REQUIRE( gen.next() )
6000 with expansion:
6001 true
6002
6003 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6004 REQUIRE( gen.get() == 3 )
6005 with expansion:
6006 3 == 3
6007
6008 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6009 REQUIRE_FALSE( gen.next() )
6010 with expansion:
6011 !false
6012
6013 -------------------------------------------------------------------------------
6014 Generators internals
6015 Filter generator
6016 Filter out multiple elements at the start and end
6017 -------------------------------------------------------------------------------
6018 GeneratorsImpl.tests.cpp:<line number>
6019 ...............................................................................
6020
6021 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6022 REQUIRE( gen.get() == 1 )
6023 with expansion:
6024 1 == 1
6025
6026 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6027 REQUIRE( gen.next() )
6028 with expansion:
6029 true
6030
6031 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6032 REQUIRE( gen.get() == 3 )
6033 with expansion:
6034 3 == 3
6035
6036 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6037 REQUIRE_FALSE( gen.next() )
6038 with expansion:
6039 !false
6040
6041 -------------------------------------------------------------------------------
6042 Generators internals
6043 Filter generator
6044 Throws on construction if it can't get initial element
6045 -------------------------------------------------------------------------------
6046 GeneratorsImpl.tests.cpp:<line number>
6047 ...............................................................................
6048
6049 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6050 REQUIRE_THROWS_AS( filter([](int) { return false; }, value(1)), Catch::GeneratorException )
6051
6052 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6053 REQUIRE_THROWS_AS( filter([](int) { return false; }, values({ 1, 2, 3 })), Catch::GeneratorException )
6054
6055 -------------------------------------------------------------------------------
6056 Generators internals
6057 Filter generator
6058 Out-of-line predicates are copied into the generator
6059 -------------------------------------------------------------------------------
6060 GeneratorsImpl.tests.cpp:<line number>
6061 ...............................................................................
6062
6063 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6064 REQUIRE( gen.get() == 1 )
6065 with expansion:
6066 1 == 1
6067
6068 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6069 REQUIRE( gen.next() )
6070 with expansion:
6071 true
6072
6073 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6074 REQUIRE( gen.get() == 3 )
6075 with expansion:
6076 3 == 3
6077
6078 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6079 REQUIRE_FALSE( gen.next() )
6080 with expansion:
6081 !false
6082
6083 -------------------------------------------------------------------------------
6084 Generators internals
6085 Take generator
6086 Take less
6087 -------------------------------------------------------------------------------
6088 GeneratorsImpl.tests.cpp:<line number>
6089 ...............................................................................
6090
6091 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6092 REQUIRE( gen.get() == 1 )
6093 with expansion:
6094 1 == 1
6095
6096 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6097 REQUIRE( gen.next() )
6098 with expansion:
6099 true
6100
6101 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6102 REQUIRE( gen.get() == 2 )
6103 with expansion:
6104 2 == 2
6105
6106 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6107 REQUIRE_FALSE( gen.next() )
6108 with expansion:
6109 !false
6110
6111 -------------------------------------------------------------------------------
6112 Generators internals
6113 Take generator
6114 Take more
6115 -------------------------------------------------------------------------------
6116 GeneratorsImpl.tests.cpp:<line number>
6117 ...............................................................................
6118
6119 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6120 REQUIRE( gen.get() == 1 )
6121 with expansion:
6122 1 == 1
6123
6124 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6125 REQUIRE_FALSE( gen.next() )
6126 with expansion:
6127 !false
6128
6129 -------------------------------------------------------------------------------
6130 Generators internals
6131 Map with explicit return type
6132 -------------------------------------------------------------------------------
6133 GeneratorsImpl.tests.cpp:<line number>
6134 ...............................................................................
6135
6136 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6137 REQUIRE( gen.get() == 2.0 )
6138 with expansion:
6139 2.0 == 2.0
6140
6141 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6142 REQUIRE( gen.next() )
6143 with expansion:
6144 true
6145
6146 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6147 REQUIRE( gen.get() == 4.0 )
6148 with expansion:
6149 4.0 == 4.0
6150
6151 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6152 REQUIRE( gen.next() )
6153 with expansion:
6154 true
6155
6156 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6157 REQUIRE( gen.get() == 6.0 )
6158 with expansion:
6159 6.0 == 6.0
6160
6161 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6162 REQUIRE_FALSE( gen.next() )
6163 with expansion:
6164 !false
6165
6166 -------------------------------------------------------------------------------
6167 Generators internals
6168 Map with deduced return type
6169 -------------------------------------------------------------------------------
6170 GeneratorsImpl.tests.cpp:<line number>
6171 ...............................................................................
6172
6173 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6174 REQUIRE( gen.get() == 2.0 )
6175 with expansion:
6176 2.0 == 2.0
6177
6178 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6179 REQUIRE( gen.next() )
6180 with expansion:
6181 true
6182
6183 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6184 REQUIRE( gen.get() == 4.0 )
6185 with expansion:
6186 4.0 == 4.0
6187
6188 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6189 REQUIRE( gen.next() )
6190 with expansion:
6191 true
6192
6193 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6194 REQUIRE( gen.get() == 6.0 )
6195 with expansion:
6196 6.0 == 6.0
6197
6198 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6199 REQUIRE_FALSE( gen.next() )
6200 with expansion:
6201 !false
6202
6203 -------------------------------------------------------------------------------
6204 Generators internals
6205 Repeat
6206 Singular repeat
6207 -------------------------------------------------------------------------------
6208 GeneratorsImpl.tests.cpp:<line number>
6209 ...............................................................................
6210
6211 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6212 REQUIRE( gen.get() == 3 )
6213 with expansion:
6214 3 == 3
6215
6216 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6217 REQUIRE_FALSE( gen.next() )
6218 with expansion:
6219 !false
6220
6221 -------------------------------------------------------------------------------
6222 Generators internals
6223 Repeat
6224 Actual repeat
6225 -------------------------------------------------------------------------------
6226 GeneratorsImpl.tests.cpp:<line number>
6227 ...............................................................................
6228
6229 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6230 REQUIRE( gen.get() == 1 )
6231 with expansion:
6232 1 == 1
6233
6234 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6235 REQUIRE( gen.next() )
6236 with expansion:
6237 true
6238
6239 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6240 REQUIRE( gen.get() == 2 )
6241 with expansion:
6242 2 == 2
6243
6244 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6245 REQUIRE( gen.next() )
6246 with expansion:
6247 true
6248
6249 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6250 REQUIRE( gen.get() == 3 )
6251 with expansion:
6252 3 == 3
6253
6254 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6255 REQUIRE( gen.next() )
6256 with expansion:
6257 true
6258
6259 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6260 REQUIRE( gen.get() == 1 )
6261 with expansion:
6262 1 == 1
6263
6264 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6265 REQUIRE( gen.next() )
6266 with expansion:
6267 true
6268
6269 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6270 REQUIRE( gen.get() == 2 )
6271 with expansion:
6272 2 == 2
6273
6274 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6275 REQUIRE( gen.next() )
6276 with expansion:
6277 true
6278
6279 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6280 REQUIRE( gen.get() == 3 )
6281 with expansion:
6282 3 == 3
6283
6284 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6285 REQUIRE_FALSE( gen.next() )
6286 with expansion:
6287 !false
6288
6289 -------------------------------------------------------------------------------
6290 Generators internals
6291 Range
6292 Positive auto step
6293 Integer
6294 -------------------------------------------------------------------------------
6295 GeneratorsImpl.tests.cpp:<line number>
6296 ...............................................................................
6297
6298 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6299 REQUIRE( gen.get() == -2 )
6300 with expansion:
6301 -2 == -2
6302
6303 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6304 REQUIRE( gen.next() )
6305 with expansion:
6306 true
6307
6308 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6309 REQUIRE( gen.get() == -1 )
6310 with expansion:
6311 -1 == -1
6312
6313 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6314 REQUIRE( gen.next() )
6315 with expansion:
6316 true
6317
6318 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6319 REQUIRE( gen.get() == 0 )
6320 with expansion:
6321 0 == 0
6322
6323 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6324 REQUIRE( gen.next() )
6325 with expansion:
6326 true
6327
6328 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6329 REQUIRE( gen.get() == 1 )
6330 with expansion:
6331 1 == 1
6332
6333 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6334 REQUIRE_FALSE( gen.next() )
6335 with expansion:
6336 !false
6337
6338 -------------------------------------------------------------------------------
6339 Generators internals
6340 Range
6341 Negative auto step
6342 Integer
6343 -------------------------------------------------------------------------------
6344 GeneratorsImpl.tests.cpp:<line number>
6345 ...............................................................................
6346
6347 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6348 REQUIRE( gen.get() == 2 )
6349 with expansion:
6350 2 == 2
6351
6352 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6353 REQUIRE( gen.next() )
6354 with expansion:
6355 true
6356
6357 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6358 REQUIRE( gen.get() == 1 )
6359 with expansion:
6360 1 == 1
6361
6362 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6363 REQUIRE( gen.next() )
6364 with expansion:
6365 true
6366
6367 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6368 REQUIRE( gen.get() == 0 )
6369 with expansion:
6370 0 == 0
6371
6372 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6373 REQUIRE( gen.next() )
6374 with expansion:
6375 true
6376
6377 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6378 REQUIRE( gen.get() == -1 )
6379 with expansion:
6380 -1 == -1
6381
6382 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6383 REQUIRE_FALSE( gen.next() )
6384 with expansion:
6385 !false
6386
6387 -------------------------------------------------------------------------------
6388 Generators internals
6389 Range
6390 Positive manual step
6391 Integer
6392 Exact
6393 -------------------------------------------------------------------------------
6394 GeneratorsImpl.tests.cpp:<line number>
6395 ...............................................................................
6396
6397 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6398 REQUIRE( gen.get() == -7 )
6399 with expansion:
6400 -7 == -7
6401
6402 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6403 REQUIRE( gen.next() )
6404 with expansion:
6405 true
6406
6407 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6408 REQUIRE( gen.get() == -4 )
6409 with expansion:
6410 -4 == -4
6411
6412 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6413 REQUIRE( gen.next() )
6414 with expansion:
6415 true
6416
6417 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6418 REQUIRE( gen.get() == -1 )
6419 with expansion:
6420 -1 == -1
6421
6422 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6423 REQUIRE( gen.next() )
6424 with expansion:
6425 true
6426
6427 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6428 REQUIRE( gen.get() == 2 )
6429 with expansion:
6430 2 == 2
6431
6432 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6433 REQUIRE_FALSE( gen.next() )
6434 with expansion:
6435 !false
6436
6437 -------------------------------------------------------------------------------
6438 Generators internals
6439 Range
6440 Positive manual step
6441 Integer
6442 Slightly over end
6443 -------------------------------------------------------------------------------
6444 GeneratorsImpl.tests.cpp:<line number>
6445 ...............................................................................
6446
6447 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6448 REQUIRE( gen.get() == -7 )
6449 with expansion:
6450 -7 == -7
6451
6452 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6453 REQUIRE( gen.next() )
6454 with expansion:
6455 true
6456
6457 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6458 REQUIRE( gen.get() == -4 )
6459 with expansion:
6460 -4 == -4
6461
6462 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6463 REQUIRE( gen.next() )
6464 with expansion:
6465 true
6466
6467 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6468 REQUIRE( gen.get() == -1 )
6469 with expansion:
6470 -1 == -1
6471
6472 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6473 REQUIRE( gen.next() )
6474 with expansion:
6475 true
6476
6477 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6478 REQUIRE( gen.get() == 2 )
6479 with expansion:
6480 2 == 2
6481
6482 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6483 REQUIRE_FALSE( gen.next() )
6484 with expansion:
6485 !false
6486
6487 -------------------------------------------------------------------------------
6488 Generators internals
6489 Range
6490 Positive manual step
6491 Integer
6492 Slightly under end
6493 -------------------------------------------------------------------------------
6494 GeneratorsImpl.tests.cpp:<line number>
6495 ...............................................................................
6496
6497 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6498 REQUIRE( gen.get() == -7 )
6499 with expansion:
6500 -7 == -7
6501
6502 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6503 REQUIRE( gen.next() )
6504 with expansion:
6505 true
6506
6507 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6508 REQUIRE( gen.get() == -4 )
6509 with expansion:
6510 -4 == -4
6511
6512 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6513 REQUIRE( gen.next() )
6514 with expansion:
6515 true
6516
6517 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6518 REQUIRE( gen.get() == -1 )
6519 with expansion:
6520 -1 == -1
6521
6522 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6523 REQUIRE( gen.next() )
6524 with expansion:
6525 true
6526
6527 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6528 REQUIRE( gen.get() == 2 )
6529 with expansion:
6530 2 == 2
6531
6532 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6533 REQUIRE( gen.next() )
6534 with expansion:
6535 true
6536
6537 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6538 REQUIRE( gen.get() == 5 )
6539 with expansion:
6540 5 == 5
6541
6542 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6543 REQUIRE_FALSE( gen.next() )
6544 with expansion:
6545 !false
6546
6547 -------------------------------------------------------------------------------
6548 Generators internals
6549 Range
6550 Positive manual step
6551 Floating Point
6552 Exact
6553 -------------------------------------------------------------------------------
6554 GeneratorsImpl.tests.cpp:<line number>
6555 ...............................................................................
6556
6557 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6558 REQUIRE( gen.get() == Approx(expected) )
6559 with expansion:
6560 -1.0 == Approx( -1.0 )
6561 with message:
6562 Current expected value is -1
6563
6564 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6565 REQUIRE( gen.next() )
6566 with expansion:
6567 true
6568 with message:
6569 Current expected value is -1
6570
6571 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6572 REQUIRE( gen.get() == Approx(expected) )
6573 with expansion:
6574 -0.90000000000000002
6575 ==
6576 Approx( -0.90000000000000002 )
6577 with message:
6578 Current expected value is -0.9
6579
6580 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6581 REQUIRE( gen.next() )
6582 with expansion:
6583 true
6584 with message:
6585 Current expected value is -0.9
6586
6587 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6588 REQUIRE( gen.get() == Approx(expected) )
6589 with expansion:
6590 -0.80000000000000004
6591 ==
6592 Approx( -0.80000000000000004 )
6593 with message:
6594 Current expected value is -0.8
6595
6596 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6597 REQUIRE( gen.next() )
6598 with expansion:
6599 true
6600 with message:
6601 Current expected value is -0.8
6602
6603 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6604 REQUIRE( gen.get() == Approx(expected) )
6605 with expansion:
6606 -0.70000000000000007
6607 ==
6608 Approx( -0.70000000000000007 )
6609 with message:
6610 Current expected value is -0.7
6611
6612 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6613 REQUIRE( gen.next() )
6614 with expansion:
6615 true
6616 with message:
6617 Current expected value is -0.7
6618
6619 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6620 REQUIRE( gen.get() == Approx(expected) )
6621 with expansion:
6622 -0.60000000000000009
6623 ==
6624 Approx( -0.60000000000000009 )
6625 with message:
6626 Current expected value is -0.6
6627
6628 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6629 REQUIRE( gen.next() )
6630 with expansion:
6631 true
6632 with message:
6633 Current expected value is -0.6
6634
6635 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6636 REQUIRE( gen.get() == Approx(expected) )
6637 with expansion:
6638 -0.50000000000000011
6639 ==
6640 Approx( -0.50000000000000011 )
6641 with message:
6642 Current expected value is -0.5
6643
6644 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6645 REQUIRE( gen.next() )
6646 with expansion:
6647 true
6648 with message:
6649 Current expected value is -0.5
6650
6651 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6652 REQUIRE( gen.get() == Approx(expected) )
6653 with expansion:
6654 -0.40000000000000013
6655 ==
6656 Approx( -0.40000000000000013 )
6657 with message:
6658 Current expected value is -0.4
6659
6660 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6661 REQUIRE( gen.next() )
6662 with expansion:
6663 true
6664 with message:
6665 Current expected value is -0.4
6666
6667 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6668 REQUIRE( gen.get() == Approx(expected) )
6669 with expansion:
6670 -0.30000000000000016
6671 ==
6672 Approx( -0.30000000000000016 )
6673 with message:
6674 Current expected value is -0.3
6675
6676 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6677 REQUIRE( gen.next() )
6678 with expansion:
6679 true
6680 with message:
6681 Current expected value is -0.3
6682
6683 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6684 REQUIRE( gen.get() == Approx(expected) )
6685 with expansion:
6686 -0.20000000000000015
6687 ==
6688 Approx( -0.20000000000000015 )
6689 with message:
6690 Current expected value is -0.2
6691
6692 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6693 REQUIRE( gen.next() )
6694 with expansion:
6695 true
6696 with message:
6697 Current expected value is -0.2
6698
6699 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6700 REQUIRE( gen.get() == Approx(expected) )
6701 with expansion:
6702 -0.10000000000000014
6703 ==
6704 Approx( -0.10000000000000014 )
6705 with message:
6706 Current expected value is -0.1
6707
6708 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6709 REQUIRE( gen.next() )
6710 with expansion:
6711 true
6712 with message:
6713 Current expected value is -0.1
6714
6715 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6716 REQUIRE( gen.get() == Approx(expected) )
6717 with expansion:
6718 -0.00000000000000014
6719 ==
6720 Approx( -0.00000000000000014 )
6721 with message:
6722 Current expected value is -1.38778e-16
6723
6724 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6725 REQUIRE( gen.next() )
6726 with expansion:
6727 true
6728 with message:
6729 Current expected value is -1.38778e-16
6730
6731 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6732 REQUIRE( gen.get() == Approx(expected) )
6733 with expansion:
6734 0.09999999999999987
6735 ==
6736 Approx( 0.09999999999999987 )
6737 with message:
6738 Current expected value is 0.1
6739
6740 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6741 REQUIRE( gen.next() )
6742 with expansion:
6743 true
6744 with message:
6745 Current expected value is 0.1
6746
6747 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6748 REQUIRE( gen.get() == Approx(expected) )
6749 with expansion:
6750 0.19999999999999987
6751 ==
6752 Approx( 0.19999999999999987 )
6753 with message:
6754 Current expected value is 0.2
6755
6756 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6757 REQUIRE( gen.next() )
6758 with expansion:
6759 true
6760 with message:
6761 Current expected value is 0.2
6762
6763 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6764 REQUIRE( gen.get() == Approx(expected) )
6765 with expansion:
6766 0.29999999999999988
6767 ==
6768 Approx( 0.29999999999999988 )
6769 with message:
6770 Current expected value is 0.3
6771
6772 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6773 REQUIRE( gen.next() )
6774 with expansion:
6775 true
6776 with message:
6777 Current expected value is 0.3
6778
6779 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6780 REQUIRE( gen.get() == Approx(expected) )
6781 with expansion:
6782 0.39999999999999991
6783 ==
6784 Approx( 0.39999999999999991 )
6785 with message:
6786 Current expected value is 0.4
6787
6788 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6789 REQUIRE( gen.next() )
6790 with expansion:
6791 true
6792 with message:
6793 Current expected value is 0.4
6794
6795 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6796 REQUIRE( gen.get() == Approx(expected) )
6797 with expansion:
6798 0.49999999999999989
6799 ==
6800 Approx( 0.49999999999999989 )
6801 with message:
6802 Current expected value is 0.5
6803
6804 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6805 REQUIRE( gen.next() )
6806 with expansion:
6807 true
6808 with message:
6809 Current expected value is 0.5
6810
6811 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6812 REQUIRE( gen.get() == Approx(expected) )
6813 with expansion:
6814 0.59999999999999987
6815 ==
6816 Approx( 0.59999999999999987 )
6817 with message:
6818 Current expected value is 0.6
6819
6820 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6821 REQUIRE( gen.next() )
6822 with expansion:
6823 true
6824 with message:
6825 Current expected value is 0.6
6826
6827 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6828 REQUIRE( gen.get() == Approx(expected) )
6829 with expansion:
6830 0.69999999999999984
6831 ==
6832 Approx( 0.69999999999999984 )
6833 with message:
6834 Current expected value is 0.7
6835
6836 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6837 REQUIRE( gen.next() )
6838 with expansion:
6839 true
6840 with message:
6841 Current expected value is 0.7
6842
6843 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6844 REQUIRE( gen.get() == Approx(expected) )
6845 with expansion:
6846 0.79999999999999982
6847 ==
6848 Approx( 0.79999999999999982 )
6849 with message:
6850 Current expected value is 0.8
6851
6852 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6853 REQUIRE( gen.next() )
6854 with expansion:
6855 true
6856 with message:
6857 Current expected value is 0.8
6858
6859 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6860 REQUIRE( gen.get() == Approx(expected) )
6861 with expansion:
6862 0.8999999999999998
6863 ==
6864 Approx( 0.8999999999999998 )
6865 with message:
6866 Current expected value is 0.9
6867
6868 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6869 REQUIRE( gen.next() )
6870 with expansion:
6871 true
6872 with message:
6873 Current expected value is 0.9
6874
6875 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6876 REQUIRE( gen.get() == Approx( rangeEnd ) )
6877 with expansion:
6878 0.99999999999999978 == Approx( 1.0 )
6879
6880 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6881 REQUIRE_FALSE( gen.next() )
6882 with expansion:
6883 !false
6884
6885 -------------------------------------------------------------------------------
6886 Generators internals
6887 Range
6888 Positive manual step
6889 Floating Point
6890 Slightly over end
6891 -------------------------------------------------------------------------------
6892 GeneratorsImpl.tests.cpp:<line number>
6893 ...............................................................................
6894
6895 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6896 REQUIRE( gen.get() == Approx(expected) )
6897 with expansion:
6898 -1.0 == Approx( -1.0 )
6899 with message:
6900 Current expected value is -1
6901
6902 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6903 REQUIRE( gen.next() )
6904 with expansion:
6905 true
6906 with message:
6907 Current expected value is -1
6908
6909 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6910 REQUIRE( gen.get() == Approx(expected) )
6911 with expansion:
6912 -0.69999999999999996
6913 ==
6914 Approx( -0.69999999999999996 )
6915 with message:
6916 Current expected value is -0.7
6917
6918 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6919 REQUIRE( gen.next() )
6920 with expansion:
6921 true
6922 with message:
6923 Current expected value is -0.7
6924
6925 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6926 REQUIRE( gen.get() == Approx(expected) )
6927 with expansion:
6928 -0.39999999999999997
6929 ==
6930 Approx( -0.39999999999999997 )
6931 with message:
6932 Current expected value is -0.4
6933
6934 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6935 REQUIRE( gen.next() )
6936 with expansion:
6937 true
6938 with message:
6939 Current expected value is -0.4
6940
6941 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6942 REQUIRE( gen.get() == Approx(expected) )
6943 with expansion:
6944 -0.09999999999999998
6945 ==
6946 Approx( -0.09999999999999998 )
6947 with message:
6948 Current expected value is -0.1
6949
6950 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6951 REQUIRE( gen.next() )
6952 with expansion:
6953 true
6954 with message:
6955 Current expected value is -0.1
6956
6957 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6958 REQUIRE( gen.get() == Approx(expected) )
6959 with expansion:
6960 0.20000000000000001
6961 ==
6962 Approx( 0.20000000000000001 )
6963 with message:
6964 Current expected value is 0.2
6965
6966 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6967 REQUIRE( gen.next() )
6968 with expansion:
6969 true
6970 with message:
6971 Current expected value is 0.2
6972
6973 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6974 REQUIRE( gen.get() == Approx(expected) )
6975 with expansion:
6976 0.5 == Approx( 0.5 )
6977 with message:
6978 Current expected value is 0.5
6979
6980 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6981 REQUIRE( gen.next() )
6982 with expansion:
6983 true
6984 with message:
6985 Current expected value is 0.5
6986
6987 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6988 REQUIRE_FALSE( gen.next() )
6989 with expansion:
6990 !false
6991
6992 -------------------------------------------------------------------------------
6993 Generators internals
6994 Range
6995 Positive manual step
6996 Floating Point
6997 Slightly under end
6998 -------------------------------------------------------------------------------
6999 GeneratorsImpl.tests.cpp:<line number>
7000 ...............................................................................
7001
7002 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7003 REQUIRE( gen.get() == Approx(expected) )
7004 with expansion:
7005 -1.0 == Approx( -1.0 )
7006 with message:
7007 Current expected value is -1
7008
7009 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7010 REQUIRE( gen.next() )
7011 with expansion:
7012 true
7013 with message:
7014 Current expected value is -1
7015
7016 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7017 REQUIRE( gen.get() == Approx(expected) )
7018 with expansion:
7019 -0.69999999999999996
7020 ==
7021 Approx( -0.69999999999999996 )
7022 with message:
7023 Current expected value is -0.7
7024
7025 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7026 REQUIRE( gen.next() )
7027 with expansion:
7028 true
7029 with message:
7030 Current expected value is -0.7
7031
7032 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7033 REQUIRE( gen.get() == Approx(expected) )
7034 with expansion:
7035 -0.39999999999999997
7036 ==
7037 Approx( -0.39999999999999997 )
7038 with message:
7039 Current expected value is -0.4
7040
7041 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7042 REQUIRE( gen.next() )
7043 with expansion:
7044 true
7045 with message:
7046 Current expected value is -0.4
7047
7048 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7049 REQUIRE( gen.get() == Approx(expected) )
7050 with expansion:
7051 -0.09999999999999998
7052 ==
7053 Approx( -0.09999999999999998 )
7054 with message:
7055 Current expected value is -0.1
7056
7057 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7058 REQUIRE( gen.next() )
7059 with expansion:
7060 true
7061 with message:
7062 Current expected value is -0.1
7063
7064 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7065 REQUIRE( gen.get() == Approx(expected) )
7066 with expansion:
7067 0.20000000000000001
7068 ==
7069 Approx( 0.20000000000000001 )
7070 with message:
7071 Current expected value is 0.2
7072
7073 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7074 REQUIRE( gen.next() )
7075 with expansion:
7076 true
7077 with message:
7078 Current expected value is 0.2
7079
7080 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7081 REQUIRE( gen.get() == Approx(expected) )
7082 with expansion:
7083 0.5 == Approx( 0.5 )
7084 with message:
7085 Current expected value is 0.5
7086
7087 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7088 REQUIRE( gen.next() )
7089 with expansion:
7090 true
7091 with message:
7092 Current expected value is 0.5
7093
7094 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7095 REQUIRE_FALSE( gen.next() )
7096 with expansion:
7097 !false
7098
7099 -------------------------------------------------------------------------------
7100 Generators internals
7101 Range
7102 Negative manual step
7103 Integer
7104 Exact
7105 -------------------------------------------------------------------------------
7106 GeneratorsImpl.tests.cpp:<line number>
7107 ...............................................................................
7108
7109 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7110 REQUIRE( gen.get() == 5 )
7111 with expansion:
7112 5 == 5
7113
7114 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7115 REQUIRE( gen.next() )
7116 with expansion:
7117 true
7118
7119 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7120 REQUIRE( gen.get() == 2 )
7121 with expansion:
7122 2 == 2
7123
7124 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7125 REQUIRE( gen.next() )
7126 with expansion:
7127 true
7128
7129 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7130 REQUIRE( gen.get() == -1 )
7131 with expansion:
7132 -1 == -1
7133
7134 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7135 REQUIRE( gen.next() )
7136 with expansion:
7137 true
7138
7139 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7140 REQUIRE( gen.get() == -4 )
7141 with expansion:
7142 -4 == -4
7143
7144 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7145 REQUIRE_FALSE( gen.next() )
7146 with expansion:
7147 !false
7148
7149 -------------------------------------------------------------------------------
7150 Generators internals
7151 Range
7152 Negative manual step
7153 Integer
7154 Slightly over end
7155 -------------------------------------------------------------------------------
7156 GeneratorsImpl.tests.cpp:<line number>
7157 ...............................................................................
7158
7159 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7160 REQUIRE( gen.get() == 5 )
7161 with expansion:
7162 5 == 5
7163
7164 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7165 REQUIRE( gen.next() )
7166 with expansion:
7167 true
7168
7169 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7170 REQUIRE( gen.get() == 2 )
7171 with expansion:
7172 2 == 2
7173
7174 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7175 REQUIRE( gen.next() )
7176 with expansion:
7177 true
7178
7179 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7180 REQUIRE( gen.get() == -1 )
7181 with expansion:
7182 -1 == -1
7183
7184 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7185 REQUIRE( gen.next() )
7186 with expansion:
7187 true
7188
7189 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7190 REQUIRE( gen.get() == -4 )
7191 with expansion:
7192 -4 == -4
7193
7194 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7195 REQUIRE_FALSE( gen.next() )
7196 with expansion:
7197 !false
7198
7199 -------------------------------------------------------------------------------
7200 Generators internals
7201 Range
7202 Negative manual step
7203 Integer
7204 Slightly under end
7205 -------------------------------------------------------------------------------
7206 GeneratorsImpl.tests.cpp:<line number>
7207 ...............................................................................
7208
7209 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7210 REQUIRE( gen.get() == 5 )
7211 with expansion:
7212 5 == 5
7213
7214 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7215 REQUIRE( gen.next() )
7216 with expansion:
7217 true
7218
7219 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7220 REQUIRE( gen.get() == 2 )
7221 with expansion:
7222 2 == 2
7223
7224 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7225 REQUIRE( gen.next() )
7226 with expansion:
7227 true
7228
7229 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7230 REQUIRE( gen.get() == -1 )
7231 with expansion:
7232 -1 == -1
7233
7234 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7235 REQUIRE( gen.next() )
7236 with expansion:
7237 true
7238
7239 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7240 REQUIRE( gen.get() == -4 )
7241 with expansion:
7242 -4 == -4
7243
7244 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7245 REQUIRE( gen.next() )
7246 with expansion:
7247 true
7248
7249 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7250 REQUIRE( gen.get() == -7 )
7251 with expansion:
7252 -7 == -7
7253
7254 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7255 REQUIRE_FALSE( gen.next() )
7256 with expansion:
7257 !false
7258
7259 -------------------------------------------------------------------------------
7260 Greater-than inequalities with different epsilons
7261 -------------------------------------------------------------------------------
7262 Approx.tests.cpp:<line number>
7263 ...............................................................................
7264
7265 Approx.tests.cpp:<line number>: PASSED:
7266 REQUIRE( d >= Approx( 1.22 ) )
7267 with expansion:
7268 1.22999999999999998
7269 >=
7270 Approx( 1.21999999999999997 )
7271
7272 Approx.tests.cpp:<line number>: PASSED:
7273 REQUIRE( d >= Approx( 1.23 ) )
7274 with expansion:
7275 1.22999999999999998
7276 >=
7277 Approx( 1.22999999999999998 )
7278
7279 Approx.tests.cpp:<line number>: PASSED:
7280 REQUIRE_FALSE( d >= Approx( 1.24 ) )
7281 with expansion:
7282 !(1.22999999999999998
7283 >=
7284 Approx( 1.23999999999999999 ))
7285
7286 Approx.tests.cpp:<line number>: PASSED:
7287 REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) )
7288 with expansion:
7289 1.22999999999999998
7290 >=
7291 Approx( 1.23999999999999999 )
7292
7293 -------------------------------------------------------------------------------
7294 Hashers with different seed produce different hash with same test case
7295 -------------------------------------------------------------------------------
7296 TestCaseInfoHasher.tests.cpp:<line number>
7297 ...............................................................................
7298
7299 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7300 REQUIRE( h1( dummy ) != h2( dummy ) )
7301 with expansion:
7302 3422778688 (0x<hex digits>)
7303 !=
7304 130711275 (0x<hex digits>)
7305
7306 -------------------------------------------------------------------------------
7307 Hashers with same seed produce same hash
7308 -------------------------------------------------------------------------------
7309 TestCaseInfoHasher.tests.cpp:<line number>
7310 ...............................................................................
7311
7312 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7313 REQUIRE( h1( dummy ) == h2( dummy ) )
7314 with expansion:
7315 3422778688 (0x<hex digits>)
7316 ==
7317 3422778688 (0x<hex digits>)
7318
7319 -------------------------------------------------------------------------------
7320 Hashing different test cases produces different result
7321 Different test name
7322 -------------------------------------------------------------------------------
7323 TestCaseInfoHasher.tests.cpp:<line number>
7324 ...............................................................................
7325
7326 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7327 REQUIRE( h( dummy1 ) != h( dummy2 ) )
7328 with expansion:
7329 2903002874 (0x<hex digits>)
7330 !=
7331 2668622104 (0x<hex digits>)
7332
7333 -------------------------------------------------------------------------------
7334 Hashing different test cases produces different result
7335 Different classname
7336 -------------------------------------------------------------------------------
7337 TestCaseInfoHasher.tests.cpp:<line number>
7338 ...............................................................................
7339
7340 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7341 REQUIRE( h( dummy1 ) != h( dummy2 ) )
7342 with expansion:
7343 2673152918 (0x<hex digits>)
7344 !=
7345 3916075712 (0x<hex digits>)
7346
7347 -------------------------------------------------------------------------------
7348 Hashing different test cases produces different result
7349 Different tags
7350 -------------------------------------------------------------------------------
7351 TestCaseInfoHasher.tests.cpp:<line number>
7352 ...............................................................................
7353
7354 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7355 REQUIRE( h( dummy1 ) != h( dummy2 ) )
7356 with expansion:
7357 2074929312 (0x<hex digits>)
7358 !=
7359 3429949824 (0x<hex digits>)
7360
7361 -------------------------------------------------------------------------------
7362 Hashing test case produces same hash across multiple calls
7363 -------------------------------------------------------------------------------
7364 TestCaseInfoHasher.tests.cpp:<line number>
7365 ...............................................................................
7366
7367 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7368 REQUIRE( h( dummy ) == h( dummy ) )
7369 with expansion:
7370 3422778688 (0x<hex digits>)
7371 ==
7372 3422778688 (0x<hex digits>)
7373
7374 -------------------------------------------------------------------------------
7375 INFO and UNSCOPED_INFO can stream multiple arguments
7376 -------------------------------------------------------------------------------
7377 Message.tests.cpp:<line number>
7378 ...............................................................................
7379
7380 Message.tests.cpp:<line number>: FAILED:
7381 explicitly with messages:
7382 This info has multiple parts.
7383 This unscoped info has multiple parts.
7384 Show infos!
7385
7386 -------------------------------------------------------------------------------
7387 INFO and WARN do not abort tests
7388 -------------------------------------------------------------------------------
7389 Message.tests.cpp:<line number>
7390 ...............................................................................
7391
7392 Message.tests.cpp:<line number>: warning:
7393 this is a message
7394 this is a warning
7395
7396
7397 No assertions in test case 'INFO and WARN do not abort tests'
7398
7399 -------------------------------------------------------------------------------
7400 INFO gets logged on failure
7401 -------------------------------------------------------------------------------
7402 Message.tests.cpp:<line number>
7403 ...............................................................................
7404
7405 Message.tests.cpp:<line number>: FAILED:
7406 REQUIRE( a == 1 )
7407 with expansion:
7408 2 == 1
7409 with messages:
7410 this message should be logged
7411 so should this
7412
7413 -------------------------------------------------------------------------------
7414 INFO gets logged on failure, even if captured before successful assertions
7415 -------------------------------------------------------------------------------
7416 Message.tests.cpp:<line number>
7417 ...............................................................................
7418
7419 Message.tests.cpp:<line number>: PASSED:
7420 CHECK( a == 2 )
7421 with expansion:
7422 2 == 2
7423 with message:
7424 this message may be logged later
7425
7426 Message.tests.cpp:<line number>: FAILED:
7427 CHECK( a == 1 )
7428 with expansion:
7429 2 == 1
7430 with messages:
7431 this message may be logged later
7432 this message should be logged
7433
7434 Message.tests.cpp:<line number>: FAILED:
7435 CHECK( a == 0 )
7436 with expansion:
7437 2 == 0
7438 with messages:
7439 this message may be logged later
7440 this message should be logged
7441 and this, but later
7442
7443 Message.tests.cpp:<line number>: PASSED:
7444 CHECK( a == 2 )
7445 with expansion:
7446 2 == 2
7447 with messages:
7448 this message may be logged later
7449 this message should be logged
7450 and this, but later
7451 but not this
7452
7453 -------------------------------------------------------------------------------
7454 INFO is reset for each loop
7455 -------------------------------------------------------------------------------
7456 Message.tests.cpp:<line number>
7457 ...............................................................................
7458
7459 Message.tests.cpp:<line number>: PASSED:
7460 REQUIRE( i < 10 )
7461 with expansion:
7462 0 < 10
7463 with messages:
7464 current counter 0
7465 i := 0
7466
7467 Message.tests.cpp:<line number>: PASSED:
7468 REQUIRE( i < 10 )
7469 with expansion:
7470 1 < 10
7471 with messages:
7472 current counter 1
7473 i := 1
7474
7475 Message.tests.cpp:<line number>: PASSED:
7476 REQUIRE( i < 10 )
7477 with expansion:
7478 2 < 10
7479 with messages:
7480 current counter 2
7481 i := 2
7482
7483 Message.tests.cpp:<line number>: PASSED:
7484 REQUIRE( i < 10 )
7485 with expansion:
7486 3 < 10
7487 with messages:
7488 current counter 3
7489 i := 3
7490
7491 Message.tests.cpp:<line number>: PASSED:
7492 REQUIRE( i < 10 )
7493 with expansion:
7494 4 < 10
7495 with messages:
7496 current counter 4
7497 i := 4
7498
7499 Message.tests.cpp:<line number>: PASSED:
7500 REQUIRE( i < 10 )
7501 with expansion:
7502 5 < 10
7503 with messages:
7504 current counter 5
7505 i := 5
7506
7507 Message.tests.cpp:<line number>: PASSED:
7508 REQUIRE( i < 10 )
7509 with expansion:
7510 6 < 10
7511 with messages:
7512 current counter 6
7513 i := 6
7514
7515 Message.tests.cpp:<line number>: PASSED:
7516 REQUIRE( i < 10 )
7517 with expansion:
7518 7 < 10
7519 with messages:
7520 current counter 7
7521 i := 7
7522
7523 Message.tests.cpp:<line number>: PASSED:
7524 REQUIRE( i < 10 )
7525 with expansion:
7526 8 < 10
7527 with messages:
7528 current counter 8
7529 i := 8
7530
7531 Message.tests.cpp:<line number>: PASSED:
7532 REQUIRE( i < 10 )
7533 with expansion:
7534 9 < 10
7535 with messages:
7536 current counter 9
7537 i := 9
7538
7539 Message.tests.cpp:<line number>: FAILED:
7540 REQUIRE( i < 10 )
7541 with expansion:
7542 10 < 10
7543 with messages:
7544 current counter 10
7545 i := 10
7546
7547 -------------------------------------------------------------------------------
7548 Incomplete AssertionHandler
7549 -------------------------------------------------------------------------------
7550 AssertionHandler.tests.cpp:<line number>
7551 ...............................................................................
7552
7553 AssertionHandler.tests.cpp:<line number>: FAILED:
7554 REQUIRE( Dummy )
7555 due to unexpected exception with message:
7556 Exception translation was disabled by CATCH_CONFIG_FAST_COMPILE
7557
7558 -------------------------------------------------------------------------------
7559 Inequality checks that should fail
7560 -------------------------------------------------------------------------------
7561 Condition.tests.cpp:<line number>
7562 ...............................................................................
7563
7564 Condition.tests.cpp:<line number>: FAILED:
7565 CHECK( data.int_seven != 7 )
7566 with expansion:
7567 7 != 7
7568
7569 Condition.tests.cpp:<line number>: FAILED:
7570 CHECK( data.float_nine_point_one != Approx( 9.1f ) )
7571 with expansion:
7572 9.100000381f
7573 !=
7574 Approx( 9.10000038146972656 )
7575
7576 Condition.tests.cpp:<line number>: FAILED:
7577 CHECK( data.double_pi != Approx( 3.1415926535 ) )
7578 with expansion:
7579 3.14159265350000005
7580 !=
7581 Approx( 3.14159265350000005 )
7582
7583 Condition.tests.cpp:<line number>: FAILED:
7584 CHECK( data.str_hello != "hello" )
7585 with expansion:
7586 "hello" != "hello"
7587
7588 Condition.tests.cpp:<line number>: FAILED:
7589 CHECK( data.str_hello.size() != 5 )
7590 with expansion:
7591 5 != 5
7592
7593 -------------------------------------------------------------------------------
7594 Inequality checks that should succeed
7595 -------------------------------------------------------------------------------
7596 Condition.tests.cpp:<line number>
7597 ...............................................................................
7598
7599 Condition.tests.cpp:<line number>: PASSED:
7600 REQUIRE( data.int_seven != 6 )
7601 with expansion:
7602 7 != 6
7603
7604 Condition.tests.cpp:<line number>: PASSED:
7605 REQUIRE( data.int_seven != 8 )
7606 with expansion:
7607 7 != 8
7608
7609 Condition.tests.cpp:<line number>: PASSED:
7610 REQUIRE( data.float_nine_point_one != Approx( 9.11f ) )
7611 with expansion:
7612 9.100000381f
7613 !=
7614 Approx( 9.10999965667724609 )
7615
7616 Condition.tests.cpp:<line number>: PASSED:
7617 REQUIRE( data.float_nine_point_one != Approx( 9.0f ) )
7618 with expansion:
7619 9.100000381f != Approx( 9.0 )
7620
7621 Condition.tests.cpp:<line number>: PASSED:
7622 REQUIRE( data.float_nine_point_one != Approx( 1 ) )
7623 with expansion:
7624 9.100000381f != Approx( 1.0 )
7625
7626 Condition.tests.cpp:<line number>: PASSED:
7627 REQUIRE( data.float_nine_point_one != Approx( 0 ) )
7628 with expansion:
7629 9.100000381f != Approx( 0.0 )
7630
7631 Condition.tests.cpp:<line number>: PASSED:
7632 REQUIRE( data.double_pi != Approx( 3.1415 ) )
7633 with expansion:
7634 3.14159265350000005
7635 !=
7636 Approx( 3.14150000000000018 )
7637
7638 Condition.tests.cpp:<line number>: PASSED:
7639 REQUIRE( data.str_hello != "goodbye" )
7640 with expansion:
7641 "hello" != "goodbye"
7642
7643 Condition.tests.cpp:<line number>: PASSED:
7644 REQUIRE( data.str_hello != "hell" )
7645 with expansion:
7646 "hello" != "hell"
7647
7648 Condition.tests.cpp:<line number>: PASSED:
7649 REQUIRE( data.str_hello != "hello1" )
7650 with expansion:
7651 "hello" != "hello1"
7652
7653 Condition.tests.cpp:<line number>: PASSED:
7654 REQUIRE( data.str_hello.size() != 6 )
7655 with expansion:
7656 5 != 6
7657
7658 -------------------------------------------------------------------------------
7659 JsonWriter
7660 Newly constructed JsonWriter does nothing
7661 -------------------------------------------------------------------------------
7662 Json.tests.cpp:<line number>
7663 ...............................................................................
7664
7665 Json.tests.cpp:<line number>: PASSED:
7666 REQUIRE( stream.str() == "" )
7667 with expansion:
7668 "" == ""
7669
7670 -------------------------------------------------------------------------------
7671 JsonWriter
7672 Calling writeObject will create an empty pair of braces
7673 -------------------------------------------------------------------------------
7674 Json.tests.cpp:<line number>
7675 ...............................................................................
7676
7677 Json.tests.cpp:<line number>: PASSED:
7678 REQUIRE( stream.str() == "{\n}" )
7679 with expansion:
7680 "{
7681 }"
7682 ==
7683 "{
7684 }"
7685
7686 -------------------------------------------------------------------------------
7687 JsonWriter
7688 Calling writeObject with key will create an object to write the value
7689 -------------------------------------------------------------------------------
7690 Json.tests.cpp:<line number>
7691 ...............................................................................
7692
7693 Json.tests.cpp:<line number>: PASSED:
7694 REQUIRE_THAT( 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}" ) )
7695 with expansion:
7696 "{
7697 "int": 1,
7698 "double": 1.5,
7699 "true": true,
7700 "false": false,
7701 "string": "this is a string",
7702 "array": [
7703 1,
7704 2
7705 ]
7706 }" ( contains: ""int": 1," and contains: ""double": 1.5," and contains:
7707 ""true": true," and contains: ""false": false," and contains: ""string":
7708 "this is a string"," and contains: ""array": [
7709 1,
7710 2
7711 ]
7712 }" )
7713
7714 -------------------------------------------------------------------------------
7715 JsonWriter
7716 nesting objects
7717 -------------------------------------------------------------------------------
7718 Json.tests.cpp:<line number>
7719 ...............................................................................
7720
7721 Json.tests.cpp:<line number>: PASSED:
7722 REQUIRE_THAT( stream.str(), ContainsSubstring( "\"empty_object\": {\n }," ) && ContainsSubstring( "\"fully_object\": {\n \"key\": 1\n }" ) )
7723 with expansion:
7724 "{
7725 "empty_object": {
7726 },
7727 "fully_object": {
7728 "key": 1
7729 }
7730 }" ( contains: ""empty_object": {
7731 }," and contains: ""fully_object": {
7732 "key": 1
7733 }" )
7734
7735 -------------------------------------------------------------------------------
7736 JsonWriter
7737 Calling writeArray will create an empty pair of braces
7738 -------------------------------------------------------------------------------
7739 Json.tests.cpp:<line number>
7740 ...............................................................................
7741
7742 Json.tests.cpp:<line number>: PASSED:
7743 REQUIRE( stream.str() == "[\n]" )
7744 with expansion:
7745 "[
7746 ]"
7747 ==
7748 "[
7749 ]"
7750
7751 -------------------------------------------------------------------------------
7752 JsonWriter
7753 Calling writeArray creates array to write the values to
7754 -------------------------------------------------------------------------------
7755 Json.tests.cpp:<line number>
7756 ...............................................................................
7757
7758 Json.tests.cpp:<line number>: PASSED:
7759 REQUIRE( 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]" )
7760 with expansion:
7761 "[
7762 1,
7763 1.5,
7764 true,
7765 false,
7766 "this is a string",
7767 {
7768 "object": 42
7769 },
7770 [
7771 "array",
7772 42.5
7773 ]
7774 ]"
7775 ==
7776 "[
7777 1,
7778 1.5,
7779 true,
7780 false,
7781 "this is a string",
7782 {
7783 "object": 42
7784 },
7785 [
7786 "array",
7787 42.5
7788 ]
7789 ]"
7790
7791 -------------------------------------------------------------------------------
7792 JsonWriter
7793 Moved from JsonObjectWriter shall not insert superfluous brace
7794 -------------------------------------------------------------------------------
7795 Json.tests.cpp:<line number>
7796 ...............................................................................
7797
7798 Json.tests.cpp:<line number>: PASSED:
7799 REQUIRE( stream.str() == "{\n}" )
7800 with expansion:
7801 "{
7802 }"
7803 ==
7804 "{
7805 }"
7806
7807 -------------------------------------------------------------------------------
7808 JsonWriter
7809 Moved from JsonArrayWriter shall not insert superfluous bracket
7810 -------------------------------------------------------------------------------
7811 Json.tests.cpp:<line number>
7812 ...............................................................................
7813
7814 Json.tests.cpp:<line number>: PASSED:
7815 REQUIRE( stream.str() == "[\n]" )
7816 with expansion:
7817 "[
7818 ]"
7819 ==
7820 "[
7821 ]"
7822
7823 -------------------------------------------------------------------------------
7824 JsonWriter
7825 Custom class shall be quoted
7826 -------------------------------------------------------------------------------
7827 Json.tests.cpp:<line number>
7828 ...............................................................................
7829
7830 Json.tests.cpp:<line number>: PASSED:
7831 REQUIRE( stream.str() == "\"custom\"" )
7832 with expansion:
7833 ""custom"" == ""custom""
7834
7835 -------------------------------------------------------------------------------
7836 JsonWriter escapes characters in strings properly
7837 Quote in a string is escaped
7838 -------------------------------------------------------------------------------
7839 Json.tests.cpp:<line number>
7840 ...............................................................................
7841
7842 Json.tests.cpp:<line number>: PASSED:
7843 REQUIRE( sstream.str() == "\"\\\"\"" )
7844 with expansion:
7845 ""\""" == ""\"""
7846
7847 -------------------------------------------------------------------------------
7848 JsonWriter escapes characters in strings properly
7849 Backslash in a string is escaped
7850 -------------------------------------------------------------------------------
7851 Json.tests.cpp:<line number>
7852 ...............................................................................
7853
7854 Json.tests.cpp:<line number>: PASSED:
7855 REQUIRE( sstream.str() == "\"\\\\\"" )
7856 with expansion:
7857 ""\\"" == ""\\""
7858
7859 -------------------------------------------------------------------------------
7860 JsonWriter escapes characters in strings properly
7861 Forward slash in a string is **not** escaped
7862 -------------------------------------------------------------------------------
7863 Json.tests.cpp:<line number>
7864 ...............................................................................
7865
7866 Json.tests.cpp:<line number>: PASSED:
7867 REQUIRE( sstream.str() == "\"/\"" )
7868 with expansion:
7869 ""/"" == ""/""
7870
7871 -------------------------------------------------------------------------------
7872 JsonWriter escapes characters in strings properly
7873 Backspace in a string is escaped
7874 -------------------------------------------------------------------------------
7875 Json.tests.cpp:<line number>
7876 ...............................................................................
7877
7878 Json.tests.cpp:<line number>: PASSED:
7879 REQUIRE( sstream.str() == "\"\\b\"" )
7880 with expansion:
7881 ""\b"" == ""\b""
7882
7883 -------------------------------------------------------------------------------
7884 JsonWriter escapes characters in strings properly
7885 Formfeed in a string is escaped
7886 -------------------------------------------------------------------------------
7887 Json.tests.cpp:<line number>
7888 ...............................................................................
7889
7890 Json.tests.cpp:<line number>: PASSED:
7891 REQUIRE( sstream.str() == "\"\\f\"" )
7892 with expansion:
7893 ""\f"" == ""\f""
7894
7895 -------------------------------------------------------------------------------
7896 JsonWriter escapes characters in strings properly
7897 linefeed in a string is escaped
7898 -------------------------------------------------------------------------------
7899 Json.tests.cpp:<line number>
7900 ...............................................................................
7901
7902 Json.tests.cpp:<line number>: PASSED:
7903 REQUIRE( sstream.str() == "\"\\n\"" )
7904 with expansion:
7905 ""\n"" == ""\n""
7906
7907 -------------------------------------------------------------------------------
7908 JsonWriter escapes characters in strings properly
7909 carriage return in a string is escaped
7910 -------------------------------------------------------------------------------
7911 Json.tests.cpp:<line number>
7912 ...............................................................................
7913
7914 Json.tests.cpp:<line number>: PASSED:
7915 REQUIRE( sstream.str() == "\"\\r\"" )
7916 with expansion:
7917 ""\r"" == ""\r""
7918
7919 -------------------------------------------------------------------------------
7920 JsonWriter escapes characters in strings properly
7921 tab in a string is escaped
7922 -------------------------------------------------------------------------------
7923 Json.tests.cpp:<line number>
7924 ...............................................................................
7925
7926 Json.tests.cpp:<line number>: PASSED:
7927 REQUIRE( sstream.str() == "\"\\t\"" )
7928 with expansion:
7929 ""\t"" == ""\t""
7930
7931 -------------------------------------------------------------------------------
7932 JsonWriter escapes characters in strings properly
7933 combination of characters is escaped
7934 -------------------------------------------------------------------------------
7935 Json.tests.cpp:<line number>
7936 ...............................................................................
7937
7938 Json.tests.cpp:<line number>: PASSED:
7939 REQUIRE( sstream.str() == "\"\\\\/\\t\\r\\n\"" )
7940 with expansion:
7941 ""\\/\t\r\n"" == ""\\/\t\r\n""
7942
7943 -------------------------------------------------------------------------------
7944 Lambdas in assertions
7945 -------------------------------------------------------------------------------
7946 Compilation.tests.cpp:<line number>
7947 ...............................................................................
7948
7949 Compilation.tests.cpp:<line number>: PASSED:
7950 REQUIRE( []() { return true; }() )
7951 with expansion:
7952 true
7953
7954 -------------------------------------------------------------------------------
7955 Less-than inequalities with different epsilons
7956 -------------------------------------------------------------------------------
7957 Approx.tests.cpp:<line number>
7958 ...............................................................................
7959
7960 Approx.tests.cpp:<line number>: PASSED:
7961 REQUIRE( d <= Approx( 1.24 ) )
7962 with expansion:
7963 1.22999999999999998
7964 <=
7965 Approx( 1.23999999999999999 )
7966
7967 Approx.tests.cpp:<line number>: PASSED:
7968 REQUIRE( d <= Approx( 1.23 ) )
7969 with expansion:
7970 1.22999999999999998
7971 <=
7972 Approx( 1.22999999999999998 )
7973
7974 Approx.tests.cpp:<line number>: PASSED:
7975 REQUIRE_FALSE( d <= Approx( 1.22 ) )
7976 with expansion:
7977 !(1.22999999999999998
7978 <=
7979 Approx( 1.21999999999999997 ))
7980
7981 Approx.tests.cpp:<line number>: PASSED:
7982 REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) )
7983 with expansion:
7984 1.22999999999999998
7985 <=
7986 Approx( 1.21999999999999997 )
7987
7988 -------------------------------------------------------------------------------
7989 ManuallyRegistered
7990 -------------------------------------------------------------------------------
7991 Misc.tests.cpp:<line number>
7992 ...............................................................................
7993
7994 Misc.tests.cpp:<line number>: PASSED:
7995 with message:
7996 was called
7997
7998 -------------------------------------------------------------------------------
7999 Matchers can be (AllOf) composed with the && operator
8000 -------------------------------------------------------------------------------
8001 Matchers.tests.cpp:<line number>
8002 ...............................................................................
8003
8004 Matchers.tests.cpp:<line number>: PASSED:
8005 CHECK_THAT( testStringForMatching(), ContainsSubstring( "string" ) && ContainsSubstring( "abc" ) && ContainsSubstring( "substring" ) && ContainsSubstring( "contains" ) )
8006 with expansion:
8007 "this string contains 'abc' as a substring" ( contains: "string" and
8008 contains: "abc" and contains: "substring" and contains: "contains" )
8009
8010 -------------------------------------------------------------------------------
8011 Matchers can be (AnyOf) composed with the || operator
8012 -------------------------------------------------------------------------------
8013 Matchers.tests.cpp:<line number>
8014 ...............................................................................
8015
8016 Matchers.tests.cpp:<line number>: PASSED:
8017 CHECK_THAT( testStringForMatching(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) )
8018 with expansion:
8019 "this string contains 'abc' as a substring" ( contains: "string" or contains:
8020 "different" or contains: "random" )
8021
8022 Matchers.tests.cpp:<line number>: PASSED:
8023 CHECK_THAT( testStringForMatching2(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) )
8024 with expansion:
8025 "some completely different text that contains one common word" ( contains:
8026 "string" or contains: "different" or contains: "random" )
8027
8028 -------------------------------------------------------------------------------
8029 Matchers can be composed with both && and ||
8030 -------------------------------------------------------------------------------
8031 Matchers.tests.cpp:<line number>
8032 ...............................................................................
8033
8034 Matchers.tests.cpp:<line number>: PASSED:
8035 CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "substring" ) )
8036 with expansion:
8037 "this string contains 'abc' as a substring" ( ( contains: "string" or
8038 contains: "different" ) and contains: "substring" )
8039
8040 -------------------------------------------------------------------------------
8041 Matchers can be composed with both && and || - failing
8042 -------------------------------------------------------------------------------
8043 Matchers.tests.cpp:<line number>
8044 ...............................................................................
8045
8046 Matchers.tests.cpp:<line number>: FAILED:
8047 CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "random" ) )
8048 with expansion:
8049 "this string contains 'abc' as a substring" ( ( contains: "string" or
8050 contains: "different" ) and contains: "random" )
8051
8052 -------------------------------------------------------------------------------
8053 Matchers can be negated (Not) with the ! operator
8054 -------------------------------------------------------------------------------
8055 Matchers.tests.cpp:<line number>
8056 ...............................................................................
8057
8058 Matchers.tests.cpp:<line number>: PASSED:
8059 CHECK_THAT( testStringForMatching(), !ContainsSubstring( "different" ) )
8060 with expansion:
8061 "this string contains 'abc' as a substring" not contains: "different"
8062
8063 -------------------------------------------------------------------------------
8064 Matchers can be negated (Not) with the ! operator - failing
8065 -------------------------------------------------------------------------------
8066 Matchers.tests.cpp:<line number>
8067 ...............................................................................
8068
8069 Matchers.tests.cpp:<line number>: FAILED:
8070 CHECK_THAT( testStringForMatching(), !ContainsSubstring( "substring" ) )
8071 with expansion:
8072 "this string contains 'abc' as a substring" not contains: "substring"
8073
8074 -------------------------------------------------------------------------------
8075 Mayfail test case with nested sections
8076 A
8077 1
8078 -------------------------------------------------------------------------------
8079 Condition.tests.cpp:<line number>
8080 ...............................................................................
8081
8082 Condition.tests.cpp:<line number>: FAILED:
8083
8084 -------------------------------------------------------------------------------
8085 Mayfail test case with nested sections
8086 A
8087 2
8088 -------------------------------------------------------------------------------
8089 Condition.tests.cpp:<line number>
8090 ...............................................................................
8091
8092 Condition.tests.cpp:<line number>: FAILED:
8093
8094 -------------------------------------------------------------------------------
8095 Mayfail test case with nested sections
8096 B
8097 1
8098 -------------------------------------------------------------------------------
8099 Condition.tests.cpp:<line number>
8100 ...............................................................................
8101
8102 Condition.tests.cpp:<line number>: FAILED:
8103
8104 -------------------------------------------------------------------------------
8105 Mayfail test case with nested sections
8106 B
8107 2
8108 -------------------------------------------------------------------------------
8109 Condition.tests.cpp:<line number>
8110 ...............................................................................
8111
8112 Condition.tests.cpp:<line number>: FAILED:
8113
8114 -------------------------------------------------------------------------------
8115 Mismatching exception messages failing the test
8116 -------------------------------------------------------------------------------
8117 Exception.tests.cpp:<line number>
8118 ...............................................................................
8119
8120 Exception.tests.cpp:<line number>: PASSED:
8121 REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
8122 with expansion:
8123 "expected exception" equals: "expected exception"
8124
8125 Exception.tests.cpp:<line number>: FAILED:
8126 REQUIRE_THROWS_WITH( thisThrows(), "should fail" )
8127 with expansion:
8128 "expected exception" equals: "should fail"
8129
8130 -------------------------------------------------------------------------------
8131 Multireporter calls reporters and listeners in correct order
8132 -------------------------------------------------------------------------------
8133 Reporters.tests.cpp:<line number>
8134 ...............................................................................
8135
8136 Reporters.tests.cpp:<line number>: PASSED:
8137 REQUIRE( records == expected )
8138 with expansion:
8139 { "Hello", "world", "Goodbye", "world" }
8140 ==
8141 { "Hello", "world", "Goodbye", "world" }
8142
8143 -------------------------------------------------------------------------------
8144 Multireporter updates ReporterPreferences properly
8145 -------------------------------------------------------------------------------
8146 Reporters.tests.cpp:<line number>
8147 ...............................................................................
8148
8149 Reporters.tests.cpp:<line number>: PASSED:
8150 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == false )
8151 with expansion:
8152 false == false
8153
8154 Reporters.tests.cpp:<line number>: PASSED:
8155 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
8156 with expansion:
8157 false == false
8158
8159 -------------------------------------------------------------------------------
8160 Multireporter updates ReporterPreferences properly
8161 Adding listeners
8162 -------------------------------------------------------------------------------
8163 Reporters.tests.cpp:<line number>
8164 ...............................................................................
8165
8166 Reporters.tests.cpp:<line number>: PASSED:
8167 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8168 with expansion:
8169 true == true
8170
8171 Reporters.tests.cpp:<line number>: PASSED:
8172 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
8173 with expansion:
8174 false == false
8175
8176 Reporters.tests.cpp:<line number>: PASSED:
8177 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8178 with expansion:
8179 true == true
8180
8181 Reporters.tests.cpp:<line number>: PASSED:
8182 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
8183 with expansion:
8184 true == true
8185
8186 Reporters.tests.cpp:<line number>: PASSED:
8187 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8188 with expansion:
8189 true == true
8190
8191 Reporters.tests.cpp:<line number>: PASSED:
8192 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
8193 with expansion:
8194 true == true
8195
8196 -------------------------------------------------------------------------------
8197 Multireporter updates ReporterPreferences properly
8198 -------------------------------------------------------------------------------
8199 Reporters.tests.cpp:<line number>
8200 ...............................................................................
8201
8202 Reporters.tests.cpp:<line number>: PASSED:
8203 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == false )
8204 with expansion:
8205 false == false
8206
8207 Reporters.tests.cpp:<line number>: PASSED:
8208 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
8209 with expansion:
8210 false == false
8211
8212 -------------------------------------------------------------------------------
8213 Multireporter updates ReporterPreferences properly
8214 Adding reporters
8215 -------------------------------------------------------------------------------
8216 Reporters.tests.cpp:<line number>
8217 ...............................................................................
8218
8219 Reporters.tests.cpp:<line number>: PASSED:
8220 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8221 with expansion:
8222 true == true
8223
8224 Reporters.tests.cpp:<line number>: PASSED:
8225 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
8226 with expansion:
8227 false == false
8228
8229 Reporters.tests.cpp:<line number>: PASSED:
8230 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8231 with expansion:
8232 true == true
8233
8234 Reporters.tests.cpp:<line number>: PASSED:
8235 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
8236 with expansion:
8237 true == true
8238
8239 Reporters.tests.cpp:<line number>: PASSED:
8240 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8241 with expansion:
8242 true == true
8243
8244 Reporters.tests.cpp:<line number>: PASSED:
8245 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
8246 with expansion:
8247 true == true
8248
8249 -------------------------------------------------------------------------------
8250 Nested generators and captured variables
8251 -------------------------------------------------------------------------------
8252 Generators.tests.cpp:<line number>
8253 ...............................................................................
8254
8255 Generators.tests.cpp:<line number>: PASSED:
8256 REQUIRE( values > -6 )
8257 with expansion:
8258 3 > -6
8259
8260 -------------------------------------------------------------------------------
8261 Nested generators and captured variables
8262 -------------------------------------------------------------------------------
8263 Generators.tests.cpp:<line number>
8264 ...............................................................................
8265
8266 Generators.tests.cpp:<line number>: PASSED:
8267 REQUIRE( values > -6 )
8268 with expansion:
8269 4 > -6
8270
8271 -------------------------------------------------------------------------------
8272 Nested generators and captured variables
8273 -------------------------------------------------------------------------------
8274 Generators.tests.cpp:<line number>
8275 ...............................................................................
8276
8277 Generators.tests.cpp:<line number>: PASSED:
8278 REQUIRE( values > -6 )
8279 with expansion:
8280 5 > -6
8281
8282 -------------------------------------------------------------------------------
8283 Nested generators and captured variables
8284 -------------------------------------------------------------------------------
8285 Generators.tests.cpp:<line number>
8286 ...............................................................................
8287
8288 Generators.tests.cpp:<line number>: PASSED:
8289 REQUIRE( values > -6 )
8290 with expansion:
8291 6 > -6
8292
8293 -------------------------------------------------------------------------------
8294 Nested generators and captured variables
8295 -------------------------------------------------------------------------------
8296 Generators.tests.cpp:<line number>
8297 ...............................................................................
8298
8299 Generators.tests.cpp:<line number>: PASSED:
8300 REQUIRE( values > -6 )
8301 with expansion:
8302 -5 > -6
8303
8304 -------------------------------------------------------------------------------
8305 Nested generators and captured variables
8306 -------------------------------------------------------------------------------
8307 Generators.tests.cpp:<line number>
8308 ...............................................................................
8309
8310 Generators.tests.cpp:<line number>: PASSED:
8311 REQUIRE( values > -6 )
8312 with expansion:
8313 -4 > -6
8314
8315 -------------------------------------------------------------------------------
8316 Nested generators and captured variables
8317 -------------------------------------------------------------------------------
8318 Generators.tests.cpp:<line number>
8319 ...............................................................................
8320
8321 Generators.tests.cpp:<line number>: PASSED:
8322 REQUIRE( values > -6 )
8323 with expansion:
8324 90 > -6
8325
8326 -------------------------------------------------------------------------------
8327 Nested generators and captured variables
8328 -------------------------------------------------------------------------------
8329 Generators.tests.cpp:<line number>
8330 ...............................................................................
8331
8332 Generators.tests.cpp:<line number>: PASSED:
8333 REQUIRE( values > -6 )
8334 with expansion:
8335 91 > -6
8336
8337 -------------------------------------------------------------------------------
8338 Nested generators and captured variables
8339 -------------------------------------------------------------------------------
8340 Generators.tests.cpp:<line number>
8341 ...............................................................................
8342
8343 Generators.tests.cpp:<line number>: PASSED:
8344 REQUIRE( values > -6 )
8345 with expansion:
8346 92 > -6
8347
8348 -------------------------------------------------------------------------------
8349 Nested generators and captured variables
8350 -------------------------------------------------------------------------------
8351 Generators.tests.cpp:<line number>
8352 ...............................................................................
8353
8354 Generators.tests.cpp:<line number>: PASSED:
8355 REQUIRE( values > -6 )
8356 with expansion:
8357 93 > -6
8358
8359 -------------------------------------------------------------------------------
8360 Nested generators and captured variables
8361 -------------------------------------------------------------------------------
8362 Generators.tests.cpp:<line number>
8363 ...............................................................................
8364
8365 Generators.tests.cpp:<line number>: PASSED:
8366 REQUIRE( values > -6 )
8367 with expansion:
8368 94 > -6
8369
8370 -------------------------------------------------------------------------------
8371 Nested generators and captured variables
8372 -------------------------------------------------------------------------------
8373 Generators.tests.cpp:<line number>
8374 ...............................................................................
8375
8376 Generators.tests.cpp:<line number>: PASSED:
8377 REQUIRE( values > -6 )
8378 with expansion:
8379 95 > -6
8380
8381 -------------------------------------------------------------------------------
8382 Nested generators and captured variables
8383 -------------------------------------------------------------------------------
8384 Generators.tests.cpp:<line number>
8385 ...............................................................................
8386
8387 Generators.tests.cpp:<line number>: PASSED:
8388 REQUIRE( values > -6 )
8389 with expansion:
8390 96 > -6
8391
8392 -------------------------------------------------------------------------------
8393 Nested generators and captured variables
8394 -------------------------------------------------------------------------------
8395 Generators.tests.cpp:<line number>
8396 ...............................................................................
8397
8398 Generators.tests.cpp:<line number>: PASSED:
8399 REQUIRE( values > -6 )
8400 with expansion:
8401 97 > -6
8402
8403 -------------------------------------------------------------------------------
8404 Nested generators and captured variables
8405 -------------------------------------------------------------------------------
8406 Generators.tests.cpp:<line number>
8407 ...............................................................................
8408
8409 Generators.tests.cpp:<line number>: PASSED:
8410 REQUIRE( values > -6 )
8411 with expansion:
8412 98 > -6
8413
8414 -------------------------------------------------------------------------------
8415 Nested generators and captured variables
8416 -------------------------------------------------------------------------------
8417 Generators.tests.cpp:<line number>
8418 ...............................................................................
8419
8420 Generators.tests.cpp:<line number>: PASSED:
8421 REQUIRE( values > -6 )
8422 with expansion:
8423 99 > -6
8424
8425 -------------------------------------------------------------------------------
8426 Nice descriptive name
8427 -------------------------------------------------------------------------------
8428 Misc.tests.cpp:<line number>
8429 ...............................................................................
8430
8431 Misc.tests.cpp:<line number>: warning:
8432 This one ran
8433
8434
8435 No assertions in test case 'Nice descriptive name'
8436
8437 -------------------------------------------------------------------------------
8438 Non-std exceptions can be translated
8439 -------------------------------------------------------------------------------
8440 Exception.tests.cpp:<line number>
8441 ...............................................................................
8442
8443 Exception.tests.cpp:<line number>: FAILED:
8444 due to unexpected exception with message:
8445 custom exception
8446
8447 -------------------------------------------------------------------------------
8448 Objects that evaluated in boolean contexts can be checked
8449 -------------------------------------------------------------------------------
8450 Tricky.tests.cpp:<line number>
8451 ...............................................................................
8452
8453 Tricky.tests.cpp:<line number>: PASSED:
8454 CHECK( True )
8455 with expansion:
8456 {?}
8457
8458 Tricky.tests.cpp:<line number>: PASSED:
8459 CHECK( !False )
8460 with expansion:
8461 true
8462
8463 Tricky.tests.cpp:<line number>: PASSED:
8464 CHECK_FALSE( False )
8465 with expansion:
8466 !{?}
8467
8468 -------------------------------------------------------------------------------
8469 Optionally static assertions
8470 -------------------------------------------------------------------------------
8471 Compilation.tests.cpp:<line number>
8472 ...............................................................................
8473
8474 Compilation.tests.cpp:<line number>: PASSED:
8475 with message:
8476 std::is_void<void>::value
8477
8478 Compilation.tests.cpp:<line number>: PASSED:
8479 with message:
8480 !(std::is_void<int>::value)
8481
8482 Compilation.tests.cpp:<line number>: PASSED:
8483 with message:
8484 std::is_void<void>::value
8485
8486 Compilation.tests.cpp:<line number>: PASSED:
8487 with message:
8488 !(std::is_void<int>::value)
8489
8490 -------------------------------------------------------------------------------
8491 Ordering comparison checks that should fail
8492 -------------------------------------------------------------------------------
8493 Condition.tests.cpp:<line number>
8494 ...............................................................................
8495
8496 Condition.tests.cpp:<line number>: FAILED:
8497 CHECK( data.int_seven > 7 )
8498 with expansion:
8499 7 > 7
8500
8501 Condition.tests.cpp:<line number>: FAILED:
8502 CHECK( data.int_seven < 7 )
8503 with expansion:
8504 7 < 7
8505
8506 Condition.tests.cpp:<line number>: FAILED:
8507 CHECK( data.int_seven > 8 )
8508 with expansion:
8509 7 > 8
8510
8511 Condition.tests.cpp:<line number>: FAILED:
8512 CHECK( data.int_seven < 6 )
8513 with expansion:
8514 7 < 6
8515
8516 Condition.tests.cpp:<line number>: FAILED:
8517 CHECK( data.int_seven < 0 )
8518 with expansion:
8519 7 < 0
8520
8521 Condition.tests.cpp:<line number>: FAILED:
8522 CHECK( data.int_seven < -1 )
8523 with expansion:
8524 7 < -1
8525
8526 Condition.tests.cpp:<line number>: FAILED:
8527 CHECK( data.int_seven >= 8 )
8528 with expansion:
8529 7 >= 8
8530
8531 Condition.tests.cpp:<line number>: FAILED:
8532 CHECK( data.int_seven <= 6 )
8533 with expansion:
8534 7 <= 6
8535
8536 Condition.tests.cpp:<line number>: FAILED:
8537 CHECK( data.float_nine_point_one < 9 )
8538 with expansion:
8539 9.100000381f < 9
8540
8541 Condition.tests.cpp:<line number>: FAILED:
8542 CHECK( data.float_nine_point_one > 10 )
8543 with expansion:
8544 9.100000381f > 10
8545
8546 Condition.tests.cpp:<line number>: FAILED:
8547 CHECK( data.float_nine_point_one > 9.2 )
8548 with expansion:
8549 9.100000381f > 9.19999999999999929
8550
8551 Condition.tests.cpp:<line number>: FAILED:
8552 CHECK( data.str_hello > "hello" )
8553 with expansion:
8554 "hello" > "hello"
8555
8556 Condition.tests.cpp:<line number>: FAILED:
8557 CHECK( data.str_hello < "hello" )
8558 with expansion:
8559 "hello" < "hello"
8560
8561 Condition.tests.cpp:<line number>: FAILED:
8562 CHECK( data.str_hello > "hellp" )
8563 with expansion:
8564 "hello" > "hellp"
8565
8566 Condition.tests.cpp:<line number>: FAILED:
8567 CHECK( data.str_hello > "z" )
8568 with expansion:
8569 "hello" > "z"
8570
8571 Condition.tests.cpp:<line number>: FAILED:
8572 CHECK( data.str_hello < "hellm" )
8573 with expansion:
8574 "hello" < "hellm"
8575
8576 Condition.tests.cpp:<line number>: FAILED:
8577 CHECK( data.str_hello < "a" )
8578 with expansion:
8579 "hello" < "a"
8580
8581 Condition.tests.cpp:<line number>: FAILED:
8582 CHECK( data.str_hello >= "z" )
8583 with expansion:
8584 "hello" >= "z"
8585
8586 Condition.tests.cpp:<line number>: FAILED:
8587 CHECK( data.str_hello <= "a" )
8588 with expansion:
8589 "hello" <= "a"
8590
8591 -------------------------------------------------------------------------------
8592 Ordering comparison checks that should succeed
8593 -------------------------------------------------------------------------------
8594 Condition.tests.cpp:<line number>
8595 ...............................................................................
8596
8597 Condition.tests.cpp:<line number>: PASSED:
8598 REQUIRE( data.int_seven < 8 )
8599 with expansion:
8600 7 < 8
8601
8602 Condition.tests.cpp:<line number>: PASSED:
8603 REQUIRE( data.int_seven > 6 )
8604 with expansion:
8605 7 > 6
8606
8607 Condition.tests.cpp:<line number>: PASSED:
8608 REQUIRE( data.int_seven > 0 )
8609 with expansion:
8610 7 > 0
8611
8612 Condition.tests.cpp:<line number>: PASSED:
8613 REQUIRE( data.int_seven > -1 )
8614 with expansion:
8615 7 > -1
8616
8617 Condition.tests.cpp:<line number>: PASSED:
8618 REQUIRE( data.int_seven >= 7 )
8619 with expansion:
8620 7 >= 7
8621
8622 Condition.tests.cpp:<line number>: PASSED:
8623 REQUIRE( data.int_seven >= 6 )
8624 with expansion:
8625 7 >= 6
8626
8627 Condition.tests.cpp:<line number>: PASSED:
8628 REQUIRE( data.int_seven <= 7 )
8629 with expansion:
8630 7 <= 7
8631
8632 Condition.tests.cpp:<line number>: PASSED:
8633 REQUIRE( data.int_seven <= 8 )
8634 with expansion:
8635 7 <= 8
8636
8637 Condition.tests.cpp:<line number>: PASSED:
8638 REQUIRE( data.float_nine_point_one > 9 )
8639 with expansion:
8640 9.100000381f > 9
8641
8642 Condition.tests.cpp:<line number>: PASSED:
8643 REQUIRE( data.float_nine_point_one < 10 )
8644 with expansion:
8645 9.100000381f < 10
8646
8647 Condition.tests.cpp:<line number>: PASSED:
8648 REQUIRE( data.float_nine_point_one < 9.2 )
8649 with expansion:
8650 9.100000381f < 9.19999999999999929
8651
8652 Condition.tests.cpp:<line number>: PASSED:
8653 REQUIRE( data.str_hello <= "hello" )
8654 with expansion:
8655 "hello" <= "hello"
8656
8657 Condition.tests.cpp:<line number>: PASSED:
8658 REQUIRE( data.str_hello >= "hello" )
8659 with expansion:
8660 "hello" >= "hello"
8661
8662 Condition.tests.cpp:<line number>: PASSED:
8663 REQUIRE( data.str_hello < "hellp" )
8664 with expansion:
8665 "hello" < "hellp"
8666
8667 Condition.tests.cpp:<line number>: PASSED:
8668 REQUIRE( data.str_hello < "zebra" )
8669 with expansion:
8670 "hello" < "zebra"
8671
8672 Condition.tests.cpp:<line number>: PASSED:
8673 REQUIRE( data.str_hello > "hellm" )
8674 with expansion:
8675 "hello" > "hellm"
8676
8677 Condition.tests.cpp:<line number>: PASSED:
8678 REQUIRE( data.str_hello > "a" )
8679 with expansion:
8680 "hello" > "a"
8681
8682 -------------------------------------------------------------------------------
8683 Our PCG implementation provides expected results for known seeds
8684 Default seeded
8685 -------------------------------------------------------------------------------
8686 RandomNumberGeneration.tests.cpp:<line number>
8687 ...............................................................................
8688
8689 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8690 REQUIRE( rng() == 0x<hex digits> )
8691 with expansion:
8692 4242248763 (0x<hex digits>)
8693 ==
8694 4242248763 (0x<hex digits>)
8695
8696 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8697 REQUIRE( rng() == 0x<hex digits> )
8698 with expansion:
8699 1867888929 (0x<hex digits>)
8700 ==
8701 1867888929 (0x<hex digits>)
8702
8703 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8704 REQUIRE( rng() == 0x<hex digits> )
8705 with expansion:
8706 1276619030 (0x<hex digits>)
8707 ==
8708 1276619030 (0x<hex digits>)
8709
8710 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8711 REQUIRE( rng() == 0x<hex digits> )
8712 with expansion:
8713 1911218783 (0x<hex digits>)
8714 ==
8715 1911218783 (0x<hex digits>)
8716
8717 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8718 REQUIRE( rng() == 0x<hex digits> )
8719 with expansion:
8720 1827115164 (0x<hex digits>)
8721 ==
8722 1827115164 (0x<hex digits>)
8723
8724 -------------------------------------------------------------------------------
8725 Our PCG implementation provides expected results for known seeds
8726 Specific seed
8727 -------------------------------------------------------------------------------
8728 RandomNumberGeneration.tests.cpp:<line number>
8729 ...............................................................................
8730
8731 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8732 REQUIRE( rng() == 0x<hex digits> )
8733 with expansion:
8734 1472234645 (0x<hex digits>)
8735 ==
8736 1472234645 (0x<hex digits>)
8737
8738 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8739 REQUIRE( rng() == 0x<hex digits> )
8740 with expansion:
8741 868832940 (0x<hex digits>)
8742 ==
8743 868832940 (0x<hex digits>)
8744
8745 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8746 REQUIRE( rng() == 0x<hex digits> )
8747 with expansion:
8748 570883446 (0x<hex digits>)
8749 ==
8750 570883446 (0x<hex digits>)
8751
8752 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8753 REQUIRE( rng() == 0x<hex digits> )
8754 with expansion:
8755 889299803 (0x<hex digits>)
8756 ==
8757 889299803 (0x<hex digits>)
8758
8759 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8760 REQUIRE( rng() == 0x<hex digits> )
8761 with expansion:
8762 4261393167 (0x<hex digits>)
8763 ==
8764 4261393167 (0x<hex digits>)
8765
8766 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8767 REQUIRE( rng() == 0x<hex digits> )
8768 with expansion:
8769 1472234645 (0x<hex digits>)
8770 ==
8771 1472234645 (0x<hex digits>)
8772
8773 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8774 REQUIRE( rng() == 0x<hex digits> )
8775 with expansion:
8776 868832940 (0x<hex digits>)
8777 ==
8778 868832940 (0x<hex digits>)
8779
8780 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8781 REQUIRE( rng() == 0x<hex digits> )
8782 with expansion:
8783 570883446 (0x<hex digits>)
8784 ==
8785 570883446 (0x<hex digits>)
8786
8787 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8788 REQUIRE( rng() == 0x<hex digits> )
8789 with expansion:
8790 889299803 (0x<hex digits>)
8791 ==
8792 889299803 (0x<hex digits>)
8793
8794 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8795 REQUIRE( rng() == 0x<hex digits> )
8796 with expansion:
8797 4261393167 (0x<hex digits>)
8798 ==
8799 4261393167 (0x<hex digits>)
8800
8801 -------------------------------------------------------------------------------
8802 Output from all sections is reported
8803 one
8804 -------------------------------------------------------------------------------
8805 Message.tests.cpp:<line number>
8806 ...............................................................................
8807
8808 Message.tests.cpp:<line number>: FAILED:
8809 explicitly with message:
8810 Message from section one
8811
8812 -------------------------------------------------------------------------------
8813 Output from all sections is reported
8814 two
8815 -------------------------------------------------------------------------------
8816 Message.tests.cpp:<line number>
8817 ...............................................................................
8818
8819 Message.tests.cpp:<line number>: FAILED:
8820 explicitly with message:
8821 Message from section two
8822
8823 -------------------------------------------------------------------------------
8824 Overloaded comma or address-of operators are not used
8825 -------------------------------------------------------------------------------
8826 Matchers.tests.cpp:<line number>
8827 ...............................................................................
8828
8829 Matchers.tests.cpp:<line number>: PASSED:
8830 REQUIRE_THROWS_AS( ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed )
8831
8832 Matchers.tests.cpp:<line number>: PASSED:
8833 REQUIRE_THROWS_AS( &EvilMatcher(), EvilAddressOfOperatorUsed )
8834
8835 Matchers.tests.cpp:<line number>: PASSED:
8836 REQUIRE_NOTHROW( EvilMatcher() || ( EvilMatcher() && !EvilMatcher() ) )
8837
8838 Matchers.tests.cpp:<line number>: PASSED:
8839 REQUIRE_NOTHROW( ( EvilMatcher() && EvilMatcher() ) || !EvilMatcher() )
8840
8841 -------------------------------------------------------------------------------
8842 Parse uints
8843 proper inputs
8844 -------------------------------------------------------------------------------
8845 Parse.tests.cpp:<line number>
8846 ...............................................................................
8847
8848 Parse.tests.cpp:<line number>: PASSED:
8849 REQUIRE( parseUInt( "0" ) == Optional<unsigned int>{ 0 } )
8850 with expansion:
8851 {?} == {?}
8852
8853 Parse.tests.cpp:<line number>: PASSED:
8854 REQUIRE( parseUInt( "100" ) == Optional<unsigned int>{ 100 } )
8855 with expansion:
8856 {?} == {?}
8857
8858 Parse.tests.cpp:<line number>: PASSED:
8859 REQUIRE( parseUInt( "4294967295" ) == Optional<unsigned int>{ 4294967295 } )
8860 with expansion:
8861 {?} == {?}
8862
8863 Parse.tests.cpp:<line number>: PASSED:
8864 REQUIRE( parseUInt( "0x<hex digits>", 16 ) == Optional<unsigned int>{ 255 } )
8865 with expansion:
8866 {?} == {?}
8867
8868 -------------------------------------------------------------------------------
8869 Parse uints
8870 Bad inputs
8871 -------------------------------------------------------------------------------
8872 Parse.tests.cpp:<line number>
8873 ...............................................................................
8874
8875 Parse.tests.cpp:<line number>: PASSED:
8876 REQUIRE_FALSE( parseUInt( "" ) )
8877 with expansion:
8878 !{?}
8879
8880 Parse.tests.cpp:<line number>: PASSED:
8881 REQUIRE_FALSE( parseUInt( "!!KJHF*#" ) )
8882 with expansion:
8883 !{?}
8884
8885 Parse.tests.cpp:<line number>: PASSED:
8886 REQUIRE_FALSE( parseUInt( "-1" ) )
8887 with expansion:
8888 !{?}
8889
8890 Parse.tests.cpp:<line number>: PASSED:
8891 REQUIRE_FALSE( parseUInt( "4294967296" ) )
8892 with expansion:
8893 !{?}
8894
8895 Parse.tests.cpp:<line number>: PASSED:
8896 REQUIRE_FALSE( parseUInt( "42949672964294967296429496729642949672964294967296" ) )
8897 with expansion:
8898 !{?}
8899
8900 Parse.tests.cpp:<line number>: PASSED:
8901 REQUIRE_FALSE( parseUInt( "2 4" ) )
8902 with expansion:
8903 !{?}
8904
8905 Parse.tests.cpp:<line number>: PASSED:
8906 REQUIRE_FALSE( parseUInt( "0x<hex digits>", 10 ) )
8907 with expansion:
8908 !{?}
8909
8910 -------------------------------------------------------------------------------
8911 Parsed tags are matched case insensitive
8912 -------------------------------------------------------------------------------
8913 TestSpecParser.tests.cpp:<line number>
8914 ...............................................................................
8915
8916 TestSpecParser.tests.cpp:<line number>: PASSED:
8917 REQUIRE( spec.hasFilters() )
8918 with expansion:
8919 true
8920
8921 TestSpecParser.tests.cpp:<line number>: PASSED:
8922 REQUIRE( spec.getInvalidSpecs().empty() )
8923 with expansion:
8924 true
8925
8926 TestSpecParser.tests.cpp:<line number>: PASSED:
8927 REQUIRE( spec.matches( testCase ) )
8928 with expansion:
8929 true
8930
8931 -------------------------------------------------------------------------------
8932 Parsing sharding-related cli flags
8933 shard-count
8934 -------------------------------------------------------------------------------
8935 CmdLine.tests.cpp:<line number>
8936 ...............................................................................
8937
8938 CmdLine.tests.cpp:<line number>: PASSED:
8939 CHECK( cli.parse({ "test", "--shard-count=8" }) )
8940 with expansion:
8941 {?}
8942
8943 CmdLine.tests.cpp:<line number>: PASSED:
8944 REQUIRE( config.shardCount == 8 )
8945 with expansion:
8946 8 == 8
8947
8948 -------------------------------------------------------------------------------
8949 Parsing sharding-related cli flags
8950 Negative shard count reports error
8951 -------------------------------------------------------------------------------
8952 CmdLine.tests.cpp:<line number>
8953 ...............................................................................
8954
8955 CmdLine.tests.cpp:<line number>: PASSED:
8956 CHECK_FALSE( result )
8957 with expansion:
8958 !{?}
8959
8960 CmdLine.tests.cpp:<line number>: PASSED:
8961 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Could not parse '-1' as shard count" ) )
8962 with expansion:
8963 "Could not parse '-1' as shard count" contains: "Could not parse '-1' as
8964 shard count"
8965
8966 -------------------------------------------------------------------------------
8967 Parsing sharding-related cli flags
8968 Zero shard count reports error
8969 -------------------------------------------------------------------------------
8970 CmdLine.tests.cpp:<line number>
8971 ...............................................................................
8972
8973 CmdLine.tests.cpp:<line number>: PASSED:
8974 CHECK_FALSE( result )
8975 with expansion:
8976 !{?}
8977
8978 CmdLine.tests.cpp:<line number>: PASSED:
8979 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Shard count must be positive" ) )
8980 with expansion:
8981 "Shard count must be positive" contains: "Shard count must be positive"
8982
8983 -------------------------------------------------------------------------------
8984 Parsing sharding-related cli flags
8985 shard-index
8986 -------------------------------------------------------------------------------
8987 CmdLine.tests.cpp:<line number>
8988 ...............................................................................
8989
8990 CmdLine.tests.cpp:<line number>: PASSED:
8991 CHECK( cli.parse({ "test", "--shard-index=2" }) )
8992 with expansion:
8993 {?}
8994
8995 CmdLine.tests.cpp:<line number>: PASSED:
8996 REQUIRE( config.shardIndex == 2 )
8997 with expansion:
8998 2 == 2
8999
9000 -------------------------------------------------------------------------------
9001 Parsing sharding-related cli flags
9002 Negative shard index reports error
9003 -------------------------------------------------------------------------------
9004 CmdLine.tests.cpp:<line number>
9005 ...............................................................................
9006
9007 CmdLine.tests.cpp:<line number>: PASSED:
9008 CHECK_FALSE( result )
9009 with expansion:
9010 !{?}
9011
9012 CmdLine.tests.cpp:<line number>: PASSED:
9013 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Could not parse '-12' as shard index" ) )
9014 with expansion:
9015 "Could not parse '-12' as shard index" contains: "Could not parse '-12' as
9016 shard index"
9017
9018 -------------------------------------------------------------------------------
9019 Parsing sharding-related cli flags
9020 Shard index 0 is accepted
9021 -------------------------------------------------------------------------------
9022 CmdLine.tests.cpp:<line number>
9023 ...............................................................................
9024
9025 CmdLine.tests.cpp:<line number>: PASSED:
9026 CHECK( cli.parse({ "test", "--shard-index=0" }) )
9027 with expansion:
9028 {?}
9029
9030 CmdLine.tests.cpp:<line number>: PASSED:
9031 REQUIRE( config.shardIndex == 0 )
9032 with expansion:
9033 0 == 0
9034
9035 -------------------------------------------------------------------------------
9036 Parsing tags with non-alphabetical characters is pass-through
9037 -------------------------------------------------------------------------------
9038 TestSpecParser.tests.cpp:<line number>
9039 ...............................................................................
9040
9041 TestSpecParser.tests.cpp:<line number>: PASSED:
9042 REQUIRE( spec.hasFilters() )
9043 with expansion:
9044 true
9045 with message:
9046 tagString := "[tag with spaces]"
9047
9048 TestSpecParser.tests.cpp:<line number>: PASSED:
9049 REQUIRE( spec.getInvalidSpecs().empty() )
9050 with expansion:
9051 true
9052 with message:
9053 tagString := "[tag with spaces]"
9054
9055 TestSpecParser.tests.cpp:<line number>: PASSED:
9056 REQUIRE( spec.matches( testCase ) )
9057 with expansion:
9058 true
9059 with message:
9060 tagString := "[tag with spaces]"
9061
9062 -------------------------------------------------------------------------------
9063 Parsing tags with non-alphabetical characters is pass-through
9064 -------------------------------------------------------------------------------
9065 TestSpecParser.tests.cpp:<line number>
9066 ...............................................................................
9067
9068 TestSpecParser.tests.cpp:<line number>: PASSED:
9069 REQUIRE( spec.hasFilters() )
9070 with expansion:
9071 true
9072 with message:
9073 tagString := "[I said "good day" sir!]"
9074
9075 TestSpecParser.tests.cpp:<line number>: PASSED:
9076 REQUIRE( spec.getInvalidSpecs().empty() )
9077 with expansion:
9078 true
9079 with message:
9080 tagString := "[I said "good day" sir!]"
9081
9082 TestSpecParser.tests.cpp:<line number>: PASSED:
9083 REQUIRE( spec.matches( testCase ) )
9084 with expansion:
9085 true
9086 with message:
9087 tagString := "[I said "good day" sir!]"
9088
9089 -------------------------------------------------------------------------------
9090 Parsing warnings
9091 NoAssertions
9092 -------------------------------------------------------------------------------
9093 CmdLine.tests.cpp:<line number>
9094 ...............................................................................
9095
9096 CmdLine.tests.cpp:<line number>: PASSED:
9097 REQUIRE( cli.parse( { "test", "-w", "NoAssertions" } ) )
9098 with expansion:
9099 {?}
9100
9101 CmdLine.tests.cpp:<line number>: PASSED:
9102 REQUIRE( config.warnings == WarnAbout::NoAssertions )
9103 with expansion:
9104 1 == 1
9105
9106 -------------------------------------------------------------------------------
9107 Parsing warnings
9108 NoTests is no longer supported
9109 -------------------------------------------------------------------------------
9110 CmdLine.tests.cpp:<line number>
9111 ...............................................................................
9112
9113 CmdLine.tests.cpp:<line number>: PASSED:
9114 REQUIRE_FALSE( cli.parse( { "test", "-w", "NoTests" } ) )
9115 with expansion:
9116 !{?}
9117
9118 -------------------------------------------------------------------------------
9119 Parsing warnings
9120 Combining multiple warnings
9121 -------------------------------------------------------------------------------
9122 CmdLine.tests.cpp:<line number>
9123 ...............................................................................
9124
9125 CmdLine.tests.cpp:<line number>: PASSED:
9126 REQUIRE( cli.parse( { "test", "--warn", "NoAssertions", "--warn", "UnmatchedTestSpec" } ) )
9127 with expansion:
9128 {?}
9129
9130 CmdLine.tests.cpp:<line number>: PASSED:
9131 REQUIRE( config.warnings == ( WarnAbout::NoAssertions | WarnAbout::UnmatchedTestSpec ) )
9132 with expansion:
9133 3 == 3
9134
9135 -------------------------------------------------------------------------------
9136 Pointers can be compared to null
9137 -------------------------------------------------------------------------------
9138 Condition.tests.cpp:<line number>
9139 ...............................................................................
9140
9141 Condition.tests.cpp:<line number>: PASSED:
9142 REQUIRE( p == 0 )
9143 with expansion:
9144 0 == 0
9145
9146 Condition.tests.cpp:<line number>: PASSED:
9147 REQUIRE( p == pNULL )
9148 with expansion:
9149 0 == 0
9150
9151 Condition.tests.cpp:<line number>: PASSED:
9152 REQUIRE( p != 0 )
9153 with expansion:
9154 0x<hex digits> != 0
9155
9156 Condition.tests.cpp:<line number>: PASSED:
9157 REQUIRE( cp != 0 )
9158 with expansion:
9159 0x<hex digits> != 0
9160
9161 Condition.tests.cpp:<line number>: PASSED:
9162 REQUIRE( cpc != 0 )
9163 with expansion:
9164 0x<hex digits> != 0
9165
9166 Condition.tests.cpp:<line number>: PASSED:
9167 REQUIRE( returnsNull() == 0 )
9168 with expansion:
9169 {null string} == 0
9170
9171 Condition.tests.cpp:<line number>: PASSED:
9172 REQUIRE( returnsConstNull() == 0 )
9173 with expansion:
9174 {null string} == 0
9175
9176 Condition.tests.cpp:<line number>: PASSED:
9177 REQUIRE( 0 != p )
9178 with expansion:
9179 0 != 0x<hex digits>
9180
9181 -------------------------------------------------------------------------------
9182 Precision of floating point stringification can be set
9183 Floats
9184 -------------------------------------------------------------------------------
9185 ToStringGeneral.tests.cpp:<line number>
9186 ...............................................................................
9187
9188 ToStringGeneral.tests.cpp:<line number>: PASSED:
9189 CHECK( str1.size() == 3 + 5 )
9190 with expansion:
9191 8 == 8
9192
9193 ToStringGeneral.tests.cpp:<line number>: PASSED:
9194 REQUIRE( str2.size() == 3 + 10 )
9195 with expansion:
9196 13 == 13
9197
9198 -------------------------------------------------------------------------------
9199 Precision of floating point stringification can be set
9200 Double
9201 -------------------------------------------------------------------------------
9202 ToStringGeneral.tests.cpp:<line number>
9203 ...............................................................................
9204
9205 ToStringGeneral.tests.cpp:<line number>: PASSED:
9206 CHECK( str1.size() == 2 + 5 )
9207 with expansion:
9208 7 == 7
9209
9210 ToStringGeneral.tests.cpp:<line number>: PASSED:
9211 REQUIRE( str2.size() == 2 + 15 )
9212 with expansion:
9213 17 == 17
9214
9215 -------------------------------------------------------------------------------
9216 Predicate matcher can accept const char*
9217 -------------------------------------------------------------------------------
9218 Matchers.tests.cpp:<line number>
9219 ...............................................................................
9220
9221 Matchers.tests.cpp:<line number>: PASSED:
9222 REQUIRE_THAT( "foo", Predicate<const char*>( []( const char* const& ) { return true; } ) )
9223 with expansion:
9224 "foo" matches undescribed predicate
9225
9226 -------------------------------------------------------------------------------
9227 Process can be configured on command line
9228 empty args don't cause a crash
9229 -------------------------------------------------------------------------------
9230 CmdLine.tests.cpp:<line number>
9231 ...............................................................................
9232
9233 CmdLine.tests.cpp:<line number>: PASSED:
9234 CHECK( result )
9235 with expansion:
9236 {?}
9237
9238 CmdLine.tests.cpp:<line number>: PASSED:
9239 CHECK( config.processName == "" )
9240 with expansion:
9241 "" == ""
9242
9243 -------------------------------------------------------------------------------
9244 Process can be configured on command line
9245 default - no arguments
9246 -------------------------------------------------------------------------------
9247 CmdLine.tests.cpp:<line number>
9248 ...............................................................................
9249
9250 CmdLine.tests.cpp:<line number>: PASSED:
9251 CHECK( result )
9252 with expansion:
9253 {?}
9254
9255 CmdLine.tests.cpp:<line number>: PASSED:
9256 CHECK( config.processName == "test" )
9257 with expansion:
9258 "test" == "test"
9259
9260 CmdLine.tests.cpp:<line number>: PASSED:
9261 CHECK( config.shouldDebugBreak == false )
9262 with expansion:
9263 false == false
9264
9265 CmdLine.tests.cpp:<line number>: PASSED:
9266 CHECK( config.abortAfter == -1 )
9267 with expansion:
9268 -1 == -1
9269
9270 CmdLine.tests.cpp:<line number>: PASSED:
9271 CHECK( config.noThrow == false )
9272 with expansion:
9273 false == false
9274
9275 CmdLine.tests.cpp:<line number>: PASSED:
9276 CHECK( config.reporterSpecifications.empty() )
9277 with expansion:
9278 true
9279
9280 CmdLine.tests.cpp:<line number>: PASSED:
9281 CHECK_FALSE( cfg.hasTestFilters() )
9282 with expansion:
9283 !false
9284
9285 CmdLine.tests.cpp:<line number>: PASSED:
9286 CHECK( cfg.getReporterSpecs().size() == 1 )
9287 with expansion:
9288 1 == 1
9289
9290 CmdLine.tests.cpp:<line number>: PASSED:
9291 CHECK( cfg.getReporterSpecs()[0] == Catch::ReporterSpec{ expectedReporter, {}, {}, {} } )
9292 with expansion:
9293 {?} == {?}
9294
9295 CmdLine.tests.cpp:<line number>: PASSED:
9296 CHECK( cfg.getProcessedReporterSpecs().size() == 1 )
9297 with expansion:
9298 1 == 1
9299
9300 CmdLine.tests.cpp:<line number>: PASSED:
9301 CHECK( cfg.getProcessedReporterSpecs()[0] == Catch::ProcessedReporterSpec{ expectedReporter, std::string{}, Catch::ColourMode::PlatformDefault, {} } )
9302 with expansion:
9303 {?} == {?}
9304
9305 -------------------------------------------------------------------------------
9306 Process can be configured on command line
9307 test lists
9308 Specify one test case using
9309 -------------------------------------------------------------------------------
9310 CmdLine.tests.cpp:<line number>
9311 ...............................................................................
9312
9313 CmdLine.tests.cpp:<line number>: PASSED:
9314 CHECK( result )
9315 with expansion:
9316 {?}
9317
9318 CmdLine.tests.cpp:<line number>: PASSED:
9319 REQUIRE( cfg.hasTestFilters() )
9320 with expansion:
9321 true
9322
9323 CmdLine.tests.cpp:<line number>: PASSED:
9324 REQUIRE( cfg.testSpec().matches(*fakeTestCase("notIncluded")) == false )
9325 with expansion:
9326 false == false
9327
9328 CmdLine.tests.cpp:<line number>: PASSED:
9329 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) )
9330 with expansion:
9331 true
9332
9333 -------------------------------------------------------------------------------
9334 Process can be configured on command line
9335 test lists
9336 Specify one test case exclusion using exclude:
9337 -------------------------------------------------------------------------------
9338 CmdLine.tests.cpp:<line number>
9339 ...............................................................................
9340
9341 CmdLine.tests.cpp:<line number>: PASSED:
9342 CHECK( result )
9343 with expansion:
9344 {?}
9345
9346 CmdLine.tests.cpp:<line number>: PASSED:
9347 REQUIRE( cfg.hasTestFilters() )
9348 with expansion:
9349 true
9350
9351 CmdLine.tests.cpp:<line number>: PASSED:
9352 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) == false )
9353 with expansion:
9354 false == false
9355
9356 CmdLine.tests.cpp:<line number>: PASSED:
9357 REQUIRE( cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) )
9358 with expansion:
9359 true
9360
9361 -------------------------------------------------------------------------------
9362 Process can be configured on command line
9363 test lists
9364 Specify one test case exclusion using ~
9365 -------------------------------------------------------------------------------
9366 CmdLine.tests.cpp:<line number>
9367 ...............................................................................
9368
9369 CmdLine.tests.cpp:<line number>: PASSED:
9370 CHECK( result )
9371 with expansion:
9372 {?}
9373
9374 CmdLine.tests.cpp:<line number>: PASSED:
9375 REQUIRE( cfg.hasTestFilters() )
9376 with expansion:
9377 true
9378
9379 CmdLine.tests.cpp:<line number>: PASSED:
9380 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) == false )
9381 with expansion:
9382 false == false
9383
9384 CmdLine.tests.cpp:<line number>: PASSED:
9385 REQUIRE( cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) )
9386 with expansion:
9387 true
9388
9389 -------------------------------------------------------------------------------
9390 Process can be configured on command line
9391 reporter
9392 -r/console
9393 -------------------------------------------------------------------------------
9394 CmdLine.tests.cpp:<line number>
9395 ...............................................................................
9396
9397 CmdLine.tests.cpp:<line number>: PASSED:
9398 CHECK( result )
9399 with expansion:
9400 {?}
9401 with message:
9402 result.errorMessage() := ""
9403
9404 CmdLine.tests.cpp:<line number>: PASSED:
9405 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", {}, {}, {} } } )
9406 with expansion:
9407 { {?} } == { {?} }
9408 with message:
9409 result.errorMessage() := ""
9410
9411 -------------------------------------------------------------------------------
9412 Process can be configured on command line
9413 reporter
9414 -r/xml
9415 -------------------------------------------------------------------------------
9416 CmdLine.tests.cpp:<line number>
9417 ...............................................................................
9418
9419 CmdLine.tests.cpp:<line number>: PASSED:
9420 CHECK( result )
9421 with expansion:
9422 {?}
9423 with message:
9424 result.errorMessage() := ""
9425
9426 CmdLine.tests.cpp:<line number>: PASSED:
9427 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", {}, {}, {} } } )
9428 with expansion:
9429 { {?} } == { {?} }
9430 with message:
9431 result.errorMessage() := ""
9432
9433 -------------------------------------------------------------------------------
9434 Process can be configured on command line
9435 reporter
9436 --reporter/junit
9437 -------------------------------------------------------------------------------
9438 CmdLine.tests.cpp:<line number>
9439 ...............................................................................
9440
9441 CmdLine.tests.cpp:<line number>: PASSED:
9442 CHECK( result )
9443 with expansion:
9444 {?}
9445 with message:
9446 result.errorMessage() := ""
9447
9448 CmdLine.tests.cpp:<line number>: PASSED:
9449 REQUIRE( config.reporterSpecifications == vec_Specs{ { "junit", {}, {}, {} } } )
9450 with expansion:
9451 { {?} } == { {?} }
9452 with message:
9453 result.errorMessage() := ""
9454
9455 -------------------------------------------------------------------------------
9456 Process can be configured on command line
9457 reporter
9458 must match one of the available ones
9459 -------------------------------------------------------------------------------
9460 CmdLine.tests.cpp:<line number>
9461 ...............................................................................
9462
9463 CmdLine.tests.cpp:<line number>: PASSED:
9464 CHECK( !result )
9465 with expansion:
9466 true
9467
9468 CmdLine.tests.cpp:<line number>: PASSED:
9469 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Unrecognized reporter") )
9470 with expansion:
9471 "Unrecognized reporter, 'unsupported'. Check available with --list-reporters"
9472 contains: "Unrecognized reporter"
9473
9474 -------------------------------------------------------------------------------
9475 Process can be configured on command line
9476 reporter
9477 With output file
9478 -------------------------------------------------------------------------------
9479 CmdLine.tests.cpp:<line number>
9480 ...............................................................................
9481
9482 CmdLine.tests.cpp:<line number>: PASSED:
9483 CHECK( result )
9484 with expansion:
9485 {?}
9486 with message:
9487 result.errorMessage() := ""
9488
9489 CmdLine.tests.cpp:<line number>: PASSED:
9490 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", "out.txt"s, {}, {} } } )
9491 with expansion:
9492 { {?} } == { {?} }
9493 with message:
9494 result.errorMessage() := ""
9495
9496 -------------------------------------------------------------------------------
9497 Process can be configured on command line
9498 reporter
9499 With Windows-like absolute path as output file
9500 -------------------------------------------------------------------------------
9501 CmdLine.tests.cpp:<line number>
9502 ...............................................................................
9503
9504 CmdLine.tests.cpp:<line number>: PASSED:
9505 CHECK( result )
9506 with expansion:
9507 {?}
9508 with message:
9509 result.errorMessage() := ""
9510
9511 CmdLine.tests.cpp:<line number>: PASSED:
9512 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", "C:\\Temp\\out.txt"s, {}, {} } } )
9513 with expansion:
9514 { {?} } == { {?} }
9515 with message:
9516 result.errorMessage() := ""
9517
9518 -------------------------------------------------------------------------------
9519 Process can be configured on command line
9520 reporter
9521 Multiple reporters
9522 All with output files
9523 -------------------------------------------------------------------------------
9524 CmdLine.tests.cpp:<line number>
9525 ...............................................................................
9526
9527 CmdLine.tests.cpp:<line number>: PASSED:
9528 CHECK( cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "junit::out=output-junit.xml" }) )
9529 with expansion:
9530 {?}
9531
9532 CmdLine.tests.cpp:<line number>: PASSED:
9533 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "junit", "output-junit.xml"s, {}, {} } } )
9534 with expansion:
9535 { {?}, {?} } == { {?}, {?} }
9536
9537 -------------------------------------------------------------------------------
9538 Process can be configured on command line
9539 reporter
9540 Multiple reporters
9541 Mixed output files and default output
9542 -------------------------------------------------------------------------------
9543 CmdLine.tests.cpp:<line number>
9544 ...............................................................................
9545
9546 CmdLine.tests.cpp:<line number>: PASSED:
9547 CHECK( cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "console" }) )
9548 with expansion:
9549 {?}
9550
9551 CmdLine.tests.cpp:<line number>: PASSED:
9552 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "console", {}, {}, {} } } )
9553 with expansion:
9554 { {?}, {?} } == { {?}, {?} }
9555
9556 -------------------------------------------------------------------------------
9557 Process can be configured on command line
9558 reporter
9559 Multiple reporters
9560 cannot have multiple reporters with default output
9561 -------------------------------------------------------------------------------
9562 CmdLine.tests.cpp:<line number>
9563 ...............................................................................
9564
9565 CmdLine.tests.cpp:<line number>: PASSED:
9566 CHECK( !result )
9567 with expansion:
9568 true
9569
9570 CmdLine.tests.cpp:<line number>: PASSED:
9571 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Only one reporter may have unspecified output file.") )
9572 with expansion:
9573 "Only one reporter may have unspecified output file." contains: "Only one
9574 reporter may have unspecified output file."
9575
9576 -------------------------------------------------------------------------------
9577 Process can be configured on command line
9578 debugger
9579 -b
9580 -------------------------------------------------------------------------------
9581 CmdLine.tests.cpp:<line number>
9582 ...............................................................................
9583
9584 CmdLine.tests.cpp:<line number>: PASSED:
9585 CHECK( cli.parse({"test", "-b"}) )
9586 with expansion:
9587 {?}
9588
9589 CmdLine.tests.cpp:<line number>: PASSED:
9590 REQUIRE( config.shouldDebugBreak == true )
9591 with expansion:
9592 true == true
9593
9594 -------------------------------------------------------------------------------
9595 Process can be configured on command line
9596 debugger
9597 --break
9598 -------------------------------------------------------------------------------
9599 CmdLine.tests.cpp:<line number>
9600 ...............................................................................
9601
9602 CmdLine.tests.cpp:<line number>: PASSED:
9603 CHECK( cli.parse({"test", "--break"}) )
9604 with expansion:
9605 {?}
9606
9607 CmdLine.tests.cpp:<line number>: PASSED:
9608 REQUIRE( config.shouldDebugBreak )
9609 with expansion:
9610 true
9611
9612 -------------------------------------------------------------------------------
9613 Process can be configured on command line
9614 abort
9615 -a aborts after first failure
9616 -------------------------------------------------------------------------------
9617 CmdLine.tests.cpp:<line number>
9618 ...............................................................................
9619
9620 CmdLine.tests.cpp:<line number>: PASSED:
9621 CHECK( cli.parse({"test", "-a"}) )
9622 with expansion:
9623 {?}
9624
9625 CmdLine.tests.cpp:<line number>: PASSED:
9626 REQUIRE( config.abortAfter == 1 )
9627 with expansion:
9628 1 == 1
9629
9630 -------------------------------------------------------------------------------
9631 Process can be configured on command line
9632 abort
9633 -x 2 aborts after two failures
9634 -------------------------------------------------------------------------------
9635 CmdLine.tests.cpp:<line number>
9636 ...............................................................................
9637
9638 CmdLine.tests.cpp:<line number>: PASSED:
9639 CHECK( cli.parse({"test", "-x", "2"}) )
9640 with expansion:
9641 {?}
9642
9643 CmdLine.tests.cpp:<line number>: PASSED:
9644 REQUIRE( config.abortAfter == 2 )
9645 with expansion:
9646 2 == 2
9647
9648 -------------------------------------------------------------------------------
9649 Process can be configured on command line
9650 abort
9651 -x must be numeric
9652 -------------------------------------------------------------------------------
9653 CmdLine.tests.cpp:<line number>
9654 ...............................................................................
9655
9656 CmdLine.tests.cpp:<line number>: PASSED:
9657 CHECK( !result )
9658 with expansion:
9659 true
9660
9661 CmdLine.tests.cpp:<line number>: PASSED:
9662 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("convert") && ContainsSubstring("oops") )
9663 with expansion:
9664 "Unable to convert 'oops' to destination type" ( contains: "convert" and
9665 contains: "oops" )
9666
9667 -------------------------------------------------------------------------------
9668 Process can be configured on command line
9669 abort
9670 wait-for-keypress
9671 Accepted options
9672 -------------------------------------------------------------------------------
9673 CmdLine.tests.cpp:<line number>
9674 ...............................................................................
9675
9676 CmdLine.tests.cpp:<line number>: PASSED:
9677 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9678 with expansion:
9679 {?}
9680
9681 CmdLine.tests.cpp:<line number>: PASSED:
9682 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9683 with expansion:
9684 0 == 0
9685
9686 -------------------------------------------------------------------------------
9687 Process can be configured on command line
9688 abort
9689 wait-for-keypress
9690 Accepted options
9691 -------------------------------------------------------------------------------
9692 CmdLine.tests.cpp:<line number>
9693 ...............................................................................
9694
9695 CmdLine.tests.cpp:<line number>: PASSED:
9696 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9697 with expansion:
9698 {?}
9699
9700 CmdLine.tests.cpp:<line number>: PASSED:
9701 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9702 with expansion:
9703 1 == 1
9704
9705 -------------------------------------------------------------------------------
9706 Process can be configured on command line
9707 abort
9708 wait-for-keypress
9709 Accepted options
9710 -------------------------------------------------------------------------------
9711 CmdLine.tests.cpp:<line number>
9712 ...............................................................................
9713
9714 CmdLine.tests.cpp:<line number>: PASSED:
9715 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9716 with expansion:
9717 {?}
9718
9719 CmdLine.tests.cpp:<line number>: PASSED:
9720 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9721 with expansion:
9722 2 == 2
9723
9724 -------------------------------------------------------------------------------
9725 Process can be configured on command line
9726 abort
9727 wait-for-keypress
9728 Accepted options
9729 -------------------------------------------------------------------------------
9730 CmdLine.tests.cpp:<line number>
9731 ...............................................................................
9732
9733 CmdLine.tests.cpp:<line number>: PASSED:
9734 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9735 with expansion:
9736 {?}
9737
9738 CmdLine.tests.cpp:<line number>: PASSED:
9739 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9740 with expansion:
9741 3 == 3
9742
9743 -------------------------------------------------------------------------------
9744 Process can be configured on command line
9745 abort
9746 wait-for-keypress
9747 invalid options are reported
9748 -------------------------------------------------------------------------------
9749 CmdLine.tests.cpp:<line number>
9750 ...............................................................................
9751
9752 CmdLine.tests.cpp:<line number>: PASSED:
9753 CHECK( !result )
9754 with expansion:
9755 true
9756
9757 CmdLine.tests.cpp:<line number>: PASSED:
9758 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("never") && ContainsSubstring("both") )
9759 with expansion:
9760 "keypress argument must be one of: never, start, exit or both. 'sometimes'
9761 not recognised" ( contains: "never" and contains: "both" )
9762
9763 -------------------------------------------------------------------------------
9764 Process can be configured on command line
9765 nothrow
9766 -e
9767 -------------------------------------------------------------------------------
9768 CmdLine.tests.cpp:<line number>
9769 ...............................................................................
9770
9771 CmdLine.tests.cpp:<line number>: PASSED:
9772 CHECK( cli.parse({"test", "-e"}) )
9773 with expansion:
9774 {?}
9775
9776 CmdLine.tests.cpp:<line number>: PASSED:
9777 REQUIRE( config.noThrow )
9778 with expansion:
9779 true
9780
9781 -------------------------------------------------------------------------------
9782 Process can be configured on command line
9783 nothrow
9784 --nothrow
9785 -------------------------------------------------------------------------------
9786 CmdLine.tests.cpp:<line number>
9787 ...............................................................................
9788
9789 CmdLine.tests.cpp:<line number>: PASSED:
9790 CHECK( cli.parse({"test", "--nothrow"}) )
9791 with expansion:
9792 {?}
9793
9794 CmdLine.tests.cpp:<line number>: PASSED:
9795 REQUIRE( config.noThrow )
9796 with expansion:
9797 true
9798
9799 -------------------------------------------------------------------------------
9800 Process can be configured on command line
9801 output filename
9802 -o filename
9803 -------------------------------------------------------------------------------
9804 CmdLine.tests.cpp:<line number>
9805 ...............................................................................
9806
9807 CmdLine.tests.cpp:<line number>: PASSED:
9808 CHECK( cli.parse({"test", "-o", "filename.ext"}) )
9809 with expansion:
9810 {?}
9811
9812 CmdLine.tests.cpp:<line number>: PASSED:
9813 REQUIRE( config.defaultOutputFilename == "filename.ext" )
9814 with expansion:
9815 "filename.ext" == "filename.ext"
9816
9817 -------------------------------------------------------------------------------
9818 Process can be configured on command line
9819 output filename
9820 --out
9821 -------------------------------------------------------------------------------
9822 CmdLine.tests.cpp:<line number>
9823 ...............................................................................
9824
9825 CmdLine.tests.cpp:<line number>: PASSED:
9826 CHECK( cli.parse({"test", "--out", "filename.ext"}) )
9827 with expansion:
9828 {?}
9829
9830 CmdLine.tests.cpp:<line number>: PASSED:
9831 REQUIRE( config.defaultOutputFilename == "filename.ext" )
9832 with expansion:
9833 "filename.ext" == "filename.ext"
9834
9835 -------------------------------------------------------------------------------
9836 Process can be configured on command line
9837 combinations
9838 Single character flags can be combined
9839 -------------------------------------------------------------------------------
9840 CmdLine.tests.cpp:<line number>
9841 ...............................................................................
9842
9843 CmdLine.tests.cpp:<line number>: PASSED:
9844 CHECK( cli.parse({"test", "-abe"}) )
9845 with expansion:
9846 {?}
9847
9848 CmdLine.tests.cpp:<line number>: PASSED:
9849 CHECK( config.abortAfter == 1 )
9850 with expansion:
9851 1 == 1
9852
9853 CmdLine.tests.cpp:<line number>: PASSED:
9854 CHECK( config.shouldDebugBreak )
9855 with expansion:
9856 true
9857
9858 CmdLine.tests.cpp:<line number>: PASSED:
9859 CHECK( config.noThrow == true )
9860 with expansion:
9861 true == true
9862
9863 -------------------------------------------------------------------------------
9864 Process can be configured on command line
9865 use-colour
9866 without option
9867 -------------------------------------------------------------------------------
9868 CmdLine.tests.cpp:<line number>
9869 ...............................................................................
9870
9871 CmdLine.tests.cpp:<line number>: PASSED:
9872 CHECK( cli.parse({"test"}) )
9873 with expansion:
9874 {?}
9875
9876 CmdLine.tests.cpp:<line number>: PASSED:
9877 REQUIRE( config.defaultColourMode == ColourMode::PlatformDefault )
9878 with expansion:
9879 0 == 0
9880
9881 -------------------------------------------------------------------------------
9882 Process can be configured on command line
9883 use-colour
9884 auto
9885 -------------------------------------------------------------------------------
9886 CmdLine.tests.cpp:<line number>
9887 ...............................................................................
9888
9889 CmdLine.tests.cpp:<line number>: PASSED:
9890 CHECK( cli.parse( { "test", "--colour-mode", "default" } ) )
9891 with expansion:
9892 {?}
9893
9894 CmdLine.tests.cpp:<line number>: PASSED:
9895 REQUIRE( config.defaultColourMode == ColourMode::PlatformDefault )
9896 with expansion:
9897 0 == 0
9898
9899 -------------------------------------------------------------------------------
9900 Process can be configured on command line
9901 use-colour
9902 yes
9903 -------------------------------------------------------------------------------
9904 CmdLine.tests.cpp:<line number>
9905 ...............................................................................
9906
9907 CmdLine.tests.cpp:<line number>: PASSED:
9908 CHECK( cli.parse({"test", "--colour-mode", "ansi"}) )
9909 with expansion:
9910 {?}
9911
9912 CmdLine.tests.cpp:<line number>: PASSED:
9913 REQUIRE( config.defaultColourMode == ColourMode::ANSI )
9914 with expansion:
9915 1 == 1
9916
9917 -------------------------------------------------------------------------------
9918 Process can be configured on command line
9919 use-colour
9920 no
9921 -------------------------------------------------------------------------------
9922 CmdLine.tests.cpp:<line number>
9923 ...............................................................................
9924
9925 CmdLine.tests.cpp:<line number>: PASSED:
9926 CHECK( cli.parse({"test", "--colour-mode", "none"}) )
9927 with expansion:
9928 {?}
9929
9930 CmdLine.tests.cpp:<line number>: PASSED:
9931 REQUIRE( config.defaultColourMode == ColourMode::None )
9932 with expansion:
9933 3 == 3
9934
9935 -------------------------------------------------------------------------------
9936 Process can be configured on command line
9937 use-colour
9938 error
9939 -------------------------------------------------------------------------------
9940 CmdLine.tests.cpp:<line number>
9941 ...............................................................................
9942
9943 CmdLine.tests.cpp:<line number>: PASSED:
9944 CHECK( !result )
9945 with expansion:
9946 true
9947
9948 CmdLine.tests.cpp:<line number>: PASSED:
9949 CHECK_THAT( result.errorMessage(), ContainsSubstring( "colour mode must be one of" ) )
9950 with expansion:
9951 "colour mode must be one of: default, ansi, win32, or none. 'wrong' is not
9952 recognised" contains: "colour mode must be one of"
9953
9954 -------------------------------------------------------------------------------
9955 Process can be configured on command line
9956 Benchmark options
9957 samples
9958 -------------------------------------------------------------------------------
9959 CmdLine.tests.cpp:<line number>
9960 ...............................................................................
9961
9962 CmdLine.tests.cpp:<line number>: PASSED:
9963 CHECK( cli.parse({ "test", "--benchmark-samples=200" }) )
9964 with expansion:
9965 {?}
9966
9967 CmdLine.tests.cpp:<line number>: PASSED:
9968 REQUIRE( config.benchmarkSamples == 200 )
9969 with expansion:
9970 200 == 200
9971
9972 -------------------------------------------------------------------------------
9973 Process can be configured on command line
9974 Benchmark options
9975 resamples
9976 -------------------------------------------------------------------------------
9977 CmdLine.tests.cpp:<line number>
9978 ...............................................................................
9979
9980 CmdLine.tests.cpp:<line number>: PASSED:
9981 CHECK( cli.parse({ "test", "--benchmark-resamples=20000" }) )
9982 with expansion:
9983 {?}
9984
9985 CmdLine.tests.cpp:<line number>: PASSED:
9986 REQUIRE( config.benchmarkResamples == 20000 )
9987 with expansion:
9988 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
9989
9990 -------------------------------------------------------------------------------
9991 Process can be configured on command line
9992 Benchmark options
9993 confidence-interval
9994 -------------------------------------------------------------------------------
9995 CmdLine.tests.cpp:<line number>
9996 ...............................................................................
9997
9998 CmdLine.tests.cpp:<line number>: PASSED:
9999 CHECK( cli.parse({ "test", "--benchmark-confidence-interval=0.99" }) )
10000 with expansion:
10001 {?}
10002
10003 CmdLine.tests.cpp:<line number>: PASSED:
10004 REQUIRE( config.benchmarkConfidenceInterval == Catch::Approx(0.99) )
10005 with expansion:
10006 0.98999999999999999
10007 ==
10008 Approx( 0.98999999999999999 )
10009
10010 -------------------------------------------------------------------------------
10011 Process can be configured on command line
10012 Benchmark options
10013 no-analysis
10014 -------------------------------------------------------------------------------
10015 CmdLine.tests.cpp:<line number>
10016 ...............................................................................
10017
10018 CmdLine.tests.cpp:<line number>: PASSED:
10019 CHECK( cli.parse({ "test", "--benchmark-no-analysis" }) )
10020 with expansion:
10021 {?}
10022
10023 CmdLine.tests.cpp:<line number>: PASSED:
10024 REQUIRE( config.benchmarkNoAnalysis )
10025 with expansion:
10026 true
10027
10028 -------------------------------------------------------------------------------
10029 Process can be configured on command line
10030 Benchmark options
10031 warmup-time
10032 -------------------------------------------------------------------------------
10033 CmdLine.tests.cpp:<line number>
10034 ...............................................................................
10035
10036 CmdLine.tests.cpp:<line number>: PASSED:
10037 CHECK( cli.parse({ "test", "--benchmark-warmup-time=10" }) )
10038 with expansion:
10039 {?}
10040
10041 CmdLine.tests.cpp:<line number>: PASSED:
10042 REQUIRE( config.benchmarkWarmupTime == 10 )
10043 with expansion:
10044 10 == 10
10045
10046 -------------------------------------------------------------------------------
10047 Product with differing arities - std::tuple<int, double, float>
10048 -------------------------------------------------------------------------------
10049 Misc.tests.cpp:<line number>
10050 ...............................................................................
10051
10052 Misc.tests.cpp:<line number>: PASSED:
10053 REQUIRE( std::tuple_size<TestType>::value >= 1 )
10054 with expansion:
10055 3 >= 1
10056
10057 -------------------------------------------------------------------------------
10058 Product with differing arities - std::tuple<int, double>
10059 -------------------------------------------------------------------------------
10060 Misc.tests.cpp:<line number>
10061 ...............................................................................
10062
10063 Misc.tests.cpp:<line number>: PASSED:
10064 REQUIRE( std::tuple_size<TestType>::value >= 1 )
10065 with expansion:
10066 2 >= 1
10067
10068 -------------------------------------------------------------------------------
10069 Product with differing arities - std::tuple<int>
10070 -------------------------------------------------------------------------------
10071 Misc.tests.cpp:<line number>
10072 ...............................................................................
10073
10074 Misc.tests.cpp:<line number>: PASSED:
10075 REQUIRE( std::tuple_size<TestType>::value >= 1 )
10076 with expansion:
10077 1 >= 1
10078
10079 -------------------------------------------------------------------------------
10080 Random seed generation accepts known methods
10081 -------------------------------------------------------------------------------
10082 RandomNumberGeneration.tests.cpp:<line number>
10083 ...............................................................................
10084
10085 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
10086 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
10087
10088 -------------------------------------------------------------------------------
10089 Random seed generation accepts known methods
10090 -------------------------------------------------------------------------------
10091 RandomNumberGeneration.tests.cpp:<line number>
10092 ...............................................................................
10093
10094 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
10095 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
10096
10097 -------------------------------------------------------------------------------
10098 Random seed generation accepts known methods
10099 -------------------------------------------------------------------------------
10100 RandomNumberGeneration.tests.cpp:<line number>
10101 ...............................................................................
10102
10103 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
10104 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
10105
10106 -------------------------------------------------------------------------------
10107 Random seed generation reports unknown methods
10108 -------------------------------------------------------------------------------
10109 RandomNumberGeneration.tests.cpp:<line number>
10110 ...............................................................................
10111
10112 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
10113 REQUIRE_THROWS( Catch::generateRandomSeed(static_cast<Catch::GenerateFrom>(77)) )
10114
10115 -------------------------------------------------------------------------------
10116 Range type with sentinel
10117 -------------------------------------------------------------------------------
10118 ToString.tests.cpp:<line number>
10119 ...............................................................................
10120
10121 ToString.tests.cpp:<line number>: PASSED:
10122 CHECK( Catch::Detail::stringify(UsesSentinel{}) == "{ }" )
10123 with expansion:
10124 "{ }" == "{ }"
10125
10126 -------------------------------------------------------------------------------
10127 Reconstruction should be based on stringification: #914
10128 -------------------------------------------------------------------------------
10129 Decomposition.tests.cpp:<line number>
10130 ...............................................................................
10131
10132 Decomposition.tests.cpp:<line number>: FAILED:
10133 CHECK( truthy(false) )
10134 with expansion:
10135 Hey, its truthy!
10136
10137 -------------------------------------------------------------------------------
10138 Regex string matcher
10139 -------------------------------------------------------------------------------
10140 Matchers.tests.cpp:<line number>
10141 ...............................................................................
10142
10143 Matchers.tests.cpp:<line number>: FAILED:
10144 CHECK_THAT( testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) )
10145 with expansion:
10146 "this string contains 'abc' as a substring" matches "this STRING contains
10147 'abc' as a substring" case sensitively
10148
10149 Matchers.tests.cpp:<line number>: FAILED:
10150 CHECK_THAT( testStringForMatching(), Matches( "contains 'abc' as a substring" ) )
10151 with expansion:
10152 "this string contains 'abc' as a substring" matches "contains 'abc' as a
10153 substring" case sensitively
10154
10155 Matchers.tests.cpp:<line number>: FAILED:
10156 CHECK_THAT( testStringForMatching(), Matches( "this string contains 'abc' as a" ) )
10157 with expansion:
10158 "this string contains 'abc' as a substring" matches "this string contains
10159 'abc' as a" case sensitively
10160
10161 -------------------------------------------------------------------------------
10162 Registering reporter with '::' in name fails
10163 -------------------------------------------------------------------------------
10164 Reporters.tests.cpp:<line number>
10165 ...............................................................................
10166
10167 Reporters.tests.cpp:<line number>: PASSED:
10168 REQUIRE_THROWS_WITH( registry.registerReporter( "with::doublecolons", Catch::Detail::make_unique<TestReporterFactory>() ), "'::' is not allowed in reporter name: 'with::doublecolons'" )
10169 with expansion:
10170 "'::' is not allowed in reporter name: 'with::doublecolons'" equals: "'::' is
10171 not allowed in reporter name: 'with::doublecolons'"
10172
10173 -------------------------------------------------------------------------------
10174 Regression test #1
10175 -------------------------------------------------------------------------------
10176 Matchers.tests.cpp:<line number>
10177 ...............................................................................
10178
10179 Matchers.tests.cpp:<line number>: PASSED:
10180 CHECK_THAT( actual, !UnorderedEquals( expected ) )
10181 with expansion:
10182 { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
10183
10184 -------------------------------------------------------------------------------
10185 Reporter's write listings to provided stream
10186 -------------------------------------------------------------------------------
10187 Reporters.tests.cpp:<line number>
10188 ...............................................................................
10189
10190 Reporters.tests.cpp:<line number>: PASSED:
10191 REQUIRE_FALSE( factories.empty() )
10192 with expansion:
10193 !false
10194
10195 -------------------------------------------------------------------------------
10196 Reporter's write listings to provided stream
10197 Automake reporter lists tags
10198 -------------------------------------------------------------------------------
10199 Reporters.tests.cpp:<line number>
10200 ...............................................................................
10201
10202 Reporters.tests.cpp:<line number>: PASSED:
10203 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10204 with expansion:
10205 "All available tags:
10206 1 [fakeTag]
10207 1 tag
10208
10209 " contains: "fakeTag"
10210 with message:
10211 Tested reporter: Automake
10212
10213 -------------------------------------------------------------------------------
10214 Reporter's write listings to provided stream
10215 -------------------------------------------------------------------------------
10216 Reporters.tests.cpp:<line number>
10217 ...............................................................................
10218
10219 Reporters.tests.cpp:<line number>: PASSED:
10220 REQUIRE_FALSE( factories.empty() )
10221 with expansion:
10222 !false
10223
10224 -------------------------------------------------------------------------------
10225 Reporter's write listings to provided stream
10226 Automake reporter lists reporters
10227 -------------------------------------------------------------------------------
10228 Reporters.tests.cpp:<line number>
10229 ...............................................................................
10230
10231 Reporters.tests.cpp:<line number>: PASSED:
10232 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10233 with expansion:
10234 "Available reporters:
10235 fake reporter: fake description
10236
10237 " contains: "fake reporter"
10238 with message:
10239 Tested reporter: Automake
10240
10241 -------------------------------------------------------------------------------
10242 Reporter's write listings to provided stream
10243 -------------------------------------------------------------------------------
10244 Reporters.tests.cpp:<line number>
10245 ...............................................................................
10246
10247 Reporters.tests.cpp:<line number>: PASSED:
10248 REQUIRE_FALSE( factories.empty() )
10249 with expansion:
10250 !false
10251
10252 -------------------------------------------------------------------------------
10253 Reporter's write listings to provided stream
10254 Automake reporter lists tests
10255 -------------------------------------------------------------------------------
10256 Reporters.tests.cpp:<line number>
10257 ...............................................................................
10258
10259 Reporters.tests.cpp:<line number>: PASSED:
10260 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10261 with expansion:
10262 "All available test cases:
10263 fake test name
10264 [fakeTestTag]
10265 1 test case
10266
10267 " ( contains: "fake test name" and contains: "fakeTestTag" )
10268 with message:
10269 Tested reporter: Automake
10270
10271 -------------------------------------------------------------------------------
10272 Reporter's write listings to provided stream
10273 -------------------------------------------------------------------------------
10274 Reporters.tests.cpp:<line number>
10275 ...............................................................................
10276
10277 Reporters.tests.cpp:<line number>: PASSED:
10278 REQUIRE_FALSE( factories.empty() )
10279 with expansion:
10280 !false
10281
10282 -------------------------------------------------------------------------------
10283 Reporter's write listings to provided stream
10284 compact reporter lists tags
10285 -------------------------------------------------------------------------------
10286 Reporters.tests.cpp:<line number>
10287 ...............................................................................
10288
10289 Reporters.tests.cpp:<line number>: PASSED:
10290 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10291 with expansion:
10292 "All available tags:
10293 1 [fakeTag]
10294 1 tag
10295
10296 " contains: "fakeTag"
10297 with message:
10298 Tested reporter: compact
10299
10300 -------------------------------------------------------------------------------
10301 Reporter's write listings to provided stream
10302 -------------------------------------------------------------------------------
10303 Reporters.tests.cpp:<line number>
10304 ...............................................................................
10305
10306 Reporters.tests.cpp:<line number>: PASSED:
10307 REQUIRE_FALSE( factories.empty() )
10308 with expansion:
10309 !false
10310
10311 -------------------------------------------------------------------------------
10312 Reporter's write listings to provided stream
10313 compact reporter lists reporters
10314 -------------------------------------------------------------------------------
10315 Reporters.tests.cpp:<line number>
10316 ...............................................................................
10317
10318 Reporters.tests.cpp:<line number>: PASSED:
10319 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10320 with expansion:
10321 "Available reporters:
10322 fake reporter: fake description
10323
10324 " contains: "fake reporter"
10325 with message:
10326 Tested reporter: compact
10327
10328 -------------------------------------------------------------------------------
10329 Reporter's write listings to provided stream
10330 -------------------------------------------------------------------------------
10331 Reporters.tests.cpp:<line number>
10332 ...............................................................................
10333
10334 Reporters.tests.cpp:<line number>: PASSED:
10335 REQUIRE_FALSE( factories.empty() )
10336 with expansion:
10337 !false
10338
10339 -------------------------------------------------------------------------------
10340 Reporter's write listings to provided stream
10341 compact reporter lists tests
10342 -------------------------------------------------------------------------------
10343 Reporters.tests.cpp:<line number>
10344 ...............................................................................
10345
10346 Reporters.tests.cpp:<line number>: PASSED:
10347 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10348 with expansion:
10349 "All available test cases:
10350 fake test name
10351 [fakeTestTag]
10352 1 test case
10353
10354 " ( contains: "fake test name" and contains: "fakeTestTag" )
10355 with message:
10356 Tested reporter: compact
10357
10358 -------------------------------------------------------------------------------
10359 Reporter's write listings to provided stream
10360 -------------------------------------------------------------------------------
10361 Reporters.tests.cpp:<line number>
10362 ...............................................................................
10363
10364 Reporters.tests.cpp:<line number>: PASSED:
10365 REQUIRE_FALSE( factories.empty() )
10366 with expansion:
10367 !false
10368
10369 -------------------------------------------------------------------------------
10370 Reporter's write listings to provided stream
10371 console reporter lists tags
10372 -------------------------------------------------------------------------------
10373 Reporters.tests.cpp:<line number>
10374 ...............................................................................
10375
10376 Reporters.tests.cpp:<line number>: PASSED:
10377 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10378 with expansion:
10379 "All available tags:
10380 1 [fakeTag]
10381 1 tag
10382
10383 " contains: "fakeTag"
10384 with message:
10385 Tested reporter: console
10386
10387 -------------------------------------------------------------------------------
10388 Reporter's write listings to provided stream
10389 -------------------------------------------------------------------------------
10390 Reporters.tests.cpp:<line number>
10391 ...............................................................................
10392
10393 Reporters.tests.cpp:<line number>: PASSED:
10394 REQUIRE_FALSE( factories.empty() )
10395 with expansion:
10396 !false
10397
10398 -------------------------------------------------------------------------------
10399 Reporter's write listings to provided stream
10400 console reporter lists reporters
10401 -------------------------------------------------------------------------------
10402 Reporters.tests.cpp:<line number>
10403 ...............................................................................
10404
10405 Reporters.tests.cpp:<line number>: PASSED:
10406 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10407 with expansion:
10408 "Available reporters:
10409 fake reporter: fake description
10410
10411 " contains: "fake reporter"
10412 with message:
10413 Tested reporter: console
10414
10415 -------------------------------------------------------------------------------
10416 Reporter's write listings to provided stream
10417 -------------------------------------------------------------------------------
10418 Reporters.tests.cpp:<line number>
10419 ...............................................................................
10420
10421 Reporters.tests.cpp:<line number>: PASSED:
10422 REQUIRE_FALSE( factories.empty() )
10423 with expansion:
10424 !false
10425
10426 -------------------------------------------------------------------------------
10427 Reporter's write listings to provided stream
10428 console reporter lists tests
10429 -------------------------------------------------------------------------------
10430 Reporters.tests.cpp:<line number>
10431 ...............................................................................
10432
10433 Reporters.tests.cpp:<line number>: PASSED:
10434 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10435 with expansion:
10436 "All available test cases:
10437 fake test name
10438 [fakeTestTag]
10439 1 test case
10440
10441 " ( contains: "fake test name" and contains: "fakeTestTag" )
10442 with message:
10443 Tested reporter: console
10444
10445 -------------------------------------------------------------------------------
10446 Reporter's write listings to provided stream
10447 -------------------------------------------------------------------------------
10448 Reporters.tests.cpp:<line number>
10449 ...............................................................................
10450
10451 Reporters.tests.cpp:<line number>: PASSED:
10452 REQUIRE_FALSE( factories.empty() )
10453 with expansion:
10454 !false
10455
10456 -------------------------------------------------------------------------------
10457 Reporter's write listings to provided stream
10458 JSON reporter lists tags
10459 -------------------------------------------------------------------------------
10460 Reporters.tests.cpp:<line number>
10461 ...............................................................................
10462
10463 Reporters.tests.cpp:<line number>: PASSED:
10464 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10465 with expansion:
10466 "{
10467 "version": 1,
10468 "metadata": {
10469 "name": "",
10470 "rng-seed": 1234,
10471 "catch2-version": "<version>"
10472 },
10473 "listings": {
10474 "tags": [
10475 {
10476 "aliases": [
10477 "fakeTag"
10478 ],
10479 "count": 1
10480 }
10481 ]" contains: "fakeTag"
10482 with message:
10483 Tested reporter: JSON
10484
10485 -------------------------------------------------------------------------------
10486 Reporter's write listings to provided stream
10487 -------------------------------------------------------------------------------
10488 Reporters.tests.cpp:<line number>
10489 ...............................................................................
10490
10491 Reporters.tests.cpp:<line number>: PASSED:
10492 REQUIRE_FALSE( factories.empty() )
10493 with expansion:
10494 !false
10495
10496 -------------------------------------------------------------------------------
10497 Reporter's write listings to provided stream
10498 JSON reporter lists reporters
10499 -------------------------------------------------------------------------------
10500 Reporters.tests.cpp:<line number>
10501 ...............................................................................
10502
10503 Reporters.tests.cpp:<line number>: PASSED:
10504 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10505 with expansion:
10506 "{
10507 "version": 1,
10508 "metadata": {
10509 "name": "",
10510 "rng-seed": 1234,
10511 "catch2-version": "<version>"
10512 },
10513 "listings": {
10514 "reporters": [
10515 {
10516 "name": "fake reporter",
10517 "description": "fake description"
10518 }
10519 ]" contains: "fake reporter"
10520 with message:
10521 Tested reporter: JSON
10522
10523 -------------------------------------------------------------------------------
10524 Reporter's write listings to provided stream
10525 -------------------------------------------------------------------------------
10526 Reporters.tests.cpp:<line number>
10527 ...............................................................................
10528
10529 Reporters.tests.cpp:<line number>: PASSED:
10530 REQUIRE_FALSE( factories.empty() )
10531 with expansion:
10532 !false
10533
10534 -------------------------------------------------------------------------------
10535 Reporter's write listings to provided stream
10536 JSON reporter lists tests
10537 -------------------------------------------------------------------------------
10538 Reporters.tests.cpp:<line number>
10539 ...............................................................................
10540
10541 Reporters.tests.cpp:<line number>: PASSED:
10542 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10543 with expansion:
10544 "{
10545 "version": 1,
10546 "metadata": {
10547 "name": "",
10548 "rng-seed": 1234,
10549 "catch2-version": "<version>"
10550 },
10551 "listings": {
10552 "tests": [
10553 {
10554 "name": "fake test name",
10555 "class-name": "",
10556 "tags": [
10557 "fakeTestTag"
10558 ],
10559 "source-location": {
10560 "filename": "fake-file.cpp",
10561 "line": 123456789
10562 }
10563 }
10564 ]" ( contains: "fake test name" and contains: "fakeTestTag" )
10565 with message:
10566 Tested reporter: JSON
10567
10568 -------------------------------------------------------------------------------
10569 Reporter's write listings to provided stream
10570 -------------------------------------------------------------------------------
10571 Reporters.tests.cpp:<line number>
10572 ...............................................................................
10573
10574 Reporters.tests.cpp:<line number>: PASSED:
10575 REQUIRE_FALSE( factories.empty() )
10576 with expansion:
10577 !false
10578
10579 -------------------------------------------------------------------------------
10580 Reporter's write listings to provided stream
10581 JUnit reporter lists tags
10582 -------------------------------------------------------------------------------
10583 Reporters.tests.cpp:<line number>
10584 ...............................................................................
10585
10586 Reporters.tests.cpp:<line number>: PASSED:
10587 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10588 with expansion:
10589 "<?xml version="1.0" encoding="UTF-8"?>
10590 All available tags:
10591 1 [fakeTag]
10592 1 tag
10593
10594 " contains: "fakeTag"
10595 with message:
10596 Tested reporter: JUnit
10597
10598 -------------------------------------------------------------------------------
10599 Reporter's write listings to provided stream
10600 -------------------------------------------------------------------------------
10601 Reporters.tests.cpp:<line number>
10602 ...............................................................................
10603
10604 Reporters.tests.cpp:<line number>: PASSED:
10605 REQUIRE_FALSE( factories.empty() )
10606 with expansion:
10607 !false
10608
10609 -------------------------------------------------------------------------------
10610 Reporter's write listings to provided stream
10611 JUnit reporter lists reporters
10612 -------------------------------------------------------------------------------
10613 Reporters.tests.cpp:<line number>
10614 ...............................................................................
10615
10616 Reporters.tests.cpp:<line number>: PASSED:
10617 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10618 with expansion:
10619 "<?xml version="1.0" encoding="UTF-8"?>
10620 Available reporters:
10621 fake reporter: fake description
10622
10623 " contains: "fake reporter"
10624 with message:
10625 Tested reporter: JUnit
10626
10627 -------------------------------------------------------------------------------
10628 Reporter's write listings to provided stream
10629 -------------------------------------------------------------------------------
10630 Reporters.tests.cpp:<line number>
10631 ...............................................................................
10632
10633 Reporters.tests.cpp:<line number>: PASSED:
10634 REQUIRE_FALSE( factories.empty() )
10635 with expansion:
10636 !false
10637
10638 -------------------------------------------------------------------------------
10639 Reporter's write listings to provided stream
10640 JUnit reporter lists tests
10641 -------------------------------------------------------------------------------
10642 Reporters.tests.cpp:<line number>
10643 ...............................................................................
10644
10645 Reporters.tests.cpp:<line number>: PASSED:
10646 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10647 with expansion:
10648 "<?xml version="1.0" encoding="UTF-8"?>
10649 All available test cases:
10650 fake test name
10651 [fakeTestTag]
10652 1 test case
10653
10654 " ( contains: "fake test name" and contains: "fakeTestTag" )
10655 with message:
10656 Tested reporter: JUnit
10657
10658 -------------------------------------------------------------------------------
10659 Reporter's write listings to provided stream
10660 -------------------------------------------------------------------------------
10661 Reporters.tests.cpp:<line number>
10662 ...............................................................................
10663
10664 Reporters.tests.cpp:<line number>: PASSED:
10665 REQUIRE_FALSE( factories.empty() )
10666 with expansion:
10667 !false
10668
10669 -------------------------------------------------------------------------------
10670 Reporter's write listings to provided stream
10671 SonarQube reporter lists tags
10672 -------------------------------------------------------------------------------
10673 Reporters.tests.cpp:<line number>
10674 ...............................................................................
10675
10676 Reporters.tests.cpp:<line number>: PASSED:
10677 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10678 with expansion:
10679 "<?xml version="1.0" encoding="UTF-8"?>
10680 All available tags:
10681 1 [fakeTag]
10682 1 tag
10683
10684 " contains: "fakeTag"
10685 with message:
10686 Tested reporter: SonarQube
10687
10688 -------------------------------------------------------------------------------
10689 Reporter's write listings to provided stream
10690 -------------------------------------------------------------------------------
10691 Reporters.tests.cpp:<line number>
10692 ...............................................................................
10693
10694 Reporters.tests.cpp:<line number>: PASSED:
10695 REQUIRE_FALSE( factories.empty() )
10696 with expansion:
10697 !false
10698
10699 -------------------------------------------------------------------------------
10700 Reporter's write listings to provided stream
10701 SonarQube reporter lists reporters
10702 -------------------------------------------------------------------------------
10703 Reporters.tests.cpp:<line number>
10704 ...............................................................................
10705
10706 Reporters.tests.cpp:<line number>: PASSED:
10707 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10708 with expansion:
10709 "<?xml version="1.0" encoding="UTF-8"?>
10710 Available reporters:
10711 fake reporter: fake description
10712
10713 " contains: "fake reporter"
10714 with message:
10715 Tested reporter: SonarQube
10716
10717 -------------------------------------------------------------------------------
10718 Reporter's write listings to provided stream
10719 -------------------------------------------------------------------------------
10720 Reporters.tests.cpp:<line number>
10721 ...............................................................................
10722
10723 Reporters.tests.cpp:<line number>: PASSED:
10724 REQUIRE_FALSE( factories.empty() )
10725 with expansion:
10726 !false
10727
10728 -------------------------------------------------------------------------------
10729 Reporter's write listings to provided stream
10730 SonarQube reporter lists tests
10731 -------------------------------------------------------------------------------
10732 Reporters.tests.cpp:<line number>
10733 ...............................................................................
10734
10735 Reporters.tests.cpp:<line number>: PASSED:
10736 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10737 with expansion:
10738 "<?xml version="1.0" encoding="UTF-8"?>
10739 All available test cases:
10740 fake test name
10741 [fakeTestTag]
10742 1 test case
10743
10744 " ( contains: "fake test name" and contains: "fakeTestTag" )
10745 with message:
10746 Tested reporter: SonarQube
10747
10748 -------------------------------------------------------------------------------
10749 Reporter's write listings to provided stream
10750 -------------------------------------------------------------------------------
10751 Reporters.tests.cpp:<line number>
10752 ...............................................................................
10753
10754 Reporters.tests.cpp:<line number>: PASSED:
10755 REQUIRE_FALSE( factories.empty() )
10756 with expansion:
10757 !false
10758
10759 -------------------------------------------------------------------------------
10760 Reporter's write listings to provided stream
10761 TAP reporter lists tags
10762 -------------------------------------------------------------------------------
10763 Reporters.tests.cpp:<line number>
10764 ...............................................................................
10765
10766 Reporters.tests.cpp:<line number>: PASSED:
10767 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10768 with expansion:
10769 "All available tags:
10770 1 [fakeTag]
10771 1 tag
10772
10773 " contains: "fakeTag"
10774 with message:
10775 Tested reporter: TAP
10776
10777 -------------------------------------------------------------------------------
10778 Reporter's write listings to provided stream
10779 -------------------------------------------------------------------------------
10780 Reporters.tests.cpp:<line number>
10781 ...............................................................................
10782
10783 Reporters.tests.cpp:<line number>: PASSED:
10784 REQUIRE_FALSE( factories.empty() )
10785 with expansion:
10786 !false
10787
10788 -------------------------------------------------------------------------------
10789 Reporter's write listings to provided stream
10790 TAP reporter lists reporters
10791 -------------------------------------------------------------------------------
10792 Reporters.tests.cpp:<line number>
10793 ...............................................................................
10794
10795 Reporters.tests.cpp:<line number>: PASSED:
10796 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10797 with expansion:
10798 "Available reporters:
10799 fake reporter: fake description
10800
10801 " contains: "fake reporter"
10802 with message:
10803 Tested reporter: TAP
10804
10805 -------------------------------------------------------------------------------
10806 Reporter's write listings to provided stream
10807 -------------------------------------------------------------------------------
10808 Reporters.tests.cpp:<line number>
10809 ...............................................................................
10810
10811 Reporters.tests.cpp:<line number>: PASSED:
10812 REQUIRE_FALSE( factories.empty() )
10813 with expansion:
10814 !false
10815
10816 -------------------------------------------------------------------------------
10817 Reporter's write listings to provided stream
10818 TAP reporter lists tests
10819 -------------------------------------------------------------------------------
10820 Reporters.tests.cpp:<line number>
10821 ...............................................................................
10822
10823 Reporters.tests.cpp:<line number>: PASSED:
10824 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10825 with expansion:
10826 "All available test cases:
10827 fake test name
10828 [fakeTestTag]
10829 1 test case
10830
10831 " ( contains: "fake test name" and contains: "fakeTestTag" )
10832 with message:
10833 Tested reporter: TAP
10834
10835 -------------------------------------------------------------------------------
10836 Reporter's write listings to provided stream
10837 -------------------------------------------------------------------------------
10838 Reporters.tests.cpp:<line number>
10839 ...............................................................................
10840
10841 Reporters.tests.cpp:<line number>: PASSED:
10842 REQUIRE_FALSE( factories.empty() )
10843 with expansion:
10844 !false
10845
10846 -------------------------------------------------------------------------------
10847 Reporter's write listings to provided stream
10848 TeamCity reporter lists tags
10849 -------------------------------------------------------------------------------
10850 Reporters.tests.cpp:<line number>
10851 ...............................................................................
10852
10853 Reporters.tests.cpp:<line number>: PASSED:
10854 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10855 with expansion:
10856 "All available tags:
10857 1 [fakeTag]
10858 1 tag
10859
10860 " contains: "fakeTag"
10861 with message:
10862 Tested reporter: TeamCity
10863
10864 -------------------------------------------------------------------------------
10865 Reporter's write listings to provided stream
10866 -------------------------------------------------------------------------------
10867 Reporters.tests.cpp:<line number>
10868 ...............................................................................
10869
10870 Reporters.tests.cpp:<line number>: PASSED:
10871 REQUIRE_FALSE( factories.empty() )
10872 with expansion:
10873 !false
10874
10875 -------------------------------------------------------------------------------
10876 Reporter's write listings to provided stream
10877 TeamCity reporter lists reporters
10878 -------------------------------------------------------------------------------
10879 Reporters.tests.cpp:<line number>
10880 ...............................................................................
10881
10882 Reporters.tests.cpp:<line number>: PASSED:
10883 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10884 with expansion:
10885 "Available reporters:
10886 fake reporter: fake description
10887
10888 " contains: "fake reporter"
10889 with message:
10890 Tested reporter: TeamCity
10891
10892 -------------------------------------------------------------------------------
10893 Reporter's write listings to provided stream
10894 -------------------------------------------------------------------------------
10895 Reporters.tests.cpp:<line number>
10896 ...............................................................................
10897
10898 Reporters.tests.cpp:<line number>: PASSED:
10899 REQUIRE_FALSE( factories.empty() )
10900 with expansion:
10901 !false
10902
10903 -------------------------------------------------------------------------------
10904 Reporter's write listings to provided stream
10905 TeamCity reporter lists tests
10906 -------------------------------------------------------------------------------
10907 Reporters.tests.cpp:<line number>
10908 ...............................................................................
10909
10910 Reporters.tests.cpp:<line number>: PASSED:
10911 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10912 with expansion:
10913 "All available test cases:
10914 fake test name
10915 [fakeTestTag]
10916 1 test case
10917
10918 " ( contains: "fake test name" and contains: "fakeTestTag" )
10919 with message:
10920 Tested reporter: TeamCity
10921
10922 -------------------------------------------------------------------------------
10923 Reporter's write listings to provided stream
10924 -------------------------------------------------------------------------------
10925 Reporters.tests.cpp:<line number>
10926 ...............................................................................
10927
10928 Reporters.tests.cpp:<line number>: PASSED:
10929 REQUIRE_FALSE( factories.empty() )
10930 with expansion:
10931 !false
10932
10933 -------------------------------------------------------------------------------
10934 Reporter's write listings to provided stream
10935 XML reporter lists tags
10936 -------------------------------------------------------------------------------
10937 Reporters.tests.cpp:<line number>
10938 ...............................................................................
10939
10940 Reporters.tests.cpp:<line number>: PASSED:
10941 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10942 with expansion:
10943 "<?xml version="1.0" encoding="UTF-8"?>
10944 <TagsFromMatchingTests>
10945 <Tag>
10946 <Count>1</Count>
10947 <Aliases>
10948 <Alias>fakeTag</Alias>
10949 </Aliases>
10950 </Tag>
10951 </TagsFromMatchingTests>" contains: "fakeTag"
10952 with message:
10953 Tested reporter: XML
10954
10955 -------------------------------------------------------------------------------
10956 Reporter's write listings to provided stream
10957 -------------------------------------------------------------------------------
10958 Reporters.tests.cpp:<line number>
10959 ...............................................................................
10960
10961 Reporters.tests.cpp:<line number>: PASSED:
10962 REQUIRE_FALSE( factories.empty() )
10963 with expansion:
10964 !false
10965
10966 -------------------------------------------------------------------------------
10967 Reporter's write listings to provided stream
10968 XML reporter lists reporters
10969 -------------------------------------------------------------------------------
10970 Reporters.tests.cpp:<line number>
10971 ...............................................................................
10972
10973 Reporters.tests.cpp:<line number>: PASSED:
10974 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10975 with expansion:
10976 "<?xml version="1.0" encoding="UTF-8"?>
10977 <AvailableReporters>
10978 <Reporter>
10979 <Name>fake reporter</Name>
10980 <Description>fake description</Description>
10981 </Reporter>
10982 </AvailableReporters>" contains: "fake reporter"
10983 with message:
10984 Tested reporter: XML
10985
10986 -------------------------------------------------------------------------------
10987 Reporter's write listings to provided stream
10988 -------------------------------------------------------------------------------
10989 Reporters.tests.cpp:<line number>
10990 ...............................................................................
10991
10992 Reporters.tests.cpp:<line number>: PASSED:
10993 REQUIRE_FALSE( factories.empty() )
10994 with expansion:
10995 !false
10996
10997 -------------------------------------------------------------------------------
10998 Reporter's write listings to provided stream
10999 XML reporter lists tests
11000 -------------------------------------------------------------------------------
11001 Reporters.tests.cpp:<line number>
11002 ...............................................................................
11003
11004 Reporters.tests.cpp:<line number>: PASSED:
11005 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
11006 with expansion:
11007 "<?xml version="1.0" encoding="UTF-8"?>
11008 <MatchingTests>
11009 <TestCase>
11010 <Name>fake test name</Name>
11011 <ClassName/>
11012 <Tags>[fakeTestTag]</Tags>
11013 <SourceInfo>
11014 <File>fake-file.cpp</File>
11015 <Line>123456789</Line>
11016 </SourceInfo>
11017 </TestCase>
11018 </MatchingTests>" ( contains: "fake test name" and contains: "fakeTestTag" )
11019 with message:
11020 Tested reporter: XML
11021
11022 -------------------------------------------------------------------------------
11023 Reproducer for #2309 - a very long description past 80 chars (default console
11024 width) with a late colon : blablabla
11025 -------------------------------------------------------------------------------
11026 Reporters.tests.cpp:<line number>
11027 ...............................................................................
11028
11029 Reporters.tests.cpp:<line number>: PASSED:
11030
11031 -------------------------------------------------------------------------------
11032 SUCCEED counts as a test pass
11033 -------------------------------------------------------------------------------
11034 Message.tests.cpp:<line number>
11035 ...............................................................................
11036
11037 Message.tests.cpp:<line number>: PASSED:
11038 with message:
11039 this is a success
11040
11041 -------------------------------------------------------------------------------
11042 SUCCEED does not require an argument
11043 -------------------------------------------------------------------------------
11044 Message.tests.cpp:<line number>
11045 ...............................................................................
11046
11047 Message.tests.cpp:<line number>: PASSED:
11048
11049 -------------------------------------------------------------------------------
11050 Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
11051 methods
11052 Given: No operations precede me
11053 -------------------------------------------------------------------------------
11054 BDD.tests.cpp:<line number>
11055 ...............................................................................
11056
11057 BDD.tests.cpp:<line number>: PASSED:
11058 REQUIRE( before == 0 )
11059 with expansion:
11060 0 == 0
11061
11062 -------------------------------------------------------------------------------
11063 Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
11064 methods
11065 Given: No operations precede me
11066 When: We get the count
11067 Then: Subsequently values are higher
11068 -------------------------------------------------------------------------------
11069 BDD.tests.cpp:<line number>
11070 ...............................................................................
11071
11072 BDD.tests.cpp:<line number>: PASSED:
11073 REQUIRE( after > before )
11074 with expansion:
11075 1 > 0
11076
11077 -------------------------------------------------------------------------------
11078 Scenario: Do that thing with the thing
11079 Given: This stuff exists
11080 And given: And some assumption
11081 When: I do this
11082 Then: it should do this
11083 -------------------------------------------------------------------------------
11084 BDD.tests.cpp:<line number>
11085 ...............................................................................
11086
11087 BDD.tests.cpp:<line number>: PASSED:
11088 REQUIRE( itDoesThis() )
11089 with expansion:
11090 true
11091
11092 -------------------------------------------------------------------------------
11093 Scenario: Do that thing with the thing
11094 Given: This stuff exists
11095 And given: And some assumption
11096 When: I do this
11097 Then: it should do this
11098 And: do that
11099 -------------------------------------------------------------------------------
11100 BDD.tests.cpp:<line number>
11101 ...............................................................................
11102
11103 BDD.tests.cpp:<line number>: PASSED:
11104 REQUIRE( itDoesThat() )
11105 with expansion:
11106 true
11107
11108 -------------------------------------------------------------------------------
11109 Scenario: This is a really long scenario name to see how the list command deals
11110 with wrapping
11111 Given: A section name that is so long that it cannot fit in a single
11112 console width
11113 When: The test headers are printed as part of the normal running of the
11114 scenario
11115 Then: The, deliberately very long and overly verbose (you see what I did
11116 there?) section names must wrap, along with an indent
11117 -------------------------------------------------------------------------------
11118 BDD.tests.cpp:<line number>
11119 ...............................................................................
11120
11121 BDD.tests.cpp:<line number>: PASSED:
11122 with message:
11123 boo!
11124
11125 -------------------------------------------------------------------------------
11126 Scenario: Vector resizing affects size and capacity
11127 Given: an empty vector
11128 -------------------------------------------------------------------------------
11129 BDD.tests.cpp:<line number>
11130 ...............................................................................
11131
11132 BDD.tests.cpp:<line number>: PASSED:
11133 REQUIRE( v.size() == 0 )
11134 with expansion:
11135 0 == 0
11136
11137 -------------------------------------------------------------------------------
11138 Scenario: Vector resizing affects size and capacity
11139 Given: an empty vector
11140 When: it is made larger
11141 Then: the size and capacity go up
11142 -------------------------------------------------------------------------------
11143 BDD.tests.cpp:<line number>
11144 ...............................................................................
11145
11146 BDD.tests.cpp:<line number>: PASSED:
11147 REQUIRE( v.size() == 10 )
11148 with expansion:
11149 10 == 10
11150
11151 BDD.tests.cpp:<line number>: PASSED:
11152 REQUIRE( v.capacity() >= 10 )
11153 with expansion:
11154 10 >= 10
11155
11156 -------------------------------------------------------------------------------
11157 Scenario: Vector resizing affects size and capacity
11158 Given: an empty vector
11159 When: it is made larger
11160 Then: the size and capacity go up
11161 And when: it is made smaller again
11162 Then: the size goes down but the capacity stays the same
11163 -------------------------------------------------------------------------------
11164 BDD.tests.cpp:<line number>
11165 ...............................................................................
11166
11167 BDD.tests.cpp:<line number>: PASSED:
11168 REQUIRE( v.size() == 5 )
11169 with expansion:
11170 5 == 5
11171
11172 BDD.tests.cpp:<line number>: PASSED:
11173 REQUIRE( v.capacity() >= 10 )
11174 with expansion:
11175 10 >= 10
11176
11177 -------------------------------------------------------------------------------
11178 Scenario: Vector resizing affects size and capacity
11179 Given: an empty vector
11180 -------------------------------------------------------------------------------
11181 BDD.tests.cpp:<line number>
11182 ...............................................................................
11183
11184 BDD.tests.cpp:<line number>: PASSED:
11185 REQUIRE( v.size() == 0 )
11186 with expansion:
11187 0 == 0
11188
11189 -------------------------------------------------------------------------------
11190 Scenario: Vector resizing affects size and capacity
11191 Given: an empty vector
11192 When: we reserve more space
11193 Then: The capacity is increased but the size remains the same
11194 -------------------------------------------------------------------------------
11195 BDD.tests.cpp:<line number>
11196 ...............................................................................
11197
11198 BDD.tests.cpp:<line number>: PASSED:
11199 REQUIRE( v.capacity() >= 10 )
11200 with expansion:
11201 10 >= 10
11202
11203 BDD.tests.cpp:<line number>: PASSED:
11204 REQUIRE( v.size() == 0 )
11205 with expansion:
11206 0 == 0
11207
11208 -------------------------------------------------------------------------------
11209 Scoped message applies to all assertions in scope
11210 -------------------------------------------------------------------------------
11211 Message.tests.cpp:<line number>
11212 ...............................................................................
11213
11214 Message.tests.cpp:<line number>: FAILED:
11215 CHECK( false )
11216 with message:
11217 This will be reported multiple times
11218
11219 Message.tests.cpp:<line number>: FAILED:
11220 CHECK( false )
11221 with message:
11222 This will be reported multiple times
11223
11224 -------------------------------------------------------------------------------
11225 Scoped messages do not leave block with an exception
11226 -------------------------------------------------------------------------------
11227 Message.tests.cpp:<line number>
11228 ...............................................................................
11229
11230 Message.tests.cpp:<line number>: FAILED:
11231 REQUIRE( false )
11232 with message:
11233 Should be in scope at the end
11234
11235 -------------------------------------------------------------------------------
11236 Scoped messages outlive section end
11237 Dummy section
11238 -------------------------------------------------------------------------------
11239 Message.tests.cpp:<line number>
11240 ...............................................................................
11241
11242 Message.tests.cpp:<line number>: PASSED:
11243 CHECK( true )
11244 with message:
11245 Should survive a section end
11246
11247 -------------------------------------------------------------------------------
11248 Scoped messages outlive section end
11249 -------------------------------------------------------------------------------
11250 Message.tests.cpp:<line number>
11251 ...............................................................................
11252
11253 Message.tests.cpp:<line number>: FAILED:
11254 REQUIRE( false )
11255 with message:
11256 Should survive a section end
11257
11258 -------------------------------------------------------------------------------
11259 Sends stuff to stdout and stderr
11260 -------------------------------------------------------------------------------
11261 Misc.tests.cpp:<line number>
11262 ...............................................................................
11263
11264
11265 No assertions in test case 'Sends stuff to stdout and stderr'
11266
11267 -------------------------------------------------------------------------------
11268 Some simple comparisons between doubles
11269 -------------------------------------------------------------------------------
11270 Approx.tests.cpp:<line number>
11271 ...............................................................................
11272
11273 Approx.tests.cpp:<line number>: PASSED:
11274 REQUIRE( d == Approx( 1.23 ) )
11275 with expansion:
11276 1.22999999999999998
11277 ==
11278 Approx( 1.22999999999999998 )
11279
11280 Approx.tests.cpp:<line number>: PASSED:
11281 REQUIRE( d != Approx( 1.22 ) )
11282 with expansion:
11283 1.22999999999999998
11284 !=
11285 Approx( 1.21999999999999997 )
11286
11287 Approx.tests.cpp:<line number>: PASSED:
11288 REQUIRE( d != Approx( 1.24 ) )
11289 with expansion:
11290 1.22999999999999998
11291 !=
11292 Approx( 1.23999999999999999 )
11293
11294 Approx.tests.cpp:<line number>: PASSED:
11295 REQUIRE( d == 1.23_a )
11296 with expansion:
11297 1.22999999999999998
11298 ==
11299 Approx( 1.22999999999999998 )
11300
11301 Approx.tests.cpp:<line number>: PASSED:
11302 REQUIRE( d != 1.22_a )
11303 with expansion:
11304 1.22999999999999998
11305 !=
11306 Approx( 1.21999999999999997 )
11307
11308 Approx.tests.cpp:<line number>: PASSED:
11309 REQUIRE( Approx( d ) == 1.23 )
11310 with expansion:
11311 Approx( 1.22999999999999998 )
11312 ==
11313 1.22999999999999998
11314
11315 Approx.tests.cpp:<line number>: PASSED:
11316 REQUIRE( Approx( d ) != 1.22 )
11317 with expansion:
11318 Approx( 1.22999999999999998 )
11319 !=
11320 1.21999999999999997
11321
11322 Approx.tests.cpp:<line number>: PASSED:
11323 REQUIRE( Approx( d ) != 1.24 )
11324 with expansion:
11325 Approx( 1.22999999999999998 )
11326 !=
11327 1.23999999999999999
11328
11329 -------------------------------------------------------------------------------
11330 Standard output from all sections is reported
11331 one
11332 -------------------------------------------------------------------------------
11333 Message.tests.cpp:<line number>
11334 ...............................................................................
11335
11336
11337 No assertions in section 'one'
11338
11339 -------------------------------------------------------------------------------
11340 Standard output from all sections is reported
11341 two
11342 -------------------------------------------------------------------------------
11343 Message.tests.cpp:<line number>
11344 ...............................................................................
11345
11346
11347 No assertions in section 'two'
11348
11349 -------------------------------------------------------------------------------
11350 StartsWith string matcher
11351 -------------------------------------------------------------------------------
11352 Matchers.tests.cpp:<line number>
11353 ...............................................................................
11354
11355 Matchers.tests.cpp:<line number>: FAILED:
11356 CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) )
11357 with expansion:
11358 "this string contains 'abc' as a substring" starts with: "This String"
11359
11360 Matchers.tests.cpp:<line number>: FAILED:
11361 CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) )
11362 with expansion:
11363 "this string contains 'abc' as a substring" starts with: "string" (case
11364 insensitive)
11365
11366 -------------------------------------------------------------------------------
11367 Static arrays are convertible to string
11368 Single item
11369 -------------------------------------------------------------------------------
11370 ToStringGeneral.tests.cpp:<line number>
11371 ...............................................................................
11372
11373 ToStringGeneral.tests.cpp:<line number>: PASSED:
11374 REQUIRE( Catch::Detail::stringify(singular) == "{ 1 }" )
11375 with expansion:
11376 "{ 1 }" == "{ 1 }"
11377
11378 -------------------------------------------------------------------------------
11379 Static arrays are convertible to string
11380 Multiple
11381 -------------------------------------------------------------------------------
11382 ToStringGeneral.tests.cpp:<line number>
11383 ...............................................................................
11384
11385 ToStringGeneral.tests.cpp:<line number>: PASSED:
11386 REQUIRE( Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" )
11387 with expansion:
11388 "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
11389
11390 -------------------------------------------------------------------------------
11391 Static arrays are convertible to string
11392 Non-trivial inner items
11393 -------------------------------------------------------------------------------
11394 ToStringGeneral.tests.cpp:<line number>
11395 ...............................................................................
11396
11397 ToStringGeneral.tests.cpp:<line number>: PASSED:
11398 REQUIRE( Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" )
11399 with expansion:
11400 "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
11401 ==
11402 "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
11403
11404 -------------------------------------------------------------------------------
11405 String matchers
11406 -------------------------------------------------------------------------------
11407 Matchers.tests.cpp:<line number>
11408 ...............................................................................
11409
11410 Matchers.tests.cpp:<line number>: PASSED:
11411 REQUIRE_THAT( testStringForMatching(), ContainsSubstring( "string" ) )
11412 with expansion:
11413 "this string contains 'abc' as a substring" contains: "string"
11414
11415 Matchers.tests.cpp:<line number>: PASSED:
11416 REQUIRE_THAT( testStringForMatching(), ContainsSubstring( "string", Catch::CaseSensitive::No ) )
11417 with expansion:
11418 "this string contains 'abc' as a substring" contains: "string" (case
11419 insensitive)
11420
11421 Matchers.tests.cpp:<line number>: PASSED:
11422 CHECK_THAT( testStringForMatching(), ContainsSubstring( "abc" ) )
11423 with expansion:
11424 "this string contains 'abc' as a substring" contains: "abc"
11425
11426 Matchers.tests.cpp:<line number>: PASSED:
11427 CHECK_THAT( testStringForMatching(), ContainsSubstring( "aBC", Catch::CaseSensitive::No ) )
11428 with expansion:
11429 "this string contains 'abc' as a substring" contains: "abc" (case
11430 insensitive)
11431
11432 Matchers.tests.cpp:<line number>: PASSED:
11433 CHECK_THAT( testStringForMatching(), StartsWith( "this" ) )
11434 with expansion:
11435 "this string contains 'abc' as a substring" starts with: "this"
11436
11437 Matchers.tests.cpp:<line number>: PASSED:
11438 CHECK_THAT( testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) )
11439 with expansion:
11440 "this string contains 'abc' as a substring" starts with: "this" (case
11441 insensitive)
11442
11443 Matchers.tests.cpp:<line number>: PASSED:
11444 CHECK_THAT( testStringForMatching(), EndsWith( "substring" ) )
11445 with expansion:
11446 "this string contains 'abc' as a substring" ends with: "substring"
11447
11448 Matchers.tests.cpp:<line number>: PASSED:
11449 CHECK_THAT( testStringForMatching(), EndsWith( " SuBsTrInG", Catch::CaseSensitive::No ) )
11450 with expansion:
11451 "this string contains 'abc' as a substring" ends with: " substring" (case
11452 insensitive)
11453
11454 -------------------------------------------------------------------------------
11455 StringRef
11456 Empty string
11457 -------------------------------------------------------------------------------
11458 String.tests.cpp:<line number>
11459 ...............................................................................
11460
11461 String.tests.cpp:<line number>: PASSED:
11462 REQUIRE( empty.empty() )
11463 with expansion:
11464 true
11465
11466 String.tests.cpp:<line number>: PASSED:
11467 REQUIRE( empty.size() == 0 )
11468 with expansion:
11469 0 == 0
11470
11471 String.tests.cpp:<line number>: PASSED:
11472 REQUIRE( std::strcmp( empty.data(), "" ) == 0 )
11473 with expansion:
11474 0 == 0
11475
11476 -------------------------------------------------------------------------------
11477 StringRef
11478 From string literal
11479 -------------------------------------------------------------------------------
11480 String.tests.cpp:<line number>
11481 ...............................................................................
11482
11483 String.tests.cpp:<line number>: PASSED:
11484 REQUIRE( s.empty() == false )
11485 with expansion:
11486 false == false
11487
11488 String.tests.cpp:<line number>: PASSED:
11489 REQUIRE( s.size() == 5 )
11490 with expansion:
11491 5 == 5
11492
11493 String.tests.cpp:<line number>: PASSED:
11494 REQUIRE( std::strcmp( rawChars, "hello" ) == 0 )
11495 with expansion:
11496 0 == 0
11497
11498 String.tests.cpp:<line number>: PASSED:
11499 REQUIRE( s.data() == rawChars )
11500 with expansion:
11501 "hello" == "hello"
11502
11503 -------------------------------------------------------------------------------
11504 StringRef
11505 From sub-string
11506 -------------------------------------------------------------------------------
11507 String.tests.cpp:<line number>
11508 ...............................................................................
11509
11510 String.tests.cpp:<line number>: PASSED:
11511 REQUIRE( original == "original" )
11512
11513 String.tests.cpp:<line number>: PASSED:
11514 REQUIRE_NOTHROW( original.data() )
11515
11516 -------------------------------------------------------------------------------
11517 StringRef
11518 Copy construction is shallow
11519 -------------------------------------------------------------------------------
11520 String.tests.cpp:<line number>
11521 ...............................................................................
11522
11523 String.tests.cpp:<line number>: PASSED:
11524 REQUIRE( original.begin() == copy.begin() )
11525 with expansion:
11526 "original string" == "original string"
11527
11528 -------------------------------------------------------------------------------
11529 StringRef
11530 Copy assignment is shallow
11531 -------------------------------------------------------------------------------
11532 String.tests.cpp:<line number>
11533 ...............................................................................
11534
11535 String.tests.cpp:<line number>: PASSED:
11536 REQUIRE( original.begin() == copy.begin() )
11537 with expansion:
11538 "original string" == "original string"
11539
11540 -------------------------------------------------------------------------------
11541 StringRef
11542 Substrings
11543 zero-based substring
11544 -------------------------------------------------------------------------------
11545 String.tests.cpp:<line number>
11546 ...............................................................................
11547
11548 String.tests.cpp:<line number>: PASSED:
11549 REQUIRE( ss.empty() == false )
11550 with expansion:
11551 false == false
11552
11553 String.tests.cpp:<line number>: PASSED:
11554 REQUIRE( ss.size() == 5 )
11555 with expansion:
11556 5 == 5
11557
11558 String.tests.cpp:<line number>: PASSED:
11559 REQUIRE( std::strncmp( ss.data(), "hello", 5 ) == 0 )
11560 with expansion:
11561 0 == 0
11562
11563 String.tests.cpp:<line number>: PASSED:
11564 REQUIRE( ss == "hello" )
11565 with expansion:
11566 hello == "hello"
11567
11568 -------------------------------------------------------------------------------
11569 StringRef
11570 Substrings
11571 non-zero-based substring
11572 -------------------------------------------------------------------------------
11573 String.tests.cpp:<line number>
11574 ...............................................................................
11575
11576 String.tests.cpp:<line number>: PASSED:
11577 REQUIRE( ss.size() == 6 )
11578 with expansion:
11579 6 == 6
11580
11581 String.tests.cpp:<line number>: PASSED:
11582 REQUIRE( std::strcmp( ss.data(), "world!" ) == 0 )
11583 with expansion:
11584 0 == 0
11585
11586 -------------------------------------------------------------------------------
11587 StringRef
11588 Substrings
11589 Pointer values of full refs should match
11590 -------------------------------------------------------------------------------
11591 String.tests.cpp:<line number>
11592 ...............................................................................
11593
11594 String.tests.cpp:<line number>: PASSED:
11595 REQUIRE( s.data() == s2.data() )
11596 with expansion:
11597 "hello world!" == "hello world!"
11598
11599 -------------------------------------------------------------------------------
11600 StringRef
11601 Substrings
11602 Pointer values of substring refs should also match
11603 -------------------------------------------------------------------------------
11604 String.tests.cpp:<line number>
11605 ...............................................................................
11606
11607 String.tests.cpp:<line number>: PASSED:
11608 REQUIRE( s.data() == ss.data() )
11609 with expansion:
11610 "hello world!" == "hello world!"
11611
11612 -------------------------------------------------------------------------------
11613 StringRef
11614 Substrings
11615 Past the end substring
11616 -------------------------------------------------------------------------------
11617 String.tests.cpp:<line number>
11618 ...............................................................................
11619
11620 String.tests.cpp:<line number>: PASSED:
11621 REQUIRE( s.substr(s.size() + 1, 123).empty() )
11622 with expansion:
11623 true
11624
11625 -------------------------------------------------------------------------------
11626 StringRef
11627 Substrings
11628 Substring off the end are trimmed
11629 -------------------------------------------------------------------------------
11630 String.tests.cpp:<line number>
11631 ...............................................................................
11632
11633 String.tests.cpp:<line number>: PASSED:
11634 REQUIRE( std::strcmp(ss.data(), "world!") == 0 )
11635 with expansion:
11636 0 == 0
11637
11638 -------------------------------------------------------------------------------
11639 StringRef
11640 Substrings
11641 substring start after the end is empty
11642 -------------------------------------------------------------------------------
11643 String.tests.cpp:<line number>
11644 ...............................................................................
11645
11646 String.tests.cpp:<line number>: PASSED:
11647 REQUIRE( s.substr(1'000'000, 1).empty() )
11648 with expansion:
11649 true
11650
11651 -------------------------------------------------------------------------------
11652 StringRef
11653 Comparisons are deep
11654 -------------------------------------------------------------------------------
11655 String.tests.cpp:<line number>
11656 ...............................................................................
11657
11658 String.tests.cpp:<line number>: PASSED:
11659 CHECK( reinterpret_cast<char*>(buffer1) != reinterpret_cast<char*>(buffer2) )
11660 with expansion:
11661 "Hello" != "Hello"
11662
11663 String.tests.cpp:<line number>: PASSED:
11664 REQUIRE( left == right )
11665 with expansion:
11666 Hello == Hello
11667
11668 String.tests.cpp:<line number>: PASSED:
11669 REQUIRE( left != left.substr(0, 3) )
11670 with expansion:
11671 Hello != Hel
11672
11673 -------------------------------------------------------------------------------
11674 StringRef
11675 from std::string
11676 implicitly constructed
11677 -------------------------------------------------------------------------------
11678 String.tests.cpp:<line number>
11679 ...............................................................................
11680
11681 String.tests.cpp:<line number>: PASSED:
11682 REQUIRE( sr == "a standard string" )
11683 with expansion:
11684 a standard string == "a standard string"
11685
11686 String.tests.cpp:<line number>: PASSED:
11687 REQUIRE( sr.size() == stdStr.size() )
11688 with expansion:
11689 17 == 17
11690
11691 -------------------------------------------------------------------------------
11692 StringRef
11693 from std::string
11694 explicitly constructed
11695 -------------------------------------------------------------------------------
11696 String.tests.cpp:<line number>
11697 ...............................................................................
11698
11699 String.tests.cpp:<line number>: PASSED:
11700 REQUIRE( sr == "a standard string" )
11701 with expansion:
11702 a standard string == "a standard string"
11703
11704 String.tests.cpp:<line number>: PASSED:
11705 REQUIRE( sr.size() == stdStr.size() )
11706 with expansion:
11707 17 == 17
11708
11709 -------------------------------------------------------------------------------
11710 StringRef
11711 from std::string
11712 assigned
11713 -------------------------------------------------------------------------------
11714 String.tests.cpp:<line number>
11715 ...............................................................................
11716
11717 String.tests.cpp:<line number>: PASSED:
11718 REQUIRE( sr == "a standard string" )
11719 with expansion:
11720 a standard string == "a standard string"
11721
11722 String.tests.cpp:<line number>: PASSED:
11723 REQUIRE( sr.size() == stdStr.size() )
11724 with expansion:
11725 17 == 17
11726
11727 -------------------------------------------------------------------------------
11728 StringRef
11729 to std::string
11730 explicitly constructed
11731 -------------------------------------------------------------------------------
11732 String.tests.cpp:<line number>
11733 ...............................................................................
11734
11735 String.tests.cpp:<line number>: PASSED:
11736 REQUIRE( stdStr == "a stringref" )
11737 with expansion:
11738 "a stringref" == "a stringref"
11739
11740 String.tests.cpp:<line number>: PASSED:
11741 REQUIRE( stdStr.size() == sr.size() )
11742 with expansion:
11743 11 == 11
11744
11745 -------------------------------------------------------------------------------
11746 StringRef
11747 to std::string
11748 assigned
11749 -------------------------------------------------------------------------------
11750 String.tests.cpp:<line number>
11751 ...............................................................................
11752
11753 String.tests.cpp:<line number>: PASSED:
11754 REQUIRE( stdStr == "a stringref" )
11755 with expansion:
11756 "a stringref" == "a stringref"
11757
11758 String.tests.cpp:<line number>: PASSED:
11759 REQUIRE( stdStr.size() == sr.size() )
11760 with expansion:
11761 11 == 11
11762
11763 -------------------------------------------------------------------------------
11764 StringRef
11765 std::string += StringRef
11766 -------------------------------------------------------------------------------
11767 String.tests.cpp:<line number>
11768 ...............................................................................
11769
11770 String.tests.cpp:<line number>: PASSED:
11771 REQUIRE( lhs == "some string += the stringref contents" )
11772 with expansion:
11773 "some string += the stringref contents"
11774 ==
11775 "some string += the stringref contents"
11776
11777 -------------------------------------------------------------------------------
11778 StringRef
11779 StringRef + StringRef
11780 -------------------------------------------------------------------------------
11781 String.tests.cpp:<line number>
11782 ...............................................................................
11783
11784 String.tests.cpp:<line number>: PASSED:
11785 REQUIRE( together == "abrakadabra" )
11786 with expansion:
11787 "abrakadabra" == "abrakadabra"
11788
11789 -------------------------------------------------------------------------------
11790 StringRef at compilation time
11791 Simple constructors
11792 -------------------------------------------------------------------------------
11793 String.tests.cpp:<line number>
11794 ...............................................................................
11795
11796 String.tests.cpp:<line number>: PASSED:
11797 with message:
11798 empty.size() == 0
11799
11800 String.tests.cpp:<line number>: PASSED:
11801 with message:
11802 empty.begin() == empty.end()
11803
11804 String.tests.cpp:<line number>: PASSED:
11805 with message:
11806 stringref.size() == 3
11807
11808 String.tests.cpp:<line number>: PASSED:
11809 with message:
11810 stringref.data() == abc
11811
11812 String.tests.cpp:<line number>: PASSED:
11813 with message:
11814 stringref.begin() == abc
11815
11816 String.tests.cpp:<line number>: PASSED:
11817 with message:
11818 stringref.begin() != stringref.end()
11819
11820 String.tests.cpp:<line number>: PASSED:
11821 with message:
11822 stringref.substr(10, 0).empty()
11823
11824 String.tests.cpp:<line number>: PASSED:
11825 with message:
11826 stringref.substr(2, 1).data() == abc + 2
11827
11828 String.tests.cpp:<line number>: PASSED:
11829 with message:
11830 stringref[1] == 'b'
11831
11832 String.tests.cpp:<line number>: PASSED:
11833 with message:
11834 shortened.size() == 2
11835
11836 String.tests.cpp:<line number>: PASSED:
11837 with message:
11838 shortened.data() == abc
11839
11840 String.tests.cpp:<line number>: PASSED:
11841 with message:
11842 shortened.begin() != shortened.end()
11843
11844 -------------------------------------------------------------------------------
11845 StringRef at compilation time
11846 UDL construction
11847 -------------------------------------------------------------------------------
11848 String.tests.cpp:<line number>
11849 ...............................................................................
11850
11851 String.tests.cpp:<line number>: PASSED:
11852 with message:
11853 !(sr1.empty())
11854
11855 String.tests.cpp:<line number>: PASSED:
11856 with message:
11857 sr1.size() == 3
11858
11859 String.tests.cpp:<line number>: PASSED:
11860 with message:
11861 sr2.empty()
11862
11863 String.tests.cpp:<line number>: PASSED:
11864 with message:
11865 sr2.size() == 0
11866
11867 -------------------------------------------------------------------------------
11868 Stringifying char arrays with statically known sizes - char
11869 -------------------------------------------------------------------------------
11870 ToString.tests.cpp:<line number>
11871 ...............................................................................
11872
11873 ToString.tests.cpp:<line number>: PASSED:
11874 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
11875 with expansion:
11876 ""abc"" == ""abc""
11877
11878 ToString.tests.cpp:<line number>: PASSED:
11879 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
11880 with expansion:
11881 ""abc"" == ""abc""
11882
11883 -------------------------------------------------------------------------------
11884 Stringifying char arrays with statically known sizes - signed char
11885 -------------------------------------------------------------------------------
11886 ToString.tests.cpp:<line number>
11887 ...............................................................................
11888
11889 ToString.tests.cpp:<line number>: PASSED:
11890 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
11891 with expansion:
11892 ""abc"" == ""abc""
11893
11894 ToString.tests.cpp:<line number>: PASSED:
11895 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
11896 with expansion:
11897 ""abc"" == ""abc""
11898
11899 -------------------------------------------------------------------------------
11900 Stringifying char arrays with statically known sizes - unsigned char
11901 -------------------------------------------------------------------------------
11902 ToString.tests.cpp:<line number>
11903 ...............................................................................
11904
11905 ToString.tests.cpp:<line number>: PASSED:
11906 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
11907 with expansion:
11908 ""abc"" == ""abc""
11909
11910 ToString.tests.cpp:<line number>: PASSED:
11911 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
11912 with expansion:
11913 ""abc"" == ""abc""
11914
11915 -------------------------------------------------------------------------------
11916 Stringifying std::chrono::duration helpers
11917 -------------------------------------------------------------------------------
11918 ToStringChrono.tests.cpp:<line number>
11919 ...............................................................................
11920
11921 ToStringChrono.tests.cpp:<line number>: PASSED:
11922 REQUIRE( minute == seconds )
11923 with expansion:
11924 1 m == 60 s
11925
11926 ToStringChrono.tests.cpp:<line number>: PASSED:
11927 REQUIRE( hour != seconds )
11928 with expansion:
11929 1 h != 60 s
11930
11931 ToStringChrono.tests.cpp:<line number>: PASSED:
11932 REQUIRE( micro != milli )
11933 with expansion:
11934 1 us != 1 ms
11935
11936 ToStringChrono.tests.cpp:<line number>: PASSED:
11937 REQUIRE( nano != micro )
11938 with expansion:
11939 1 ns != 1 us
11940
11941 -------------------------------------------------------------------------------
11942 Stringifying std::chrono::duration with weird ratios
11943 -------------------------------------------------------------------------------
11944 ToStringChrono.tests.cpp:<line number>
11945 ...............................................................................
11946
11947 ToStringChrono.tests.cpp:<line number>: PASSED:
11948 REQUIRE( half_minute != femto_second )
11949 with expansion:
11950 1 [30/1]s != 1 fs
11951
11952 ToStringChrono.tests.cpp:<line number>: PASSED:
11953 REQUIRE( pico_second != atto_second )
11954 with expansion:
11955 1 ps != 1 as
11956
11957 -------------------------------------------------------------------------------
11958 Stringifying std::chrono::time_point<system_clock>
11959 -------------------------------------------------------------------------------
11960 ToStringChrono.tests.cpp:<line number>
11961 ...............................................................................
11962
11963 ToStringChrono.tests.cpp:<line number>: PASSED:
11964 REQUIRE( now != later )
11965 with expansion:
11966 {iso8601-timestamp}
11967 !=
11968 {iso8601-timestamp}
11969
11970 -------------------------------------------------------------------------------
11971 Tabs and newlines show in output
11972 -------------------------------------------------------------------------------
11973 Misc.tests.cpp:<line number>
11974 ...............................................................................
11975
11976 Misc.tests.cpp:<line number>: FAILED:
11977 CHECK( s1 == s2 )
11978 with expansion:
11979 "if ($b == 10) {
11980 $a = 20;
11981 }"
11982 ==
11983 "if ($b == 10) {
11984 $a = 20;
11985 }
11986 "
11987
11988 -------------------------------------------------------------------------------
11989 Tag alias can be registered against tag patterns
11990 The same tag alias can only be registered once
11991 -------------------------------------------------------------------------------
11992 Tag.tests.cpp:<line number>
11993 ...............................................................................
11994
11995 Tag.tests.cpp:<line number>: PASSED:
11996 CHECK_THAT( what, ContainsSubstring( "[@zzz]" ) )
11997 with expansion:
11998 "error: tag alias, '[@zzz]' already registered.
11999 First seen at: file:2
12000 Redefined at: file:10" contains: "[@zzz]"
12001
12002 Tag.tests.cpp:<line number>: PASSED:
12003 CHECK_THAT( what, ContainsSubstring( "file" ) )
12004 with expansion:
12005 "error: tag alias, '[@zzz]' already registered.
12006 First seen at: file:2
12007 Redefined at: file:10" contains: "file"
12008
12009 Tag.tests.cpp:<line number>: PASSED:
12010 CHECK_THAT( what, ContainsSubstring( "2" ) )
12011 with expansion:
12012 "error: tag alias, '[@zzz]' already registered.
12013 First seen at: file:2
12014 Redefined at: file:10" contains: "2"
12015
12016 Tag.tests.cpp:<line number>: PASSED:
12017 CHECK_THAT( what, ContainsSubstring( "10" ) )
12018 with expansion:
12019 "error: tag alias, '[@zzz]' already registered.
12020 First seen at: file:2
12021 Redefined at: file:10" contains: "10"
12022
12023 -------------------------------------------------------------------------------
12024 Tag alias can be registered against tag patterns
12025 Tag aliases must be of the form [@name]
12026 -------------------------------------------------------------------------------
12027 Tag.tests.cpp:<line number>
12028 ...............................................................................
12029
12030 Tag.tests.cpp:<line number>: PASSED:
12031 CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) )
12032
12033 Tag.tests.cpp:<line number>: PASSED:
12034 CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
12035
12036 Tag.tests.cpp:<line number>: PASSED:
12037 CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
12038
12039 Tag.tests.cpp:<line number>: PASSED:
12040 CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) )
12041
12042 -------------------------------------------------------------------------------
12043 Tags with spaces and non-alphanumerical characters are accepted
12044 -------------------------------------------------------------------------------
12045 Tag.tests.cpp:<line number>
12046 ...............................................................................
12047
12048 Tag.tests.cpp:<line number>: PASSED:
12049 REQUIRE( testCase.tags.size() == 2 )
12050 with expansion:
12051 2 == 2
12052
12053 Tag.tests.cpp:<line number>: PASSED:
12054 REQUIRE_THAT( testCase.tags, VectorContains( Tag( "tag with spaces" ) ) && VectorContains( Tag( "I said \"good day\" sir!"_catch_sr ) ) )
12055 with expansion:
12056 { {?}, {?} } ( Contains: {?} and Contains: {?} )
12057
12058 -------------------------------------------------------------------------------
12059 Template test case method with test types specified inside std::tuple - MyTypes
12060 - 0
12061 -------------------------------------------------------------------------------
12062 Class.tests.cpp:<line number>
12063 ...............................................................................
12064
12065 Class.tests.cpp:<line number>: PASSED:
12066 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
12067 with expansion:
12068 1 == 1
12069
12070 -------------------------------------------------------------------------------
12071 Template test case method with test types specified inside std::tuple - MyTypes
12072 - 1
12073 -------------------------------------------------------------------------------
12074 Class.tests.cpp:<line number>
12075 ...............................................................................
12076
12077 Class.tests.cpp:<line number>: PASSED:
12078 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
12079 with expansion:
12080 1 == 1
12081
12082 -------------------------------------------------------------------------------
12083 Template test case method with test types specified inside std::tuple - MyTypes
12084 - 2
12085 -------------------------------------------------------------------------------
12086 Class.tests.cpp:<line number>
12087 ...............................................................................
12088
12089 Class.tests.cpp:<line number>: PASSED:
12090 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
12091 with expansion:
12092 1.0 == 1
12093
12094 -------------------------------------------------------------------------------
12095 Template test case with test types specified inside non-copyable and non-
12096 movable std::tuple - NonCopyableAndNonMovableTypes - 0
12097 -------------------------------------------------------------------------------
12098 Misc.tests.cpp:<line number>
12099 ...............................................................................
12100
12101 Misc.tests.cpp:<line number>: PASSED:
12102 REQUIRE( std::is_default_constructible<TestType>::value )
12103 with expansion:
12104 true
12105
12106 -------------------------------------------------------------------------------
12107 Template test case with test types specified inside non-copyable and non-
12108 movable std::tuple - NonCopyableAndNonMovableTypes - 1
12109 -------------------------------------------------------------------------------
12110 Misc.tests.cpp:<line number>
12111 ...............................................................................
12112
12113 Misc.tests.cpp:<line number>: PASSED:
12114 REQUIRE( std::is_default_constructible<TestType>::value )
12115 with expansion:
12116 true
12117
12118 -------------------------------------------------------------------------------
12119 Template test case with test types specified inside non-default-constructible
12120 std::tuple - MyNonDefaultConstructibleTypes - 0
12121 -------------------------------------------------------------------------------
12122 Misc.tests.cpp:<line number>
12123 ...............................................................................
12124
12125 Misc.tests.cpp:<line number>: PASSED:
12126 REQUIRE( std::is_trivially_copyable<TestType>::value )
12127 with expansion:
12128 true
12129
12130 -------------------------------------------------------------------------------
12131 Template test case with test types specified inside non-default-constructible
12132 std::tuple - MyNonDefaultConstructibleTypes - 1
12133 -------------------------------------------------------------------------------
12134 Misc.tests.cpp:<line number>
12135 ...............................................................................
12136
12137 Misc.tests.cpp:<line number>: PASSED:
12138 REQUIRE( std::is_trivially_copyable<TestType>::value )
12139 with expansion:
12140 true
12141
12142 -------------------------------------------------------------------------------
12143 Template test case with test types specified inside std::tuple - MyTypes - 0
12144 -------------------------------------------------------------------------------
12145 Misc.tests.cpp:<line number>
12146 ...............................................................................
12147
12148 Misc.tests.cpp:<line number>: PASSED:
12149 REQUIRE( std::is_arithmetic<TestType>::value )
12150 with expansion:
12151 true
12152
12153 -------------------------------------------------------------------------------
12154 Template test case with test types specified inside std::tuple - MyTypes - 1
12155 -------------------------------------------------------------------------------
12156 Misc.tests.cpp:<line number>
12157 ...............................................................................
12158
12159 Misc.tests.cpp:<line number>: PASSED:
12160 REQUIRE( std::is_arithmetic<TestType>::value )
12161 with expansion:
12162 true
12163
12164 -------------------------------------------------------------------------------
12165 Template test case with test types specified inside std::tuple - MyTypes - 2
12166 -------------------------------------------------------------------------------
12167 Misc.tests.cpp:<line number>
12168 ...............................................................................
12169
12170 Misc.tests.cpp:<line number>: PASSED:
12171 REQUIRE( std::is_arithmetic<TestType>::value )
12172 with expansion:
12173 true
12174
12175 -------------------------------------------------------------------------------
12176 TemplateTest: vectors can be sized and resized - float
12177 -------------------------------------------------------------------------------
12178 Misc.tests.cpp:<line number>
12179 ...............................................................................
12180
12181 Misc.tests.cpp:<line number>: PASSED:
12182 REQUIRE( v.size() == 5 )
12183 with expansion:
12184 5 == 5
12185
12186 Misc.tests.cpp:<line number>: PASSED:
12187 REQUIRE( v.capacity() >= 5 )
12188 with expansion:
12189 5 >= 5
12190
12191 -------------------------------------------------------------------------------
12192 TemplateTest: vectors can be sized and resized - float
12193 resizing bigger changes size and capacity
12194 -------------------------------------------------------------------------------
12195 Misc.tests.cpp:<line number>
12196 ...............................................................................
12197
12198 Misc.tests.cpp:<line number>: PASSED:
12199 REQUIRE( v.size() == 10 )
12200 with expansion:
12201 10 == 10
12202
12203 Misc.tests.cpp:<line number>: PASSED:
12204 REQUIRE( v.capacity() >= 10 )
12205 with expansion:
12206 10 >= 10
12207
12208 -------------------------------------------------------------------------------
12209 TemplateTest: vectors can be sized and resized - float
12210 -------------------------------------------------------------------------------
12211 Misc.tests.cpp:<line number>
12212 ...............................................................................
12213
12214 Misc.tests.cpp:<line number>: PASSED:
12215 REQUIRE( v.size() == 5 )
12216 with expansion:
12217 5 == 5
12218
12219 Misc.tests.cpp:<line number>: PASSED:
12220 REQUIRE( v.capacity() >= 5 )
12221 with expansion:
12222 5 >= 5
12223
12224 -------------------------------------------------------------------------------
12225 TemplateTest: vectors can be sized and resized - float
12226 resizing smaller changes size but not capacity
12227 -------------------------------------------------------------------------------
12228 Misc.tests.cpp:<line number>
12229 ...............................................................................
12230
12231 Misc.tests.cpp:<line number>: PASSED:
12232 REQUIRE( v.size() == 0 )
12233 with expansion:
12234 0 == 0
12235
12236 Misc.tests.cpp:<line number>: PASSED:
12237 REQUIRE( v.capacity() >= 5 )
12238 with expansion:
12239 5 >= 5
12240
12241 -------------------------------------------------------------------------------
12242 TemplateTest: vectors can be sized and resized - float
12243 resizing smaller changes size but not capacity
12244 We can use the 'swap trick' to reset the capacity
12245 -------------------------------------------------------------------------------
12246 Misc.tests.cpp:<line number>
12247 ...............................................................................
12248
12249 Misc.tests.cpp:<line number>: PASSED:
12250 REQUIRE( v.capacity() == 0 )
12251 with expansion:
12252 0 == 0
12253
12254 -------------------------------------------------------------------------------
12255 TemplateTest: vectors can be sized and resized - float
12256 -------------------------------------------------------------------------------
12257 Misc.tests.cpp:<line number>
12258 ...............................................................................
12259
12260 Misc.tests.cpp:<line number>: PASSED:
12261 REQUIRE( v.size() == 5 )
12262 with expansion:
12263 5 == 5
12264
12265 Misc.tests.cpp:<line number>: PASSED:
12266 REQUIRE( v.capacity() >= 5 )
12267 with expansion:
12268 5 >= 5
12269
12270 -------------------------------------------------------------------------------
12271 TemplateTest: vectors can be sized and resized - float
12272 reserving bigger changes capacity but not size
12273 -------------------------------------------------------------------------------
12274 Misc.tests.cpp:<line number>
12275 ...............................................................................
12276
12277 Misc.tests.cpp:<line number>: PASSED:
12278 REQUIRE( v.size() == 5 )
12279 with expansion:
12280 5 == 5
12281
12282 Misc.tests.cpp:<line number>: PASSED:
12283 REQUIRE( v.capacity() >= 10 )
12284 with expansion:
12285 10 >= 10
12286
12287 -------------------------------------------------------------------------------
12288 TemplateTest: vectors can be sized and resized - float
12289 -------------------------------------------------------------------------------
12290 Misc.tests.cpp:<line number>
12291 ...............................................................................
12292
12293 Misc.tests.cpp:<line number>: PASSED:
12294 REQUIRE( v.size() == 5 )
12295 with expansion:
12296 5 == 5
12297
12298 Misc.tests.cpp:<line number>: PASSED:
12299 REQUIRE( v.capacity() >= 5 )
12300 with expansion:
12301 5 >= 5
12302
12303 -------------------------------------------------------------------------------
12304 TemplateTest: vectors can be sized and resized - float
12305 reserving smaller does not change size or capacity
12306 -------------------------------------------------------------------------------
12307 Misc.tests.cpp:<line number>
12308 ...............................................................................
12309
12310 Misc.tests.cpp:<line number>: PASSED:
12311 REQUIRE( v.size() == 5 )
12312 with expansion:
12313 5 == 5
12314
12315 Misc.tests.cpp:<line number>: PASSED:
12316 REQUIRE( v.capacity() >= 5 )
12317 with expansion:
12318 5 >= 5
12319
12320 -------------------------------------------------------------------------------
12321 TemplateTest: vectors can be sized and resized - int
12322 -------------------------------------------------------------------------------
12323 Misc.tests.cpp:<line number>
12324 ...............................................................................
12325
12326 Misc.tests.cpp:<line number>: PASSED:
12327 REQUIRE( v.size() == 5 )
12328 with expansion:
12329 5 == 5
12330
12331 Misc.tests.cpp:<line number>: PASSED:
12332 REQUIRE( v.capacity() >= 5 )
12333 with expansion:
12334 5 >= 5
12335
12336 -------------------------------------------------------------------------------
12337 TemplateTest: vectors can be sized and resized - int
12338 resizing bigger changes size and capacity
12339 -------------------------------------------------------------------------------
12340 Misc.tests.cpp:<line number>
12341 ...............................................................................
12342
12343 Misc.tests.cpp:<line number>: PASSED:
12344 REQUIRE( v.size() == 10 )
12345 with expansion:
12346 10 == 10
12347
12348 Misc.tests.cpp:<line number>: PASSED:
12349 REQUIRE( v.capacity() >= 10 )
12350 with expansion:
12351 10 >= 10
12352
12353 -------------------------------------------------------------------------------
12354 TemplateTest: vectors can be sized and resized - int
12355 -------------------------------------------------------------------------------
12356 Misc.tests.cpp:<line number>
12357 ...............................................................................
12358
12359 Misc.tests.cpp:<line number>: PASSED:
12360 REQUIRE( v.size() == 5 )
12361 with expansion:
12362 5 == 5
12363
12364 Misc.tests.cpp:<line number>: PASSED:
12365 REQUIRE( v.capacity() >= 5 )
12366 with expansion:
12367 5 >= 5
12368
12369 -------------------------------------------------------------------------------
12370 TemplateTest: vectors can be sized and resized - int
12371 resizing smaller changes size but not capacity
12372 -------------------------------------------------------------------------------
12373 Misc.tests.cpp:<line number>
12374 ...............................................................................
12375
12376 Misc.tests.cpp:<line number>: PASSED:
12377 REQUIRE( v.size() == 0 )
12378 with expansion:
12379 0 == 0
12380
12381 Misc.tests.cpp:<line number>: PASSED:
12382 REQUIRE( v.capacity() >= 5 )
12383 with expansion:
12384 5 >= 5
12385
12386 -------------------------------------------------------------------------------
12387 TemplateTest: vectors can be sized and resized - int
12388 resizing smaller changes size but not capacity
12389 We can use the 'swap trick' to reset the capacity
12390 -------------------------------------------------------------------------------
12391 Misc.tests.cpp:<line number>
12392 ...............................................................................
12393
12394 Misc.tests.cpp:<line number>: PASSED:
12395 REQUIRE( v.capacity() == 0 )
12396 with expansion:
12397 0 == 0
12398
12399 -------------------------------------------------------------------------------
12400 TemplateTest: vectors can be sized and resized - int
12401 -------------------------------------------------------------------------------
12402 Misc.tests.cpp:<line number>
12403 ...............................................................................
12404
12405 Misc.tests.cpp:<line number>: PASSED:
12406 REQUIRE( v.size() == 5 )
12407 with expansion:
12408 5 == 5
12409
12410 Misc.tests.cpp:<line number>: PASSED:
12411 REQUIRE( v.capacity() >= 5 )
12412 with expansion:
12413 5 >= 5
12414
12415 -------------------------------------------------------------------------------
12416 TemplateTest: vectors can be sized and resized - int
12417 reserving bigger changes capacity but not size
12418 -------------------------------------------------------------------------------
12419 Misc.tests.cpp:<line number>
12420 ...............................................................................
12421
12422 Misc.tests.cpp:<line number>: PASSED:
12423 REQUIRE( v.size() == 5 )
12424 with expansion:
12425 5 == 5
12426
12427 Misc.tests.cpp:<line number>: PASSED:
12428 REQUIRE( v.capacity() >= 10 )
12429 with expansion:
12430 10 >= 10
12431
12432 -------------------------------------------------------------------------------
12433 TemplateTest: vectors can be sized and resized - int
12434 -------------------------------------------------------------------------------
12435 Misc.tests.cpp:<line number>
12436 ...............................................................................
12437
12438 Misc.tests.cpp:<line number>: PASSED:
12439 REQUIRE( v.size() == 5 )
12440 with expansion:
12441 5 == 5
12442
12443 Misc.tests.cpp:<line number>: PASSED:
12444 REQUIRE( v.capacity() >= 5 )
12445 with expansion:
12446 5 >= 5
12447
12448 -------------------------------------------------------------------------------
12449 TemplateTest: vectors can be sized and resized - int
12450 reserving smaller does not change size or capacity
12451 -------------------------------------------------------------------------------
12452 Misc.tests.cpp:<line number>
12453 ...............................................................................
12454
12455 Misc.tests.cpp:<line number>: PASSED:
12456 REQUIRE( v.size() == 5 )
12457 with expansion:
12458 5 == 5
12459
12460 Misc.tests.cpp:<line number>: PASSED:
12461 REQUIRE( v.capacity() >= 5 )
12462 with expansion:
12463 5 >= 5
12464
12465 -------------------------------------------------------------------------------
12466 TemplateTest: vectors can be sized and resized - std::string
12467 -------------------------------------------------------------------------------
12468 Misc.tests.cpp:<line number>
12469 ...............................................................................
12470
12471 Misc.tests.cpp:<line number>: PASSED:
12472 REQUIRE( v.size() == 5 )
12473 with expansion:
12474 5 == 5
12475
12476 Misc.tests.cpp:<line number>: PASSED:
12477 REQUIRE( v.capacity() >= 5 )
12478 with expansion:
12479 5 >= 5
12480
12481 -------------------------------------------------------------------------------
12482 TemplateTest: vectors can be sized and resized - std::string
12483 resizing bigger changes size and capacity
12484 -------------------------------------------------------------------------------
12485 Misc.tests.cpp:<line number>
12486 ...............................................................................
12487
12488 Misc.tests.cpp:<line number>: PASSED:
12489 REQUIRE( v.size() == 10 )
12490 with expansion:
12491 10 == 10
12492
12493 Misc.tests.cpp:<line number>: PASSED:
12494 REQUIRE( v.capacity() >= 10 )
12495 with expansion:
12496 10 >= 10
12497
12498 -------------------------------------------------------------------------------
12499 TemplateTest: vectors can be sized and resized - std::string
12500 -------------------------------------------------------------------------------
12501 Misc.tests.cpp:<line number>
12502 ...............................................................................
12503
12504 Misc.tests.cpp:<line number>: PASSED:
12505 REQUIRE( v.size() == 5 )
12506 with expansion:
12507 5 == 5
12508
12509 Misc.tests.cpp:<line number>: PASSED:
12510 REQUIRE( v.capacity() >= 5 )
12511 with expansion:
12512 5 >= 5
12513
12514 -------------------------------------------------------------------------------
12515 TemplateTest: vectors can be sized and resized - std::string
12516 resizing smaller changes size but not capacity
12517 -------------------------------------------------------------------------------
12518 Misc.tests.cpp:<line number>
12519 ...............................................................................
12520
12521 Misc.tests.cpp:<line number>: PASSED:
12522 REQUIRE( v.size() == 0 )
12523 with expansion:
12524 0 == 0
12525
12526 Misc.tests.cpp:<line number>: PASSED:
12527 REQUIRE( v.capacity() >= 5 )
12528 with expansion:
12529 5 >= 5
12530
12531 -------------------------------------------------------------------------------
12532 TemplateTest: vectors can be sized and resized - std::string
12533 resizing smaller changes size but not capacity
12534 We can use the 'swap trick' to reset the capacity
12535 -------------------------------------------------------------------------------
12536 Misc.tests.cpp:<line number>
12537 ...............................................................................
12538
12539 Misc.tests.cpp:<line number>: PASSED:
12540 REQUIRE( v.capacity() == 0 )
12541 with expansion:
12542 0 == 0
12543
12544 -------------------------------------------------------------------------------
12545 TemplateTest: vectors can be sized and resized - std::string
12546 -------------------------------------------------------------------------------
12547 Misc.tests.cpp:<line number>
12548 ...............................................................................
12549
12550 Misc.tests.cpp:<line number>: PASSED:
12551 REQUIRE( v.size() == 5 )
12552 with expansion:
12553 5 == 5
12554
12555 Misc.tests.cpp:<line number>: PASSED:
12556 REQUIRE( v.capacity() >= 5 )
12557 with expansion:
12558 5 >= 5
12559
12560 -------------------------------------------------------------------------------
12561 TemplateTest: vectors can be sized and resized - std::string
12562 reserving bigger changes capacity but not size
12563 -------------------------------------------------------------------------------
12564 Misc.tests.cpp:<line number>
12565 ...............................................................................
12566
12567 Misc.tests.cpp:<line number>: PASSED:
12568 REQUIRE( v.size() == 5 )
12569 with expansion:
12570 5 == 5
12571
12572 Misc.tests.cpp:<line number>: PASSED:
12573 REQUIRE( v.capacity() >= 10 )
12574 with expansion:
12575 10 >= 10
12576
12577 -------------------------------------------------------------------------------
12578 TemplateTest: vectors can be sized and resized - std::string
12579 -------------------------------------------------------------------------------
12580 Misc.tests.cpp:<line number>
12581 ...............................................................................
12582
12583 Misc.tests.cpp:<line number>: PASSED:
12584 REQUIRE( v.size() == 5 )
12585 with expansion:
12586 5 == 5
12587
12588 Misc.tests.cpp:<line number>: PASSED:
12589 REQUIRE( v.capacity() >= 5 )
12590 with expansion:
12591 5 >= 5
12592
12593 -------------------------------------------------------------------------------
12594 TemplateTest: vectors can be sized and resized - std::string
12595 reserving smaller does not change size or capacity
12596 -------------------------------------------------------------------------------
12597 Misc.tests.cpp:<line number>
12598 ...............................................................................
12599
12600 Misc.tests.cpp:<line number>: PASSED:
12601 REQUIRE( v.size() == 5 )
12602 with expansion:
12603 5 == 5
12604
12605 Misc.tests.cpp:<line number>: PASSED:
12606 REQUIRE( v.capacity() >= 5 )
12607 with expansion:
12608 5 >= 5
12609
12610 -------------------------------------------------------------------------------
12611 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12612 -------------------------------------------------------------------------------
12613 Misc.tests.cpp:<line number>
12614 ...............................................................................
12615
12616 Misc.tests.cpp:<line number>: PASSED:
12617 REQUIRE( v.size() == 5 )
12618 with expansion:
12619 5 == 5
12620
12621 Misc.tests.cpp:<line number>: PASSED:
12622 REQUIRE( v.capacity() >= 5 )
12623 with expansion:
12624 5 >= 5
12625
12626 -------------------------------------------------------------------------------
12627 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12628 resizing bigger changes size and capacity
12629 -------------------------------------------------------------------------------
12630 Misc.tests.cpp:<line number>
12631 ...............................................................................
12632
12633 Misc.tests.cpp:<line number>: PASSED:
12634 REQUIRE( v.size() == 10 )
12635 with expansion:
12636 10 == 10
12637
12638 Misc.tests.cpp:<line number>: PASSED:
12639 REQUIRE( v.capacity() >= 10 )
12640 with expansion:
12641 10 >= 10
12642
12643 -------------------------------------------------------------------------------
12644 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12645 -------------------------------------------------------------------------------
12646 Misc.tests.cpp:<line number>
12647 ...............................................................................
12648
12649 Misc.tests.cpp:<line number>: PASSED:
12650 REQUIRE( v.size() == 5 )
12651 with expansion:
12652 5 == 5
12653
12654 Misc.tests.cpp:<line number>: PASSED:
12655 REQUIRE( v.capacity() >= 5 )
12656 with expansion:
12657 5 >= 5
12658
12659 -------------------------------------------------------------------------------
12660 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12661 resizing smaller changes size but not capacity
12662 -------------------------------------------------------------------------------
12663 Misc.tests.cpp:<line number>
12664 ...............................................................................
12665
12666 Misc.tests.cpp:<line number>: PASSED:
12667 REQUIRE( v.size() == 0 )
12668 with expansion:
12669 0 == 0
12670
12671 Misc.tests.cpp:<line number>: PASSED:
12672 REQUIRE( v.capacity() >= 5 )
12673 with expansion:
12674 5 >= 5
12675
12676 -------------------------------------------------------------------------------
12677 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12678 resizing smaller changes size but not capacity
12679 We can use the 'swap trick' to reset the capacity
12680 -------------------------------------------------------------------------------
12681 Misc.tests.cpp:<line number>
12682 ...............................................................................
12683
12684 Misc.tests.cpp:<line number>: PASSED:
12685 REQUIRE( v.capacity() == 0 )
12686 with expansion:
12687 0 == 0
12688
12689 -------------------------------------------------------------------------------
12690 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12691 -------------------------------------------------------------------------------
12692 Misc.tests.cpp:<line number>
12693 ...............................................................................
12694
12695 Misc.tests.cpp:<line number>: PASSED:
12696 REQUIRE( v.size() == 5 )
12697 with expansion:
12698 5 == 5
12699
12700 Misc.tests.cpp:<line number>: PASSED:
12701 REQUIRE( v.capacity() >= 5 )
12702 with expansion:
12703 5 >= 5
12704
12705 -------------------------------------------------------------------------------
12706 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12707 reserving bigger changes capacity but not size
12708 -------------------------------------------------------------------------------
12709 Misc.tests.cpp:<line number>
12710 ...............................................................................
12711
12712 Misc.tests.cpp:<line number>: PASSED:
12713 REQUIRE( v.size() == 5 )
12714 with expansion:
12715 5 == 5
12716
12717 Misc.tests.cpp:<line number>: PASSED:
12718 REQUIRE( v.capacity() >= 10 )
12719 with expansion:
12720 10 >= 10
12721
12722 -------------------------------------------------------------------------------
12723 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12724 -------------------------------------------------------------------------------
12725 Misc.tests.cpp:<line number>
12726 ...............................................................................
12727
12728 Misc.tests.cpp:<line number>: PASSED:
12729 REQUIRE( v.size() == 5 )
12730 with expansion:
12731 5 == 5
12732
12733 Misc.tests.cpp:<line number>: PASSED:
12734 REQUIRE( v.capacity() >= 5 )
12735 with expansion:
12736 5 >= 5
12737
12738 -------------------------------------------------------------------------------
12739 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12740 reserving smaller does not change size or capacity
12741 -------------------------------------------------------------------------------
12742 Misc.tests.cpp:<line number>
12743 ...............................................................................
12744
12745 Misc.tests.cpp:<line number>: PASSED:
12746 REQUIRE( v.size() == 5 )
12747 with expansion:
12748 5 == 5
12749
12750 Misc.tests.cpp:<line number>: PASSED:
12751 REQUIRE( v.capacity() >= 5 )
12752 with expansion:
12753 5 >= 5
12754
12755 -------------------------------------------------------------------------------
12756 TemplateTestSig: compiles with a single int parameter - 1
12757 -------------------------------------------------------------------------------
12758 Misc.tests.cpp:<line number>
12759 ...............................................................................
12760
12761
12762 No assertions in test case 'TemplateTestSig: compiles with a single int parameter - 1'
12763
12764 -------------------------------------------------------------------------------
12765 TemplateTestSig: compiles with a single int parameter - 3
12766 -------------------------------------------------------------------------------
12767 Misc.tests.cpp:<line number>
12768 ...............................................................................
12769
12770
12771 No assertions in test case 'TemplateTestSig: compiles with a single int parameter - 3'
12772
12773 -------------------------------------------------------------------------------
12774 TemplateTestSig: compiles with a single int parameter - 6
12775 -------------------------------------------------------------------------------
12776 Misc.tests.cpp:<line number>
12777 ...............................................................................
12778
12779
12780 No assertions in test case 'TemplateTestSig: compiles with a single int parameter - 6'
12781
12782 -------------------------------------------------------------------------------
12783 TemplateTestSig: compiles with two type parameters - int,int
12784 -------------------------------------------------------------------------------
12785 Misc.tests.cpp:<line number>
12786 ...............................................................................
12787
12788
12789 No assertions in test case 'TemplateTestSig: compiles with two type parameters - int,int'
12790
12791 -------------------------------------------------------------------------------
12792 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12793 -------------------------------------------------------------------------------
12794 Misc.tests.cpp:<line number>
12795 ...............................................................................
12796
12797 Misc.tests.cpp:<line number>: PASSED:
12798 REQUIRE( v.size() == V )
12799 with expansion:
12800 6 == 6
12801
12802 Misc.tests.cpp:<line number>: PASSED:
12803 REQUIRE( v.capacity() >= V )
12804 with expansion:
12805 6 >= 6
12806
12807 -------------------------------------------------------------------------------
12808 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12809 resizing bigger changes size and capacity
12810 -------------------------------------------------------------------------------
12811 Misc.tests.cpp:<line number>
12812 ...............................................................................
12813
12814 Misc.tests.cpp:<line number>: PASSED:
12815 REQUIRE( v.size() == 2 * V )
12816 with expansion:
12817 12 == 12
12818
12819 Misc.tests.cpp:<line number>: PASSED:
12820 REQUIRE( v.capacity() >= 2 * V )
12821 with expansion:
12822 12 >= 12
12823
12824 -------------------------------------------------------------------------------
12825 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12826 -------------------------------------------------------------------------------
12827 Misc.tests.cpp:<line number>
12828 ...............................................................................
12829
12830 Misc.tests.cpp:<line number>: PASSED:
12831 REQUIRE( v.size() == V )
12832 with expansion:
12833 6 == 6
12834
12835 Misc.tests.cpp:<line number>: PASSED:
12836 REQUIRE( v.capacity() >= V )
12837 with expansion:
12838 6 >= 6
12839
12840 -------------------------------------------------------------------------------
12841 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12842 resizing smaller changes size but not capacity
12843 -------------------------------------------------------------------------------
12844 Misc.tests.cpp:<line number>
12845 ...............................................................................
12846
12847 Misc.tests.cpp:<line number>: PASSED:
12848 REQUIRE( v.size() == 0 )
12849 with expansion:
12850 0 == 0
12851
12852 Misc.tests.cpp:<line number>: PASSED:
12853 REQUIRE( v.capacity() >= V )
12854 with expansion:
12855 6 >= 6
12856
12857 -------------------------------------------------------------------------------
12858 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12859 resizing smaller changes size but not capacity
12860 We can use the 'swap trick' to reset the capacity
12861 -------------------------------------------------------------------------------
12862 Misc.tests.cpp:<line number>
12863 ...............................................................................
12864
12865 Misc.tests.cpp:<line number>: PASSED:
12866 REQUIRE( v.capacity() == 0 )
12867 with expansion:
12868 0 == 0
12869
12870 -------------------------------------------------------------------------------
12871 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12872 -------------------------------------------------------------------------------
12873 Misc.tests.cpp:<line number>
12874 ...............................................................................
12875
12876 Misc.tests.cpp:<line number>: PASSED:
12877 REQUIRE( v.size() == V )
12878 with expansion:
12879 6 == 6
12880
12881 Misc.tests.cpp:<line number>: PASSED:
12882 REQUIRE( v.capacity() >= V )
12883 with expansion:
12884 6 >= 6
12885
12886 -------------------------------------------------------------------------------
12887 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12888 reserving bigger changes capacity but not size
12889 -------------------------------------------------------------------------------
12890 Misc.tests.cpp:<line number>
12891 ...............................................................................
12892
12893 Misc.tests.cpp:<line number>: PASSED:
12894 REQUIRE( v.size() == V )
12895 with expansion:
12896 6 == 6
12897
12898 Misc.tests.cpp:<line number>: PASSED:
12899 REQUIRE( v.capacity() >= 2 * V )
12900 with expansion:
12901 12 >= 12
12902
12903 -------------------------------------------------------------------------------
12904 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12905 -------------------------------------------------------------------------------
12906 Misc.tests.cpp:<line number>
12907 ...............................................................................
12908
12909 Misc.tests.cpp:<line number>: PASSED:
12910 REQUIRE( v.size() == V )
12911 with expansion:
12912 6 == 6
12913
12914 Misc.tests.cpp:<line number>: PASSED:
12915 REQUIRE( v.capacity() >= V )
12916 with expansion:
12917 6 >= 6
12918
12919 -------------------------------------------------------------------------------
12920 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12921 reserving smaller does not change size or capacity
12922 -------------------------------------------------------------------------------
12923 Misc.tests.cpp:<line number>
12924 ...............................................................................
12925
12926 Misc.tests.cpp:<line number>: PASSED:
12927 REQUIRE( v.size() == V )
12928 with expansion:
12929 6 == 6
12930
12931 Misc.tests.cpp:<line number>: PASSED:
12932 REQUIRE( v.capacity() >= V )
12933 with expansion:
12934 6 >= 6
12935
12936 -------------------------------------------------------------------------------
12937 TemplateTestSig: vectors can be sized and resized - float,4
12938 -------------------------------------------------------------------------------
12939 Misc.tests.cpp:<line number>
12940 ...............................................................................
12941
12942 Misc.tests.cpp:<line number>: PASSED:
12943 REQUIRE( v.size() == V )
12944 with expansion:
12945 4 == 4
12946
12947 Misc.tests.cpp:<line number>: PASSED:
12948 REQUIRE( v.capacity() >= V )
12949 with expansion:
12950 4 >= 4
12951
12952 -------------------------------------------------------------------------------
12953 TemplateTestSig: vectors can be sized and resized - float,4
12954 resizing bigger changes size and capacity
12955 -------------------------------------------------------------------------------
12956 Misc.tests.cpp:<line number>
12957 ...............................................................................
12958
12959 Misc.tests.cpp:<line number>: PASSED:
12960 REQUIRE( v.size() == 2 * V )
12961 with expansion:
12962 8 == 8
12963
12964 Misc.tests.cpp:<line number>: PASSED:
12965 REQUIRE( v.capacity() >= 2 * V )
12966 with expansion:
12967 8 >= 8
12968
12969 -------------------------------------------------------------------------------
12970 TemplateTestSig: vectors can be sized and resized - float,4
12971 -------------------------------------------------------------------------------
12972 Misc.tests.cpp:<line number>
12973 ...............................................................................
12974
12975 Misc.tests.cpp:<line number>: PASSED:
12976 REQUIRE( v.size() == V )
12977 with expansion:
12978 4 == 4
12979
12980 Misc.tests.cpp:<line number>: PASSED:
12981 REQUIRE( v.capacity() >= V )
12982 with expansion:
12983 4 >= 4
12984
12985 -------------------------------------------------------------------------------
12986 TemplateTestSig: vectors can be sized and resized - float,4
12987 resizing smaller changes size but not capacity
12988 -------------------------------------------------------------------------------
12989 Misc.tests.cpp:<line number>
12990 ...............................................................................
12991
12992 Misc.tests.cpp:<line number>: PASSED:
12993 REQUIRE( v.size() == 0 )
12994 with expansion:
12995 0 == 0
12996
12997 Misc.tests.cpp:<line number>: PASSED:
12998 REQUIRE( v.capacity() >= V )
12999 with expansion:
13000 4 >= 4
13001
13002 -------------------------------------------------------------------------------
13003 TemplateTestSig: vectors can be sized and resized - float,4
13004 resizing smaller changes size but not capacity
13005 We can use the 'swap trick' to reset the capacity
13006 -------------------------------------------------------------------------------
13007 Misc.tests.cpp:<line number>
13008 ...............................................................................
13009
13010 Misc.tests.cpp:<line number>: PASSED:
13011 REQUIRE( v.capacity() == 0 )
13012 with expansion:
13013 0 == 0
13014
13015 -------------------------------------------------------------------------------
13016 TemplateTestSig: vectors can be sized and resized - float,4
13017 -------------------------------------------------------------------------------
13018 Misc.tests.cpp:<line number>
13019 ...............................................................................
13020
13021 Misc.tests.cpp:<line number>: PASSED:
13022 REQUIRE( v.size() == V )
13023 with expansion:
13024 4 == 4
13025
13026 Misc.tests.cpp:<line number>: PASSED:
13027 REQUIRE( v.capacity() >= V )
13028 with expansion:
13029 4 >= 4
13030
13031 -------------------------------------------------------------------------------
13032 TemplateTestSig: vectors can be sized and resized - float,4
13033 reserving bigger changes capacity but not size
13034 -------------------------------------------------------------------------------
13035 Misc.tests.cpp:<line number>
13036 ...............................................................................
13037
13038 Misc.tests.cpp:<line number>: PASSED:
13039 REQUIRE( v.size() == V )
13040 with expansion:
13041 4 == 4
13042
13043 Misc.tests.cpp:<line number>: PASSED:
13044 REQUIRE( v.capacity() >= 2 * V )
13045 with expansion:
13046 8 >= 8
13047
13048 -------------------------------------------------------------------------------
13049 TemplateTestSig: vectors can be sized and resized - float,4
13050 -------------------------------------------------------------------------------
13051 Misc.tests.cpp:<line number>
13052 ...............................................................................
13053
13054 Misc.tests.cpp:<line number>: PASSED:
13055 REQUIRE( v.size() == V )
13056 with expansion:
13057 4 == 4
13058
13059 Misc.tests.cpp:<line number>: PASSED:
13060 REQUIRE( v.capacity() >= V )
13061 with expansion:
13062 4 >= 4
13063
13064 -------------------------------------------------------------------------------
13065 TemplateTestSig: vectors can be sized and resized - float,4
13066 reserving smaller does not change size or capacity
13067 -------------------------------------------------------------------------------
13068 Misc.tests.cpp:<line number>
13069 ...............................................................................
13070
13071 Misc.tests.cpp:<line number>: PASSED:
13072 REQUIRE( v.size() == V )
13073 with expansion:
13074 4 == 4
13075
13076 Misc.tests.cpp:<line number>: PASSED:
13077 REQUIRE( v.capacity() >= V )
13078 with expansion:
13079 4 >= 4
13080
13081 -------------------------------------------------------------------------------
13082 TemplateTestSig: vectors can be sized and resized - int,5
13083 -------------------------------------------------------------------------------
13084 Misc.tests.cpp:<line number>
13085 ...............................................................................
13086
13087 Misc.tests.cpp:<line number>: PASSED:
13088 REQUIRE( v.size() == V )
13089 with expansion:
13090 5 == 5
13091
13092 Misc.tests.cpp:<line number>: PASSED:
13093 REQUIRE( v.capacity() >= V )
13094 with expansion:
13095 5 >= 5
13096
13097 -------------------------------------------------------------------------------
13098 TemplateTestSig: vectors can be sized and resized - int,5
13099 resizing bigger changes size and capacity
13100 -------------------------------------------------------------------------------
13101 Misc.tests.cpp:<line number>
13102 ...............................................................................
13103
13104 Misc.tests.cpp:<line number>: PASSED:
13105 REQUIRE( v.size() == 2 * V )
13106 with expansion:
13107 10 == 10
13108
13109 Misc.tests.cpp:<line number>: PASSED:
13110 REQUIRE( v.capacity() >= 2 * V )
13111 with expansion:
13112 10 >= 10
13113
13114 -------------------------------------------------------------------------------
13115 TemplateTestSig: vectors can be sized and resized - int,5
13116 -------------------------------------------------------------------------------
13117 Misc.tests.cpp:<line number>
13118 ...............................................................................
13119
13120 Misc.tests.cpp:<line number>: PASSED:
13121 REQUIRE( v.size() == V )
13122 with expansion:
13123 5 == 5
13124
13125 Misc.tests.cpp:<line number>: PASSED:
13126 REQUIRE( v.capacity() >= V )
13127 with expansion:
13128 5 >= 5
13129
13130 -------------------------------------------------------------------------------
13131 TemplateTestSig: vectors can be sized and resized - int,5
13132 resizing smaller changes size but not capacity
13133 -------------------------------------------------------------------------------
13134 Misc.tests.cpp:<line number>
13135 ...............................................................................
13136
13137 Misc.tests.cpp:<line number>: PASSED:
13138 REQUIRE( v.size() == 0 )
13139 with expansion:
13140 0 == 0
13141
13142 Misc.tests.cpp:<line number>: PASSED:
13143 REQUIRE( v.capacity() >= V )
13144 with expansion:
13145 5 >= 5
13146
13147 -------------------------------------------------------------------------------
13148 TemplateTestSig: vectors can be sized and resized - int,5
13149 resizing smaller changes size but not capacity
13150 We can use the 'swap trick' to reset the capacity
13151 -------------------------------------------------------------------------------
13152 Misc.tests.cpp:<line number>
13153 ...............................................................................
13154
13155 Misc.tests.cpp:<line number>: PASSED:
13156 REQUIRE( v.capacity() == 0 )
13157 with expansion:
13158 0 == 0
13159
13160 -------------------------------------------------------------------------------
13161 TemplateTestSig: vectors can be sized and resized - int,5
13162 -------------------------------------------------------------------------------
13163 Misc.tests.cpp:<line number>
13164 ...............................................................................
13165
13166 Misc.tests.cpp:<line number>: PASSED:
13167 REQUIRE( v.size() == V )
13168 with expansion:
13169 5 == 5
13170
13171 Misc.tests.cpp:<line number>: PASSED:
13172 REQUIRE( v.capacity() >= V )
13173 with expansion:
13174 5 >= 5
13175
13176 -------------------------------------------------------------------------------
13177 TemplateTestSig: vectors can be sized and resized - int,5
13178 reserving bigger changes capacity but not size
13179 -------------------------------------------------------------------------------
13180 Misc.tests.cpp:<line number>
13181 ...............................................................................
13182
13183 Misc.tests.cpp:<line number>: PASSED:
13184 REQUIRE( v.size() == V )
13185 with expansion:
13186 5 == 5
13187
13188 Misc.tests.cpp:<line number>: PASSED:
13189 REQUIRE( v.capacity() >= 2 * V )
13190 with expansion:
13191 10 >= 10
13192
13193 -------------------------------------------------------------------------------
13194 TemplateTestSig: vectors can be sized and resized - int,5
13195 -------------------------------------------------------------------------------
13196 Misc.tests.cpp:<line number>
13197 ...............................................................................
13198
13199 Misc.tests.cpp:<line number>: PASSED:
13200 REQUIRE( v.size() == V )
13201 with expansion:
13202 5 == 5
13203
13204 Misc.tests.cpp:<line number>: PASSED:
13205 REQUIRE( v.capacity() >= V )
13206 with expansion:
13207 5 >= 5
13208
13209 -------------------------------------------------------------------------------
13210 TemplateTestSig: vectors can be sized and resized - int,5
13211 reserving smaller does not change size or capacity
13212 -------------------------------------------------------------------------------
13213 Misc.tests.cpp:<line number>
13214 ...............................................................................
13215
13216 Misc.tests.cpp:<line number>: PASSED:
13217 REQUIRE( v.size() == V )
13218 with expansion:
13219 5 == 5
13220
13221 Misc.tests.cpp:<line number>: PASSED:
13222 REQUIRE( v.capacity() >= V )
13223 with expansion:
13224 5 >= 5
13225
13226 -------------------------------------------------------------------------------
13227 TemplateTestSig: vectors can be sized and resized - std::string,15
13228 -------------------------------------------------------------------------------
13229 Misc.tests.cpp:<line number>
13230 ...............................................................................
13231
13232 Misc.tests.cpp:<line number>: PASSED:
13233 REQUIRE( v.size() == V )
13234 with expansion:
13235 15 == 15
13236
13237 Misc.tests.cpp:<line number>: PASSED:
13238 REQUIRE( v.capacity() >= V )
13239 with expansion:
13240 15 >= 15
13241
13242 -------------------------------------------------------------------------------
13243 TemplateTestSig: vectors can be sized and resized - std::string,15
13244 resizing bigger changes size and capacity
13245 -------------------------------------------------------------------------------
13246 Misc.tests.cpp:<line number>
13247 ...............................................................................
13248
13249 Misc.tests.cpp:<line number>: PASSED:
13250 REQUIRE( v.size() == 2 * V )
13251 with expansion:
13252 30 == 30
13253
13254 Misc.tests.cpp:<line number>: PASSED:
13255 REQUIRE( v.capacity() >= 2 * V )
13256 with expansion:
13257 30 >= 30
13258
13259 -------------------------------------------------------------------------------
13260 TemplateTestSig: vectors can be sized and resized - std::string,15
13261 -------------------------------------------------------------------------------
13262 Misc.tests.cpp:<line number>
13263 ...............................................................................
13264
13265 Misc.tests.cpp:<line number>: PASSED:
13266 REQUIRE( v.size() == V )
13267 with expansion:
13268 15 == 15
13269
13270 Misc.tests.cpp:<line number>: PASSED:
13271 REQUIRE( v.capacity() >= V )
13272 with expansion:
13273 15 >= 15
13274
13275 -------------------------------------------------------------------------------
13276 TemplateTestSig: vectors can be sized and resized - std::string,15
13277 resizing smaller changes size but not capacity
13278 -------------------------------------------------------------------------------
13279 Misc.tests.cpp:<line number>
13280 ...............................................................................
13281
13282 Misc.tests.cpp:<line number>: PASSED:
13283 REQUIRE( v.size() == 0 )
13284 with expansion:
13285 0 == 0
13286
13287 Misc.tests.cpp:<line number>: PASSED:
13288 REQUIRE( v.capacity() >= V )
13289 with expansion:
13290 15 >= 15
13291
13292 -------------------------------------------------------------------------------
13293 TemplateTestSig: vectors can be sized and resized - std::string,15
13294 resizing smaller changes size but not capacity
13295 We can use the 'swap trick' to reset the capacity
13296 -------------------------------------------------------------------------------
13297 Misc.tests.cpp:<line number>
13298 ...............................................................................
13299
13300 Misc.tests.cpp:<line number>: PASSED:
13301 REQUIRE( v.capacity() == 0 )
13302 with expansion:
13303 0 == 0
13304
13305 -------------------------------------------------------------------------------
13306 TemplateTestSig: vectors can be sized and resized - std::string,15
13307 -------------------------------------------------------------------------------
13308 Misc.tests.cpp:<line number>
13309 ...............................................................................
13310
13311 Misc.tests.cpp:<line number>: PASSED:
13312 REQUIRE( v.size() == V )
13313 with expansion:
13314 15 == 15
13315
13316 Misc.tests.cpp:<line number>: PASSED:
13317 REQUIRE( v.capacity() >= V )
13318 with expansion:
13319 15 >= 15
13320
13321 -------------------------------------------------------------------------------
13322 TemplateTestSig: vectors can be sized and resized - std::string,15
13323 reserving bigger changes capacity but not size
13324 -------------------------------------------------------------------------------
13325 Misc.tests.cpp:<line number>
13326 ...............................................................................
13327
13328 Misc.tests.cpp:<line number>: PASSED:
13329 REQUIRE( v.size() == V )
13330 with expansion:
13331 15 == 15
13332
13333 Misc.tests.cpp:<line number>: PASSED:
13334 REQUIRE( v.capacity() >= 2 * V )
13335 with expansion:
13336 30 >= 30
13337
13338 -------------------------------------------------------------------------------
13339 TemplateTestSig: vectors can be sized and resized - std::string,15
13340 -------------------------------------------------------------------------------
13341 Misc.tests.cpp:<line number>
13342 ...............................................................................
13343
13344 Misc.tests.cpp:<line number>: PASSED:
13345 REQUIRE( v.size() == V )
13346 with expansion:
13347 15 == 15
13348
13349 Misc.tests.cpp:<line number>: PASSED:
13350 REQUIRE( v.capacity() >= V )
13351 with expansion:
13352 15 >= 15
13353
13354 -------------------------------------------------------------------------------
13355 TemplateTestSig: vectors can be sized and resized - std::string,15
13356 reserving smaller does not change size or capacity
13357 -------------------------------------------------------------------------------
13358 Misc.tests.cpp:<line number>
13359 ...............................................................................
13360
13361 Misc.tests.cpp:<line number>: PASSED:
13362 REQUIRE( v.size() == V )
13363 with expansion:
13364 15 == 15
13365
13366 Misc.tests.cpp:<line number>: PASSED:
13367 REQUIRE( v.capacity() >= V )
13368 with expansion:
13369 15 >= 15
13370
13371 -------------------------------------------------------------------------------
13372 Test case with identical tags keeps just one
13373 -------------------------------------------------------------------------------
13374 Tag.tests.cpp:<line number>
13375 ...............................................................................
13376
13377 Tag.tests.cpp:<line number>: PASSED:
13378 REQUIRE( testCase.tags.size() == 1 )
13379 with expansion:
13380 1 == 1
13381
13382 Tag.tests.cpp:<line number>: PASSED:
13383 REQUIRE( testCase.tags[0] == Tag( "tag1" ) )
13384 with expansion:
13385 {?} == {?}
13386
13387 -------------------------------------------------------------------------------
13388 Test case with one argument
13389 -------------------------------------------------------------------------------
13390 VariadicMacros.tests.cpp:<line number>
13391 ...............................................................................
13392
13393 VariadicMacros.tests.cpp:<line number>: PASSED:
13394 with message:
13395 no assertions
13396
13397 -------------------------------------------------------------------------------
13398 Test enum bit values
13399 -------------------------------------------------------------------------------
13400 Tricky.tests.cpp:<line number>
13401 ...............................................................................
13402
13403 Tricky.tests.cpp:<line number>: PASSED:
13404 REQUIRE( 0x<hex digits> == bit30and31 )
13405 with expansion:
13406 3221225472 (0x<hex digits>) == 3221225472
13407
13408 -------------------------------------------------------------------------------
13409 Test with special, characters "in name
13410 -------------------------------------------------------------------------------
13411 CmdLine.tests.cpp:<line number>
13412 ...............................................................................
13413
13414 CmdLine.tests.cpp:<line number>: PASSED:
13415
13416 -------------------------------------------------------------------------------
13417 Testing checked-if
13418 -------------------------------------------------------------------------------
13419 Misc.tests.cpp:<line number>
13420 ...............................................................................
13421
13422 Misc.tests.cpp:<line number>: PASSED:
13423 CHECKED_IF( true )
13424
13425 Misc.tests.cpp:<line number>: PASSED:
13426
13427 Misc.tests.cpp:<line number>: FAILED - but was ok:
13428 CHECKED_IF( false )
13429
13430 Misc.tests.cpp:<line number>: PASSED:
13431 CHECKED_ELSE( true )
13432
13433 Misc.tests.cpp:<line number>: FAILED - but was ok:
13434 CHECKED_ELSE( false )
13435
13436 Misc.tests.cpp:<line number>: PASSED:
13437
13438 -------------------------------------------------------------------------------
13439 Testing checked-if 2
13440 -------------------------------------------------------------------------------
13441 Misc.tests.cpp:<line number>
13442 ...............................................................................
13443
13444 Misc.tests.cpp:<line number>: PASSED:
13445 CHECKED_IF( true )
13446
13447 Misc.tests.cpp:<line number>: FAILED:
13448
13449 -------------------------------------------------------------------------------
13450 Testing checked-if 3
13451 -------------------------------------------------------------------------------
13452 Misc.tests.cpp:<line number>
13453 ...............................................................................
13454
13455 Misc.tests.cpp:<line number>: FAILED - but was ok:
13456 CHECKED_ELSE( false )
13457
13458 Misc.tests.cpp:<line number>: FAILED:
13459
13460 -------------------------------------------------------------------------------
13461 Testing checked-if 4
13462 -------------------------------------------------------------------------------
13463 Misc.tests.cpp:<line number>
13464 ...............................................................................
13465
13466 Misc.tests.cpp:<line number>: PASSED:
13467 CHECKED_ELSE( true )
13468
13469 Misc.tests.cpp:<line number>: FAILED:
13470 {Unknown expression after the reported line}
13471 due to unexpected exception with message:
13472 Uncaught exception should fail!
13473
13474 -------------------------------------------------------------------------------
13475 Testing checked-if 5
13476 -------------------------------------------------------------------------------
13477 Misc.tests.cpp:<line number>
13478 ...............................................................................
13479
13480 Misc.tests.cpp:<line number>: FAILED - but was ok:
13481 CHECKED_ELSE( false )
13482
13483 Misc.tests.cpp:<line number>: FAILED:
13484 {Unknown expression after the reported line}
13485 due to unexpected exception with message:
13486 Uncaught exception should fail!
13487
13488 -------------------------------------------------------------------------------
13489 The NO_FAIL macro reports a failure but does not fail the test
13490 -------------------------------------------------------------------------------
13491 Message.tests.cpp:<line number>
13492 ...............................................................................
13493
13494 Message.tests.cpp:<line number>: FAILED - but was ok:
13495 CHECK_NOFAIL( 1 == 2 )
13496
13497
13498 No assertions in test case 'The NO_FAIL macro reports a failure but does not fail the test'
13499
13500 -------------------------------------------------------------------------------
13501 The default listing implementation write to provided stream
13502 Listing tags
13503 -------------------------------------------------------------------------------
13504 Reporters.tests.cpp:<line number>
13505 ...............................................................................
13506
13507 Reporters.tests.cpp:<line number>: PASSED:
13508 REQUIRE_THAT( listingString, ContainsSubstring("[fakeTag]"s) )
13509 with expansion:
13510 "All available tags:
13511 1 [fakeTag]
13512 1 tag
13513
13514 " contains: "[fakeTag]"
13515
13516 -------------------------------------------------------------------------------
13517 The default listing implementation write to provided stream
13518 Listing reporters
13519 -------------------------------------------------------------------------------
13520 Reporters.tests.cpp:<line number>
13521 ...............................................................................
13522
13523 Reporters.tests.cpp:<line number>: PASSED:
13524 REQUIRE_THAT( listingString, ContainsSubstring( "fake reporter"s ) && ContainsSubstring( "fake description"s ) )
13525 with expansion:
13526 "Available reporters:
13527 fake reporter: fake description
13528
13529 " ( contains: "fake reporter" and contains: "fake description" )
13530
13531 -------------------------------------------------------------------------------
13532 The default listing implementation write to provided stream
13533 Listing tests
13534 -------------------------------------------------------------------------------
13535 Reporters.tests.cpp:<line number>
13536 ...............................................................................
13537
13538 Reporters.tests.cpp:<line number>: PASSED:
13539 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
13540 with expansion:
13541 "All available test cases:
13542 fake test name
13543 [fakeTestTag]
13544 1 test case
13545
13546 " ( contains: "fake test name" and contains: "fakeTestTag" )
13547
13548 -------------------------------------------------------------------------------
13549 The default listing implementation write to provided stream
13550 Listing listeners
13551 -------------------------------------------------------------------------------
13552 Reporters.tests.cpp:<line number>
13553 ...............................................................................
13554
13555 Reporters.tests.cpp:<line number>: PASSED:
13556 REQUIRE_THAT( listingString, ContainsSubstring( "fakeListener"s ) && ContainsSubstring( "fake description"s ) )
13557 with expansion:
13558 "Registered listeners:
13559 fakeListener: fake description
13560
13561 " ( contains: "fakeListener" and contains: "fake description" )
13562
13563 -------------------------------------------------------------------------------
13564 This test 'should' fail but doesn't
13565 -------------------------------------------------------------------------------
13566 Misc.tests.cpp:<line number>
13567 ...............................................................................
13568
13569 Misc.tests.cpp:<line number>: PASSED:
13570 with message:
13571 oops!
13572
13573 -------------------------------------------------------------------------------
13574 Thrown string literals are translated
13575 -------------------------------------------------------------------------------
13576 Exception.tests.cpp:<line number>
13577 ...............................................................................
13578
13579 Exception.tests.cpp:<line number>: FAILED:
13580 due to unexpected exception with message:
13581 For some reason someone is throwing a string literal!
13582
13583 -------------------------------------------------------------------------------
13584 Tracker
13585 -------------------------------------------------------------------------------
13586 PartTracker.tests.cpp:<line number>
13587 ...............................................................................
13588
13589 PartTracker.tests.cpp:<line number>: PASSED:
13590 REQUIRE( testCase.isOpen() )
13591 with expansion:
13592 true
13593
13594 PartTracker.tests.cpp:<line number>: PASSED:
13595 REQUIRE( s1.isOpen() )
13596 with expansion:
13597 true
13598
13599 -------------------------------------------------------------------------------
13600 Tracker
13601 successfully close one section
13602 -------------------------------------------------------------------------------
13603 PartTracker.tests.cpp:<line number>
13604 ...............................................................................
13605
13606 PartTracker.tests.cpp:<line number>: PASSED:
13607 REQUIRE( s1.isSuccessfullyCompleted() )
13608 with expansion:
13609 true
13610
13611 PartTracker.tests.cpp:<line number>: PASSED:
13612 REQUIRE( testCase.isComplete() == false )
13613 with expansion:
13614 false == false
13615
13616 PartTracker.tests.cpp:<line number>: PASSED:
13617 REQUIRE( ctx.completedCycle() )
13618 with expansion:
13619 true
13620
13621 PartTracker.tests.cpp:<line number>: PASSED:
13622 REQUIRE( testCase.isSuccessfullyCompleted() )
13623 with expansion:
13624 true
13625
13626 -------------------------------------------------------------------------------
13627 Tracker
13628 -------------------------------------------------------------------------------
13629 PartTracker.tests.cpp:<line number>
13630 ...............................................................................
13631
13632 PartTracker.tests.cpp:<line number>: PASSED:
13633 REQUIRE( testCase.isOpen() )
13634 with expansion:
13635 true
13636
13637 PartTracker.tests.cpp:<line number>: PASSED:
13638 REQUIRE( s1.isOpen() )
13639 with expansion:
13640 true
13641
13642 -------------------------------------------------------------------------------
13643 Tracker
13644 fail one section
13645 -------------------------------------------------------------------------------
13646 PartTracker.tests.cpp:<line number>
13647 ...............................................................................
13648
13649 PartTracker.tests.cpp:<line number>: PASSED:
13650 REQUIRE( s1.isComplete() )
13651 with expansion:
13652 true
13653
13654 PartTracker.tests.cpp:<line number>: PASSED:
13655 REQUIRE( s1.isSuccessfullyCompleted() == false )
13656 with expansion:
13657 false == false
13658
13659 PartTracker.tests.cpp:<line number>: PASSED:
13660 REQUIRE( testCase.isComplete() == false )
13661 with expansion:
13662 false == false
13663
13664 PartTracker.tests.cpp:<line number>: PASSED:
13665 REQUIRE( ctx.completedCycle() )
13666 with expansion:
13667 true
13668
13669 PartTracker.tests.cpp:<line number>: PASSED:
13670 REQUIRE( testCase.isSuccessfullyCompleted() == false )
13671 with expansion:
13672 false == false
13673
13674 -------------------------------------------------------------------------------
13675 Tracker
13676 fail one section
13677 re-enter after failed section
13678 -------------------------------------------------------------------------------
13679 PartTracker.tests.cpp:<line number>
13680 ...............................................................................
13681
13682 PartTracker.tests.cpp:<line number>: PASSED:
13683 REQUIRE( testCase2.isOpen() )
13684 with expansion:
13685 true
13686
13687 PartTracker.tests.cpp:<line number>: PASSED:
13688 REQUIRE( s1b.isOpen() == false )
13689 with expansion:
13690 false == false
13691
13692 PartTracker.tests.cpp:<line number>: PASSED:
13693 REQUIRE( ctx.completedCycle() )
13694 with expansion:
13695 true
13696
13697 PartTracker.tests.cpp:<line number>: PASSED:
13698 REQUIRE( testCase.isComplete() )
13699 with expansion:
13700 true
13701
13702 PartTracker.tests.cpp:<line number>: PASSED:
13703 REQUIRE( testCase.isSuccessfullyCompleted() )
13704 with expansion:
13705 true
13706
13707 -------------------------------------------------------------------------------
13708 Tracker
13709 -------------------------------------------------------------------------------
13710 PartTracker.tests.cpp:<line number>
13711 ...............................................................................
13712
13713 PartTracker.tests.cpp:<line number>: PASSED:
13714 REQUIRE( testCase.isOpen() )
13715 with expansion:
13716 true
13717
13718 PartTracker.tests.cpp:<line number>: PASSED:
13719 REQUIRE( s1.isOpen() )
13720 with expansion:
13721 true
13722
13723 -------------------------------------------------------------------------------
13724 Tracker
13725 fail one section
13726 -------------------------------------------------------------------------------
13727 PartTracker.tests.cpp:<line number>
13728 ...............................................................................
13729
13730 PartTracker.tests.cpp:<line number>: PASSED:
13731 REQUIRE( s1.isComplete() )
13732 with expansion:
13733 true
13734
13735 PartTracker.tests.cpp:<line number>: PASSED:
13736 REQUIRE( s1.isSuccessfullyCompleted() == false )
13737 with expansion:
13738 false == false
13739
13740 PartTracker.tests.cpp:<line number>: PASSED:
13741 REQUIRE( testCase.isComplete() == false )
13742 with expansion:
13743 false == false
13744
13745 PartTracker.tests.cpp:<line number>: PASSED:
13746 REQUIRE( ctx.completedCycle() )
13747 with expansion:
13748 true
13749
13750 PartTracker.tests.cpp:<line number>: PASSED:
13751 REQUIRE( testCase.isSuccessfullyCompleted() == false )
13752 with expansion:
13753 false == false
13754
13755 -------------------------------------------------------------------------------
13756 Tracker
13757 fail one section
13758 re-enter after failed section and find next section
13759 -------------------------------------------------------------------------------
13760 PartTracker.tests.cpp:<line number>
13761 ...............................................................................
13762
13763 PartTracker.tests.cpp:<line number>: PASSED:
13764 REQUIRE( testCase2.isOpen() )
13765 with expansion:
13766 true
13767
13768 PartTracker.tests.cpp:<line number>: PASSED:
13769 REQUIRE( s1b.isOpen() == false )
13770 with expansion:
13771 false == false
13772
13773 PartTracker.tests.cpp:<line number>: PASSED:
13774 REQUIRE( s2.isOpen() )
13775 with expansion:
13776 true
13777
13778 PartTracker.tests.cpp:<line number>: PASSED:
13779 REQUIRE( ctx.completedCycle() )
13780 with expansion:
13781 true
13782
13783 PartTracker.tests.cpp:<line number>: PASSED:
13784 REQUIRE( testCase.isComplete() )
13785 with expansion:
13786 true
13787
13788 PartTracker.tests.cpp:<line number>: PASSED:
13789 REQUIRE( testCase.isSuccessfullyCompleted() )
13790 with expansion:
13791 true
13792
13793 -------------------------------------------------------------------------------
13794 Tracker
13795 -------------------------------------------------------------------------------
13796 PartTracker.tests.cpp:<line number>
13797 ...............................................................................
13798
13799 PartTracker.tests.cpp:<line number>: PASSED:
13800 REQUIRE( testCase.isOpen() )
13801 with expansion:
13802 true
13803
13804 PartTracker.tests.cpp:<line number>: PASSED:
13805 REQUIRE( s1.isOpen() )
13806 with expansion:
13807 true
13808
13809 -------------------------------------------------------------------------------
13810 Tracker
13811 successfully close one section, then find another
13812 -------------------------------------------------------------------------------
13813 PartTracker.tests.cpp:<line number>
13814 ...............................................................................
13815
13816 PartTracker.tests.cpp:<line number>: PASSED:
13817 REQUIRE( s2.isOpen() == false )
13818 with expansion:
13819 false == false
13820
13821 PartTracker.tests.cpp:<line number>: PASSED:
13822 REQUIRE( testCase.isComplete() == false )
13823 with expansion:
13824 false == false
13825
13826 -------------------------------------------------------------------------------
13827 Tracker
13828 successfully close one section, then find another
13829 Re-enter - skips S1 and enters S2
13830 -------------------------------------------------------------------------------
13831 PartTracker.tests.cpp:<line number>
13832 ...............................................................................
13833
13834 PartTracker.tests.cpp:<line number>: PASSED:
13835 REQUIRE( testCase2.isOpen() )
13836 with expansion:
13837 true
13838
13839 PartTracker.tests.cpp:<line number>: PASSED:
13840 REQUIRE( s1b.isOpen() == false )
13841 with expansion:
13842 false == false
13843
13844 PartTracker.tests.cpp:<line number>: PASSED:
13845 REQUIRE( s2b.isOpen() )
13846 with expansion:
13847 true
13848
13849 PartTracker.tests.cpp:<line number>: PASSED:
13850 REQUIRE( ctx.completedCycle() == false )
13851 with expansion:
13852 false == false
13853
13854 -------------------------------------------------------------------------------
13855 Tracker
13856 successfully close one section, then find another
13857 Re-enter - skips S1 and enters S2
13858 Successfully close S2
13859 -------------------------------------------------------------------------------
13860 PartTracker.tests.cpp:<line number>
13861 ...............................................................................
13862
13863 PartTracker.tests.cpp:<line number>: PASSED:
13864 REQUIRE( ctx.completedCycle() )
13865 with expansion:
13866 true
13867
13868 PartTracker.tests.cpp:<line number>: PASSED:
13869 REQUIRE( s2b.isSuccessfullyCompleted() )
13870 with expansion:
13871 true
13872
13873 PartTracker.tests.cpp:<line number>: PASSED:
13874 REQUIRE( testCase2.isComplete() == false )
13875 with expansion:
13876 false == false
13877
13878 PartTracker.tests.cpp:<line number>: PASSED:
13879 REQUIRE( testCase2.isSuccessfullyCompleted() )
13880 with expansion:
13881 true
13882
13883 -------------------------------------------------------------------------------
13884 Tracker
13885 -------------------------------------------------------------------------------
13886 PartTracker.tests.cpp:<line number>
13887 ...............................................................................
13888
13889 PartTracker.tests.cpp:<line number>: PASSED:
13890 REQUIRE( testCase.isOpen() )
13891 with expansion:
13892 true
13893
13894 PartTracker.tests.cpp:<line number>: PASSED:
13895 REQUIRE( s1.isOpen() )
13896 with expansion:
13897 true
13898
13899 -------------------------------------------------------------------------------
13900 Tracker
13901 successfully close one section, then find another
13902 -------------------------------------------------------------------------------
13903 PartTracker.tests.cpp:<line number>
13904 ...............................................................................
13905
13906 PartTracker.tests.cpp:<line number>: PASSED:
13907 REQUIRE( s2.isOpen() == false )
13908 with expansion:
13909 false == false
13910
13911 PartTracker.tests.cpp:<line number>: PASSED:
13912 REQUIRE( testCase.isComplete() == false )
13913 with expansion:
13914 false == false
13915
13916 -------------------------------------------------------------------------------
13917 Tracker
13918 successfully close one section, then find another
13919 Re-enter - skips S1 and enters S2
13920 -------------------------------------------------------------------------------
13921 PartTracker.tests.cpp:<line number>
13922 ...............................................................................
13923
13924 PartTracker.tests.cpp:<line number>: PASSED:
13925 REQUIRE( testCase2.isOpen() )
13926 with expansion:
13927 true
13928
13929 PartTracker.tests.cpp:<line number>: PASSED:
13930 REQUIRE( s1b.isOpen() == false )
13931 with expansion:
13932 false == false
13933
13934 PartTracker.tests.cpp:<line number>: PASSED:
13935 REQUIRE( s2b.isOpen() )
13936 with expansion:
13937 true
13938
13939 PartTracker.tests.cpp:<line number>: PASSED:
13940 REQUIRE( ctx.completedCycle() == false )
13941 with expansion:
13942 false == false
13943
13944 -------------------------------------------------------------------------------
13945 Tracker
13946 successfully close one section, then find another
13947 Re-enter - skips S1 and enters S2
13948 fail S2
13949 -------------------------------------------------------------------------------
13950 PartTracker.tests.cpp:<line number>
13951 ...............................................................................
13952
13953 PartTracker.tests.cpp:<line number>: PASSED:
13954 REQUIRE( ctx.completedCycle() )
13955 with expansion:
13956 true
13957
13958 PartTracker.tests.cpp:<line number>: PASSED:
13959 REQUIRE( s2b.isComplete() )
13960 with expansion:
13961 true
13962
13963 PartTracker.tests.cpp:<line number>: PASSED:
13964 REQUIRE( s2b.isSuccessfullyCompleted() == false )
13965 with expansion:
13966 false == false
13967
13968 PartTracker.tests.cpp:<line number>: PASSED:
13969 REQUIRE( testCase2.isSuccessfullyCompleted() == false )
13970 with expansion:
13971 false == false
13972
13973 PartTracker.tests.cpp:<line number>: PASSED:
13974 REQUIRE( testCase3.isOpen() )
13975 with expansion:
13976 true
13977
13978 PartTracker.tests.cpp:<line number>: PASSED:
13979 REQUIRE( s1c.isOpen() == false )
13980 with expansion:
13981 false == false
13982
13983 PartTracker.tests.cpp:<line number>: PASSED:
13984 REQUIRE( s2c.isOpen() == false )
13985 with expansion:
13986 false == false
13987
13988 PartTracker.tests.cpp:<line number>: PASSED:
13989 REQUIRE( testCase3.isSuccessfullyCompleted() )
13990 with expansion:
13991 true
13992
13993 -------------------------------------------------------------------------------
13994 Tracker
13995 -------------------------------------------------------------------------------
13996 PartTracker.tests.cpp:<line number>
13997 ...............................................................................
13998
13999 PartTracker.tests.cpp:<line number>: PASSED:
14000 REQUIRE( testCase.isOpen() )
14001 with expansion:
14002 true
14003
14004 PartTracker.tests.cpp:<line number>: PASSED:
14005 REQUIRE( s1.isOpen() )
14006 with expansion:
14007 true
14008
14009 -------------------------------------------------------------------------------
14010 Tracker
14011 open a nested section
14012 -------------------------------------------------------------------------------
14013 PartTracker.tests.cpp:<line number>
14014 ...............................................................................
14015
14016 PartTracker.tests.cpp:<line number>: PASSED:
14017 REQUIRE( s2.isOpen() )
14018 with expansion:
14019 true
14020
14021 PartTracker.tests.cpp:<line number>: PASSED:
14022 REQUIRE( s2.isComplete() )
14023 with expansion:
14024 true
14025
14026 PartTracker.tests.cpp:<line number>: PASSED:
14027 REQUIRE( s1.isComplete() == false )
14028 with expansion:
14029 false == false
14030
14031 PartTracker.tests.cpp:<line number>: PASSED:
14032 REQUIRE( s1.isComplete() )
14033 with expansion:
14034 true
14035
14036 PartTracker.tests.cpp:<line number>: PASSED:
14037 REQUIRE( testCase.isComplete() == false )
14038 with expansion:
14039 false == false
14040
14041 PartTracker.tests.cpp:<line number>: PASSED:
14042 REQUIRE( testCase.isComplete() )
14043 with expansion:
14044 true
14045
14046 -------------------------------------------------------------------------------
14047 Trim strings
14048 -------------------------------------------------------------------------------
14049 StringManip.tests.cpp:<line number>
14050 ...............................................................................
14051
14052 StringManip.tests.cpp:<line number>: PASSED:
14053 REQUIRE( trim(std::string(no_whitespace)) == no_whitespace )
14054 with expansion:
14055 "There is no extra whitespace here"
14056 ==
14057 "There is no extra whitespace here"
14058
14059 StringManip.tests.cpp:<line number>: PASSED:
14060 REQUIRE( trim(std::string(leading_whitespace)) == no_whitespace )
14061 with expansion:
14062 "There is no extra whitespace here"
14063 ==
14064 "There is no extra whitespace here"
14065
14066 StringManip.tests.cpp:<line number>: PASSED:
14067 REQUIRE( trim(std::string(trailing_whitespace)) == no_whitespace )
14068 with expansion:
14069 "There is no extra whitespace here"
14070 ==
14071 "There is no extra whitespace here"
14072
14073 StringManip.tests.cpp:<line number>: PASSED:
14074 REQUIRE( trim(std::string(whitespace_at_both_ends)) == no_whitespace )
14075 with expansion:
14076 "There is no extra whitespace here"
14077 ==
14078 "There is no extra whitespace here"
14079
14080 StringManip.tests.cpp:<line number>: PASSED:
14081 REQUIRE( trim(StringRef(no_whitespace)) == StringRef(no_whitespace) )
14082 with expansion:
14083 There is no extra whitespace here
14084 ==
14085 There is no extra whitespace here
14086
14087 StringManip.tests.cpp:<line number>: PASSED:
14088 REQUIRE( trim(StringRef(leading_whitespace)) == StringRef(no_whitespace) )
14089 with expansion:
14090 There is no extra whitespace here
14091 ==
14092 There is no extra whitespace here
14093
14094 StringManip.tests.cpp:<line number>: PASSED:
14095 REQUIRE( trim(StringRef(trailing_whitespace)) == StringRef(no_whitespace) )
14096 with expansion:
14097 There is no extra whitespace here
14098 ==
14099 There is no extra whitespace here
14100
14101 StringManip.tests.cpp:<line number>: PASSED:
14102 REQUIRE( trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace) )
14103 with expansion:
14104 There is no extra whitespace here
14105 ==
14106 There is no extra whitespace here
14107
14108 -------------------------------------------------------------------------------
14109 Type conversions of RangeEquals and similar
14110 Container conversions
14111 Two equal containers of different container types
14112 -------------------------------------------------------------------------------
14113 MatchersRanges.tests.cpp:<line number>
14114 ...............................................................................
14115
14116 MatchersRanges.tests.cpp:<line number>: PASSED:
14117 CHECK_THAT( array_int_a, RangeEquals( c_array ) )
14118 with expansion:
14119 { 1, 2, 3 } elements are { 1, 2, 3 }
14120
14121 MatchersRanges.tests.cpp:<line number>: PASSED:
14122 CHECK_THAT( array_int_a, UnorderedRangeEquals( c_array ) )
14123 with expansion:
14124 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
14125
14126 -------------------------------------------------------------------------------
14127 Type conversions of RangeEquals and similar
14128 Container conversions
14129 Two equal containers of different container types (differ in array N)
14130 -------------------------------------------------------------------------------
14131 MatchersRanges.tests.cpp:<line number>
14132 ...............................................................................
14133
14134 MatchersRanges.tests.cpp:<line number>: PASSED:
14135 CHECK_THAT( array_int_3, !RangeEquals( array_int_4 ) )
14136 with expansion:
14137 { 1, 2, 3 } not elements are { 1, 2, 3, 4 }
14138
14139 MatchersRanges.tests.cpp:<line number>: PASSED:
14140 CHECK_THAT( array_int_3, !UnorderedRangeEquals( array_int_4 ) )
14141 with expansion:
14142 { 1, 2, 3 } not unordered elements are { 1, 2, 3, 4 }
14143
14144 -------------------------------------------------------------------------------
14145 Type conversions of RangeEquals and similar
14146 Container conversions
14147 Two equal containers of different container types and value types
14148 -------------------------------------------------------------------------------
14149 MatchersRanges.tests.cpp:<line number>
14150 ...............................................................................
14151
14152 MatchersRanges.tests.cpp:<line number>: PASSED:
14153 CHECK_THAT( array_int_a, RangeEquals( vector_char_a ) )
14154 with expansion:
14155 { 1, 2, 3 } elements are { 1, 2, 3 }
14156
14157 MatchersRanges.tests.cpp:<line number>: PASSED:
14158 CHECK_THAT( array_int_a, UnorderedRangeEquals( vector_char_a ) )
14159 with expansion:
14160 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
14161
14162 -------------------------------------------------------------------------------
14163 Type conversions of RangeEquals and similar
14164 Container conversions
14165 Two equal containers, one random access, one not
14166 -------------------------------------------------------------------------------
14167 MatchersRanges.tests.cpp:<line number>
14168 ...............................................................................
14169
14170 MatchersRanges.tests.cpp:<line number>: PASSED:
14171 with message:
14172 ContainerIsRandomAccess( array_int_a ) != ContainerIsRandomAccess(
14173 list_char_a )
14174
14175 MatchersRanges.tests.cpp:<line number>: PASSED:
14176 CHECK_THAT( array_int_a, RangeEquals( list_char_a ) )
14177 with expansion:
14178 { 1, 2, 3 } elements are { 1, 2, 3 }
14179
14180 MatchersRanges.tests.cpp:<line number>: PASSED:
14181 CHECK_THAT( array_int_a, UnorderedRangeEquals( list_char_a ) )
14182 with expansion:
14183 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
14184
14185 -------------------------------------------------------------------------------
14186 Type conversions of RangeEquals and similar
14187 Value type
14188 Two equal containers of different value types
14189 -------------------------------------------------------------------------------
14190 MatchersRanges.tests.cpp:<line number>
14191 ...............................................................................
14192
14193 MatchersRanges.tests.cpp:<line number>: PASSED:
14194 CHECK_THAT( vector_int_a, RangeEquals( vector_char_a ) )
14195 with expansion:
14196 { 1, 2, 3 } elements are { 1, 2, 3 }
14197
14198 MatchersRanges.tests.cpp:<line number>: PASSED:
14199 CHECK_THAT( vector_int_a, UnorderedRangeEquals( vector_char_a ) )
14200 with expansion:
14201 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
14202
14203 -------------------------------------------------------------------------------
14204 Type conversions of RangeEquals and similar
14205 Value type
14206 Two non-equal containers of different value types
14207 -------------------------------------------------------------------------------
14208 MatchersRanges.tests.cpp:<line number>
14209 ...............................................................................
14210
14211 MatchersRanges.tests.cpp:<line number>: PASSED:
14212 CHECK_THAT( vector_int_a, !RangeEquals( vector_char_b ) )
14213 with expansion:
14214 { 1, 2, 3 } not elements are { 1, 2, 2 }
14215
14216 MatchersRanges.tests.cpp:<line number>: PASSED:
14217 CHECK_THAT( vector_int_a, !UnorderedRangeEquals( vector_char_b ) )
14218 with expansion:
14219 { 1, 2, 3 } not unordered elements are { 1, 2, 2 }
14220
14221 -------------------------------------------------------------------------------
14222 Type conversions of RangeEquals and similar
14223 Ranges with begin that needs ADL
14224 -------------------------------------------------------------------------------
14225 MatchersRanges.tests.cpp:<line number>
14226 ...............................................................................
14227
14228 MatchersRanges.tests.cpp:<line number>: PASSED:
14229 REQUIRE_THAT( a, !RangeEquals( b ) )
14230 with expansion:
14231 { 1, 2, 3 } not elements are { 3, 2, 1 }
14232
14233 MatchersRanges.tests.cpp:<line number>: PASSED:
14234 REQUIRE_THAT( a, UnorderedRangeEquals( b ) )
14235 with expansion:
14236 { 1, 2, 3 } unordered elements are { 3, 2, 1 }
14237
14238 -------------------------------------------------------------------------------
14239 Type conversions of RangeEquals and similar
14240 Custom predicate
14241 Two equal non-empty containers (close enough)
14242 -------------------------------------------------------------------------------
14243 MatchersRanges.tests.cpp:<line number>
14244 ...............................................................................
14245
14246 MatchersRanges.tests.cpp:<line number>: PASSED:
14247 CHECK_THAT( vector_a, RangeEquals( array_a_plus_1, close_enough ) )
14248 with expansion:
14249 { 1, 2, 3 } elements are { 2, 3, 4 }
14250
14251 MatchersRanges.tests.cpp:<line number>: PASSED:
14252 CHECK_THAT( vector_a, UnorderedRangeEquals( array_a_plus_1, close_enough ) )
14253 with expansion:
14254 { 1, 2, 3 } unordered elements are { 2, 3, 4 }
14255
14256 -------------------------------------------------------------------------------
14257 Unexpected exceptions can be translated
14258 -------------------------------------------------------------------------------
14259 Exception.tests.cpp:<line number>
14260 ...............................................................................
14261
14262 Exception.tests.cpp:<line number>: FAILED:
14263 due to unexpected exception with message:
14264 3.14000000000000012
14265
14266 -------------------------------------------------------------------------------
14267 Upcasting special member functions
14268 Move constructor
14269 -------------------------------------------------------------------------------
14270 UniquePtr.tests.cpp:<line number>
14271 ...............................................................................
14272
14273 UniquePtr.tests.cpp:<line number>: PASSED:
14274 REQUIRE( bptr->i == 3 )
14275 with expansion:
14276 3 == 3
14277
14278 -------------------------------------------------------------------------------
14279 Upcasting special member functions
14280 move assignment
14281 -------------------------------------------------------------------------------
14282 UniquePtr.tests.cpp:<line number>
14283 ...............................................................................
14284
14285 UniquePtr.tests.cpp:<line number>: PASSED:
14286 REQUIRE( bptr->i == 3 )
14287 with expansion:
14288 3 == 3
14289
14290 -------------------------------------------------------------------------------
14291 Usage of AllMatch range matcher
14292 Basic usage
14293 -------------------------------------------------------------------------------
14294 MatchersRanges.tests.cpp:<line number>
14295 ...............................................................................
14296
14297 MatchersRanges.tests.cpp:<line number>: PASSED:
14298 REQUIRE_THAT( data, AllMatch(SizeIs(5)) )
14299 with expansion:
14300 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14301 }, { 1, 0, 0, -1, 5 } } all match has size == 5
14302
14303 MatchersRanges.tests.cpp:<line number>: PASSED:
14304 REQUIRE_THAT( data, !AllMatch(Contains(0) && Contains(1)) )
14305 with expansion:
14306 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14307 }, { 1, 0, 0, -1, 5 } } not all match ( contains element 0 and contains
14308 element 1 )
14309
14310 -------------------------------------------------------------------------------
14311 Usage of AllMatch range matcher
14312 Type requires ADL found begin and end
14313 -------------------------------------------------------------------------------
14314 MatchersRanges.tests.cpp:<line number>
14315 ...............................................................................
14316
14317 MatchersRanges.tests.cpp:<line number>: PASSED:
14318 REQUIRE_THAT( needs_adl, AllMatch( Predicate<int>( []( int elem ) { return elem < 6; } ) ) )
14319 with expansion:
14320 { 1, 2, 3, 4, 5 } all match matches undescribed predicate
14321
14322 -------------------------------------------------------------------------------
14323 Usage of AllMatch range matcher
14324 Shortcircuiting
14325 All are read
14326 -------------------------------------------------------------------------------
14327 MatchersRanges.tests.cpp:<line number>
14328 ...............................................................................
14329
14330 MatchersRanges.tests.cpp:<line number>: PASSED:
14331 REQUIRE_THAT( mocked, allMatch )
14332 with expansion:
14333 { 1, 2, 3, 4, 5 } all match matches undescribed predicate
14334
14335 MatchersRanges.tests.cpp:<line number>: PASSED:
14336 REQUIRE( mocked.m_derefed[0] )
14337 with expansion:
14338 true
14339
14340 MatchersRanges.tests.cpp:<line number>: PASSED:
14341 REQUIRE( mocked.m_derefed[1] )
14342 with expansion:
14343 true
14344
14345 MatchersRanges.tests.cpp:<line number>: PASSED:
14346 REQUIRE( mocked.m_derefed[2] )
14347 with expansion:
14348 true
14349
14350 MatchersRanges.tests.cpp:<line number>: PASSED:
14351 REQUIRE( mocked.m_derefed[3] )
14352 with expansion:
14353 true
14354
14355 MatchersRanges.tests.cpp:<line number>: PASSED:
14356 REQUIRE( mocked.m_derefed[4] )
14357 with expansion:
14358 true
14359
14360 -------------------------------------------------------------------------------
14361 Usage of AllMatch range matcher
14362 Shortcircuiting
14363 Short-circuited
14364 -------------------------------------------------------------------------------
14365 MatchersRanges.tests.cpp:<line number>
14366 ...............................................................................
14367
14368 MatchersRanges.tests.cpp:<line number>: PASSED:
14369 REQUIRE_THAT( mocked, !allMatch )
14370 with expansion:
14371 { 1, 2, 3, 4, 5 } not all match matches undescribed predicate
14372
14373 MatchersRanges.tests.cpp:<line number>: PASSED:
14374 REQUIRE( mocked.m_derefed[0] )
14375 with expansion:
14376 true
14377
14378 MatchersRanges.tests.cpp:<line number>: PASSED:
14379 REQUIRE( mocked.m_derefed[1] )
14380 with expansion:
14381 true
14382
14383 MatchersRanges.tests.cpp:<line number>: PASSED:
14384 REQUIRE( mocked.m_derefed[2] )
14385 with expansion:
14386 true
14387
14388 MatchersRanges.tests.cpp:<line number>: PASSED:
14389 REQUIRE_FALSE( mocked.m_derefed[3] )
14390 with expansion:
14391 !false
14392
14393 MatchersRanges.tests.cpp:<line number>: PASSED:
14394 REQUIRE_FALSE( mocked.m_derefed[4] )
14395 with expansion:
14396 !false
14397
14398 -------------------------------------------------------------------------------
14399 Usage of AllTrue range matcher
14400 Basic usage
14401 All true evaluates to true
14402 -------------------------------------------------------------------------------
14403 MatchersRanges.tests.cpp:<line number>
14404 ...............................................................................
14405
14406 MatchersRanges.tests.cpp:<line number>: PASSED:
14407 REQUIRE_THAT( data, AllTrue() )
14408 with expansion:
14409 { true, true, true, true, true } contains only true
14410
14411 -------------------------------------------------------------------------------
14412 Usage of AllTrue range matcher
14413 Basic usage
14414 Empty evaluates to true
14415 -------------------------------------------------------------------------------
14416 MatchersRanges.tests.cpp:<line number>
14417 ...............................................................................
14418
14419 MatchersRanges.tests.cpp:<line number>: PASSED:
14420 REQUIRE_THAT( data, AllTrue() )
14421 with expansion:
14422 { } contains only true
14423
14424 -------------------------------------------------------------------------------
14425 Usage of AllTrue range matcher
14426 Basic usage
14427 One false evaluates to false
14428 -------------------------------------------------------------------------------
14429 MatchersRanges.tests.cpp:<line number>
14430 ...............................................................................
14431
14432 MatchersRanges.tests.cpp:<line number>: PASSED:
14433 REQUIRE_THAT( data, !AllTrue() )
14434 with expansion:
14435 { true, true, false, true, true } not contains only true
14436
14437 -------------------------------------------------------------------------------
14438 Usage of AllTrue range matcher
14439 Basic usage
14440 All false evaluates to false
14441 -------------------------------------------------------------------------------
14442 MatchersRanges.tests.cpp:<line number>
14443 ...............................................................................
14444
14445 MatchersRanges.tests.cpp:<line number>: PASSED:
14446 REQUIRE_THAT( data, !AllTrue() )
14447 with expansion:
14448 { false, false, false, false, false } not contains only true
14449
14450 -------------------------------------------------------------------------------
14451 Usage of AllTrue range matcher
14452 Contained type is convertible to bool
14453 All true evaluates to true
14454 -------------------------------------------------------------------------------
14455 MatchersRanges.tests.cpp:<line number>
14456 ...............................................................................
14457
14458 MatchersRanges.tests.cpp:<line number>: PASSED:
14459 REQUIRE_THAT( data, AllTrue() )
14460 with expansion:
14461 { true, true, true, true, true } contains only true
14462
14463 -------------------------------------------------------------------------------
14464 Usage of AllTrue range matcher
14465 Contained type is convertible to bool
14466 One false evaluates to false
14467 -------------------------------------------------------------------------------
14468 MatchersRanges.tests.cpp:<line number>
14469 ...............................................................................
14470
14471 MatchersRanges.tests.cpp:<line number>: PASSED:
14472 REQUIRE_THAT( data, !AllTrue() )
14473 with expansion:
14474 { true, true, false, true, true } not contains only true
14475
14476 -------------------------------------------------------------------------------
14477 Usage of AllTrue range matcher
14478 Contained type is convertible to bool
14479 All false evaluates to false
14480 -------------------------------------------------------------------------------
14481 MatchersRanges.tests.cpp:<line number>
14482 ...............................................................................
14483
14484 MatchersRanges.tests.cpp:<line number>: PASSED:
14485 REQUIRE_THAT( data, !AllTrue() )
14486 with expansion:
14487 { false, false, false, false, false } not contains only true
14488
14489 -------------------------------------------------------------------------------
14490 Usage of AllTrue range matcher
14491 Shortcircuiting
14492 All are read
14493 -------------------------------------------------------------------------------
14494 MatchersRanges.tests.cpp:<line number>
14495 ...............................................................................
14496
14497 MatchersRanges.tests.cpp:<line number>: PASSED:
14498 REQUIRE_THAT( mocked, AllTrue() )
14499 with expansion:
14500 { true, true, true, true, true } contains only true
14501
14502 MatchersRanges.tests.cpp:<line number>: PASSED:
14503 REQUIRE( mocked.m_derefed[0] )
14504 with expansion:
14505 true
14506
14507 MatchersRanges.tests.cpp:<line number>: PASSED:
14508 REQUIRE( mocked.m_derefed[1] )
14509 with expansion:
14510 true
14511
14512 MatchersRanges.tests.cpp:<line number>: PASSED:
14513 REQUIRE( mocked.m_derefed[2] )
14514 with expansion:
14515 true
14516
14517 MatchersRanges.tests.cpp:<line number>: PASSED:
14518 REQUIRE( mocked.m_derefed[3] )
14519 with expansion:
14520 true
14521
14522 MatchersRanges.tests.cpp:<line number>: PASSED:
14523 REQUIRE( mocked.m_derefed[4] )
14524 with expansion:
14525 true
14526
14527 -------------------------------------------------------------------------------
14528 Usage of AllTrue range matcher
14529 Shortcircuiting
14530 Short-circuited
14531 -------------------------------------------------------------------------------
14532 MatchersRanges.tests.cpp:<line number>
14533 ...............................................................................
14534
14535 MatchersRanges.tests.cpp:<line number>: PASSED:
14536 REQUIRE_THAT( mocked, !AllTrue() )
14537 with expansion:
14538 { true, true, false, true, true } not contains only true
14539
14540 MatchersRanges.tests.cpp:<line number>: PASSED:
14541 REQUIRE( mocked.m_derefed[0] )
14542 with expansion:
14543 true
14544
14545 MatchersRanges.tests.cpp:<line number>: PASSED:
14546 REQUIRE( mocked.m_derefed[1] )
14547 with expansion:
14548 true
14549
14550 MatchersRanges.tests.cpp:<line number>: PASSED:
14551 REQUIRE( mocked.m_derefed[2] )
14552 with expansion:
14553 true
14554
14555 MatchersRanges.tests.cpp:<line number>: PASSED:
14556 REQUIRE_FALSE( mocked.m_derefed[3] )
14557 with expansion:
14558 !false
14559
14560 MatchersRanges.tests.cpp:<line number>: PASSED:
14561 REQUIRE_FALSE( mocked.m_derefed[4] )
14562 with expansion:
14563 !false
14564
14565 -------------------------------------------------------------------------------
14566 Usage of AnyMatch range matcher
14567 Basic usage
14568 -------------------------------------------------------------------------------
14569 MatchersRanges.tests.cpp:<line number>
14570 ...............................................................................
14571
14572 MatchersRanges.tests.cpp:<line number>: PASSED:
14573 REQUIRE_THAT( data, AnyMatch(SizeIs(5)) )
14574 with expansion:
14575 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14576 }, { 1, 0, 0, -1, 5 } } any match has size == 5
14577
14578 MatchersRanges.tests.cpp:<line number>: PASSED:
14579 REQUIRE_THAT( data, !AnyMatch(Contains(0) && Contains(10)) )
14580 with expansion:
14581 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14582 }, { 1, 0, 0, -1, 5 } } not any match ( contains element 0 and contains
14583 element 10 )
14584
14585 -------------------------------------------------------------------------------
14586 Usage of AnyMatch range matcher
14587 Type requires ADL found begin and end
14588 -------------------------------------------------------------------------------
14589 MatchersRanges.tests.cpp:<line number>
14590 ...............................................................................
14591
14592 MatchersRanges.tests.cpp:<line number>: PASSED:
14593 REQUIRE_THAT( needs_adl, AnyMatch( Predicate<int>( []( int elem ) { return elem < 3; } ) ) )
14594 with expansion:
14595 { 1, 2, 3, 4, 5 } any match matches undescribed predicate
14596
14597 -------------------------------------------------------------------------------
14598 Usage of AnyMatch range matcher
14599 Shortcircuiting
14600 All are read
14601 -------------------------------------------------------------------------------
14602 MatchersRanges.tests.cpp:<line number>
14603 ...............................................................................
14604
14605 MatchersRanges.tests.cpp:<line number>: PASSED:
14606 REQUIRE_THAT( mocked, !anyMatch )
14607 with expansion:
14608 { 1, 2, 3, 4, 5 } not any match matches undescribed predicate
14609
14610 MatchersRanges.tests.cpp:<line number>: PASSED:
14611 REQUIRE( mocked.m_derefed[0] )
14612 with expansion:
14613 true
14614
14615 MatchersRanges.tests.cpp:<line number>: PASSED:
14616 REQUIRE( mocked.m_derefed[1] )
14617 with expansion:
14618 true
14619
14620 MatchersRanges.tests.cpp:<line number>: PASSED:
14621 REQUIRE( mocked.m_derefed[2] )
14622 with expansion:
14623 true
14624
14625 MatchersRanges.tests.cpp:<line number>: PASSED:
14626 REQUIRE( mocked.m_derefed[3] )
14627 with expansion:
14628 true
14629
14630 MatchersRanges.tests.cpp:<line number>: PASSED:
14631 REQUIRE( mocked.m_derefed[4] )
14632 with expansion:
14633 true
14634
14635 -------------------------------------------------------------------------------
14636 Usage of AnyMatch range matcher
14637 Shortcircuiting
14638 Short-circuited
14639 -------------------------------------------------------------------------------
14640 MatchersRanges.tests.cpp:<line number>
14641 ...............................................................................
14642
14643 MatchersRanges.tests.cpp:<line number>: PASSED:
14644 REQUIRE_THAT( mocked, anyMatch )
14645 with expansion:
14646 { 1, 2, 3, 4, 5 } any match matches undescribed predicate
14647
14648 MatchersRanges.tests.cpp:<line number>: PASSED:
14649 REQUIRE( mocked.m_derefed[0] )
14650 with expansion:
14651 true
14652
14653 MatchersRanges.tests.cpp:<line number>: PASSED:
14654 REQUIRE_FALSE( mocked.m_derefed[1] )
14655 with expansion:
14656 !false
14657
14658 MatchersRanges.tests.cpp:<line number>: PASSED:
14659 REQUIRE_FALSE( mocked.m_derefed[2] )
14660 with expansion:
14661 !false
14662
14663 MatchersRanges.tests.cpp:<line number>: PASSED:
14664 REQUIRE_FALSE( mocked.m_derefed[3] )
14665 with expansion:
14666 !false
14667
14668 MatchersRanges.tests.cpp:<line number>: PASSED:
14669 REQUIRE_FALSE( mocked.m_derefed[4] )
14670 with expansion:
14671 !false
14672
14673 -------------------------------------------------------------------------------
14674 Usage of AnyTrue range matcher
14675 Basic usage
14676 All true evaluates to true
14677 -------------------------------------------------------------------------------
14678 MatchersRanges.tests.cpp:<line number>
14679 ...............................................................................
14680
14681 MatchersRanges.tests.cpp:<line number>: PASSED:
14682 REQUIRE_THAT( data, AnyTrue() )
14683 with expansion:
14684 { true, true, true, true, true } contains at least one true
14685
14686 -------------------------------------------------------------------------------
14687 Usage of AnyTrue range matcher
14688 Basic usage
14689 Empty evaluates to false
14690 -------------------------------------------------------------------------------
14691 MatchersRanges.tests.cpp:<line number>
14692 ...............................................................................
14693
14694 MatchersRanges.tests.cpp:<line number>: PASSED:
14695 REQUIRE_THAT( data, !AnyTrue() )
14696 with expansion:
14697 { } not contains at least one true
14698
14699 -------------------------------------------------------------------------------
14700 Usage of AnyTrue range matcher
14701 Basic usage
14702 One true evaluates to true
14703 -------------------------------------------------------------------------------
14704 MatchersRanges.tests.cpp:<line number>
14705 ...............................................................................
14706
14707 MatchersRanges.tests.cpp:<line number>: PASSED:
14708 REQUIRE_THAT( data, AnyTrue() )
14709 with expansion:
14710 { false, false, true, false, false } contains at least one true
14711
14712 -------------------------------------------------------------------------------
14713 Usage of AnyTrue range matcher
14714 Basic usage
14715 All false evaluates to false
14716 -------------------------------------------------------------------------------
14717 MatchersRanges.tests.cpp:<line number>
14718 ...............................................................................
14719
14720 MatchersRanges.tests.cpp:<line number>: PASSED:
14721 REQUIRE_THAT( data, !AnyTrue() )
14722 with expansion:
14723 { false, false, false, false, false } not contains at least one true
14724
14725 -------------------------------------------------------------------------------
14726 Usage of AnyTrue range matcher
14727 Contained type is convertible to bool
14728 All true evaluates to true
14729 -------------------------------------------------------------------------------
14730 MatchersRanges.tests.cpp:<line number>
14731 ...............................................................................
14732
14733 MatchersRanges.tests.cpp:<line number>: PASSED:
14734 REQUIRE_THAT( data, AnyTrue() )
14735 with expansion:
14736 { true, true, true, true, true } contains at least one true
14737
14738 -------------------------------------------------------------------------------
14739 Usage of AnyTrue range matcher
14740 Contained type is convertible to bool
14741 One true evaluates to true
14742 -------------------------------------------------------------------------------
14743 MatchersRanges.tests.cpp:<line number>
14744 ...............................................................................
14745
14746 MatchersRanges.tests.cpp:<line number>: PASSED:
14747 REQUIRE_THAT( data, AnyTrue() )
14748 with expansion:
14749 { false, false, true, false, false } contains at least one true
14750
14751 -------------------------------------------------------------------------------
14752 Usage of AnyTrue range matcher
14753 Contained type is convertible to bool
14754 All false evaluates to false
14755 -------------------------------------------------------------------------------
14756 MatchersRanges.tests.cpp:<line number>
14757 ...............................................................................
14758
14759 MatchersRanges.tests.cpp:<line number>: PASSED:
14760 REQUIRE_THAT( data, !AnyTrue() )
14761 with expansion:
14762 { false, false, false, false, false } not contains at least one true
14763
14764 -------------------------------------------------------------------------------
14765 Usage of AnyTrue range matcher
14766 Shortcircuiting
14767 All are read
14768 -------------------------------------------------------------------------------
14769 MatchersRanges.tests.cpp:<line number>
14770 ...............................................................................
14771
14772 MatchersRanges.tests.cpp:<line number>: PASSED:
14773 REQUIRE_THAT( mocked, AnyTrue() )
14774 with expansion:
14775 { false, false, false, false, true } contains at least one true
14776
14777 MatchersRanges.tests.cpp:<line number>: PASSED:
14778 REQUIRE( mocked.m_derefed[0] )
14779 with expansion:
14780 true
14781
14782 MatchersRanges.tests.cpp:<line number>: PASSED:
14783 REQUIRE( mocked.m_derefed[1] )
14784 with expansion:
14785 true
14786
14787 MatchersRanges.tests.cpp:<line number>: PASSED:
14788 REQUIRE( mocked.m_derefed[2] )
14789 with expansion:
14790 true
14791
14792 MatchersRanges.tests.cpp:<line number>: PASSED:
14793 REQUIRE( mocked.m_derefed[3] )
14794 with expansion:
14795 true
14796
14797 MatchersRanges.tests.cpp:<line number>: PASSED:
14798 REQUIRE( mocked.m_derefed[4] )
14799 with expansion:
14800 true
14801
14802 -------------------------------------------------------------------------------
14803 Usage of AnyTrue range matcher
14804 Shortcircuiting
14805 Short-circuited
14806 -------------------------------------------------------------------------------
14807 MatchersRanges.tests.cpp:<line number>
14808 ...............................................................................
14809
14810 MatchersRanges.tests.cpp:<line number>: PASSED:
14811 REQUIRE_THAT( mocked, AnyTrue() )
14812 with expansion:
14813 { false, false, true, true, true } contains at least one true
14814
14815 MatchersRanges.tests.cpp:<line number>: PASSED:
14816 REQUIRE( mocked.m_derefed[0] )
14817 with expansion:
14818 true
14819
14820 MatchersRanges.tests.cpp:<line number>: PASSED:
14821 REQUIRE( mocked.m_derefed[1] )
14822 with expansion:
14823 true
14824
14825 MatchersRanges.tests.cpp:<line number>: PASSED:
14826 REQUIRE( mocked.m_derefed[2] )
14827 with expansion:
14828 true
14829
14830 MatchersRanges.tests.cpp:<line number>: PASSED:
14831 REQUIRE_FALSE( mocked.m_derefed[3] )
14832 with expansion:
14833 !false
14834
14835 MatchersRanges.tests.cpp:<line number>: PASSED:
14836 REQUIRE_FALSE( mocked.m_derefed[4] )
14837 with expansion:
14838 !false
14839
14840 -------------------------------------------------------------------------------
14841 Usage of NoneMatch range matcher
14842 Basic usage
14843 -------------------------------------------------------------------------------
14844 MatchersRanges.tests.cpp:<line number>
14845 ...............................................................................
14846
14847 MatchersRanges.tests.cpp:<line number>: PASSED:
14848 REQUIRE_THAT( data, NoneMatch(SizeIs(6)) )
14849 with expansion:
14850 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14851 }, { 1, 0, 0, -1, 5 } } none match has size == 6
14852
14853 MatchersRanges.tests.cpp:<line number>: PASSED:
14854 REQUIRE_THAT( data, !NoneMatch(Contains(0) && Contains(1)) )
14855 with expansion:
14856 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14857 }, { 1, 0, 0, -1, 5 } } not none match ( contains element 0 and contains
14858 element 1 )
14859
14860 -------------------------------------------------------------------------------
14861 Usage of NoneMatch range matcher
14862 Type requires ADL found begin and end
14863 -------------------------------------------------------------------------------
14864 MatchersRanges.tests.cpp:<line number>
14865 ...............................................................................
14866
14867 MatchersRanges.tests.cpp:<line number>: PASSED:
14868 REQUIRE_THAT( needs_adl, NoneMatch( Predicate<int>( []( int elem ) { return elem > 6; } ) ) )
14869 with expansion:
14870 { 1, 2, 3, 4, 5 } none match matches undescribed predicate
14871
14872 -------------------------------------------------------------------------------
14873 Usage of NoneMatch range matcher
14874 Shortcircuiting
14875 All are read
14876 -------------------------------------------------------------------------------
14877 MatchersRanges.tests.cpp:<line number>
14878 ...............................................................................
14879
14880 MatchersRanges.tests.cpp:<line number>: PASSED:
14881 REQUIRE_THAT( mocked, noneMatch )
14882 with expansion:
14883 { 1, 2, 3, 4, 5 } none match matches undescribed predicate
14884
14885 MatchersRanges.tests.cpp:<line number>: PASSED:
14886 REQUIRE( mocked.m_derefed[0] )
14887 with expansion:
14888 true
14889
14890 MatchersRanges.tests.cpp:<line number>: PASSED:
14891 REQUIRE( mocked.m_derefed[1] )
14892 with expansion:
14893 true
14894
14895 MatchersRanges.tests.cpp:<line number>: PASSED:
14896 REQUIRE( mocked.m_derefed[2] )
14897 with expansion:
14898 true
14899
14900 MatchersRanges.tests.cpp:<line number>: PASSED:
14901 REQUIRE( mocked.m_derefed[3] )
14902 with expansion:
14903 true
14904
14905 MatchersRanges.tests.cpp:<line number>: PASSED:
14906 REQUIRE( mocked.m_derefed[4] )
14907 with expansion:
14908 true
14909
14910 -------------------------------------------------------------------------------
14911 Usage of NoneMatch range matcher
14912 Shortcircuiting
14913 Short-circuited
14914 -------------------------------------------------------------------------------
14915 MatchersRanges.tests.cpp:<line number>
14916 ...............................................................................
14917
14918 MatchersRanges.tests.cpp:<line number>: PASSED:
14919 REQUIRE_THAT( mocked, !noneMatch )
14920 with expansion:
14921 { 1, 2, 3, 4, 5 } not none match matches undescribed predicate
14922
14923 MatchersRanges.tests.cpp:<line number>: PASSED:
14924 REQUIRE( mocked.m_derefed[0] )
14925 with expansion:
14926 true
14927
14928 MatchersRanges.tests.cpp:<line number>: PASSED:
14929 REQUIRE_FALSE( mocked.m_derefed[1] )
14930 with expansion:
14931 !false
14932
14933 MatchersRanges.tests.cpp:<line number>: PASSED:
14934 REQUIRE_FALSE( mocked.m_derefed[2] )
14935 with expansion:
14936 !false
14937
14938 MatchersRanges.tests.cpp:<line number>: PASSED:
14939 REQUIRE_FALSE( mocked.m_derefed[3] )
14940 with expansion:
14941 !false
14942
14943 MatchersRanges.tests.cpp:<line number>: PASSED:
14944 REQUIRE_FALSE( mocked.m_derefed[4] )
14945 with expansion:
14946 !false
14947
14948 -------------------------------------------------------------------------------
14949 Usage of NoneTrue range matcher
14950 Basic usage
14951 All true evaluates to false
14952 -------------------------------------------------------------------------------
14953 MatchersRanges.tests.cpp:<line number>
14954 ...............................................................................
14955
14956 MatchersRanges.tests.cpp:<line number>: PASSED:
14957 REQUIRE_THAT( data, !NoneTrue() )
14958 with expansion:
14959 { true, true, true, true, true } not contains no true
14960
14961 -------------------------------------------------------------------------------
14962 Usage of NoneTrue range matcher
14963 Basic usage
14964 Empty evaluates to true
14965 -------------------------------------------------------------------------------
14966 MatchersRanges.tests.cpp:<line number>
14967 ...............................................................................
14968
14969 MatchersRanges.tests.cpp:<line number>: PASSED:
14970 REQUIRE_THAT( data, NoneTrue() )
14971 with expansion:
14972 { } contains no true
14973
14974 -------------------------------------------------------------------------------
14975 Usage of NoneTrue range matcher
14976 Basic usage
14977 One true evaluates to false
14978 -------------------------------------------------------------------------------
14979 MatchersRanges.tests.cpp:<line number>
14980 ...............................................................................
14981
14982 MatchersRanges.tests.cpp:<line number>: PASSED:
14983 REQUIRE_THAT( data, !NoneTrue() )
14984 with expansion:
14985 { false, false, true, false, false } not contains no true
14986
14987 -------------------------------------------------------------------------------
14988 Usage of NoneTrue range matcher
14989 Basic usage
14990 All false evaluates to true
14991 -------------------------------------------------------------------------------
14992 MatchersRanges.tests.cpp:<line number>
14993 ...............................................................................
14994
14995 MatchersRanges.tests.cpp:<line number>: PASSED:
14996 REQUIRE_THAT( data, NoneTrue() )
14997 with expansion:
14998 { false, false, false, false, false } contains no true
14999
15000 -------------------------------------------------------------------------------
15001 Usage of NoneTrue range matcher
15002 Contained type is convertible to bool
15003 All true evaluates to false
15004 -------------------------------------------------------------------------------
15005 MatchersRanges.tests.cpp:<line number>
15006 ...............................................................................
15007
15008 MatchersRanges.tests.cpp:<line number>: PASSED:
15009 REQUIRE_THAT( data, !NoneTrue() )
15010 with expansion:
15011 { true, true, true, true, true } not contains no true
15012
15013 -------------------------------------------------------------------------------
15014 Usage of NoneTrue range matcher
15015 Contained type is convertible to bool
15016 One true evaluates to false
15017 -------------------------------------------------------------------------------
15018 MatchersRanges.tests.cpp:<line number>
15019 ...............................................................................
15020
15021 MatchersRanges.tests.cpp:<line number>: PASSED:
15022 REQUIRE_THAT( data, !NoneTrue() )
15023 with expansion:
15024 { false, false, true, false, false } not contains no true
15025
15026 -------------------------------------------------------------------------------
15027 Usage of NoneTrue range matcher
15028 Contained type is convertible to bool
15029 All false evaluates to true
15030 -------------------------------------------------------------------------------
15031 MatchersRanges.tests.cpp:<line number>
15032 ...............................................................................
15033
15034 MatchersRanges.tests.cpp:<line number>: PASSED:
15035 REQUIRE_THAT( data, NoneTrue() )
15036 with expansion:
15037 { false, false, false, false, false } contains no true
15038
15039 -------------------------------------------------------------------------------
15040 Usage of NoneTrue range matcher
15041 Shortcircuiting
15042 All are read
15043 -------------------------------------------------------------------------------
15044 MatchersRanges.tests.cpp:<line number>
15045 ...............................................................................
15046
15047 MatchersRanges.tests.cpp:<line number>: PASSED:
15048 REQUIRE_THAT( mocked, NoneTrue() )
15049 with expansion:
15050 { false, false, false, false, false } contains no true
15051
15052 MatchersRanges.tests.cpp:<line number>: PASSED:
15053 REQUIRE( mocked.m_derefed[0] )
15054 with expansion:
15055 true
15056
15057 MatchersRanges.tests.cpp:<line number>: PASSED:
15058 REQUIRE( mocked.m_derefed[1] )
15059 with expansion:
15060 true
15061
15062 MatchersRanges.tests.cpp:<line number>: PASSED:
15063 REQUIRE( mocked.m_derefed[2] )
15064 with expansion:
15065 true
15066
15067 MatchersRanges.tests.cpp:<line number>: PASSED:
15068 REQUIRE( mocked.m_derefed[3] )
15069 with expansion:
15070 true
15071
15072 MatchersRanges.tests.cpp:<line number>: PASSED:
15073 REQUIRE( mocked.m_derefed[4] )
15074 with expansion:
15075 true
15076
15077 -------------------------------------------------------------------------------
15078 Usage of NoneTrue range matcher
15079 Shortcircuiting
15080 Short-circuited
15081 -------------------------------------------------------------------------------
15082 MatchersRanges.tests.cpp:<line number>
15083 ...............................................................................
15084
15085 MatchersRanges.tests.cpp:<line number>: PASSED:
15086 REQUIRE_THAT( mocked, !NoneTrue() )
15087 with expansion:
15088 { false, false, true, true, true } not contains no true
15089
15090 MatchersRanges.tests.cpp:<line number>: PASSED:
15091 REQUIRE( mocked.m_derefed[0] )
15092 with expansion:
15093 true
15094
15095 MatchersRanges.tests.cpp:<line number>: PASSED:
15096 REQUIRE( mocked.m_derefed[1] )
15097 with expansion:
15098 true
15099
15100 MatchersRanges.tests.cpp:<line number>: PASSED:
15101 REQUIRE( mocked.m_derefed[2] )
15102 with expansion:
15103 true
15104
15105 MatchersRanges.tests.cpp:<line number>: PASSED:
15106 REQUIRE_FALSE( mocked.m_derefed[3] )
15107 with expansion:
15108 !false
15109
15110 MatchersRanges.tests.cpp:<line number>: PASSED:
15111 REQUIRE_FALSE( mocked.m_derefed[4] )
15112 with expansion:
15113 !false
15114
15115 -------------------------------------------------------------------------------
15116 Usage of RangeEquals range matcher
15117 Basic usage
15118 Empty container matches empty container
15119 -------------------------------------------------------------------------------
15120 MatchersRanges.tests.cpp:<line number>
15121 ...............................................................................
15122
15123 MatchersRanges.tests.cpp:<line number>: PASSED:
15124 CHECK_THAT( empty_vector, RangeEquals( empty_vector ) )
15125 with expansion:
15126 { } elements are { }
15127
15128 -------------------------------------------------------------------------------
15129 Usage of RangeEquals range matcher
15130 Basic usage
15131 Empty container does not match non-empty container
15132 -------------------------------------------------------------------------------
15133 MatchersRanges.tests.cpp:<line number>
15134 ...............................................................................
15135
15136 MatchersRanges.tests.cpp:<line number>: PASSED:
15137 CHECK_THAT( empty_vector, !RangeEquals( non_empty_vector ) )
15138 with expansion:
15139 { } not elements are { 1 }
15140
15141 MatchersRanges.tests.cpp:<line number>: PASSED:
15142 CHECK_THAT( non_empty_vector, !RangeEquals( empty_vector ) )
15143 with expansion:
15144 { 1 } not elements are { }
15145
15146 -------------------------------------------------------------------------------
15147 Usage of RangeEquals range matcher
15148 Basic usage
15149 Two equal 1-length non-empty containers
15150 -------------------------------------------------------------------------------
15151 MatchersRanges.tests.cpp:<line number>
15152 ...............................................................................
15153
15154 MatchersRanges.tests.cpp:<line number>: PASSED:
15155 CHECK_THAT( non_empty_array, RangeEquals( non_empty_array ) )
15156 with expansion:
15157 { 1 } elements are { 1 }
15158
15159 -------------------------------------------------------------------------------
15160 Usage of RangeEquals range matcher
15161 Basic usage
15162 Two equal-sized, equal, non-empty containers
15163 -------------------------------------------------------------------------------
15164 MatchersRanges.tests.cpp:<line number>
15165 ...............................................................................
15166
15167 MatchersRanges.tests.cpp:<line number>: PASSED:
15168 CHECK_THAT( array_a, RangeEquals( array_a ) )
15169 with expansion:
15170 { 1, 2, 3 } elements are { 1, 2, 3 }
15171
15172 -------------------------------------------------------------------------------
15173 Usage of RangeEquals range matcher
15174 Basic usage
15175 Two equal-sized, non-equal, non-empty containers
15176 -------------------------------------------------------------------------------
15177 MatchersRanges.tests.cpp:<line number>
15178 ...............................................................................
15179
15180 MatchersRanges.tests.cpp:<line number>: PASSED:
15181 CHECK_THAT( array_a, !RangeEquals( array_b ) )
15182 with expansion:
15183 { 1, 2, 3 } not elements are { 2, 2, 3 }
15184
15185 MatchersRanges.tests.cpp:<line number>: PASSED:
15186 CHECK_THAT( array_a, !RangeEquals( array_c ) )
15187 with expansion:
15188 { 1, 2, 3 } not elements are { 1, 2, 2 }
15189
15190 -------------------------------------------------------------------------------
15191 Usage of RangeEquals range matcher
15192 Basic usage
15193 Two non-equal-sized, non-empty containers (with same first elements)
15194 -------------------------------------------------------------------------------
15195 MatchersRanges.tests.cpp:<line number>
15196 ...............................................................................
15197
15198 MatchersRanges.tests.cpp:<line number>: PASSED:
15199 CHECK_THAT( vector_a, !RangeEquals( vector_b ) )
15200 with expansion:
15201 { 1, 2, 3 } not elements are { 1, 2, 3, 4 }
15202
15203 -------------------------------------------------------------------------------
15204 Usage of RangeEquals range matcher
15205 Custom predicate
15206 Two equal non-empty containers (close enough)
15207 -------------------------------------------------------------------------------
15208 MatchersRanges.tests.cpp:<line number>
15209 ...............................................................................
15210
15211 MatchersRanges.tests.cpp:<line number>: PASSED:
15212 CHECK_THAT( vector_a, RangeEquals( vector_a_plus_1, close_enough ) )
15213 with expansion:
15214 { 1, 2, 3 } elements are { 2, 3, 4 }
15215
15216 -------------------------------------------------------------------------------
15217 Usage of RangeEquals range matcher
15218 Custom predicate
15219 Two non-equal non-empty containers (close enough)
15220 -------------------------------------------------------------------------------
15221 MatchersRanges.tests.cpp:<line number>
15222 ...............................................................................
15223
15224 MatchersRanges.tests.cpp:<line number>: PASSED:
15225 CHECK_THAT( vector_a, !RangeEquals( vector_b, close_enough ) )
15226 with expansion:
15227 { 1, 2, 3 } not elements are { 3, 3, 4 }
15228
15229 -------------------------------------------------------------------------------
15230 Usage of RangeEquals range matcher
15231 Ranges that need ADL begin/end
15232 -------------------------------------------------------------------------------
15233 MatchersRanges.tests.cpp:<line number>
15234 ...............................................................................
15235
15236 MatchersRanges.tests.cpp:<line number>: PASSED:
15237 REQUIRE_THAT( needs_adl1, RangeEquals( needs_adl2 ) )
15238 with expansion:
15239 { 1, 2, 3, 4, 5 } elements are { 1, 2, 3, 4, 5 }
15240
15241 MatchersRanges.tests.cpp:<line number>: PASSED:
15242 REQUIRE_THAT( needs_adl1, RangeEquals( needs_adl3, []( int l, int r ) { return l + 1 == r; } ) )
15243 with expansion:
15244 { 1, 2, 3, 4, 5 } elements are { 2, 3, 4, 5, 6 }
15245
15246 -------------------------------------------------------------------------------
15247 Usage of RangeEquals range matcher
15248 Compare against std::initializer_list
15249 -------------------------------------------------------------------------------
15250 MatchersRanges.tests.cpp:<line number>
15251 ...............................................................................
15252
15253 MatchersRanges.tests.cpp:<line number>: PASSED:
15254 REQUIRE_THAT( array_a, RangeEquals( { 1, 2, 3 } ) )
15255 with expansion:
15256 { 1, 2, 3 } elements are { 1, 2, 3 }
15257
15258 MatchersRanges.tests.cpp:<line number>: PASSED:
15259 REQUIRE_THAT( array_a, RangeEquals( { 2, 4, 6 }, []( int l, int r ) { return l * 2 == r; } ) )
15260 with expansion:
15261 { 1, 2, 3 } elements are { 2, 4, 6 }
15262
15263 -------------------------------------------------------------------------------
15264 Usage of RangeEquals range matcher
15265 Check short-circuiting behaviour
15266 Check short-circuits on failure
15267 -------------------------------------------------------------------------------
15268 MatchersRanges.tests.cpp:<line number>
15269 ...............................................................................
15270
15271 MatchersRanges.tests.cpp:<line number>: PASSED:
15272 REQUIRE_THAT( mocked1, !RangeEquals( arr ) )
15273 with expansion:
15274 { 1, 2, 3, 4 } not elements are { 1, 2, 4, 4 }
15275
15276 MatchersRanges.tests.cpp:<line number>: PASSED:
15277 REQUIRE( mocked1.m_derefed[0] )
15278 with expansion:
15279 true
15280
15281 MatchersRanges.tests.cpp:<line number>: PASSED:
15282 REQUIRE( mocked1.m_derefed[1] )
15283 with expansion:
15284 true
15285
15286 MatchersRanges.tests.cpp:<line number>: PASSED:
15287 REQUIRE( mocked1.m_derefed[2] )
15288 with expansion:
15289 true
15290
15291 MatchersRanges.tests.cpp:<line number>: PASSED:
15292 REQUIRE_FALSE( mocked1.m_derefed[3] )
15293 with expansion:
15294 !false
15295
15296 -------------------------------------------------------------------------------
15297 Usage of RangeEquals range matcher
15298 Check short-circuiting behaviour
15299 All elements are checked on success
15300 -------------------------------------------------------------------------------
15301 MatchersRanges.tests.cpp:<line number>
15302 ...............................................................................
15303
15304 MatchersRanges.tests.cpp:<line number>: PASSED:
15305 REQUIRE_THAT( mocked1, RangeEquals( arr ) )
15306 with expansion:
15307 { 1, 2, 3, 4 } elements are { 1, 2, 3, 4 }
15308
15309 MatchersRanges.tests.cpp:<line number>: PASSED:
15310 REQUIRE( mocked1.m_derefed[0] )
15311 with expansion:
15312 true
15313
15314 MatchersRanges.tests.cpp:<line number>: PASSED:
15315 REQUIRE( mocked1.m_derefed[1] )
15316 with expansion:
15317 true
15318
15319 MatchersRanges.tests.cpp:<line number>: PASSED:
15320 REQUIRE( mocked1.m_derefed[2] )
15321 with expansion:
15322 true
15323
15324 MatchersRanges.tests.cpp:<line number>: PASSED:
15325 REQUIRE( mocked1.m_derefed[3] )
15326 with expansion:
15327 true
15328
15329 -------------------------------------------------------------------------------
15330 Usage of UnorderedRangeEquals range matcher
15331 Basic usage
15332 Empty container matches empty container
15333 -------------------------------------------------------------------------------
15334 MatchersRanges.tests.cpp:<line number>
15335 ...............................................................................
15336
15337 MatchersRanges.tests.cpp:<line number>: PASSED:
15338 CHECK_THAT( empty_vector, UnorderedRangeEquals( empty_vector ) )
15339 with expansion:
15340 { } unordered elements are { }
15341
15342 -------------------------------------------------------------------------------
15343 Usage of UnorderedRangeEquals range matcher
15344 Basic usage
15345 Empty container does not match non-empty container
15346 -------------------------------------------------------------------------------
15347 MatchersRanges.tests.cpp:<line number>
15348 ...............................................................................
15349
15350 MatchersRanges.tests.cpp:<line number>: PASSED:
15351 CHECK_THAT( empty_vector, !UnorderedRangeEquals( non_empty_vector ) )
15352 with expansion:
15353 { } not unordered elements are { 1 }
15354
15355 MatchersRanges.tests.cpp:<line number>: PASSED:
15356 CHECK_THAT( non_empty_vector, !UnorderedRangeEquals( empty_vector ) )
15357 with expansion:
15358 { 1 } not unordered elements are { }
15359
15360 -------------------------------------------------------------------------------
15361 Usage of UnorderedRangeEquals range matcher
15362 Basic usage
15363 Two equal 1-length non-empty containers
15364 -------------------------------------------------------------------------------
15365 MatchersRanges.tests.cpp:<line number>
15366 ...............................................................................
15367
15368 MatchersRanges.tests.cpp:<line number>: PASSED:
15369 CHECK_THAT( non_empty_array, UnorderedRangeEquals( non_empty_array ) )
15370 with expansion:
15371 { 1 } unordered elements are { 1 }
15372
15373 -------------------------------------------------------------------------------
15374 Usage of UnorderedRangeEquals range matcher
15375 Basic usage
15376 Two equal-sized, equal, non-empty containers
15377 -------------------------------------------------------------------------------
15378 MatchersRanges.tests.cpp:<line number>
15379 ...............................................................................
15380
15381 MatchersRanges.tests.cpp:<line number>: PASSED:
15382 CHECK_THAT( array_a, UnorderedRangeEquals( array_a ) )
15383 with expansion:
15384 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
15385
15386 -------------------------------------------------------------------------------
15387 Usage of UnorderedRangeEquals range matcher
15388 Basic usage
15389 Two equal-sized, non-equal, non-empty containers
15390 -------------------------------------------------------------------------------
15391 MatchersRanges.tests.cpp:<line number>
15392 ...............................................................................
15393
15394 MatchersRanges.tests.cpp:<line number>: PASSED:
15395 CHECK_THAT( array_a, !UnorderedRangeEquals( array_b ) )
15396 with expansion:
15397 { 1, 2, 3 } not unordered elements are { 2, 2, 3 }
15398
15399 -------------------------------------------------------------------------------
15400 Usage of UnorderedRangeEquals range matcher
15401 Basic usage
15402 Two non-equal-sized, non-empty containers
15403 -------------------------------------------------------------------------------
15404 MatchersRanges.tests.cpp:<line number>
15405 ...............................................................................
15406
15407 MatchersRanges.tests.cpp:<line number>: PASSED:
15408 CHECK_THAT( vector_a, !UnorderedRangeEquals( vector_b ) )
15409 with expansion:
15410 { 1, 2, 3 } not unordered elements are { 1, 2, 3, 4 }
15411
15412 -------------------------------------------------------------------------------
15413 Usage of UnorderedRangeEquals range matcher
15414 Custom predicate
15415 Two equal non-empty containers (close enough)
15416 -------------------------------------------------------------------------------
15417 MatchersRanges.tests.cpp:<line number>
15418 ...............................................................................
15419
15420 MatchersRanges.tests.cpp:<line number>: PASSED:
15421 CHECK_THAT( vector_a, UnorderedRangeEquals( vector_a_plus_1, close_enough ) )
15422 with expansion:
15423 { 1, 10, 20 } unordered elements are { 11, 21, 2 }
15424
15425 -------------------------------------------------------------------------------
15426 Usage of UnorderedRangeEquals range matcher
15427 Custom predicate
15428 Two non-equal non-empty containers (close enough)
15429 -------------------------------------------------------------------------------
15430 MatchersRanges.tests.cpp:<line number>
15431 ...............................................................................
15432
15433 MatchersRanges.tests.cpp:<line number>: PASSED:
15434 CHECK_THAT( vector_a, !UnorderedRangeEquals( vector_b, close_enough ) )
15435 with expansion:
15436 { 1, 10, 21 } not unordered elements are { 11, 21, 3 }
15437
15438 -------------------------------------------------------------------------------
15439 Usage of UnorderedRangeEquals range matcher
15440 Ranges that need ADL begin/end
15441 -------------------------------------------------------------------------------
15442 MatchersRanges.tests.cpp:<line number>
15443 ...............................................................................
15444
15445 MatchersRanges.tests.cpp:<line number>: PASSED:
15446 REQUIRE_THAT( needs_adl1, UnorderedRangeEquals( needs_adl2 ) )
15447 with expansion:
15448 { 1, 2, 3, 4, 5 } unordered elements are { 1, 2, 3, 4, 5 }
15449
15450 -------------------------------------------------------------------------------
15451 Usage of UnorderedRangeEquals range matcher
15452 Compare against std::initializer_list
15453 -------------------------------------------------------------------------------
15454 MatchersRanges.tests.cpp:<line number>
15455 ...............................................................................
15456
15457 MatchersRanges.tests.cpp:<line number>: PASSED:
15458 REQUIRE_THAT( array_a, UnorderedRangeEquals( { 10, 20, 1 } ) )
15459 with expansion:
15460 { 1, 10, 20 } unordered elements are { 10, 20, 1 }
15461
15462 MatchersRanges.tests.cpp:<line number>: PASSED:
15463 REQUIRE_THAT( array_a, UnorderedRangeEquals( { 11, 21, 2 }, []( int l, int r ) { return std::abs( l - r ) <= 1; } ) )
15464 with expansion:
15465 { 1, 10, 20 } unordered elements are { 11, 21, 2 }
15466
15467 -------------------------------------------------------------------------------
15468 Usage of the SizeIs range matcher
15469 Some with stdlib containers
15470 -------------------------------------------------------------------------------
15471 MatchersRanges.tests.cpp:<line number>
15472 ...............................................................................
15473
15474 MatchersRanges.tests.cpp:<line number>: PASSED:
15475 REQUIRE_THAT( empty_vec, SizeIs(0) )
15476 with expansion:
15477 { } has size == 0
15478
15479 MatchersRanges.tests.cpp:<line number>: PASSED:
15480 REQUIRE_THAT( empty_vec, !SizeIs(2) )
15481 with expansion:
15482 { } not has size == 2
15483
15484 MatchersRanges.tests.cpp:<line number>: PASSED:
15485 REQUIRE_THAT( empty_vec, SizeIs(Lt(2)) )
15486 with expansion:
15487 { } size matches is less than 2
15488
15489 MatchersRanges.tests.cpp:<line number>: PASSED:
15490 REQUIRE_THAT( arr, SizeIs(2) )
15491 with expansion:
15492 { 0, 0 } has size == 2
15493
15494 MatchersRanges.tests.cpp:<line number>: PASSED:
15495 REQUIRE_THAT( arr, SizeIs( Lt(3)) )
15496 with expansion:
15497 { 0, 0 } size matches is less than 3
15498
15499 MatchersRanges.tests.cpp:<line number>: PASSED:
15500 REQUIRE_THAT( arr, !SizeIs(!Lt(3)) )
15501 with expansion:
15502 { 0, 0 } not size matches not is less than 3
15503
15504 MatchersRanges.tests.cpp:<line number>: PASSED:
15505 REQUIRE_THAT( map, SizeIs(3) )
15506 with expansion:
15507 { {?}, {?}, {?} } has size == 3
15508
15509 -------------------------------------------------------------------------------
15510 Usage of the SizeIs range matcher
15511 Type requires ADL found size free function
15512 -------------------------------------------------------------------------------
15513 MatchersRanges.tests.cpp:<line number>
15514 ...............................................................................
15515
15516 MatchersRanges.tests.cpp:<line number>: PASSED:
15517 REQUIRE_THAT( unrelated::ADL_size{}, SizeIs(12) )
15518 with expansion:
15519 {?} has size == 12
15520
15521 -------------------------------------------------------------------------------
15522 Usage of the SizeIs range matcher
15523 Type has size member
15524 -------------------------------------------------------------------------------
15525 MatchersRanges.tests.cpp:<line number>
15526 ...............................................................................
15527
15528 MatchersRanges.tests.cpp:<line number>: PASSED:
15529 REQUIRE_THAT( has_size{}, SizeIs(13) )
15530 with expansion:
15531 {?} has size == 13
15532
15533 -------------------------------------------------------------------------------
15534 Use a custom approx
15535 -------------------------------------------------------------------------------
15536 Approx.tests.cpp:<line number>
15537 ...............................................................................
15538
15539 Approx.tests.cpp:<line number>: PASSED:
15540 REQUIRE( d == approx( 1.23 ) )
15541 with expansion:
15542 1.22999999999999998
15543 ==
15544 Approx( 1.22999999999999998 )
15545
15546 Approx.tests.cpp:<line number>: PASSED:
15547 REQUIRE( d == approx( 1.22 ) )
15548 with expansion:
15549 1.22999999999999998
15550 ==
15551 Approx( 1.21999999999999997 )
15552
15553 Approx.tests.cpp:<line number>: PASSED:
15554 REQUIRE( d == approx( 1.24 ) )
15555 with expansion:
15556 1.22999999999999998
15557 ==
15558 Approx( 1.23999999999999999 )
15559
15560 Approx.tests.cpp:<line number>: PASSED:
15561 REQUIRE( d != approx( 1.25 ) )
15562 with expansion:
15563 1.22999999999999998 != Approx( 1.25 )
15564
15565 Approx.tests.cpp:<line number>: PASSED:
15566 REQUIRE( approx( d ) == 1.23 )
15567 with expansion:
15568 Approx( 1.22999999999999998 )
15569 ==
15570 1.22999999999999998
15571
15572 Approx.tests.cpp:<line number>: PASSED:
15573 REQUIRE( approx( d ) == 1.22 )
15574 with expansion:
15575 Approx( 1.22999999999999998 )
15576 ==
15577 1.21999999999999997
15578
15579 Approx.tests.cpp:<line number>: PASSED:
15580 REQUIRE( approx( d ) == 1.24 )
15581 with expansion:
15582 Approx( 1.22999999999999998 )
15583 ==
15584 1.23999999999999999
15585
15586 Approx.tests.cpp:<line number>: PASSED:
15587 REQUIRE( approx( d ) != 1.25 )
15588 with expansion:
15589 Approx( 1.22999999999999998 ) != 1.25
15590
15591 -------------------------------------------------------------------------------
15592 Variadic macros
15593 Section with one argument
15594 -------------------------------------------------------------------------------
15595 VariadicMacros.tests.cpp:<line number>
15596 ...............................................................................
15597
15598 VariadicMacros.tests.cpp:<line number>: PASSED:
15599 with message:
15600 no assertions
15601
15602 -------------------------------------------------------------------------------
15603 Vector Approx matcher
15604 Empty vector is roughly equal to an empty vector
15605 -------------------------------------------------------------------------------
15606 Matchers.tests.cpp:<line number>
15607 ...............................................................................
15608
15609 Matchers.tests.cpp:<line number>: PASSED:
15610 REQUIRE_THAT( empty, Approx( empty ) )
15611 with expansion:
15612 { } is approx: { }
15613
15614 -------------------------------------------------------------------------------
15615 Vector Approx matcher
15616 Vectors with elements
15617 A vector is approx equal to itself
15618 -------------------------------------------------------------------------------
15619 Matchers.tests.cpp:<line number>
15620 ...............................................................................
15621
15622 Matchers.tests.cpp:<line number>: PASSED:
15623 REQUIRE_THAT( v1, Approx( v1 ) )
15624 with expansion:
15625 { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
15626
15627 Matchers.tests.cpp:<line number>: PASSED:
15628 REQUIRE_THAT( v1, Approx<double>( { 1., 2., 3. } ) )
15629 with expansion:
15630 { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
15631
15632 -------------------------------------------------------------------------------
15633 Vector Approx matcher
15634 Vectors with elements
15635 Different length
15636 -------------------------------------------------------------------------------
15637 Matchers.tests.cpp:<line number>
15638 ...............................................................................
15639
15640 Matchers.tests.cpp:<line number>: PASSED:
15641 REQUIRE_THAT( v1, !Approx( temp ) )
15642 with expansion:
15643 { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
15644
15645 -------------------------------------------------------------------------------
15646 Vector Approx matcher
15647 Vectors with elements
15648 Same length, different elements
15649 -------------------------------------------------------------------------------
15650 Matchers.tests.cpp:<line number>
15651 ...............................................................................
15652
15653 Matchers.tests.cpp:<line number>: PASSED:
15654 REQUIRE_THAT( v1, !Approx( v2 ) )
15655 with expansion:
15656 { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
15657
15658 Matchers.tests.cpp:<line number>: PASSED:
15659 REQUIRE_THAT( v1, Approx( v2 ).margin( 0.5 ) )
15660 with expansion:
15661 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
15662
15663 Matchers.tests.cpp:<line number>: PASSED:
15664 REQUIRE_THAT( v1, Approx( v2 ).epsilon( 0.5 ) )
15665 with expansion:
15666 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
15667
15668 Matchers.tests.cpp:<line number>: PASSED:
15669 REQUIRE_THAT( v1, Approx( v2 ).epsilon( 0.1 ).scale( 500 ) )
15670 with expansion:
15671 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
15672
15673 -------------------------------------------------------------------------------
15674 Vector Approx matcher -- failing
15675 Empty and non empty vectors are not approx equal
15676 -------------------------------------------------------------------------------
15677 Matchers.tests.cpp:<line number>
15678 ...............................................................................
15679
15680 Matchers.tests.cpp:<line number>: FAILED:
15681 CHECK_THAT( empty, Approx( t1 ) )
15682 with expansion:
15683 { } is approx: { 1.0, 2.0 }
15684
15685 -------------------------------------------------------------------------------
15686 Vector Approx matcher -- failing
15687 Just different vectors
15688 -------------------------------------------------------------------------------
15689 Matchers.tests.cpp:<line number>
15690 ...............................................................................
15691
15692 Matchers.tests.cpp:<line number>: FAILED:
15693 CHECK_THAT( v1, Approx( v2 ) )
15694 with expansion:
15695 { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
15696
15697 -------------------------------------------------------------------------------
15698 Vector matchers
15699 Contains (element)
15700 -------------------------------------------------------------------------------
15701 Matchers.tests.cpp:<line number>
15702 ...............................................................................
15703
15704 Matchers.tests.cpp:<line number>: PASSED:
15705 CHECK_THAT( v, VectorContains( 1 ) )
15706 with expansion:
15707 { 1, 2, 3 } Contains: 1
15708
15709 Matchers.tests.cpp:<line number>: PASSED:
15710 CHECK_THAT( v, VectorContains( 2 ) )
15711 with expansion:
15712 { 1, 2, 3 } Contains: 2
15713
15714 Matchers.tests.cpp:<line number>: PASSED:
15715 CHECK_THAT( v5, ( VectorContains<int, CustomAllocator<int>>( 2 ) ) )
15716 with expansion:
15717 { 1, 2, 3 } Contains: 2
15718
15719 -------------------------------------------------------------------------------
15720 Vector matchers
15721 Contains (vector)
15722 -------------------------------------------------------------------------------
15723 Matchers.tests.cpp:<line number>
15724 ...............................................................................
15725
15726 Matchers.tests.cpp:<line number>: PASSED:
15727 CHECK_THAT( v, Contains( v2 ) )
15728 with expansion:
15729 { 1, 2, 3 } Contains: { 1, 2 }
15730
15731 Matchers.tests.cpp:<line number>: PASSED:
15732 CHECK_THAT( v, Contains<int>( { 1, 2 } ) )
15733 with expansion:
15734 { 1, 2, 3 } Contains: { 1, 2 }
15735
15736 Matchers.tests.cpp:<line number>: PASSED:
15737 CHECK_THAT( v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
15738 with expansion:
15739 { 1, 2, 3 } Contains: { 1, 2 }
15740
15741 Matchers.tests.cpp:<line number>: PASSED:
15742 CHECK_THAT( v, Contains( v2 ) )
15743 with expansion:
15744 { 1, 2, 3 } Contains: { 1, 2, 3 }
15745
15746 Matchers.tests.cpp:<line number>: PASSED:
15747 CHECK_THAT( v, Contains( empty ) )
15748 with expansion:
15749 { 1, 2, 3 } Contains: { }
15750
15751 Matchers.tests.cpp:<line number>: PASSED:
15752 CHECK_THAT( empty, Contains( empty ) )
15753 with expansion:
15754 { } Contains: { }
15755
15756 Matchers.tests.cpp:<line number>: PASSED:
15757 CHECK_THAT( v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
15758 with expansion:
15759 { 1, 2, 3 } Contains: { 1, 2, 3 }
15760
15761 Matchers.tests.cpp:<line number>: PASSED:
15762 CHECK_THAT( v5, Contains( v6 ) )
15763 with expansion:
15764 { 1, 2, 3 } Contains: { 1, 2 }
15765
15766 -------------------------------------------------------------------------------
15767 Vector matchers
15768 Contains (element), composed
15769 -------------------------------------------------------------------------------
15770 Matchers.tests.cpp:<line number>
15771 ...............................................................................
15772
15773 Matchers.tests.cpp:<line number>: PASSED:
15774 CHECK_THAT( v, VectorContains( 1 ) && VectorContains( 2 ) )
15775 with expansion:
15776 { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
15777
15778 -------------------------------------------------------------------------------
15779 Vector matchers
15780 Equals
15781 -------------------------------------------------------------------------------
15782 Matchers.tests.cpp:<line number>
15783 ...............................................................................
15784
15785 Matchers.tests.cpp:<line number>: PASSED:
15786 CHECK_THAT( v, Equals( v ) )
15787 with expansion:
15788 { 1, 2, 3 } Equals: { 1, 2, 3 }
15789
15790 Matchers.tests.cpp:<line number>: PASSED:
15791 CHECK_THAT( empty, Equals( empty ) )
15792 with expansion:
15793 { } Equals: { }
15794
15795 Matchers.tests.cpp:<line number>: PASSED:
15796 CHECK_THAT( v, Equals<int>( { 1, 2, 3 } ) )
15797 with expansion:
15798 { 1, 2, 3 } Equals: { 1, 2, 3 }
15799
15800 Matchers.tests.cpp:<line number>: PASSED:
15801 CHECK_THAT( v, Equals( v2 ) )
15802 with expansion:
15803 { 1, 2, 3 } Equals: { 1, 2, 3 }
15804
15805 Matchers.tests.cpp:<line number>: PASSED:
15806 CHECK_THAT( v5, ( Equals<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
15807 with expansion:
15808 { 1, 2, 3 } Equals: { 1, 2, 3 }
15809
15810 Matchers.tests.cpp:<line number>: PASSED:
15811 CHECK_THAT( v5, Equals( v6 ) )
15812 with expansion:
15813 { 1, 2, 3 } Equals: { 1, 2, 3 }
15814
15815 -------------------------------------------------------------------------------
15816 Vector matchers
15817 UnorderedEquals
15818 -------------------------------------------------------------------------------
15819 Matchers.tests.cpp:<line number>
15820 ...............................................................................
15821
15822 Matchers.tests.cpp:<line number>: PASSED:
15823 CHECK_THAT( v, UnorderedEquals( v ) )
15824 with expansion:
15825 { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
15826
15827 Matchers.tests.cpp:<line number>: PASSED:
15828 CHECK_THAT( v, UnorderedEquals<int>( { 3, 2, 1 } ) )
15829 with expansion:
15830 { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
15831
15832 Matchers.tests.cpp:<line number>: PASSED:
15833 CHECK_THAT( empty, UnorderedEquals( empty ) )
15834 with expansion:
15835 { } UnorderedEquals: { }
15836
15837 Matchers.tests.cpp:<line number>: PASSED:
15838 REQUIRE_THAT( permuted, UnorderedEquals( v ) )
15839 with expansion:
15840 { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
15841
15842 Matchers.tests.cpp:<line number>: PASSED:
15843 REQUIRE_THAT( permuted, UnorderedEquals( v ) )
15844 with expansion:
15845 { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
15846
15847 Matchers.tests.cpp:<line number>: PASSED:
15848 CHECK_THAT( v5, ( UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>( permuted ) ) )
15849 with expansion:
15850 { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
15851
15852 Matchers.tests.cpp:<line number>: PASSED:
15853 CHECK_THAT( v5_permuted, UnorderedEquals( v5 ) )
15854 with expansion:
15855 { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
15856
15857 -------------------------------------------------------------------------------
15858 Vector matchers that fail
15859 Contains (element)
15860 -------------------------------------------------------------------------------
15861 Matchers.tests.cpp:<line number>
15862 ...............................................................................
15863
15864 Matchers.tests.cpp:<line number>: FAILED:
15865 CHECK_THAT( v, VectorContains( -1 ) )
15866 with expansion:
15867 { 1, 2, 3 } Contains: -1
15868
15869 Matchers.tests.cpp:<line number>: FAILED:
15870 CHECK_THAT( empty, VectorContains( 1 ) )
15871 with expansion:
15872 { } Contains: 1
15873
15874 -------------------------------------------------------------------------------
15875 Vector matchers that fail
15876 Contains (vector)
15877 -------------------------------------------------------------------------------
15878 Matchers.tests.cpp:<line number>
15879 ...............................................................................
15880
15881 Matchers.tests.cpp:<line number>: FAILED:
15882 CHECK_THAT( empty, Contains( v ) )
15883 with expansion:
15884 { } Contains: { 1, 2, 3 }
15885
15886 Matchers.tests.cpp:<line number>: FAILED:
15887 CHECK_THAT( v, Contains( v2 ) )
15888 with expansion:
15889 { 1, 2, 3 } Contains: { 1, 2, 4 }
15890
15891 -------------------------------------------------------------------------------
15892 Vector matchers that fail
15893 Equals
15894 -------------------------------------------------------------------------------
15895 Matchers.tests.cpp:<line number>
15896 ...............................................................................
15897
15898 Matchers.tests.cpp:<line number>: FAILED:
15899 CHECK_THAT( v, Equals( v2 ) )
15900 with expansion:
15901 { 1, 2, 3 } Equals: { 1, 2 }
15902
15903 Matchers.tests.cpp:<line number>: FAILED:
15904 CHECK_THAT( v2, Equals( v ) )
15905 with expansion:
15906 { 1, 2 } Equals: { 1, 2, 3 }
15907
15908 Matchers.tests.cpp:<line number>: FAILED:
15909 CHECK_THAT( empty, Equals( v ) )
15910 with expansion:
15911 { } Equals: { 1, 2, 3 }
15912
15913 Matchers.tests.cpp:<line number>: FAILED:
15914 CHECK_THAT( v, Equals( empty ) )
15915 with expansion:
15916 { 1, 2, 3 } Equals: { }
15917
15918 -------------------------------------------------------------------------------
15919 Vector matchers that fail
15920 UnorderedEquals
15921 -------------------------------------------------------------------------------
15922 Matchers.tests.cpp:<line number>
15923 ...............................................................................
15924
15925 Matchers.tests.cpp:<line number>: FAILED:
15926 CHECK_THAT( v, UnorderedEquals( empty ) )
15927 with expansion:
15928 { 1, 2, 3 } UnorderedEquals: { }
15929
15930 Matchers.tests.cpp:<line number>: FAILED:
15931 CHECK_THAT( empty, UnorderedEquals( v ) )
15932 with expansion:
15933 { } UnorderedEquals: { 1, 2, 3 }
15934
15935 Matchers.tests.cpp:<line number>: FAILED:
15936 CHECK_THAT( permuted, UnorderedEquals( v ) )
15937 with expansion:
15938 { 1, 3 } UnorderedEquals: { 1, 2, 3 }
15939
15940 Matchers.tests.cpp:<line number>: FAILED:
15941 CHECK_THAT( permuted, UnorderedEquals( v ) )
15942 with expansion:
15943 { 3, 1 } UnorderedEquals: { 1, 2, 3 }
15944
15945 -------------------------------------------------------------------------------
15946 When checked exceptions are thrown they can be expected or unexpected
15947 -------------------------------------------------------------------------------
15948 Exception.tests.cpp:<line number>
15949 ...............................................................................
15950
15951 Exception.tests.cpp:<line number>: PASSED:
15952 REQUIRE_THROWS_AS( thisThrows(), std::domain_error )
15953
15954 Exception.tests.cpp:<line number>: PASSED:
15955 REQUIRE_NOTHROW( thisDoesntThrow() )
15956
15957 Exception.tests.cpp:<line number>: PASSED:
15958 REQUIRE_THROWS( thisThrows() )
15959
15960 -------------------------------------------------------------------------------
15961 When unchecked exceptions are thrown directly they are always failures
15962 -------------------------------------------------------------------------------
15963 Exception.tests.cpp:<line number>
15964 ...............................................................................
15965
15966 Exception.tests.cpp:<line number>: FAILED:
15967 due to unexpected exception with message:
15968 unexpected exception
15969
15970 -------------------------------------------------------------------------------
15971 When unchecked exceptions are thrown during a CHECK the test should continue
15972 -------------------------------------------------------------------------------
15973 Exception.tests.cpp:<line number>
15974 ...............................................................................
15975
15976 Exception.tests.cpp:<line number>: FAILED:
15977 CHECK( thisThrows() == 0 )
15978 due to unexpected exception with message:
15979 expected exception
15980
15981 -------------------------------------------------------------------------------
15982 When unchecked exceptions are thrown during a REQUIRE the test should abort
15983 fail
15984 -------------------------------------------------------------------------------
15985 Exception.tests.cpp:<line number>
15986 ...............................................................................
15987
15988 Exception.tests.cpp:<line number>: FAILED:
15989 REQUIRE( thisThrows() == 0 )
15990 due to unexpected exception with message:
15991 expected exception
15992
15993 -------------------------------------------------------------------------------
15994 When unchecked exceptions are thrown from functions they are always failures
15995 -------------------------------------------------------------------------------
15996 Exception.tests.cpp:<line number>
15997 ...............................................................................
15998
15999 Exception.tests.cpp:<line number>: FAILED:
16000 CHECK( thisThrows() == 0 )
16001 due to unexpected exception with message:
16002 expected exception
16003
16004 -------------------------------------------------------------------------------
16005 When unchecked exceptions are thrown from sections they are always failures
16006 section name
16007 -------------------------------------------------------------------------------
16008 Exception.tests.cpp:<line number>
16009 ...............................................................................
16010
16011 Exception.tests.cpp:<line number>: FAILED:
16012 {Unknown expression after the reported line}
16013 due to unexpected exception with message:
16014 unexpected exception
16015
16016 -------------------------------------------------------------------------------
16017 When unchecked exceptions are thrown, but caught, they do not affect the test
16018 -------------------------------------------------------------------------------
16019 Exception.tests.cpp:<line number>
16020 ...............................................................................
16021
16022
16023 No assertions in test case 'When unchecked exceptions are thrown, but caught, they do not affect the test'
16024
16025 -------------------------------------------------------------------------------
16026 X/level/0/a
16027 -------------------------------------------------------------------------------
16028 Tricky.tests.cpp:<line number>
16029 ...............................................................................
16030
16031 Tricky.tests.cpp:<line number>: PASSED:
16032
16033 -------------------------------------------------------------------------------
16034 X/level/0/b
16035 -------------------------------------------------------------------------------
16036 Tricky.tests.cpp:<line number>
16037 ...............................................................................
16038
16039 Tricky.tests.cpp:<line number>: PASSED:
16040
16041 -------------------------------------------------------------------------------
16042 X/level/1/a
16043 -------------------------------------------------------------------------------
16044 Tricky.tests.cpp:<line number>
16045 ...............................................................................
16046
16047 Tricky.tests.cpp:<line number>: PASSED:
16048
16049 -------------------------------------------------------------------------------
16050 X/level/1/b
16051 -------------------------------------------------------------------------------
16052 Tricky.tests.cpp:<line number>
16053 ...............................................................................
16054
16055 Tricky.tests.cpp:<line number>: PASSED:
16056
16057 -------------------------------------------------------------------------------
16058 XmlEncode
16059 normal string
16060 -------------------------------------------------------------------------------
16061 Xml.tests.cpp:<line number>
16062 ...............................................................................
16063
16064 Xml.tests.cpp:<line number>: PASSED:
16065 REQUIRE( encode( "normal string" ) == "normal string" )
16066 with expansion:
16067 "normal string" == "normal string"
16068
16069 -------------------------------------------------------------------------------
16070 XmlEncode
16071 empty string
16072 -------------------------------------------------------------------------------
16073 Xml.tests.cpp:<line number>
16074 ...............................................................................
16075
16076 Xml.tests.cpp:<line number>: PASSED:
16077 REQUIRE( encode( "" ) == "" )
16078 with expansion:
16079 "" == ""
16080
16081 -------------------------------------------------------------------------------
16082 XmlEncode
16083 string with ampersand
16084 -------------------------------------------------------------------------------
16085 Xml.tests.cpp:<line number>
16086 ...............................................................................
16087
16088 Xml.tests.cpp:<line number>: PASSED:
16089 REQUIRE( encode( "smith & jones" ) == "smith &amp; jones" )
16090 with expansion:
16091 "smith &amp; jones" == "smith &amp; jones"
16092
16093 -------------------------------------------------------------------------------
16094 XmlEncode
16095 string with less-than
16096 -------------------------------------------------------------------------------
16097 Xml.tests.cpp:<line number>
16098 ...............................................................................
16099
16100 Xml.tests.cpp:<line number>: PASSED:
16101 REQUIRE( encode( "smith < jones" ) == "smith &lt; jones" )
16102 with expansion:
16103 "smith &lt; jones" == "smith &lt; jones"
16104
16105 -------------------------------------------------------------------------------
16106 XmlEncode
16107 string with greater-than
16108 -------------------------------------------------------------------------------
16109 Xml.tests.cpp:<line number>
16110 ...............................................................................
16111
16112 Xml.tests.cpp:<line number>: PASSED:
16113 REQUIRE( encode( "smith > jones" ) == "smith > jones" )
16114 with expansion:
16115 "smith > jones" == "smith > jones"
16116
16117 Xml.tests.cpp:<line number>: PASSED:
16118 REQUIRE( encode( "smith ]]> jones" ) == "smith ]]&gt; jones" )
16119 with expansion:
16120 "smith ]]&gt; jones"
16121 ==
16122 "smith ]]&gt; jones"
16123
16124 -------------------------------------------------------------------------------
16125 XmlEncode
16126 string with quotes
16127 -------------------------------------------------------------------------------
16128 Xml.tests.cpp:<line number>
16129 ...............................................................................
16130
16131 Xml.tests.cpp:<line number>: PASSED:
16132 REQUIRE( encode( stringWithQuotes ) == stringWithQuotes )
16133 with expansion:
16134 "don't "quote" me on that"
16135 ==
16136 "don't "quote" me on that"
16137
16138 Xml.tests.cpp:<line number>: PASSED:
16139 REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" )
16140 with expansion:
16141 "don't &quot;quote&quot; me on that"
16142 ==
16143 "don't &quot;quote&quot; me on that"
16144
16145 -------------------------------------------------------------------------------
16146 XmlEncode
16147 string with control char (1)
16148 -------------------------------------------------------------------------------
16149 Xml.tests.cpp:<line number>
16150 ...............................................................................
16151
16152 Xml.tests.cpp:<line number>: PASSED:
16153 REQUIRE( encode( "[\x01]" ) == "[\\x01]" )
16154 with expansion:
16155 "[\x01]" == "[\x01]"
16156
16157 -------------------------------------------------------------------------------
16158 XmlEncode
16159 string with control char (x7F)
16160 -------------------------------------------------------------------------------
16161 Xml.tests.cpp:<line number>
16162 ...............................................................................
16163
16164 Xml.tests.cpp:<line number>: PASSED:
16165 REQUIRE( encode( "[\x7F]" ) == "[\\x7F]" )
16166 with expansion:
16167 "[\x7F]" == "[\x7F]"
16168
16169 -------------------------------------------------------------------------------
16170 XmlWriter writes boolean attributes as true/false
16171 -------------------------------------------------------------------------------
16172 Xml.tests.cpp:<line number>
16173 ...............................................................................
16174
16175 Xml.tests.cpp:<line number>: PASSED:
16176 REQUIRE_THAT( stream.str(), ContainsSubstring(R"(attr1="true")") && ContainsSubstring(R"(attr2="false")") )
16177 with expansion:
16178 "<?xml version="1.0" encoding="UTF-8"?>
16179 <Element1 attr1="true" attr2="false"/>
16180 " ( contains: "attr1="true"" and contains: "attr2="false"" )
16181
16182 -------------------------------------------------------------------------------
16183 a succeeding test can still be skipped
16184 -------------------------------------------------------------------------------
16185 Skip.tests.cpp:<line number>
16186 ...............................................................................
16187
16188 Skip.tests.cpp:<line number>: PASSED:
16189
16190 Skip.tests.cpp:<line number>: SKIPPED:
16191
16192 -------------------------------------------------------------------------------
16193 analyse no analysis
16194 -------------------------------------------------------------------------------
16195 InternalBenchmark.tests.cpp:<line number>
16196 ...............................................................................
16197
16198 InternalBenchmark.tests.cpp:<line number>: PASSED:
16199 CHECK( analysis.mean.point.count() == 23 )
16200 with expansion:
16201 23.0 == 23
16202
16203 InternalBenchmark.tests.cpp:<line number>: PASSED:
16204 CHECK( analysis.mean.lower_bound.count() == 23 )
16205 with expansion:
16206 23.0 == 23
16207
16208 InternalBenchmark.tests.cpp:<line number>: PASSED:
16209 CHECK( analysis.mean.upper_bound.count() == 23 )
16210 with expansion:
16211 23.0 == 23
16212
16213 InternalBenchmark.tests.cpp:<line number>: PASSED:
16214 CHECK( analysis.standard_deviation.point.count() == 0 )
16215 with expansion:
16216 0.0 == 0
16217
16218 InternalBenchmark.tests.cpp:<line number>: PASSED:
16219 CHECK( analysis.standard_deviation.lower_bound.count() == 0 )
16220 with expansion:
16221 0.0 == 0
16222
16223 InternalBenchmark.tests.cpp:<line number>: PASSED:
16224 CHECK( analysis.standard_deviation.upper_bound.count() == 0 )
16225 with expansion:
16226 0.0 == 0
16227
16228 InternalBenchmark.tests.cpp:<line number>: PASSED:
16229 CHECK( analysis.outliers.total() == 0 )
16230 with expansion:
16231 0 == 0
16232
16233 InternalBenchmark.tests.cpp:<line number>: PASSED:
16234 CHECK( analysis.outliers.low_mild == 0 )
16235 with expansion:
16236 0 == 0
16237
16238 InternalBenchmark.tests.cpp:<line number>: PASSED:
16239 CHECK( analysis.outliers.low_severe == 0 )
16240 with expansion:
16241 0 == 0
16242
16243 InternalBenchmark.tests.cpp:<line number>: PASSED:
16244 CHECK( analysis.outliers.high_mild == 0 )
16245 with expansion:
16246 0 == 0
16247
16248 InternalBenchmark.tests.cpp:<line number>: PASSED:
16249 CHECK( analysis.outliers.high_severe == 0 )
16250 with expansion:
16251 0 == 0
16252
16253 InternalBenchmark.tests.cpp:<line number>: PASSED:
16254 CHECK( analysis.outliers.samples_seen == 0 )
16255 with expansion:
16256 0 == 0
16257
16258 InternalBenchmark.tests.cpp:<line number>: PASSED:
16259 CHECK( analysis.outlier_variance == 0 )
16260 with expansion:
16261 0.0 == 0
16262
16263 -------------------------------------------------------------------------------
16264 array<int, N> -> toString
16265 -------------------------------------------------------------------------------
16266 ToStringVector.tests.cpp:<line number>
16267 ...............................................................................
16268
16269 ToStringVector.tests.cpp:<line number>: PASSED:
16270 REQUIRE( Catch::Detail::stringify( empty ) == "{ }" )
16271 with expansion:
16272 "{ }" == "{ }"
16273
16274 ToStringVector.tests.cpp:<line number>: PASSED:
16275 REQUIRE( Catch::Detail::stringify( oneValue ) == "{ 42 }" )
16276 with expansion:
16277 "{ 42 }" == "{ 42 }"
16278
16279 ToStringVector.tests.cpp:<line number>: PASSED:
16280 REQUIRE( Catch::Detail::stringify( twoValues ) == "{ 42, 250 }" )
16281 with expansion:
16282 "{ 42, 250 }" == "{ 42, 250 }"
16283
16284 -------------------------------------------------------------------------------
16285 benchmark function call
16286 without chronometer
16287 -------------------------------------------------------------------------------
16288 InternalBenchmark.tests.cpp:<line number>
16289 ...............................................................................
16290
16291 InternalBenchmark.tests.cpp:<line number>: PASSED:
16292 CHECK( model.started == 1 )
16293 with expansion:
16294 1 == 1
16295
16296 InternalBenchmark.tests.cpp:<line number>: PASSED:
16297 CHECK( model.finished == 0 )
16298 with expansion:
16299 0 == 0
16300
16301 InternalBenchmark.tests.cpp:<line number>: PASSED:
16302 CHECK( model.started == 1 )
16303 with expansion:
16304 1 == 1
16305
16306 InternalBenchmark.tests.cpp:<line number>: PASSED:
16307 CHECK( model.finished == 1 )
16308 with expansion:
16309 1 == 1
16310
16311 InternalBenchmark.tests.cpp:<line number>: PASSED:
16312 CHECK( called == 1 )
16313 with expansion:
16314 1 == 1
16315
16316 -------------------------------------------------------------------------------
16317 benchmark function call
16318 with chronometer
16319 -------------------------------------------------------------------------------
16320 InternalBenchmark.tests.cpp:<line number>
16321 ...............................................................................
16322
16323 InternalBenchmark.tests.cpp:<line number>: PASSED:
16324 CHECK( model.started == 0 )
16325 with expansion:
16326 0 == 0
16327
16328 InternalBenchmark.tests.cpp:<line number>: PASSED:
16329 CHECK( model.finished == 0 )
16330 with expansion:
16331 0 == 0
16332
16333 InternalBenchmark.tests.cpp:<line number>: PASSED:
16334 CHECK( model.started == 0 )
16335 with expansion:
16336 0 == 0
16337
16338 InternalBenchmark.tests.cpp:<line number>: PASSED:
16339 CHECK( model.finished == 0 )
16340 with expansion:
16341 0 == 0
16342
16343 InternalBenchmark.tests.cpp:<line number>: PASSED:
16344 CHECK( called == 1 )
16345 with expansion:
16346 1 == 1
16347
16348 -------------------------------------------------------------------------------
16349 boolean member
16350 -------------------------------------------------------------------------------
16351 Tricky.tests.cpp:<line number>
16352 ...............................................................................
16353
16354 Tricky.tests.cpp:<line number>: PASSED:
16355 REQUIRE( obj.prop != 0 )
16356 with expansion:
16357 0x<hex digits> != 0
16358
16359 -------------------------------------------------------------------------------
16360 checkedElse
16361 -------------------------------------------------------------------------------
16362 Misc.tests.cpp:<line number>
16363 ...............................................................................
16364
16365 Misc.tests.cpp:<line number>: PASSED:
16366 CHECKED_ELSE( flag )
16367 with expansion:
16368 true
16369
16370 Misc.tests.cpp:<line number>: PASSED:
16371 REQUIRE( testCheckedElse( true ) )
16372 with expansion:
16373 true
16374
16375 -------------------------------------------------------------------------------
16376 checkedElse, failing
16377 -------------------------------------------------------------------------------
16378 Misc.tests.cpp:<line number>
16379 ...............................................................................
16380
16381 Misc.tests.cpp:<line number>: FAILED - but was ok:
16382 CHECKED_ELSE( flag )
16383 with expansion:
16384 false
16385
16386 Misc.tests.cpp:<line number>: FAILED:
16387 REQUIRE( testCheckedElse( false ) )
16388 with expansion:
16389 false
16390
16391 -------------------------------------------------------------------------------
16392 checkedIf
16393 -------------------------------------------------------------------------------
16394 Misc.tests.cpp:<line number>
16395 ...............................................................................
16396
16397 Misc.tests.cpp:<line number>: PASSED:
16398 CHECKED_IF( flag )
16399 with expansion:
16400 true
16401
16402 Misc.tests.cpp:<line number>: PASSED:
16403 REQUIRE( testCheckedIf( true ) )
16404 with expansion:
16405 true
16406
16407 -------------------------------------------------------------------------------
16408 checkedIf, failing
16409 -------------------------------------------------------------------------------
16410 Misc.tests.cpp:<line number>
16411 ...............................................................................
16412
16413 Misc.tests.cpp:<line number>: FAILED - but was ok:
16414 CHECKED_IF( flag )
16415 with expansion:
16416 false
16417
16418 Misc.tests.cpp:<line number>: FAILED:
16419 REQUIRE( testCheckedIf( false ) )
16420 with expansion:
16421 false
16422
16423 -------------------------------------------------------------------------------
16424 classify_outliers
16425 none
16426 -------------------------------------------------------------------------------
16427 InternalBenchmark.tests.cpp:<line number>
16428 ...............................................................................
16429
16430 InternalBenchmark.tests.cpp:<line number>: PASSED:
16431 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16432 with expansion:
16433 6 == 6
16434
16435 InternalBenchmark.tests.cpp:<line number>: PASSED:
16436 REQUIRE( o.low_severe == los )
16437 with expansion:
16438 0 == 0
16439
16440 InternalBenchmark.tests.cpp:<line number>: PASSED:
16441 REQUIRE( o.low_mild == lom )
16442 with expansion:
16443 0 == 0
16444
16445 InternalBenchmark.tests.cpp:<line number>: PASSED:
16446 REQUIRE( o.high_mild == him )
16447 with expansion:
16448 0 == 0
16449
16450 InternalBenchmark.tests.cpp:<line number>: PASSED:
16451 REQUIRE( o.high_severe == his )
16452 with expansion:
16453 0 == 0
16454
16455 InternalBenchmark.tests.cpp:<line number>: PASSED:
16456 REQUIRE( o.total() == los + lom + him + his )
16457 with expansion:
16458 0 == 0
16459
16460 -------------------------------------------------------------------------------
16461 classify_outliers
16462 low severe
16463 -------------------------------------------------------------------------------
16464 InternalBenchmark.tests.cpp:<line number>
16465 ...............................................................................
16466
16467 InternalBenchmark.tests.cpp:<line number>: PASSED:
16468 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16469 with expansion:
16470 6 == 6
16471
16472 InternalBenchmark.tests.cpp:<line number>: PASSED:
16473 REQUIRE( o.low_severe == los )
16474 with expansion:
16475 1 == 1
16476
16477 InternalBenchmark.tests.cpp:<line number>: PASSED:
16478 REQUIRE( o.low_mild == lom )
16479 with expansion:
16480 0 == 0
16481
16482 InternalBenchmark.tests.cpp:<line number>: PASSED:
16483 REQUIRE( o.high_mild == him )
16484 with expansion:
16485 0 == 0
16486
16487 InternalBenchmark.tests.cpp:<line number>: PASSED:
16488 REQUIRE( o.high_severe == his )
16489 with expansion:
16490 0 == 0
16491
16492 InternalBenchmark.tests.cpp:<line number>: PASSED:
16493 REQUIRE( o.total() == los + lom + him + his )
16494 with expansion:
16495 1 == 1
16496
16497 -------------------------------------------------------------------------------
16498 classify_outliers
16499 low mild
16500 -------------------------------------------------------------------------------
16501 InternalBenchmark.tests.cpp:<line number>
16502 ...............................................................................
16503
16504 InternalBenchmark.tests.cpp:<line number>: PASSED:
16505 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16506 with expansion:
16507 6 == 6
16508
16509 InternalBenchmark.tests.cpp:<line number>: PASSED:
16510 REQUIRE( o.low_severe == los )
16511 with expansion:
16512 0 == 0
16513
16514 InternalBenchmark.tests.cpp:<line number>: PASSED:
16515 REQUIRE( o.low_mild == lom )
16516 with expansion:
16517 1 == 1
16518
16519 InternalBenchmark.tests.cpp:<line number>: PASSED:
16520 REQUIRE( o.high_mild == him )
16521 with expansion:
16522 0 == 0
16523
16524 InternalBenchmark.tests.cpp:<line number>: PASSED:
16525 REQUIRE( o.high_severe == his )
16526 with expansion:
16527 0 == 0
16528
16529 InternalBenchmark.tests.cpp:<line number>: PASSED:
16530 REQUIRE( o.total() == los + lom + him + his )
16531 with expansion:
16532 1 == 1
16533
16534 -------------------------------------------------------------------------------
16535 classify_outliers
16536 high mild
16537 -------------------------------------------------------------------------------
16538 InternalBenchmark.tests.cpp:<line number>
16539 ...............................................................................
16540
16541 InternalBenchmark.tests.cpp:<line number>: PASSED:
16542 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16543 with expansion:
16544 6 == 6
16545
16546 InternalBenchmark.tests.cpp:<line number>: PASSED:
16547 REQUIRE( o.low_severe == los )
16548 with expansion:
16549 0 == 0
16550
16551 InternalBenchmark.tests.cpp:<line number>: PASSED:
16552 REQUIRE( o.low_mild == lom )
16553 with expansion:
16554 0 == 0
16555
16556 InternalBenchmark.tests.cpp:<line number>: PASSED:
16557 REQUIRE( o.high_mild == him )
16558 with expansion:
16559 1 == 1
16560
16561 InternalBenchmark.tests.cpp:<line number>: PASSED:
16562 REQUIRE( o.high_severe == his )
16563 with expansion:
16564 0 == 0
16565
16566 InternalBenchmark.tests.cpp:<line number>: PASSED:
16567 REQUIRE( o.total() == los + lom + him + his )
16568 with expansion:
16569 1 == 1
16570
16571 -------------------------------------------------------------------------------
16572 classify_outliers
16573 high severe
16574 -------------------------------------------------------------------------------
16575 InternalBenchmark.tests.cpp:<line number>
16576 ...............................................................................
16577
16578 InternalBenchmark.tests.cpp:<line number>: PASSED:
16579 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16580 with expansion:
16581 6 == 6
16582
16583 InternalBenchmark.tests.cpp:<line number>: PASSED:
16584 REQUIRE( o.low_severe == los )
16585 with expansion:
16586 0 == 0
16587
16588 InternalBenchmark.tests.cpp:<line number>: PASSED:
16589 REQUIRE( o.low_mild == lom )
16590 with expansion:
16591 0 == 0
16592
16593 InternalBenchmark.tests.cpp:<line number>: PASSED:
16594 REQUIRE( o.high_mild == him )
16595 with expansion:
16596 0 == 0
16597
16598 InternalBenchmark.tests.cpp:<line number>: PASSED:
16599 REQUIRE( o.high_severe == his )
16600 with expansion:
16601 1 == 1
16602
16603 InternalBenchmark.tests.cpp:<line number>: PASSED:
16604 REQUIRE( o.total() == los + lom + him + his )
16605 with expansion:
16606 1 == 1
16607
16608 -------------------------------------------------------------------------------
16609 classify_outliers
16610 mixed
16611 -------------------------------------------------------------------------------
16612 InternalBenchmark.tests.cpp:<line number>
16613 ...............................................................................
16614
16615 InternalBenchmark.tests.cpp:<line number>: PASSED:
16616 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16617 with expansion:
16618 6 == 6
16619
16620 InternalBenchmark.tests.cpp:<line number>: PASSED:
16621 REQUIRE( o.low_severe == los )
16622 with expansion:
16623 1 == 1
16624
16625 InternalBenchmark.tests.cpp:<line number>: PASSED:
16626 REQUIRE( o.low_mild == lom )
16627 with expansion:
16628 0 == 0
16629
16630 InternalBenchmark.tests.cpp:<line number>: PASSED:
16631 REQUIRE( o.high_mild == him )
16632 with expansion:
16633 1 == 1
16634
16635 InternalBenchmark.tests.cpp:<line number>: PASSED:
16636 REQUIRE( o.high_severe == his )
16637 with expansion:
16638 0 == 0
16639
16640 InternalBenchmark.tests.cpp:<line number>: PASSED:
16641 REQUIRE( o.total() == los + lom + him + his )
16642 with expansion:
16643 2 == 2
16644
16645 -------------------------------------------------------------------------------
16646 comparisons between const int variables
16647 -------------------------------------------------------------------------------
16648 Condition.tests.cpp:<line number>
16649 ...............................................................................
16650
16651 Condition.tests.cpp:<line number>: PASSED:
16652 REQUIRE( unsigned_char_var == 1 )
16653 with expansion:
16654 1 == 1
16655
16656 Condition.tests.cpp:<line number>: PASSED:
16657 REQUIRE( unsigned_short_var == 1 )
16658 with expansion:
16659 1 == 1
16660
16661 Condition.tests.cpp:<line number>: PASSED:
16662 REQUIRE( unsigned_int_var == 1 )
16663 with expansion:
16664 1 == 1
16665
16666 Condition.tests.cpp:<line number>: PASSED:
16667 REQUIRE( unsigned_long_var == 1 )
16668 with expansion:
16669 1 == 1
16670
16671 -------------------------------------------------------------------------------
16672 comparisons between int variables
16673 -------------------------------------------------------------------------------
16674 Condition.tests.cpp:<line number>
16675 ...............................................................................
16676
16677 Condition.tests.cpp:<line number>: PASSED:
16678 REQUIRE( long_var == unsigned_char_var )
16679 with expansion:
16680 1 == 1
16681
16682 Condition.tests.cpp:<line number>: PASSED:
16683 REQUIRE( long_var == unsigned_short_var )
16684 with expansion:
16685 1 == 1
16686
16687 Condition.tests.cpp:<line number>: PASSED:
16688 REQUIRE( long_var == unsigned_int_var )
16689 with expansion:
16690 1 == 1
16691
16692 Condition.tests.cpp:<line number>: PASSED:
16693 REQUIRE( long_var == unsigned_long_var )
16694 with expansion:
16695 1 == 1
16696
16697 -------------------------------------------------------------------------------
16698 convertToBits
16699 -------------------------------------------------------------------------------
16700 FloatingPoint.tests.cpp:<line number>
16701 ...............................................................................
16702
16703 FloatingPoint.tests.cpp:<line number>: PASSED:
16704 CHECK( convertToBits( 0.f ) == 0 )
16705 with expansion:
16706 0 == 0
16707
16708 FloatingPoint.tests.cpp:<line number>: PASSED:
16709 CHECK( convertToBits( -0.f ) == ( 1ULL << 31 ) )
16710 with expansion:
16711 2147483648 (0x<hex digits>)
16712 ==
16713 2147483648 (0x<hex digits>)
16714
16715 FloatingPoint.tests.cpp:<line number>: PASSED:
16716 CHECK( convertToBits( 0. ) == 0 )
16717 with expansion:
16718 0 == 0
16719
16720 FloatingPoint.tests.cpp:<line number>: PASSED:
16721 CHECK( convertToBits( -0. ) == ( 1ULL << 63 ) )
16722 with expansion:
16723 9223372036854775808 (0x<hex digits>)
16724 ==
16725 9223372036854775808 (0x<hex digits>)
16726
16727 FloatingPoint.tests.cpp:<line number>: PASSED:
16728 CHECK( convertToBits( std::numeric_limits<float>::denorm_min() ) == 1 )
16729 with expansion:
16730 1 == 1
16731
16732 FloatingPoint.tests.cpp:<line number>: PASSED:
16733 CHECK( convertToBits( std::numeric_limits<double>::denorm_min() ) == 1 )
16734 with expansion:
16735 1 == 1
16736
16737 -------------------------------------------------------------------------------
16738 dynamic skipping works with generators
16739 -------------------------------------------------------------------------------
16740 Skip.tests.cpp:<line number>
16741 ...............................................................................
16742
16743 Skip.tests.cpp:<line number>: SKIPPED:
16744 explicitly with message:
16745 skipping because answer = 41
16746
16747 -------------------------------------------------------------------------------
16748 dynamic skipping works with generators
16749 -------------------------------------------------------------------------------
16750 Skip.tests.cpp:<line number>
16751 ...............................................................................
16752
16753 Skip.tests.cpp:<line number>: PASSED:
16754
16755 -------------------------------------------------------------------------------
16756 dynamic skipping works with generators
16757 -------------------------------------------------------------------------------
16758 Skip.tests.cpp:<line number>
16759 ...............................................................................
16760
16761 Skip.tests.cpp:<line number>: SKIPPED:
16762 explicitly with message:
16763 skipping because answer = 43
16764
16765 -------------------------------------------------------------------------------
16766 empty tags are not allowed
16767 -------------------------------------------------------------------------------
16768 Tag.tests.cpp:<line number>
16769 ...............................................................................
16770
16771 Tag.tests.cpp:<line number>: PASSED:
16772 REQUIRE_THROWS( Catch::TestCaseInfo("", { "test with an empty tag", "[]" }, dummySourceLineInfo) )
16773
16774 -------------------------------------------------------------------------------
16775 erfc_inv
16776 -------------------------------------------------------------------------------
16777 InternalBenchmark.tests.cpp:<line number>
16778 ...............................................................................
16779
16780 InternalBenchmark.tests.cpp:<line number>: PASSED:
16781 CHECK( erfc_inv(1.103560) == Approx(-0.09203687623843015) )
16782 with expansion:
16783 -0.09203687623843014
16784 ==
16785 Approx( -0.09203687623843015 )
16786
16787 InternalBenchmark.tests.cpp:<line number>: PASSED:
16788 CHECK( erfc_inv(1.067400) == Approx(-0.05980291115763361) )
16789 with expansion:
16790 -0.05980291115763361
16791 ==
16792 Approx( -0.05980291115763361 )
16793
16794 InternalBenchmark.tests.cpp:<line number>: PASSED:
16795 CHECK( erfc_inv(0.050000) == Approx(1.38590382434967796) )
16796 with expansion:
16797 1.38590382434967774
16798 ==
16799 Approx( 1.38590382434967796 )
16800
16801 -------------------------------------------------------------------------------
16802 estimate_clock_resolution
16803 -------------------------------------------------------------------------------
16804 InternalBenchmark.tests.cpp:<line number>
16805 ...............................................................................
16806
16807 InternalBenchmark.tests.cpp:<line number>: PASSED:
16808 REQUIRE( res.mean.count() == rate )
16809 with expansion:
16810 2000.0 == 2000 (0x<hex digits>)
16811
16812 InternalBenchmark.tests.cpp:<line number>: PASSED:
16813 REQUIRE( res.outliers.total() == 0 )
16814 with expansion:
16815 0 == 0
16816
16817 -------------------------------------------------------------------------------
16818 even more nested SECTION tests
16819 c
16820 d (leaf)
16821 -------------------------------------------------------------------------------
16822 Misc.tests.cpp:<line number>
16823 ...............................................................................
16824
16825 Misc.tests.cpp:<line number>: PASSED:
16826
16827 -------------------------------------------------------------------------------
16828 even more nested SECTION tests
16829 c
16830 e (leaf)
16831 -------------------------------------------------------------------------------
16832 Misc.tests.cpp:<line number>
16833 ...............................................................................
16834
16835 Misc.tests.cpp:<line number>: PASSED:
16836
16837 -------------------------------------------------------------------------------
16838 even more nested SECTION tests
16839 f (leaf)
16840 -------------------------------------------------------------------------------
16841 Misc.tests.cpp:<line number>
16842 ...............................................................................
16843
16844 Misc.tests.cpp:<line number>: PASSED:
16845
16846 -------------------------------------------------------------------------------
16847 failed assertions before SKIP cause test case to fail
16848 -------------------------------------------------------------------------------
16849 Skip.tests.cpp:<line number>
16850 ...............................................................................
16851
16852 Skip.tests.cpp:<line number>: FAILED:
16853 CHECK( 3 == 4 )
16854
16855 Skip.tests.cpp:<line number>: SKIPPED:
16856
16857 -------------------------------------------------------------------------------
16858 failing for some generator values causes entire test case to fail
16859 -------------------------------------------------------------------------------
16860 Skip.tests.cpp:<line number>
16861 ...............................................................................
16862
16863 Skip.tests.cpp:<line number>: FAILED:
16864
16865 -------------------------------------------------------------------------------
16866 failing for some generator values causes entire test case to fail
16867 -------------------------------------------------------------------------------
16868 Skip.tests.cpp:<line number>
16869 ...............................................................................
16870
16871 Skip.tests.cpp:<line number>: SKIPPED:
16872
16873 -------------------------------------------------------------------------------
16874 failing for some generator values causes entire test case to fail
16875 -------------------------------------------------------------------------------
16876 Skip.tests.cpp:<line number>
16877 ...............................................................................
16878
16879 Skip.tests.cpp:<line number>: FAILED:
16880
16881 -------------------------------------------------------------------------------
16882 failing for some generator values causes entire test case to fail
16883 -------------------------------------------------------------------------------
16884 Skip.tests.cpp:<line number>
16885 ...............................................................................
16886
16887 Skip.tests.cpp:<line number>: SKIPPED:
16888
16889 -------------------------------------------------------------------------------
16890 failing in some unskipped sections causes entire test case to fail
16891 skipped
16892 -------------------------------------------------------------------------------
16893 Skip.tests.cpp:<line number>
16894 ...............................................................................
16895
16896 Skip.tests.cpp:<line number>: SKIPPED:
16897
16898 -------------------------------------------------------------------------------
16899 failing in some unskipped sections causes entire test case to fail
16900 not skipped
16901 -------------------------------------------------------------------------------
16902 Skip.tests.cpp:<line number>
16903 ...............................................................................
16904
16905 Skip.tests.cpp:<line number>: FAILED:
16906
16907 -------------------------------------------------------------------------------
16908 first tag
16909 -------------------------------------------------------------------------------
16910 Misc.tests.cpp:<line number>
16911 ...............................................................................
16912
16913
16914 No assertions in test case 'first tag'
16915
16916 -------------------------------------------------------------------------------
16917 has printf
16918 -------------------------------------------------------------------------------
16919 Tricky.tests.cpp:<line number>
16920 ...............................................................................
16921
16922
16923 No assertions in test case 'has printf'
16924
16925 -------------------------------------------------------------------------------
16926 is_unary_function
16927 -------------------------------------------------------------------------------
16928 Clara.tests.cpp:<line number>
16929 ...............................................................................
16930
16931 Clara.tests.cpp:<line number>: PASSED:
16932 with message:
16933 Catch::Clara::Detail::is_unary_function_v<decltype(unary1)>
16934
16935 Clara.tests.cpp:<line number>: PASSED:
16936 with message:
16937 Catch::Clara::Detail::is_unary_function_v<decltype(unary2)>
16938
16939 Clara.tests.cpp:<line number>: PASSED:
16940 with message:
16941 Catch::Clara::Detail::is_unary_function_v<decltype(unary3)>
16942
16943 Clara.tests.cpp:<line number>: PASSED:
16944 with message:
16945 Catch::Clara::Detail::is_unary_function_v<decltype(unary4)>
16946
16947 Clara.tests.cpp:<line number>: PASSED:
16948 with message:
16949 Catch::Clara::Detail::is_unary_function_v<decltype(unary5)>
16950
16951 Clara.tests.cpp:<line number>: PASSED:
16952 with message:
16953 Catch::Clara::Detail::is_unary_function_v<decltype(unary6)>
16954
16955 Clara.tests.cpp:<line number>: PASSED:
16956 with message:
16957 !(Catch::Clara::Detail::is_unary_function_v<decltype(binary1)>)
16958
16959 Clara.tests.cpp:<line number>: PASSED:
16960 with message:
16961 !(Catch::Clara::Detail::is_unary_function_v<decltype(binary2)>)
16962
16963 Clara.tests.cpp:<line number>: PASSED:
16964 with message:
16965 !(Catch::Clara::Detail::is_unary_function_v<decltype(nullary1)>)
16966
16967 Clara.tests.cpp:<line number>: PASSED:
16968 with message:
16969 !(Catch::Clara::Detail::is_unary_function_v<decltype(nullary2)>)
16970
16971 Clara.tests.cpp:<line number>: PASSED:
16972 with message:
16973 !(Catch::Clara::Detail::is_unary_function_v<int>)
16974
16975 Clara.tests.cpp:<line number>: PASSED:
16976 with message:
16977 !(Catch::Clara::Detail::is_unary_function_v<std::string const&>)
16978
16979 -------------------------------------------------------------------------------
16980 just failure
16981 -------------------------------------------------------------------------------
16982 Message.tests.cpp:<line number>
16983 ...............................................................................
16984
16985 Message.tests.cpp:<line number>: FAILED:
16986 explicitly with message:
16987 Previous info should not be seen
16988
16989 -------------------------------------------------------------------------------
16990 just failure after unscoped info
16991 -------------------------------------------------------------------------------
16992 Message.tests.cpp:<line number>
16993 ...............................................................................
16994
16995 Message.tests.cpp:<line number>: FAILED:
16996 explicitly with message:
16997 previous unscoped info SHOULD not be seen
16998
16999 -------------------------------------------------------------------------------
17000 just info
17001 -------------------------------------------------------------------------------
17002 Message.tests.cpp:<line number>
17003 ...............................................................................
17004
17005
17006 No assertions in test case 'just info'
17007
17008 -------------------------------------------------------------------------------
17009 just unscoped info
17010 -------------------------------------------------------------------------------
17011 Message.tests.cpp:<line number>
17012 ...............................................................................
17013
17014
17015 No assertions in test case 'just unscoped info'
17016
17017 -------------------------------------------------------------------------------
17018 long long
17019 -------------------------------------------------------------------------------
17020 Misc.tests.cpp:<line number>
17021 ...............................................................................
17022
17023 Misc.tests.cpp:<line number>: PASSED:
17024 REQUIRE( l == std::numeric_limits<long long>::max() )
17025 with expansion:
17026 9223372036854775807 (0x<hex digits>)
17027 ==
17028 9223372036854775807 (0x<hex digits>)
17029
17030 -------------------------------------------------------------------------------
17031 looped SECTION tests
17032 b is currently: 0
17033 -------------------------------------------------------------------------------
17034 Misc.tests.cpp:<line number>
17035 ...............................................................................
17036
17037 Misc.tests.cpp:<line number>: FAILED:
17038 CHECK( b > a )
17039 with expansion:
17040 0 > 1
17041
17042 -------------------------------------------------------------------------------
17043 looped SECTION tests
17044 b is currently: 1
17045 -------------------------------------------------------------------------------
17046 Misc.tests.cpp:<line number>
17047 ...............................................................................
17048
17049 Misc.tests.cpp:<line number>: FAILED:
17050 CHECK( b > a )
17051 with expansion:
17052 1 > 1
17053
17054 -------------------------------------------------------------------------------
17055 looped SECTION tests
17056 b is currently: 2
17057 -------------------------------------------------------------------------------
17058 Misc.tests.cpp:<line number>
17059 ...............................................................................
17060
17061 Misc.tests.cpp:<line number>: PASSED:
17062 CHECK( b > a )
17063 with expansion:
17064 2 > 1
17065
17066 -------------------------------------------------------------------------------
17067 looped SECTION tests
17068 b is currently: 3
17069 -------------------------------------------------------------------------------
17070 Misc.tests.cpp:<line number>
17071 ...............................................................................
17072
17073 Misc.tests.cpp:<line number>: PASSED:
17074 CHECK( b > a )
17075 with expansion:
17076 3 > 1
17077
17078 -------------------------------------------------------------------------------
17079 looped SECTION tests
17080 b is currently: 4
17081 -------------------------------------------------------------------------------
17082 Misc.tests.cpp:<line number>
17083 ...............................................................................
17084
17085 Misc.tests.cpp:<line number>: PASSED:
17086 CHECK( b > a )
17087 with expansion:
17088 4 > 1
17089
17090 -------------------------------------------------------------------------------
17091 looped SECTION tests
17092 b is currently: 5
17093 -------------------------------------------------------------------------------
17094 Misc.tests.cpp:<line number>
17095 ...............................................................................
17096
17097 Misc.tests.cpp:<line number>: PASSED:
17098 CHECK( b > a )
17099 with expansion:
17100 5 > 1
17101
17102 -------------------------------------------------------------------------------
17103 looped SECTION tests
17104 b is currently: 6
17105 -------------------------------------------------------------------------------
17106 Misc.tests.cpp:<line number>
17107 ...............................................................................
17108
17109 Misc.tests.cpp:<line number>: PASSED:
17110 CHECK( b > a )
17111 with expansion:
17112 6 > 1
17113
17114 -------------------------------------------------------------------------------
17115 looped SECTION tests
17116 b is currently: 7
17117 -------------------------------------------------------------------------------
17118 Misc.tests.cpp:<line number>
17119 ...............................................................................
17120
17121 Misc.tests.cpp:<line number>: PASSED:
17122 CHECK( b > a )
17123 with expansion:
17124 7 > 1
17125
17126 -------------------------------------------------------------------------------
17127 looped SECTION tests
17128 b is currently: 8
17129 -------------------------------------------------------------------------------
17130 Misc.tests.cpp:<line number>
17131 ...............................................................................
17132
17133 Misc.tests.cpp:<line number>: PASSED:
17134 CHECK( b > a )
17135 with expansion:
17136 8 > 1
17137
17138 -------------------------------------------------------------------------------
17139 looped SECTION tests
17140 b is currently: 9
17141 -------------------------------------------------------------------------------
17142 Misc.tests.cpp:<line number>
17143 ...............................................................................
17144
17145 Misc.tests.cpp:<line number>: PASSED:
17146 CHECK( b > a )
17147 with expansion:
17148 9 > 1
17149
17150 -------------------------------------------------------------------------------
17151 looped tests
17152 -------------------------------------------------------------------------------
17153 Misc.tests.cpp:<line number>
17154 ...............................................................................
17155
17156 Misc.tests.cpp:<line number>: FAILED:
17157 CHECK( ( fib[i] % 2 ) == 0 )
17158 with expansion:
17159 1 == 0
17160 with message:
17161 Testing if fib[0] (1) is even
17162
17163 Misc.tests.cpp:<line number>: FAILED:
17164 CHECK( ( fib[i] % 2 ) == 0 )
17165 with expansion:
17166 1 == 0
17167 with message:
17168 Testing if fib[1] (1) is even
17169
17170 Misc.tests.cpp:<line number>: PASSED:
17171 CHECK( ( fib[i] % 2 ) == 0 )
17172 with expansion:
17173 0 == 0
17174 with message:
17175 Testing if fib[2] (2) is even
17176
17177 Misc.tests.cpp:<line number>: FAILED:
17178 CHECK( ( fib[i] % 2 ) == 0 )
17179 with expansion:
17180 1 == 0
17181 with message:
17182 Testing if fib[3] (3) is even
17183
17184 Misc.tests.cpp:<line number>: FAILED:
17185 CHECK( ( fib[i] % 2 ) == 0 )
17186 with expansion:
17187 1 == 0
17188 with message:
17189 Testing if fib[4] (5) is even
17190
17191 Misc.tests.cpp:<line number>: PASSED:
17192 CHECK( ( fib[i] % 2 ) == 0 )
17193 with expansion:
17194 0 == 0
17195 with message:
17196 Testing if fib[5] (8) is even
17197
17198 Misc.tests.cpp:<line number>: FAILED:
17199 CHECK( ( fib[i] % 2 ) == 0 )
17200 with expansion:
17201 1 == 0
17202 with message:
17203 Testing if fib[6] (13) is even
17204
17205 Misc.tests.cpp:<line number>: FAILED:
17206 CHECK( ( fib[i] % 2 ) == 0 )
17207 with expansion:
17208 1 == 0
17209 with message:
17210 Testing if fib[7] (21) is even
17211
17212 -------------------------------------------------------------------------------
17213 makeStream recognizes %debug stream name
17214 -------------------------------------------------------------------------------
17215 Stream.tests.cpp:<line number>
17216 ...............................................................................
17217
17218 Stream.tests.cpp:<line number>: PASSED:
17219 REQUIRE_NOTHROW( Catch::makeStream( "%debug" ) )
17220
17221 -------------------------------------------------------------------------------
17222 make_unique reimplementation
17223 From lvalue copies
17224 -------------------------------------------------------------------------------
17225 UniquePtr.tests.cpp:<line number>
17226 ...............................................................................
17227
17228 UniquePtr.tests.cpp:<line number>: PASSED:
17229 REQUIRE_FALSE( lval.has_moved )
17230 with expansion:
17231 !false
17232
17233 -------------------------------------------------------------------------------
17234 make_unique reimplementation
17235 From rvalue moves
17236 -------------------------------------------------------------------------------
17237 UniquePtr.tests.cpp:<line number>
17238 ...............................................................................
17239
17240 UniquePtr.tests.cpp:<line number>: PASSED:
17241 REQUIRE( rval.has_moved )
17242 with expansion:
17243 true
17244
17245 -------------------------------------------------------------------------------
17246 make_unique reimplementation
17247 Variadic constructor
17248 -------------------------------------------------------------------------------
17249 UniquePtr.tests.cpp:<line number>
17250 ...............................................................................
17251
17252 UniquePtr.tests.cpp:<line number>: PASSED:
17253 REQUIRE( *ptr == std::tuple<int, double, int>{1, 2., 3} )
17254 with expansion:
17255 {?} == {?}
17256
17257 -------------------------------------------------------------------------------
17258 mean
17259 -------------------------------------------------------------------------------
17260 InternalBenchmark.tests.cpp:<line number>
17261 ...............................................................................
17262
17263 InternalBenchmark.tests.cpp:<line number>: PASSED:
17264 REQUIRE( m == 19. )
17265 with expansion:
17266 19.0 == 19.0
17267
17268 -------------------------------------------------------------------------------
17269 measure
17270 -------------------------------------------------------------------------------
17271 InternalBenchmark.tests.cpp:<line number>
17272 ...............................................................................
17273
17274 InternalBenchmark.tests.cpp:<line number>: PASSED:
17275 CHECK( x == 17 )
17276 with expansion:
17277 17 == 17
17278
17279 InternalBenchmark.tests.cpp:<line number>: PASSED:
17280 CHECK( x == 23 )
17281 with expansion:
17282 23 == 23
17283
17284 InternalBenchmark.tests.cpp:<line number>: PASSED:
17285 CHECK( r.elapsed.count() == 42 )
17286 with expansion:
17287 42 == 42
17288
17289 InternalBenchmark.tests.cpp:<line number>: PASSED:
17290 CHECK( r.result == 23 )
17291 with expansion:
17292 23 == 23
17293
17294 InternalBenchmark.tests.cpp:<line number>: PASSED:
17295 CHECK( r.iterations == 1 )
17296 with expansion:
17297 1 == 1
17298
17299 InternalBenchmark.tests.cpp:<line number>: PASSED:
17300 CHECK( s.elapsed.count() == 69 )
17301 with expansion:
17302 69 == 69
17303
17304 InternalBenchmark.tests.cpp:<line number>: PASSED:
17305 CHECK( s.result == 17 )
17306 with expansion:
17307 17 == 17
17308
17309 InternalBenchmark.tests.cpp:<line number>: PASSED:
17310 CHECK( s.iterations == 1 )
17311 with expansion:
17312 1 == 1
17313
17314 -------------------------------------------------------------------------------
17315 mix info, unscoped info and warning
17316 -------------------------------------------------------------------------------
17317 Message.tests.cpp:<line number>
17318 ...............................................................................
17319
17320 Message.tests.cpp:<line number>: warning:
17321 info
17322 unscoped info
17323 and warn may mix
17324
17325 Message.tests.cpp:<line number>: warning:
17326 info
17327 unscoped info
17328 they are not cleared after warnings
17329
17330
17331 No assertions in test case 'mix info, unscoped info and warning'
17332
17333 -------------------------------------------------------------------------------
17334 more nested SECTION tests
17335 doesn't equal
17336 equal
17337 -------------------------------------------------------------------------------
17338 Misc.tests.cpp:<line number>
17339 ...............................................................................
17340
17341 Misc.tests.cpp:<line number>: FAILED:
17342 REQUIRE( a == b )
17343 with expansion:
17344 1 == 2
17345
17346 -------------------------------------------------------------------------------
17347 more nested SECTION tests
17348 doesn't equal
17349 not equal
17350 -------------------------------------------------------------------------------
17351 Misc.tests.cpp:<line number>
17352 ...............................................................................
17353
17354 Misc.tests.cpp:<line number>: PASSED:
17355 REQUIRE( a != b )
17356 with expansion:
17357 1 != 2
17358
17359 -------------------------------------------------------------------------------
17360 more nested SECTION tests
17361 doesn't equal
17362 less than
17363 -------------------------------------------------------------------------------
17364 Misc.tests.cpp:<line number>
17365 ...............................................................................
17366
17367 Misc.tests.cpp:<line number>: PASSED:
17368 REQUIRE( a < b )
17369 with expansion:
17370 1 < 2
17371
17372 -------------------------------------------------------------------------------
17373 nested SECTION tests
17374 doesn't equal
17375 -------------------------------------------------------------------------------
17376 Misc.tests.cpp:<line number>
17377 ...............................................................................
17378
17379 Misc.tests.cpp:<line number>: PASSED:
17380 REQUIRE( a != b )
17381 with expansion:
17382 1 != 2
17383
17384 Misc.tests.cpp:<line number>: PASSED:
17385 REQUIRE( b != a )
17386 with expansion:
17387 2 != 1
17388
17389 -------------------------------------------------------------------------------
17390 nested SECTION tests
17391 doesn't equal
17392 not equal
17393 -------------------------------------------------------------------------------
17394 Misc.tests.cpp:<line number>
17395 ...............................................................................
17396
17397 Misc.tests.cpp:<line number>: PASSED:
17398 REQUIRE( a != b )
17399 with expansion:
17400 1 != 2
17401
17402 -------------------------------------------------------------------------------
17403 nested sections can be skipped dynamically at runtime
17404 A
17405 -------------------------------------------------------------------------------
17406 Skip.tests.cpp:<line number>
17407 ...............................................................................
17408
17409
17410 No assertions in section 'A'
17411
17412 -------------------------------------------------------------------------------
17413 nested sections can be skipped dynamically at runtime
17414 B
17415 B1
17416 -------------------------------------------------------------------------------
17417 Skip.tests.cpp:<line number>
17418 ...............................................................................
17419
17420
17421 No assertions in section 'B1'
17422
17423 -------------------------------------------------------------------------------
17424 nested sections can be skipped dynamically at runtime
17425 B
17426 B2
17427 -------------------------------------------------------------------------------
17428 Skip.tests.cpp:<line number>
17429 ...............................................................................
17430
17431 Skip.tests.cpp:<line number>: SKIPPED:
17432
17433 -------------------------------------------------------------------------------
17434 non streamable - with conv. op
17435 -------------------------------------------------------------------------------
17436 Tricky.tests.cpp:<line number>
17437 ...............................................................................
17438
17439 Tricky.tests.cpp:<line number>: PASSED:
17440 REQUIRE( s == "7" )
17441 with expansion:
17442 "7" == "7"
17443
17444 -------------------------------------------------------------------------------
17445 non-copyable objects
17446 -------------------------------------------------------------------------------
17447 Tricky.tests.cpp:<line number>
17448 ...............................................................................
17449
17450 Tricky.tests.cpp:<line number>: PASSED:
17451 CHECK( ti == typeid(int) )
17452 with expansion:
17453 {?} == {?}
17454
17455 -------------------------------------------------------------------------------
17456 normal_quantile
17457 -------------------------------------------------------------------------------
17458 InternalBenchmark.tests.cpp:<line number>
17459 ...............................................................................
17460
17461 InternalBenchmark.tests.cpp:<line number>: PASSED:
17462 CHECK( normal_quantile(0.551780) == Approx(0.13015979861484198) )
17463 with expansion:
17464 0.13015979861484195
17465 ==
17466 Approx( 0.13015979861484198 )
17467
17468 InternalBenchmark.tests.cpp:<line number>: PASSED:
17469 CHECK( normal_quantile(0.533700) == Approx(0.08457408802851875) )
17470 with expansion:
17471 0.08457408802851875
17472 ==
17473 Approx( 0.08457408802851875 )
17474
17475 InternalBenchmark.tests.cpp:<line number>: PASSED:
17476 CHECK( normal_quantile(0.025000) == Approx(-1.95996398454005449) )
17477 with expansion:
17478 -1.95996398454005405
17479 ==
17480 Approx( -1.95996398454005449 )
17481
17482 -------------------------------------------------------------------------------
17483 not allowed
17484 -------------------------------------------------------------------------------
17485 Misc.tests.cpp:<line number>
17486 ...............................................................................
17487
17488 Misc.tests.cpp:<line number>: PASSED:
17489
17490 -------------------------------------------------------------------------------
17491 not prints unscoped info from previous failures
17492 -------------------------------------------------------------------------------
17493 Message.tests.cpp:<line number>
17494 ...............................................................................
17495
17496 Message.tests.cpp:<line number>: PASSED:
17497 REQUIRE( true )
17498 with message:
17499 this MAY be seen only for the FIRST assertion IF info is printed for passing
17500 assertions
17501
17502 Message.tests.cpp:<line number>: PASSED:
17503 REQUIRE( true )
17504 with message:
17505 this MAY be seen only for the SECOND assertion IF info is printed for passing
17506 assertions
17507
17508 Message.tests.cpp:<line number>: FAILED:
17509 REQUIRE( false )
17510 with message:
17511 this SHOULD be seen
17512
17513 -------------------------------------------------------------------------------
17514 null strings
17515 -------------------------------------------------------------------------------
17516 Misc.tests.cpp:<line number>
17517 ...............................................................................
17518
17519 Misc.tests.cpp:<line number>: PASSED:
17520 REQUIRE( makeString( false ) != static_cast<char*>(0) )
17521 with expansion:
17522 "valid string" != {null string}
17523
17524 Misc.tests.cpp:<line number>: PASSED:
17525 REQUIRE( makeString( true ) == static_cast<char*>(0) )
17526 with expansion:
17527 {null string} == {null string}
17528
17529 -------------------------------------------------------------------------------
17530 null_ptr
17531 -------------------------------------------------------------------------------
17532 Tricky.tests.cpp:<line number>
17533 ...............................................................................
17534
17535 Tricky.tests.cpp:<line number>: PASSED:
17536 REQUIRE( ptr.get() == 0 )
17537 with expansion:
17538 0 == 0
17539
17540 -------------------------------------------------------------------------------
17541 pair<pair<int,const char *,pair<std::string,int> > -> toString
17542 -------------------------------------------------------------------------------
17543 ToStringPair.tests.cpp:<line number>
17544 ...............................................................................
17545
17546 ToStringPair.tests.cpp:<line number>: PASSED:
17547 REQUIRE( ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" )
17548 with expansion:
17549 "{ { 42, "Arthur" }, { "Ford", 24 } }"
17550 ==
17551 "{ { 42, "Arthur" }, { "Ford", 24 } }"
17552
17553 -------------------------------------------------------------------------------
17554 parseEnums
17555 No enums
17556 -------------------------------------------------------------------------------
17557 ToString.tests.cpp:<line number>
17558 ...............................................................................
17559
17560 ToString.tests.cpp:<line number>: PASSED:
17561 CHECK_THAT( parseEnums( "" ), Equals( std::vector<Catch::StringRef>{} ) )
17562 with expansion:
17563 { } Equals: { }
17564
17565 -------------------------------------------------------------------------------
17566 parseEnums
17567 One enum value
17568 -------------------------------------------------------------------------------
17569 ToString.tests.cpp:<line number>
17570 ...............................................................................
17571
17572 ToString.tests.cpp:<line number>: PASSED:
17573 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
17574 with expansion:
17575 { Value1 } Equals: { Value1 }
17576
17577 ToString.tests.cpp:<line number>: PASSED:
17578 CHECK_THAT( parseEnums( "Value1" ), Equals( std::vector<Catch::StringRef>{"Value1"} ) )
17579 with expansion:
17580 { Value1 } Equals: { Value1 }
17581
17582 ToString.tests.cpp:<line number>: PASSED:
17583 CHECK_THAT( parseEnums( "EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
17584 with expansion:
17585 { Value1 } Equals: { Value1 }
17586
17587 -------------------------------------------------------------------------------
17588 parseEnums
17589 Multiple enum values
17590 -------------------------------------------------------------------------------
17591 ToString.tests.cpp:<line number>
17592 ...............................................................................
17593
17594 ToString.tests.cpp:<line number>: PASSED:
17595 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2"} ) )
17596 with expansion:
17597 { Value1, Value2 } Equals: { Value1, Value2 }
17598
17599 ToString.tests.cpp:<line number>: PASSED:
17600 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
17601 with expansion:
17602 { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
17603
17604 ToString.tests.cpp:<line number>: PASSED:
17605 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
17606 with expansion:
17607 { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
17608
17609 -------------------------------------------------------------------------------
17610 pointer to class
17611 -------------------------------------------------------------------------------
17612 Tricky.tests.cpp:<line number>
17613 ...............................................................................
17614
17615 Tricky.tests.cpp:<line number>: PASSED:
17616 REQUIRE( p == 0 )
17617 with expansion:
17618 0 == 0
17619
17620 -------------------------------------------------------------------------------
17621 print unscoped info if passing unscoped info is printed
17622 -------------------------------------------------------------------------------
17623 Message.tests.cpp:<line number>
17624 ...............................................................................
17625
17626 Message.tests.cpp:<line number>: PASSED:
17627 REQUIRE( true )
17628 with message:
17629 this MAY be seen IF info is printed for passing assertions
17630
17631 -------------------------------------------------------------------------------
17632 prints unscoped info on failure
17633 -------------------------------------------------------------------------------
17634 Message.tests.cpp:<line number>
17635 ...............................................................................
17636
17637 Message.tests.cpp:<line number>: FAILED:
17638 REQUIRE( false )
17639 with messages:
17640 this SHOULD be seen
17641 this SHOULD also be seen
17642
17643 -------------------------------------------------------------------------------
17644 prints unscoped info only for the first assertion
17645 -------------------------------------------------------------------------------
17646 Message.tests.cpp:<line number>
17647 ...............................................................................
17648
17649 Message.tests.cpp:<line number>: FAILED:
17650 CHECK( false )
17651 with message:
17652 this SHOULD be seen only ONCE
17653
17654 Message.tests.cpp:<line number>: PASSED:
17655 CHECK( true )
17656
17657 Message.tests.cpp:<line number>: PASSED:
17658 CHECK( true )
17659 with message:
17660 this MAY also be seen only ONCE IF info is printed for passing assertions
17661
17662 Message.tests.cpp:<line number>: PASSED:
17663 CHECK( true )
17664
17665 -------------------------------------------------------------------------------
17666 random SECTION tests
17667 doesn't equal
17668 -------------------------------------------------------------------------------
17669 Misc.tests.cpp:<line number>
17670 ...............................................................................
17671
17672 Misc.tests.cpp:<line number>: PASSED:
17673 REQUIRE( a != b )
17674 with expansion:
17675 1 != 2
17676
17677 Misc.tests.cpp:<line number>: PASSED:
17678 REQUIRE( b != a )
17679 with expansion:
17680 2 != 1
17681
17682 -------------------------------------------------------------------------------
17683 random SECTION tests
17684 not equal
17685 -------------------------------------------------------------------------------
17686 Misc.tests.cpp:<line number>
17687 ...............................................................................
17688
17689 Misc.tests.cpp:<line number>: PASSED:
17690 REQUIRE( a != b )
17691 with expansion:
17692 1 != 2
17693
17694 -------------------------------------------------------------------------------
17695 replaceInPlace
17696 replace single char
17697 -------------------------------------------------------------------------------
17698 StringManip.tests.cpp:<line number>
17699 ...............................................................................
17700
17701 StringManip.tests.cpp:<line number>: PASSED:
17702 CHECK( Catch::replaceInPlace(letters, "b", "z") )
17703 with expansion:
17704 true
17705
17706 StringManip.tests.cpp:<line number>: PASSED:
17707 CHECK( letters == "azcdefcg" )
17708 with expansion:
17709 "azcdefcg" == "azcdefcg"
17710
17711 -------------------------------------------------------------------------------
17712 replaceInPlace
17713 replace two chars
17714 -------------------------------------------------------------------------------
17715 StringManip.tests.cpp:<line number>
17716 ...............................................................................
17717
17718 StringManip.tests.cpp:<line number>: PASSED:
17719 CHECK( Catch::replaceInPlace(letters, "c", "z") )
17720 with expansion:
17721 true
17722
17723 StringManip.tests.cpp:<line number>: PASSED:
17724 CHECK( letters == "abzdefzg" )
17725 with expansion:
17726 "abzdefzg" == "abzdefzg"
17727
17728 -------------------------------------------------------------------------------
17729 replaceInPlace
17730 replace first char
17731 -------------------------------------------------------------------------------
17732 StringManip.tests.cpp:<line number>
17733 ...............................................................................
17734
17735 StringManip.tests.cpp:<line number>: PASSED:
17736 CHECK( Catch::replaceInPlace(letters, "a", "z") )
17737 with expansion:
17738 true
17739
17740 StringManip.tests.cpp:<line number>: PASSED:
17741 CHECK( letters == "zbcdefcg" )
17742 with expansion:
17743 "zbcdefcg" == "zbcdefcg"
17744
17745 -------------------------------------------------------------------------------
17746 replaceInPlace
17747 replace last char
17748 -------------------------------------------------------------------------------
17749 StringManip.tests.cpp:<line number>
17750 ...............................................................................
17751
17752 StringManip.tests.cpp:<line number>: PASSED:
17753 CHECK( Catch::replaceInPlace(letters, "g", "z") )
17754 with expansion:
17755 true
17756
17757 StringManip.tests.cpp:<line number>: PASSED:
17758 CHECK( letters == "abcdefcz" )
17759 with expansion:
17760 "abcdefcz" == "abcdefcz"
17761
17762 -------------------------------------------------------------------------------
17763 replaceInPlace
17764 replace all chars
17765 -------------------------------------------------------------------------------
17766 StringManip.tests.cpp:<line number>
17767 ...............................................................................
17768
17769 StringManip.tests.cpp:<line number>: PASSED:
17770 CHECK( Catch::replaceInPlace(letters, letters, "replaced") )
17771 with expansion:
17772 true
17773
17774 StringManip.tests.cpp:<line number>: PASSED:
17775 CHECK( letters == "replaced" )
17776 with expansion:
17777 "replaced" == "replaced"
17778
17779 -------------------------------------------------------------------------------
17780 replaceInPlace
17781 replace no chars
17782 -------------------------------------------------------------------------------
17783 StringManip.tests.cpp:<line number>
17784 ...............................................................................
17785
17786 StringManip.tests.cpp:<line number>: PASSED:
17787 CHECK_FALSE( Catch::replaceInPlace(letters, "x", "z") )
17788 with expansion:
17789 !false
17790
17791 StringManip.tests.cpp:<line number>: PASSED:
17792 CHECK( letters == letters )
17793 with expansion:
17794 "abcdefcg" == "abcdefcg"
17795
17796 -------------------------------------------------------------------------------
17797 replaceInPlace
17798 no replace in already-replaced string
17799 lengthening
17800 -------------------------------------------------------------------------------
17801 StringManip.tests.cpp:<line number>
17802 ...............................................................................
17803
17804 StringManip.tests.cpp:<line number>: PASSED:
17805 CHECK( Catch::replaceInPlace(letters, "c", "cc") )
17806 with expansion:
17807 true
17808
17809 StringManip.tests.cpp:<line number>: PASSED:
17810 CHECK( letters == "abccdefccg" )
17811 with expansion:
17812 "abccdefccg" == "abccdefccg"
17813
17814 -------------------------------------------------------------------------------
17815 replaceInPlace
17816 no replace in already-replaced string
17817 shortening
17818 -------------------------------------------------------------------------------
17819 StringManip.tests.cpp:<line number>
17820 ...............................................................................
17821
17822 StringManip.tests.cpp:<line number>: PASSED:
17823 CHECK( Catch::replaceInPlace(s, "--", "-") )
17824 with expansion:
17825 true
17826
17827 StringManip.tests.cpp:<line number>: PASSED:
17828 CHECK( s == "--" )
17829 with expansion:
17830 "--" == "--"
17831
17832 -------------------------------------------------------------------------------
17833 replaceInPlace
17834 escape '
17835 -------------------------------------------------------------------------------
17836 StringManip.tests.cpp:<line number>
17837 ...............................................................................
17838
17839 StringManip.tests.cpp:<line number>: PASSED:
17840 CHECK( Catch::replaceInPlace(s, "'", "|'") )
17841 with expansion:
17842 true
17843
17844 StringManip.tests.cpp:<line number>: PASSED:
17845 CHECK( s == "didn|'t" )
17846 with expansion:
17847 "didn|'t" == "didn|'t"
17848
17849 -------------------------------------------------------------------------------
17850 request an unknown %-starting stream fails
17851 -------------------------------------------------------------------------------
17852 Stream.tests.cpp:<line number>
17853 ...............................................................................
17854
17855 Stream.tests.cpp:<line number>: PASSED:
17856 REQUIRE_THROWS( Catch::makeStream( "%somestream" ) )
17857
17858 -------------------------------------------------------------------------------
17859 resolution
17860 -------------------------------------------------------------------------------
17861 InternalBenchmark.tests.cpp:<line number>
17862 ...............................................................................
17863
17864 InternalBenchmark.tests.cpp:<line number>: PASSED:
17865 REQUIRE( res.size() == count )
17866 with expansion:
17867 10 == 10
17868
17869 InternalBenchmark.tests.cpp:<line number>: PASSED:
17870 REQUIRE( res[i] == rate )
17871 with expansion:
17872 1000.0 == 1000 (0x<hex digits>)
17873
17874 InternalBenchmark.tests.cpp:<line number>: PASSED:
17875 REQUIRE( res[i] == rate )
17876 with expansion:
17877 1000.0 == 1000 (0x<hex digits>)
17878
17879 InternalBenchmark.tests.cpp:<line number>: PASSED:
17880 REQUIRE( res[i] == rate )
17881 with expansion:
17882 1000.0 == 1000 (0x<hex digits>)
17883
17884 InternalBenchmark.tests.cpp:<line number>: PASSED:
17885 REQUIRE( res[i] == rate )
17886 with expansion:
17887 1000.0 == 1000 (0x<hex digits>)
17888
17889 InternalBenchmark.tests.cpp:<line number>: PASSED:
17890 REQUIRE( res[i] == rate )
17891 with expansion:
17892 1000.0 == 1000 (0x<hex digits>)
17893
17894 InternalBenchmark.tests.cpp:<line number>: PASSED:
17895 REQUIRE( res[i] == rate )
17896 with expansion:
17897 1000.0 == 1000 (0x<hex digits>)
17898
17899 InternalBenchmark.tests.cpp:<line number>: PASSED:
17900 REQUIRE( res[i] == rate )
17901 with expansion:
17902 1000.0 == 1000 (0x<hex digits>)
17903
17904 InternalBenchmark.tests.cpp:<line number>: PASSED:
17905 REQUIRE( res[i] == rate )
17906 with expansion:
17907 1000.0 == 1000 (0x<hex digits>)
17908
17909 InternalBenchmark.tests.cpp:<line number>: PASSED:
17910 REQUIRE( res[i] == rate )
17911 with expansion:
17912 1000.0 == 1000 (0x<hex digits>)
17913
17914 -------------------------------------------------------------------------------
17915 run_for_at_least, chronometer
17916 -------------------------------------------------------------------------------
17917 InternalBenchmark.tests.cpp:<line number>
17918 ...............................................................................
17919
17920 InternalBenchmark.tests.cpp:<line number>: PASSED:
17921 CHECK( meter.runs() >= old_runs )
17922 with expansion:
17923 1 >= 1
17924
17925 InternalBenchmark.tests.cpp:<line number>: PASSED:
17926 CHECK( meter.runs() >= old_runs )
17927 with expansion:
17928 2 >= 1
17929
17930 InternalBenchmark.tests.cpp:<line number>: PASSED:
17931 CHECK( meter.runs() >= old_runs )
17932 with expansion:
17933 4 >= 2
17934
17935 InternalBenchmark.tests.cpp:<line number>: PASSED:
17936 CHECK( meter.runs() >= old_runs )
17937 with expansion:
17938 8 >= 4
17939
17940 InternalBenchmark.tests.cpp:<line number>: PASSED:
17941 CHECK( meter.runs() >= old_runs )
17942 with expansion:
17943 16 >= 8
17944
17945 InternalBenchmark.tests.cpp:<line number>: PASSED:
17946 CHECK( meter.runs() >= old_runs )
17947 with expansion:
17948 32 >= 16
17949
17950 InternalBenchmark.tests.cpp:<line number>: PASSED:
17951 CHECK( meter.runs() >= old_runs )
17952 with expansion:
17953 64 >= 32
17954
17955 InternalBenchmark.tests.cpp:<line number>: PASSED:
17956 CHECK( meter.runs() >= old_runs )
17957 with expansion:
17958 128 >= 64
17959
17960 InternalBenchmark.tests.cpp:<line number>: PASSED:
17961 REQUIRE( Timing.elapsed >= time )
17962 with expansion:
17963 128 ns >= 100 ns
17964
17965 InternalBenchmark.tests.cpp:<line number>: PASSED:
17966 REQUIRE( Timing.result == Timing.iterations + 17 )
17967 with expansion:
17968 145 == 145
17969
17970 InternalBenchmark.tests.cpp:<line number>: PASSED:
17971 REQUIRE( Timing.iterations >= time.count() )
17972 with expansion:
17973 128 >= 100
17974
17975 -------------------------------------------------------------------------------
17976 run_for_at_least, int
17977 -------------------------------------------------------------------------------
17978 InternalBenchmark.tests.cpp:<line number>
17979 ...............................................................................
17980
17981 InternalBenchmark.tests.cpp:<line number>: PASSED:
17982 CHECK( x >= old_x )
17983 with expansion:
17984 1 >= 1
17985
17986 InternalBenchmark.tests.cpp:<line number>: PASSED:
17987 CHECK( x >= old_x )
17988 with expansion:
17989 2 >= 1
17990
17991 InternalBenchmark.tests.cpp:<line number>: PASSED:
17992 CHECK( x >= old_x )
17993 with expansion:
17994 4 >= 2
17995
17996 InternalBenchmark.tests.cpp:<line number>: PASSED:
17997 CHECK( x >= old_x )
17998 with expansion:
17999 8 >= 4
18000
18001 InternalBenchmark.tests.cpp:<line number>: PASSED:
18002 CHECK( x >= old_x )
18003 with expansion:
18004 16 >= 8
18005
18006 InternalBenchmark.tests.cpp:<line number>: PASSED:
18007 CHECK( x >= old_x )
18008 with expansion:
18009 32 >= 16
18010
18011 InternalBenchmark.tests.cpp:<line number>: PASSED:
18012 CHECK( x >= old_x )
18013 with expansion:
18014 64 >= 32
18015
18016 InternalBenchmark.tests.cpp:<line number>: PASSED:
18017 CHECK( x >= old_x )
18018 with expansion:
18019 128 >= 64
18020
18021 InternalBenchmark.tests.cpp:<line number>: PASSED:
18022 REQUIRE( Timing.elapsed >= time )
18023 with expansion:
18024 128 ns >= 100 ns
18025
18026 InternalBenchmark.tests.cpp:<line number>: PASSED:
18027 REQUIRE( Timing.result == Timing.iterations + 17 )
18028 with expansion:
18029 145 == 145
18030
18031 InternalBenchmark.tests.cpp:<line number>: PASSED:
18032 REQUIRE( Timing.iterations >= time.count() )
18033 with expansion:
18034 128 >= 100
18035
18036 -------------------------------------------------------------------------------
18037 second tag
18038 -------------------------------------------------------------------------------
18039 Misc.tests.cpp:<line number>
18040 ...............................................................................
18041
18042
18043 No assertions in test case 'second tag'
18044
18045 -------------------------------------------------------------------------------
18046 sections can be skipped dynamically at runtime
18047 not skipped
18048 -------------------------------------------------------------------------------
18049 Skip.tests.cpp:<line number>
18050 ...............................................................................
18051
18052 Skip.tests.cpp:<line number>: PASSED:
18053
18054 -------------------------------------------------------------------------------
18055 sections can be skipped dynamically at runtime
18056 skipped
18057 -------------------------------------------------------------------------------
18058 Skip.tests.cpp:<line number>
18059 ...............................................................................
18060
18061 Skip.tests.cpp:<line number>: SKIPPED:
18062
18063 -------------------------------------------------------------------------------
18064 sections can be skipped dynamically at runtime
18065 also not skipped
18066 -------------------------------------------------------------------------------
18067 Skip.tests.cpp:<line number>
18068 ...............................................................................
18069
18070 Skip.tests.cpp:<line number>: PASSED:
18071
18072 -------------------------------------------------------------------------------
18073 send a single char to INFO
18074 -------------------------------------------------------------------------------
18075 Misc.tests.cpp:<line number>
18076 ...............................................................................
18077
18078 Misc.tests.cpp:<line number>: FAILED:
18079 REQUIRE( false )
18080 with message:
18081 3
18082
18083 -------------------------------------------------------------------------------
18084 sends information to INFO
18085 -------------------------------------------------------------------------------
18086 Message.tests.cpp:<line number>
18087 ...............................................................................
18088
18089 Message.tests.cpp:<line number>: FAILED:
18090 REQUIRE( false )
18091 with messages:
18092 hi
18093 i := 7
18094
18095 -------------------------------------------------------------------------------
18096 shortened hide tags are split apart
18097 -------------------------------------------------------------------------------
18098 Tag.tests.cpp:<line number>
18099 ...............................................................................
18100
18101 Tag.tests.cpp:<line number>: PASSED:
18102 REQUIRE_THAT( testcase.tags, VectorContains( Tag( "magic-tag" ) ) && VectorContains( Tag( "."_catch_sr ) ) )
18103 with expansion:
18104 { {?}, {?} } ( Contains: {?} and Contains: {?} )
18105
18106 -------------------------------------------------------------------------------
18107 skipped tests can optionally provide a reason
18108 -------------------------------------------------------------------------------
18109 Skip.tests.cpp:<line number>
18110 ...............................................................................
18111
18112 Skip.tests.cpp:<line number>: SKIPPED:
18113 explicitly with message:
18114 skipping because answer = 43
18115
18116 -------------------------------------------------------------------------------
18117 splitString
18118 -------------------------------------------------------------------------------
18119 StringManip.tests.cpp:<line number>
18120 ...............................................................................
18121
18122 StringManip.tests.cpp:<line number>: PASSED:
18123 CHECK_THAT( splitStringRef("", ','), Equals(std::vector<StringRef>()) )
18124 with expansion:
18125 { } Equals: { }
18126
18127 StringManip.tests.cpp:<line number>: PASSED:
18128 CHECK_THAT( splitStringRef("abc", ','), Equals(std::vector<StringRef>{"abc"}) )
18129 with expansion:
18130 { abc } Equals: { abc }
18131
18132 StringManip.tests.cpp:<line number>: PASSED:
18133 CHECK_THAT( splitStringRef("abc,def", ','), Equals(std::vector<StringRef>{"abc", "def"}) )
18134 with expansion:
18135 { abc, def } Equals: { abc, def }
18136
18137 -------------------------------------------------------------------------------
18138 stacks unscoped info in loops
18139 -------------------------------------------------------------------------------
18140 Message.tests.cpp:<line number>
18141 ...............................................................................
18142
18143 Message.tests.cpp:<line number>: FAILED:
18144 CHECK( false )
18145 with messages:
18146 Count 1 to 3...
18147 1
18148 2
18149 3
18150
18151 Message.tests.cpp:<line number>: FAILED:
18152 CHECK( false )
18153 with messages:
18154 Count 4 to 6...
18155 4
18156 5
18157 6
18158
18159 -------------------------------------------------------------------------------
18160 startsWith
18161 -------------------------------------------------------------------------------
18162 StringManip.tests.cpp:<line number>
18163 ...............................................................................
18164
18165 StringManip.tests.cpp:<line number>: PASSED:
18166 CHECK_FALSE( startsWith("", 'c') )
18167 with expansion:
18168 !false
18169
18170 StringManip.tests.cpp:<line number>: PASSED:
18171 CHECK( startsWith(std::string("abc"), 'a') )
18172 with expansion:
18173 true
18174
18175 StringManip.tests.cpp:<line number>: PASSED:
18176 CHECK( startsWith("def"_catch_sr, 'd') )
18177 with expansion:
18178 true
18179
18180 -------------------------------------------------------------------------------
18181 std::map is convertible string
18182 empty
18183 -------------------------------------------------------------------------------
18184 ToStringGeneral.tests.cpp:<line number>
18185 ...............................................................................
18186
18187 ToStringGeneral.tests.cpp:<line number>: PASSED:
18188 REQUIRE( Catch::Detail::stringify( emptyMap ) == "{ }" )
18189 with expansion:
18190 "{ }" == "{ }"
18191
18192 -------------------------------------------------------------------------------
18193 std::map is convertible string
18194 single item
18195 -------------------------------------------------------------------------------
18196 ToStringGeneral.tests.cpp:<line number>
18197 ...............................................................................
18198
18199 ToStringGeneral.tests.cpp:<line number>: PASSED:
18200 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" )
18201 with expansion:
18202 "{ { "one", 1 } }" == "{ { "one", 1 } }"
18203
18204 -------------------------------------------------------------------------------
18205 std::map is convertible string
18206 several items
18207 -------------------------------------------------------------------------------
18208 ToStringGeneral.tests.cpp:<line number>
18209 ...............................................................................
18210
18211 ToStringGeneral.tests.cpp:<line number>: PASSED:
18212 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" )
18213 with expansion:
18214 "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
18215 ==
18216 "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
18217
18218 -------------------------------------------------------------------------------
18219 std::pair<int,const std::string> -> toString
18220 -------------------------------------------------------------------------------
18221 ToStringPair.tests.cpp:<line number>
18222 ...............................................................................
18223
18224 ToStringPair.tests.cpp:<line number>: PASSED:
18225 REQUIRE( ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" )
18226 with expansion:
18227 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
18228
18229 -------------------------------------------------------------------------------
18230 std::pair<int,std::string> -> toString
18231 -------------------------------------------------------------------------------
18232 ToStringPair.tests.cpp:<line number>
18233 ...............................................................................
18234
18235 ToStringPair.tests.cpp:<line number>: PASSED:
18236 REQUIRE( ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" )
18237 with expansion:
18238 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
18239
18240 -------------------------------------------------------------------------------
18241 std::set is convertible string
18242 empty
18243 -------------------------------------------------------------------------------
18244 ToStringGeneral.tests.cpp:<line number>
18245 ...............................................................................
18246
18247 ToStringGeneral.tests.cpp:<line number>: PASSED:
18248 REQUIRE( Catch::Detail::stringify( emptySet ) == "{ }" )
18249 with expansion:
18250 "{ }" == "{ }"
18251
18252 -------------------------------------------------------------------------------
18253 std::set is convertible string
18254 single item
18255 -------------------------------------------------------------------------------
18256 ToStringGeneral.tests.cpp:<line number>
18257 ...............................................................................
18258
18259 ToStringGeneral.tests.cpp:<line number>: PASSED:
18260 REQUIRE( Catch::Detail::stringify( set ) == "{ \"one\" }" )
18261 with expansion:
18262 "{ "one" }" == "{ "one" }"
18263
18264 -------------------------------------------------------------------------------
18265 std::set is convertible string
18266 several items
18267 -------------------------------------------------------------------------------
18268 ToStringGeneral.tests.cpp:<line number>
18269 ...............................................................................
18270
18271 ToStringGeneral.tests.cpp:<line number>: PASSED:
18272 REQUIRE( Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" )
18273 with expansion:
18274 "{ "abc", "def", "ghi" }"
18275 ==
18276 "{ "abc", "def", "ghi" }"
18277
18278 -------------------------------------------------------------------------------
18279 std::vector<std::pair<std::string,int> > -> toString
18280 -------------------------------------------------------------------------------
18281 ToStringPair.tests.cpp:<line number>
18282 ...............................................................................
18283
18284 ToStringPair.tests.cpp:<line number>: PASSED:
18285 REQUIRE( ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" )
18286 with expansion:
18287 "{ { "green", 55 } }"
18288 ==
18289 "{ { "green", 55 } }"
18290
18291 -------------------------------------------------------------------------------
18292 stdout and stderr streams have %-starting name
18293 -------------------------------------------------------------------------------
18294 Stream.tests.cpp:<line number>
18295 ...............................................................................
18296
18297 Stream.tests.cpp:<line number>: PASSED:
18298 REQUIRE( Catch::makeStream( "%stderr" )->isConsole() )
18299 with expansion:
18300 true
18301
18302 Stream.tests.cpp:<line number>: PASSED:
18303 REQUIRE( Catch::makeStream( "%stdout" )->isConsole() )
18304 with expansion:
18305 true
18306
18307 -------------------------------------------------------------------------------
18308 stringify ranges
18309 -------------------------------------------------------------------------------
18310 ToStringWhich.tests.cpp:<line number>
18311 ...............................................................................
18312
18313 ToStringWhich.tests.cpp:<line number>: PASSED:
18314 REQUIRE( ::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)" )
18315 with expansion:
18316 "op<<(streamable_range)"
18317 ==
18318 "op<<(streamable_range)"
18319
18320 ToStringWhich.tests.cpp:<line number>: PASSED:
18321 REQUIRE( ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)" )
18322 with expansion:
18323 "stringmaker(streamable_range)"
18324 ==
18325 "stringmaker(streamable_range)"
18326
18327 ToStringWhich.tests.cpp:<line number>: PASSED:
18328 REQUIRE( ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }" )
18329 with expansion:
18330 "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
18331
18332 ToStringWhich.tests.cpp:<line number>: PASSED:
18333 REQUIRE( ::Catch::Detail::stringify(disabled_range{}) == "{?}" )
18334 with expansion:
18335 "{?}" == "{?}"
18336
18337 -------------------------------------------------------------------------------
18338 stringify( has_maker )
18339 -------------------------------------------------------------------------------
18340 ToStringWhich.tests.cpp:<line number>
18341 ...............................................................................
18342
18343 ToStringWhich.tests.cpp:<line number>: PASSED:
18344 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" )
18345 with expansion:
18346 "StringMaker<has_maker>"
18347 ==
18348 "StringMaker<has_maker>"
18349
18350 -------------------------------------------------------------------------------
18351 stringify( has_maker_and_operator )
18352 -------------------------------------------------------------------------------
18353 ToStringWhich.tests.cpp:<line number>
18354 ...............................................................................
18355
18356 ToStringWhich.tests.cpp:<line number>: PASSED:
18357 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" )
18358 with expansion:
18359 "StringMaker<has_maker_and_operator>"
18360 ==
18361 "StringMaker<has_maker_and_operator>"
18362
18363 -------------------------------------------------------------------------------
18364 stringify( has_neither )
18365 -------------------------------------------------------------------------------
18366 ToStringWhich.tests.cpp:<line number>
18367 ...............................................................................
18368
18369 ToStringWhich.tests.cpp:<line number>: PASSED:
18370 REQUIRE( ::Catch::Detail::stringify(item) == "{?}" )
18371 with expansion:
18372 "{?}" == "{?}"
18373
18374 -------------------------------------------------------------------------------
18375 stringify( has_operator )
18376 -------------------------------------------------------------------------------
18377 ToStringWhich.tests.cpp:<line number>
18378 ...............................................................................
18379
18380 ToStringWhich.tests.cpp:<line number>: PASSED:
18381 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" )
18382 with expansion:
18383 "operator<<( has_operator )"
18384 ==
18385 "operator<<( has_operator )"
18386
18387 -------------------------------------------------------------------------------
18388 stringify( has_template_operator )
18389 -------------------------------------------------------------------------------
18390 ToStringWhich.tests.cpp:<line number>
18391 ...............................................................................
18392
18393 ToStringWhich.tests.cpp:<line number>: PASSED:
18394 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" )
18395 with expansion:
18396 "operator<<( has_template_operator )"
18397 ==
18398 "operator<<( has_template_operator )"
18399
18400 -------------------------------------------------------------------------------
18401 stringify( vectors<has_maker> )
18402 -------------------------------------------------------------------------------
18403 ToStringWhich.tests.cpp:<line number>
18404 ...............................................................................
18405
18406 ToStringWhich.tests.cpp:<line number>: PASSED:
18407 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" )
18408 with expansion:
18409 "{ StringMaker<has_maker> }"
18410 ==
18411 "{ StringMaker<has_maker> }"
18412
18413 -------------------------------------------------------------------------------
18414 stringify( vectors<has_maker_and_operator> )
18415 -------------------------------------------------------------------------------
18416 ToStringWhich.tests.cpp:<line number>
18417 ...............................................................................
18418
18419 ToStringWhich.tests.cpp:<line number>: PASSED:
18420 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" )
18421 with expansion:
18422 "{ StringMaker<has_maker_and_operator> }"
18423 ==
18424 "{ StringMaker<has_maker_and_operator> }"
18425
18426 -------------------------------------------------------------------------------
18427 stringify( vectors<has_operator> )
18428 -------------------------------------------------------------------------------
18429 ToStringWhich.tests.cpp:<line number>
18430 ...............................................................................
18431
18432 ToStringWhich.tests.cpp:<line number>: PASSED:
18433 REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" )
18434 with expansion:
18435 "{ operator<<( has_operator ) }"
18436 ==
18437 "{ operator<<( has_operator ) }"
18438
18439 -------------------------------------------------------------------------------
18440 strlen3
18441 -------------------------------------------------------------------------------
18442 Generators.tests.cpp:<line number>
18443 ...............................................................................
18444
18445 Generators.tests.cpp:<line number>: PASSED:
18446 REQUIRE( data.str.size() == data.len )
18447 with expansion:
18448 3 == 3
18449
18450 -------------------------------------------------------------------------------
18451 strlen3
18452 -------------------------------------------------------------------------------
18453 Generators.tests.cpp:<line number>
18454 ...............................................................................
18455
18456 Generators.tests.cpp:<line number>: PASSED:
18457 REQUIRE( data.str.size() == data.len )
18458 with expansion:
18459 3 == 3
18460
18461 -------------------------------------------------------------------------------
18462 strlen3
18463 -------------------------------------------------------------------------------
18464 Generators.tests.cpp:<line number>
18465 ...............................................................................
18466
18467 Generators.tests.cpp:<line number>: PASSED:
18468 REQUIRE( data.str.size() == data.len )
18469 with expansion:
18470 5 == 5
18471
18472 -------------------------------------------------------------------------------
18473 strlen3
18474 -------------------------------------------------------------------------------
18475 Generators.tests.cpp:<line number>
18476 ...............................................................................
18477
18478 Generators.tests.cpp:<line number>: PASSED:
18479 REQUIRE( data.str.size() == data.len )
18480 with expansion:
18481 4 == 4
18482
18483 -------------------------------------------------------------------------------
18484 system_clock timepoint with non-default duration
18485 -------------------------------------------------------------------------------
18486 ToStringChrono.tests.cpp:<line number>
18487 ...............................................................................
18488
18489 ToStringChrono.tests.cpp:<line number>: PASSED:
18490 CHECK( tp1 == tp2 )
18491 with expansion:
18492 {iso8601-timestamp}
18493 ==
18494 {iso8601-timestamp}
18495
18496 -------------------------------------------------------------------------------
18497 tables
18498 -------------------------------------------------------------------------------
18499 Generators.tests.cpp:<line number>
18500 ...............................................................................
18501
18502 Generators.tests.cpp:<line number>: PASSED:
18503 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
18504 with expansion:
18505 5 == 5
18506
18507 -------------------------------------------------------------------------------
18508 tables
18509 -------------------------------------------------------------------------------
18510 Generators.tests.cpp:<line number>
18511 ...............................................................................
18512
18513 Generators.tests.cpp:<line number>: PASSED:
18514 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
18515 with expansion:
18516 6 == 6
18517
18518 -------------------------------------------------------------------------------
18519 tables
18520 -------------------------------------------------------------------------------
18521 Generators.tests.cpp:<line number>
18522 ...............................................................................
18523
18524 Generators.tests.cpp:<line number>: PASSED:
18525 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
18526 with expansion:
18527 5 == 5
18528
18529 -------------------------------------------------------------------------------
18530 tables
18531 -------------------------------------------------------------------------------
18532 Generators.tests.cpp:<line number>
18533 ...............................................................................
18534
18535 Generators.tests.cpp:<line number>: PASSED:
18536 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
18537 with expansion:
18538 6 == 6
18539
18540 -------------------------------------------------------------------------------
18541 tags with dots in later positions are not parsed as hidden
18542 -------------------------------------------------------------------------------
18543 Tag.tests.cpp:<line number>
18544 ...............................................................................
18545
18546 Tag.tests.cpp:<line number>: PASSED:
18547 REQUIRE( testcase.tags.size() == 1 )
18548 with expansion:
18549 1 == 1
18550
18551 Tag.tests.cpp:<line number>: PASSED:
18552 REQUIRE( testcase.tags[0].original == "magic.tag"_catch_sr )
18553 with expansion:
18554 magic.tag == magic.tag
18555
18556 -------------------------------------------------------------------------------
18557 tests can be skipped dynamically at runtime
18558 -------------------------------------------------------------------------------
18559 Skip.tests.cpp:<line number>
18560 ...............................................................................
18561
18562 Skip.tests.cpp:<line number>: SKIPPED:
18563
18564 -------------------------------------------------------------------------------
18565 thrown std::strings are translated
18566 -------------------------------------------------------------------------------
18567 Exception.tests.cpp:<line number>
18568 ...............................................................................
18569
18570 Exception.tests.cpp:<line number>: FAILED:
18571 due to unexpected exception with message:
18572 Why would you throw a std::string?
18573
18574 -------------------------------------------------------------------------------
18575 toString on const wchar_t const pointer returns the string contents
18576 -------------------------------------------------------------------------------
18577 Misc.tests.cpp:<line number>
18578 ...............................................................................
18579
18580 Misc.tests.cpp:<line number>: PASSED:
18581 CHECK( result == "\"wide load\"" )
18582 with expansion:
18583 ""wide load"" == ""wide load""
18584
18585 -------------------------------------------------------------------------------
18586 toString on const wchar_t pointer returns the string contents
18587 -------------------------------------------------------------------------------
18588 Misc.tests.cpp:<line number>
18589 ...............................................................................
18590
18591 Misc.tests.cpp:<line number>: PASSED:
18592 CHECK( result == "\"wide load\"" )
18593 with expansion:
18594 ""wide load"" == ""wide load""
18595
18596 -------------------------------------------------------------------------------
18597 toString on wchar_t const pointer returns the string contents
18598 -------------------------------------------------------------------------------
18599 Misc.tests.cpp:<line number>
18600 ...............................................................................
18601
18602 Misc.tests.cpp:<line number>: PASSED:
18603 CHECK( result == "\"wide load\"" )
18604 with expansion:
18605 ""wide load"" == ""wide load""
18606
18607 -------------------------------------------------------------------------------
18608 toString on wchar_t returns the string contents
18609 -------------------------------------------------------------------------------
18610 Misc.tests.cpp:<line number>
18611 ...............................................................................
18612
18613 Misc.tests.cpp:<line number>: PASSED:
18614 CHECK( result == "\"wide load\"" )
18615 with expansion:
18616 ""wide load"" == ""wide load""
18617
18618 -------------------------------------------------------------------------------
18619 toString(enum class w/operator<<)
18620 -------------------------------------------------------------------------------
18621 EnumToString.tests.cpp:<line number>
18622 ...............................................................................
18623
18624 EnumToString.tests.cpp:<line number>: PASSED:
18625 CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" )
18626 with expansion:
18627 "E2/V0" == "E2/V0"
18628
18629 EnumToString.tests.cpp:<line number>: PASSED:
18630 CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" )
18631 with expansion:
18632 "E2/V1" == "E2/V1"
18633
18634 EnumToString.tests.cpp:<line number>: PASSED:
18635 CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" )
18636 with expansion:
18637 "Unknown enum value 10"
18638 ==
18639 "Unknown enum value 10"
18640
18641 -------------------------------------------------------------------------------
18642 toString(enum class)
18643 -------------------------------------------------------------------------------
18644 EnumToString.tests.cpp:<line number>
18645 ...............................................................................
18646
18647 EnumToString.tests.cpp:<line number>: PASSED:
18648 CHECK( ::Catch::Detail::stringify(e0) == "0" )
18649 with expansion:
18650 "0" == "0"
18651
18652 EnumToString.tests.cpp:<line number>: PASSED:
18653 CHECK( ::Catch::Detail::stringify(e1) == "1" )
18654 with expansion:
18655 "1" == "1"
18656
18657 -------------------------------------------------------------------------------
18658 toString(enum w/operator<<)
18659 -------------------------------------------------------------------------------
18660 EnumToString.tests.cpp:<line number>
18661 ...............................................................................
18662
18663 EnumToString.tests.cpp:<line number>: PASSED:
18664 CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" )
18665 with expansion:
18666 "E2{0}" == "E2{0}"
18667
18668 EnumToString.tests.cpp:<line number>: PASSED:
18669 CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" )
18670 with expansion:
18671 "E2{1}" == "E2{1}"
18672
18673 -------------------------------------------------------------------------------
18674 toString(enum)
18675 -------------------------------------------------------------------------------
18676 EnumToString.tests.cpp:<line number>
18677 ...............................................................................
18678
18679 EnumToString.tests.cpp:<line number>: PASSED:
18680 CHECK( ::Catch::Detail::stringify(e0) == "0" )
18681 with expansion:
18682 "0" == "0"
18683
18684 EnumToString.tests.cpp:<line number>: PASSED:
18685 CHECK( ::Catch::Detail::stringify(e1) == "1" )
18686 with expansion:
18687 "1" == "1"
18688
18689 -------------------------------------------------------------------------------
18690 tuple<>
18691 -------------------------------------------------------------------------------
18692 ToStringTuple.tests.cpp:<line number>
18693 ...............................................................................
18694
18695 ToStringTuple.tests.cpp:<line number>: PASSED:
18696 CHECK( "{ }" == ::Catch::Detail::stringify(type{}) )
18697 with expansion:
18698 "{ }" == "{ }"
18699
18700 ToStringTuple.tests.cpp:<line number>: PASSED:
18701 CHECK( "{ }" == ::Catch::Detail::stringify(value) )
18702 with expansion:
18703 "{ }" == "{ }"
18704
18705 -------------------------------------------------------------------------------
18706 tuple<float,int>
18707 -------------------------------------------------------------------------------
18708 ToStringTuple.tests.cpp:<line number>
18709 ...............................................................................
18710
18711 ToStringTuple.tests.cpp:<line number>: PASSED:
18712 CHECK( "1.5f" == ::Catch::Detail::stringify(float(1.5)) )
18713 with expansion:
18714 "1.5f" == "1.5f"
18715
18716 ToStringTuple.tests.cpp:<line number>: PASSED:
18717 CHECK( "{ 1.5f, 0 }" == ::Catch::Detail::stringify(type{1.5f,0}) )
18718 with expansion:
18719 "{ 1.5f, 0 }" == "{ 1.5f, 0 }"
18720
18721 -------------------------------------------------------------------------------
18722 tuple<int>
18723 -------------------------------------------------------------------------------
18724 ToStringTuple.tests.cpp:<line number>
18725 ...............................................................................
18726
18727 ToStringTuple.tests.cpp:<line number>: PASSED:
18728 CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) )
18729 with expansion:
18730 "{ 0 }" == "{ 0 }"
18731
18732 -------------------------------------------------------------------------------
18733 tuple<string,string>
18734 -------------------------------------------------------------------------------
18735 ToStringTuple.tests.cpp:<line number>
18736 ...............................................................................
18737
18738 ToStringTuple.tests.cpp:<line number>: PASSED:
18739 CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) )
18740 with expansion:
18741 "{ "hello", "world" }"
18742 ==
18743 "{ "hello", "world" }"
18744
18745 -------------------------------------------------------------------------------
18746 tuple<tuple<int>,tuple<>,float>
18747 -------------------------------------------------------------------------------
18748 ToStringTuple.tests.cpp:<line number>
18749 ...............................................................................
18750
18751 ToStringTuple.tests.cpp:<line number>: PASSED:
18752 CHECK( "{ { 42 }, { }, 1.5f }" == ::Catch::Detail::stringify(value) )
18753 with expansion:
18754 "{ { 42 }, { }, 1.5f }"
18755 ==
18756 "{ { 42 }, { }, 1.5f }"
18757
18758 -------------------------------------------------------------------------------
18759 uniform samples
18760 -------------------------------------------------------------------------------
18761 InternalBenchmark.tests.cpp:<line number>
18762 ...............................................................................
18763
18764 InternalBenchmark.tests.cpp:<line number>: PASSED:
18765 CHECK( e.point == 23 )
18766 with expansion:
18767 23.0 == 23
18768
18769 InternalBenchmark.tests.cpp:<line number>: PASSED:
18770 CHECK( e.upper_bound == 23 )
18771 with expansion:
18772 23.0 == 23
18773
18774 InternalBenchmark.tests.cpp:<line number>: PASSED:
18775 CHECK( e.lower_bound == 23 )
18776 with expansion:
18777 23.0 == 23
18778
18779 InternalBenchmark.tests.cpp:<line number>: PASSED:
18780 CHECK( e.confidence_interval == 0.95 )
18781 with expansion:
18782 0.94999999999999996 == 0.94999999999999996
18783
18784 -------------------------------------------------------------------------------
18785 uniform_integer_distribution can return the bounds
18786 -------------------------------------------------------------------------------
18787 RandomNumberGeneration.tests.cpp:<line number>
18788 ...............................................................................
18789
18790 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
18791 REQUIRE( dist.a() == -10 )
18792 with expansion:
18793 -10 == -10
18794
18795 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
18796 REQUIRE( dist.b() == 10 )
18797 with expansion:
18798 10 == 10
18799
18800 -------------------------------------------------------------------------------
18801 unique_ptr reimplementation: basic functionality
18802 Default constructed unique_ptr is empty
18803 -------------------------------------------------------------------------------
18804 UniquePtr.tests.cpp:<line number>
18805 ...............................................................................
18806
18807 UniquePtr.tests.cpp:<line number>: PASSED:
18808 REQUIRE_FALSE( ptr )
18809 with expansion:
18810 !{?}
18811
18812 UniquePtr.tests.cpp:<line number>: PASSED:
18813 REQUIRE( ptr.get() == 0 )
18814 with expansion:
18815 0 == 0
18816
18817 -------------------------------------------------------------------------------
18818 unique_ptr reimplementation: basic functionality
18819 Take ownership of allocation
18820 -------------------------------------------------------------------------------
18821 UniquePtr.tests.cpp:<line number>
18822 ...............................................................................
18823
18824 UniquePtr.tests.cpp:<line number>: PASSED:
18825 REQUIRE( ptr )
18826 with expansion:
18827 {?}
18828
18829 UniquePtr.tests.cpp:<line number>: PASSED:
18830 REQUIRE( *ptr == 0 )
18831 with expansion:
18832 0 == 0
18833
18834 UniquePtr.tests.cpp:<line number>: PASSED:
18835 REQUIRE( ptr.get() == naked_ptr )
18836 with expansion:
18837 0x<hex digits> == 0x<hex digits>
18838
18839 -------------------------------------------------------------------------------
18840 unique_ptr reimplementation: basic functionality
18841 Take ownership of allocation
18842 Plain reset deallocates
18843 -------------------------------------------------------------------------------
18844 UniquePtr.tests.cpp:<line number>
18845 ...............................................................................
18846
18847 UniquePtr.tests.cpp:<line number>: PASSED:
18848 REQUIRE_FALSE( ptr )
18849 with expansion:
18850 !{?}
18851
18852 UniquePtr.tests.cpp:<line number>: PASSED:
18853 REQUIRE( ptr.get() == 0 )
18854 with expansion:
18855 0 == 0
18856
18857 -------------------------------------------------------------------------------
18858 unique_ptr reimplementation: basic functionality
18859 Take ownership of allocation
18860 -------------------------------------------------------------------------------
18861 UniquePtr.tests.cpp:<line number>
18862 ...............................................................................
18863
18864 UniquePtr.tests.cpp:<line number>: PASSED:
18865 REQUIRE( ptr )
18866 with expansion:
18867 {?}
18868
18869 UniquePtr.tests.cpp:<line number>: PASSED:
18870 REQUIRE( *ptr == 0 )
18871 with expansion:
18872 0 == 0
18873
18874 UniquePtr.tests.cpp:<line number>: PASSED:
18875 REQUIRE( ptr.get() == naked_ptr )
18876 with expansion:
18877 0x<hex digits> == 0x<hex digits>
18878
18879 -------------------------------------------------------------------------------
18880 unique_ptr reimplementation: basic functionality
18881 Take ownership of allocation
18882 Reset replaces ownership
18883 -------------------------------------------------------------------------------
18884 UniquePtr.tests.cpp:<line number>
18885 ...............................................................................
18886
18887 UniquePtr.tests.cpp:<line number>: PASSED:
18888 REQUIRE( ptr )
18889 with expansion:
18890 {?}
18891
18892 UniquePtr.tests.cpp:<line number>: PASSED:
18893 REQUIRE( ptr.get() != 0 )
18894 with expansion:
18895 0x<hex digits> != 0
18896
18897 UniquePtr.tests.cpp:<line number>: PASSED:
18898 REQUIRE( *ptr == 2 )
18899 with expansion:
18900 2 == 2
18901
18902 -------------------------------------------------------------------------------
18903 unique_ptr reimplementation: basic functionality
18904 Release releases ownership
18905 -------------------------------------------------------------------------------
18906 UniquePtr.tests.cpp:<line number>
18907 ...............................................................................
18908
18909 UniquePtr.tests.cpp:<line number>: PASSED:
18910 CHECK_FALSE( ptr )
18911 with expansion:
18912 !{?}
18913
18914 UniquePtr.tests.cpp:<line number>: PASSED:
18915 CHECK( ptr.get() == 0 )
18916 with expansion:
18917 0 == 0
18918
18919 -------------------------------------------------------------------------------
18920 unique_ptr reimplementation: basic functionality
18921 Move constructor
18922 -------------------------------------------------------------------------------
18923 UniquePtr.tests.cpp:<line number>
18924 ...............................................................................
18925
18926 UniquePtr.tests.cpp:<line number>: PASSED:
18927 REQUIRE_FALSE( ptr1 )
18928 with expansion:
18929 !{?}
18930
18931 UniquePtr.tests.cpp:<line number>: PASSED:
18932 REQUIRE( ptr2 )
18933 with expansion:
18934 {?}
18935
18936 UniquePtr.tests.cpp:<line number>: PASSED:
18937 REQUIRE( *ptr2 == 1 )
18938 with expansion:
18939 1 == 1
18940
18941 -------------------------------------------------------------------------------
18942 unique_ptr reimplementation: basic functionality
18943 Move assignment
18944 -------------------------------------------------------------------------------
18945 UniquePtr.tests.cpp:<line number>
18946 ...............................................................................
18947
18948 UniquePtr.tests.cpp:<line number>: PASSED:
18949 REQUIRE_FALSE( ptr2 )
18950 with expansion:
18951 !{?}
18952
18953 UniquePtr.tests.cpp:<line number>: PASSED:
18954 REQUIRE( ptr1 )
18955 with expansion:
18956 {?}
18957
18958 UniquePtr.tests.cpp:<line number>: PASSED:
18959 REQUIRE( *ptr1 == 2 )
18960 with expansion:
18961 2 == 2
18962
18963 -------------------------------------------------------------------------------
18964 unique_ptr reimplementation: basic functionality
18965 free swap
18966 -------------------------------------------------------------------------------
18967 UniquePtr.tests.cpp:<line number>
18968 ...............................................................................
18969
18970 UniquePtr.tests.cpp:<line number>: PASSED:
18971 REQUIRE( *ptr1 == 2 )
18972 with expansion:
18973 2 == 2
18974
18975 UniquePtr.tests.cpp:<line number>: PASSED:
18976 REQUIRE( *ptr2 == 1 )
18977 with expansion:
18978 1 == 1
18979
18980 -------------------------------------------------------------------------------
18981 vec<vec<string,alloc>> -> toString
18982 -------------------------------------------------------------------------------
18983 ToStringVector.tests.cpp:<line number>
18984 ...............................................................................
18985
18986 ToStringVector.tests.cpp:<line number>: PASSED:
18987 REQUIRE( ::Catch::Detail::stringify(v) == "{ }" )
18988 with expansion:
18989 "{ }" == "{ }"
18990
18991 ToStringVector.tests.cpp:<line number>: PASSED:
18992 REQUIRE( ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" )
18993 with expansion:
18994 "{ { "hello" }, { "world" } }"
18995 ==
18996 "{ { "hello" }, { "world" } }"
18997
18998 -------------------------------------------------------------------------------
18999 vector<bool> -> toString
19000 -------------------------------------------------------------------------------
19001 ToStringVector.tests.cpp:<line number>
19002 ...............................................................................
19003
19004 ToStringVector.tests.cpp:<line number>: PASSED:
19005 REQUIRE( ::Catch::Detail::stringify(bools) == "{ }" )
19006 with expansion:
19007 "{ }" == "{ }"
19008
19009 ToStringVector.tests.cpp:<line number>: PASSED:
19010 REQUIRE( ::Catch::Detail::stringify(bools) == "{ true }" )
19011 with expansion:
19012 "{ true }" == "{ true }"
19013
19014 ToStringVector.tests.cpp:<line number>: PASSED:
19015 REQUIRE( ::Catch::Detail::stringify(bools) == "{ true, false }" )
19016 with expansion:
19017 "{ true, false }" == "{ true, false }"
19018
19019 -------------------------------------------------------------------------------
19020 vector<int,allocator> -> toString
19021 -------------------------------------------------------------------------------
19022 ToStringVector.tests.cpp:<line number>
19023 ...............................................................................
19024
19025 ToStringVector.tests.cpp:<line number>: PASSED:
19026 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
19027 with expansion:
19028 "{ }" == "{ }"
19029
19030 ToStringVector.tests.cpp:<line number>: PASSED:
19031 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
19032 with expansion:
19033 "{ 42 }" == "{ 42 }"
19034
19035 ToStringVector.tests.cpp:<line number>: PASSED:
19036 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
19037 with expansion:
19038 "{ 42, 250 }" == "{ 42, 250 }"
19039
19040 -------------------------------------------------------------------------------
19041 vector<int> -> toString
19042 -------------------------------------------------------------------------------
19043 ToStringVector.tests.cpp:<line number>
19044 ...............................................................................
19045
19046 ToStringVector.tests.cpp:<line number>: PASSED:
19047 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
19048 with expansion:
19049 "{ }" == "{ }"
19050
19051 ToStringVector.tests.cpp:<line number>: PASSED:
19052 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
19053 with expansion:
19054 "{ 42 }" == "{ 42 }"
19055
19056 ToStringVector.tests.cpp:<line number>: PASSED:
19057 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
19058 with expansion:
19059 "{ 42, 250 }" == "{ 42, 250 }"
19060
19061 -------------------------------------------------------------------------------
19062 vector<string> -> toString
19063 -------------------------------------------------------------------------------
19064 ToStringVector.tests.cpp:<line number>
19065 ...............................................................................
19066
19067 ToStringVector.tests.cpp:<line number>: PASSED:
19068 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
19069 with expansion:
19070 "{ }" == "{ }"
19071
19072 ToStringVector.tests.cpp:<line number>: PASSED:
19073 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" )
19074 with expansion:
19075 "{ "hello" }" == "{ "hello" }"
19076
19077 ToStringVector.tests.cpp:<line number>: PASSED:
19078 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" )
19079 with expansion:
19080 "{ "hello", "world" }"
19081 ==
19082 "{ "hello", "world" }"
19083
19084 -------------------------------------------------------------------------------
19085 vectors can be sized and resized
19086 -------------------------------------------------------------------------------
19087 Misc.tests.cpp:<line number>
19088 ...............................................................................
19089
19090 Misc.tests.cpp:<line number>: PASSED:
19091 REQUIRE( v.size() == 5 )
19092 with expansion:
19093 5 == 5
19094
19095 Misc.tests.cpp:<line number>: PASSED:
19096 REQUIRE( v.capacity() >= 5 )
19097 with expansion:
19098 5 >= 5
19099
19100 -------------------------------------------------------------------------------
19101 vectors can be sized and resized
19102 resizing bigger changes size and capacity
19103 -------------------------------------------------------------------------------
19104 Misc.tests.cpp:<line number>
19105 ...............................................................................
19106
19107 Misc.tests.cpp:<line number>: PASSED:
19108 REQUIRE( v.size() == 10 )
19109 with expansion:
19110 10 == 10
19111
19112 Misc.tests.cpp:<line number>: PASSED:
19113 REQUIRE( v.capacity() >= 10 )
19114 with expansion:
19115 10 >= 10
19116
19117 -------------------------------------------------------------------------------
19118 vectors can be sized and resized
19119 -------------------------------------------------------------------------------
19120 Misc.tests.cpp:<line number>
19121 ...............................................................................
19122
19123 Misc.tests.cpp:<line number>: PASSED:
19124 REQUIRE( v.size() == 5 )
19125 with expansion:
19126 5 == 5
19127
19128 Misc.tests.cpp:<line number>: PASSED:
19129 REQUIRE( v.capacity() >= 5 )
19130 with expansion:
19131 5 >= 5
19132
19133 -------------------------------------------------------------------------------
19134 vectors can be sized and resized
19135 resizing smaller changes size but not capacity
19136 -------------------------------------------------------------------------------
19137 Misc.tests.cpp:<line number>
19138 ...............................................................................
19139
19140 Misc.tests.cpp:<line number>: PASSED:
19141 REQUIRE( v.size() == 0 )
19142 with expansion:
19143 0 == 0
19144
19145 Misc.tests.cpp:<line number>: PASSED:
19146 REQUIRE( v.capacity() >= 5 )
19147 with expansion:
19148 5 >= 5
19149
19150 -------------------------------------------------------------------------------
19151 vectors can be sized and resized
19152 resizing smaller changes size but not capacity
19153 We can use the 'swap trick' to reset the capacity
19154 -------------------------------------------------------------------------------
19155 Misc.tests.cpp:<line number>
19156 ...............................................................................
19157
19158 Misc.tests.cpp:<line number>: PASSED:
19159 REQUIRE( v.capacity() == 0 )
19160 with expansion:
19161 0 == 0
19162
19163 -------------------------------------------------------------------------------
19164 vectors can be sized and resized
19165 -------------------------------------------------------------------------------
19166 Misc.tests.cpp:<line number>
19167 ...............................................................................
19168
19169 Misc.tests.cpp:<line number>: PASSED:
19170 REQUIRE( v.size() == 5 )
19171 with expansion:
19172 5 == 5
19173
19174 Misc.tests.cpp:<line number>: PASSED:
19175 REQUIRE( v.capacity() >= 5 )
19176 with expansion:
19177 5 >= 5
19178
19179 -------------------------------------------------------------------------------
19180 vectors can be sized and resized
19181 reserving bigger changes capacity but not size
19182 -------------------------------------------------------------------------------
19183 Misc.tests.cpp:<line number>
19184 ...............................................................................
19185
19186 Misc.tests.cpp:<line number>: PASSED:
19187 REQUIRE( v.size() == 5 )
19188 with expansion:
19189 5 == 5
19190
19191 Misc.tests.cpp:<line number>: PASSED:
19192 REQUIRE( v.capacity() >= 10 )
19193 with expansion:
19194 10 >= 10
19195
19196 -------------------------------------------------------------------------------
19197 vectors can be sized and resized
19198 -------------------------------------------------------------------------------
19199 Misc.tests.cpp:<line number>
19200 ...............................................................................
19201
19202 Misc.tests.cpp:<line number>: PASSED:
19203 REQUIRE( v.size() == 5 )
19204 with expansion:
19205 5 == 5
19206
19207 Misc.tests.cpp:<line number>: PASSED:
19208 REQUIRE( v.capacity() >= 5 )
19209 with expansion:
19210 5 >= 5
19211
19212 -------------------------------------------------------------------------------
19213 vectors can be sized and resized
19214 reserving smaller does not change size or capacity
19215 -------------------------------------------------------------------------------
19216 Misc.tests.cpp:<line number>
19217 ...............................................................................
19218
19219 Misc.tests.cpp:<line number>: PASSED:
19220 REQUIRE( v.size() == 5 )
19221 with expansion:
19222 5 == 5
19223
19224 Misc.tests.cpp:<line number>: PASSED:
19225 REQUIRE( v.capacity() >= 5 )
19226 with expansion:
19227 5 >= 5
19228
19229 -------------------------------------------------------------------------------
19230 warmup
19231 -------------------------------------------------------------------------------
19232 InternalBenchmark.tests.cpp:<line number>
19233 ...............................................................................
19234
19235 InternalBenchmark.tests.cpp:<line number>: PASSED:
19236 REQUIRE( (iterations * rate) > Catch::Benchmark::Detail::warmup_time.count() )
19237 with expansion:
19238 160000000 (0x<hex digits>) > 100
19239
19240 InternalBenchmark.tests.cpp:<line number>: PASSED:
19241 REQUIRE( (end - start) > Catch::Benchmark::Detail::warmup_time )
19242 with expansion:
19243 310016000 ns > 100 ms
19244
19245 -------------------------------------------------------------------------------
19246 weighted_average_quantile
19247 -------------------------------------------------------------------------------
19248 InternalBenchmark.tests.cpp:<line number>
19249 ...............................................................................
19250
19251 InternalBenchmark.tests.cpp:<line number>: PASSED:
19252 REQUIRE( q1 == 14.5 )
19253 with expansion:
19254 14.5 == 14.5
19255
19256 InternalBenchmark.tests.cpp:<line number>: PASSED:
19257 REQUIRE( med == 18. )
19258 with expansion:
19259 18.0 == 18.0
19260
19261 InternalBenchmark.tests.cpp:<line number>: PASSED:
19262 REQUIRE( q3 == 23. )
19263 with expansion:
19264 23.0 == 23.0
19265
19266 -------------------------------------------------------------------------------
19267 xmlentitycheck
19268 embedded xml: <test>it should be possible to embed xml characters, such as <,
19269 " or &, or even whole <xml>documents</xml> within an attribute
19270 </test>
19271 -------------------------------------------------------------------------------
19272 Misc.tests.cpp:<line number>
19273 ...............................................................................
19274
19275 Misc.tests.cpp:<line number>: PASSED:
19276
19277 -------------------------------------------------------------------------------
19278 xmlentitycheck
19279 encoded chars: these should all be encoded: &&&"""<<<&"<<&"
19280 -------------------------------------------------------------------------------
19281 Misc.tests.cpp:<line number>
19282 ...............................................................................
19283
19284 Misc.tests.cpp:<line number>: PASSED:
19285
19286 ===============================================================================
19287 test cases: 435 | 317 passed | 95 failed | 6 skipped | 17 failed as expected
19288 assertions: 2303 | 2105 passed | 157 failed | 41 failed as expected
19289