Debian Codegraph @

3rdparty/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 due to unexpected exception with message:
770 failure to init
771
772 -------------------------------------------------------------------------------
773 #748 - captures with unexpected exceptions
774 outside assertions
775 -------------------------------------------------------------------------------
776 Exception.tests.cpp:<line number>
777 ...............................................................................
778
779 Exception.tests.cpp:<line number>: FAILED:
780 due to unexpected exception with messages:
781 answer := 42
782 expected exception
783
784 -------------------------------------------------------------------------------
785 #748 - captures with unexpected exceptions
786 inside REQUIRE_NOTHROW
787 -------------------------------------------------------------------------------
788 Exception.tests.cpp:<line number>
789 ...............................................................................
790
791 Exception.tests.cpp:<line number>: FAILED:
792 REQUIRE_NOTHROW( thisThrows() )
793 due to unexpected exception with messages:
794 answer := 42
795 expected exception
796
797 -------------------------------------------------------------------------------
798 #748 - captures with unexpected exceptions
799 inside REQUIRE_THROWS
800 -------------------------------------------------------------------------------
801 Exception.tests.cpp:<line number>
802 ...............................................................................
803
804 Exception.tests.cpp:<line number>: PASSED:
805 REQUIRE_THROWS( thisThrows() )
806 with message:
807 answer := 42
808
809 -------------------------------------------------------------------------------
810 #809
811 -------------------------------------------------------------------------------
812 Compilation.tests.cpp:<line number>
813 ...............................................................................
814
815 Compilation.tests.cpp:<line number>: PASSED:
816 REQUIRE( 42 == f )
817 with expansion:
818 42 == {?}
819
820 -------------------------------------------------------------------------------
821 #833
822 -------------------------------------------------------------------------------
823 Compilation.tests.cpp:<line number>
824 ...............................................................................
825
826 Compilation.tests.cpp:<line number>: PASSED:
827 REQUIRE( a == t )
828 with expansion:
829 3 == 3
830
831 Compilation.tests.cpp:<line number>: PASSED:
832 CHECK( a == t )
833 with expansion:
834 3 == 3
835
836 Compilation.tests.cpp:<line number>: PASSED:
837 REQUIRE_THROWS( throws_int(true) )
838
839 Compilation.tests.cpp:<line number>: PASSED:
840 CHECK_THROWS_AS( throws_int(true), int )
841
842 Compilation.tests.cpp:<line number>: PASSED:
843 REQUIRE_NOTHROW( throws_int(false) )
844
845 Compilation.tests.cpp:<line number>: PASSED:
846 REQUIRE_THAT( "aaa", Catch::Matchers::EndsWith("aaa") )
847 with expansion:
848 "aaa" ends with: "aaa"
849
850 Compilation.tests.cpp:<line number>: PASSED:
851 REQUIRE( templated_tests<int>(3) )
852 with expansion:
853 true
854
855 -------------------------------------------------------------------------------
856 #835 -- errno should not be touched by Catch2
857 -------------------------------------------------------------------------------
858 Misc.tests.cpp:<line number>
859 ...............................................................................
860
861 Misc.tests.cpp:<line number>: FAILED:
862 CHECK( f() == 0 )
863 with expansion:
864 1 == 0
865
866 Misc.tests.cpp:<line number>: PASSED:
867 REQUIRE( errno_after == 1 )
868 with expansion:
869 1 == 1
870
871 -------------------------------------------------------------------------------
872 #872
873 -------------------------------------------------------------------------------
874 Compilation.tests.cpp:<line number>
875 ...............................................................................
876
877 Compilation.tests.cpp:<line number>: PASSED:
878 REQUIRE( x == 4 )
879 with expansion:
880 {?} == 4
881 with message:
882 dummy := 0
883
884 -------------------------------------------------------------------------------
885 #961 -- Dynamically created sections should all be reported
886 Looped section 0
887 -------------------------------------------------------------------------------
888 Misc.tests.cpp:<line number>
889 ...............................................................................
890
891 Misc.tests.cpp:<line number>: PASSED:
892 with message:
893 Everything is OK
894
895 -------------------------------------------------------------------------------
896 #961 -- Dynamically created sections should all be reported
897 Looped section 1
898 -------------------------------------------------------------------------------
899 Misc.tests.cpp:<line number>
900 ...............................................................................
901
902 Misc.tests.cpp:<line number>: PASSED:
903 with message:
904 Everything is OK
905
906 -------------------------------------------------------------------------------
907 #961 -- Dynamically created sections should all be reported
908 Looped section 2
909 -------------------------------------------------------------------------------
910 Misc.tests.cpp:<line number>
911 ...............................................................................
912
913 Misc.tests.cpp:<line number>: PASSED:
914 with message:
915 Everything is OK
916
917 -------------------------------------------------------------------------------
918 #961 -- Dynamically created sections should all be reported
919 Looped section 3
920 -------------------------------------------------------------------------------
921 Misc.tests.cpp:<line number>
922 ...............................................................................
923
924 Misc.tests.cpp:<line number>: PASSED:
925 with message:
926 Everything is OK
927
928 -------------------------------------------------------------------------------
929 #961 -- Dynamically created sections should all be reported
930 Looped section 4
931 -------------------------------------------------------------------------------
932 Misc.tests.cpp:<line number>
933 ...............................................................................
934
935 Misc.tests.cpp:<line number>: PASSED:
936 with message:
937 Everything is OK
938
939 -------------------------------------------------------------------------------
940 'Not' checks that should fail
941 -------------------------------------------------------------------------------
942 Condition.tests.cpp:<line number>
943 ...............................................................................
944
945 Condition.tests.cpp:<line number>: FAILED:
946 CHECK( false != false )
947
948 Condition.tests.cpp:<line number>: FAILED:
949 CHECK( true != true )
950
951 Condition.tests.cpp:<line number>: FAILED:
952 CHECK( !true )
953 with expansion:
954 false
955
956 Condition.tests.cpp:<line number>: FAILED:
957 CHECK_FALSE( true )
958 with expansion:
959 !true
960
961 Condition.tests.cpp:<line number>: FAILED:
962 CHECK( !trueValue )
963 with expansion:
964 false
965
966 Condition.tests.cpp:<line number>: FAILED:
967 CHECK_FALSE( trueValue )
968 with expansion:
969 !true
970
971 Condition.tests.cpp:<line number>: FAILED:
972 CHECK( !(1 == 1) )
973 with expansion:
974 false
975
976 Condition.tests.cpp:<line number>: FAILED:
977 CHECK_FALSE( 1 == 1 )
978
979 -------------------------------------------------------------------------------
980 'Not' checks that should succeed
981 -------------------------------------------------------------------------------
982 Condition.tests.cpp:<line number>
983 ...............................................................................
984
985 Condition.tests.cpp:<line number>: PASSED:
986 REQUIRE( false == false )
987
988 Condition.tests.cpp:<line number>: PASSED:
989 REQUIRE( true == true )
990
991 Condition.tests.cpp:<line number>: PASSED:
992 REQUIRE( !false )
993 with expansion:
994 true
995
996 Condition.tests.cpp:<line number>: PASSED:
997 REQUIRE_FALSE( false )
998 with expansion:
999 !false
1000
1001 Condition.tests.cpp:<line number>: PASSED:
1002 REQUIRE( !falseValue )
1003 with expansion:
1004 true
1005
1006 Condition.tests.cpp:<line number>: PASSED:
1007 REQUIRE_FALSE( falseValue )
1008 with expansion:
1009 !false
1010
1011 Condition.tests.cpp:<line number>: PASSED:
1012 REQUIRE( !(1 == 2) )
1013 with expansion:
1014 true
1015
1016 Condition.tests.cpp:<line number>: PASSED:
1017 REQUIRE_FALSE( 1 == 2 )
1018
1019 -------------------------------------------------------------------------------
1020 (unimplemented) static bools can be evaluated
1021 compare to true
1022 -------------------------------------------------------------------------------
1023 Tricky.tests.cpp:<line number>
1024 ...............................................................................
1025
1026 Tricky.tests.cpp:<line number>: PASSED:
1027 REQUIRE( is_true<true>::value == true )
1028 with expansion:
1029 true == true
1030
1031 Tricky.tests.cpp:<line number>: PASSED:
1032 REQUIRE( true == is_true<true>::value )
1033 with expansion:
1034 true == true
1035
1036 -------------------------------------------------------------------------------
1037 (unimplemented) static bools can be evaluated
1038 compare to false
1039 -------------------------------------------------------------------------------
1040 Tricky.tests.cpp:<line number>
1041 ...............................................................................
1042
1043 Tricky.tests.cpp:<line number>: PASSED:
1044 REQUIRE( is_true<false>::value == false )
1045 with expansion:
1046 false == false
1047
1048 Tricky.tests.cpp:<line number>: PASSED:
1049 REQUIRE( false == is_true<false>::value )
1050 with expansion:
1051 false == false
1052
1053 -------------------------------------------------------------------------------
1054 (unimplemented) static bools can be evaluated
1055 negation
1056 -------------------------------------------------------------------------------
1057 Tricky.tests.cpp:<line number>
1058 ...............................................................................
1059
1060 Tricky.tests.cpp:<line number>: PASSED:
1061 REQUIRE( !is_true<false>::value )
1062 with expansion:
1063 true
1064
1065 -------------------------------------------------------------------------------
1066 (unimplemented) static bools can be evaluated
1067 double negation
1068 -------------------------------------------------------------------------------
1069 Tricky.tests.cpp:<line number>
1070 ...............................................................................
1071
1072 Tricky.tests.cpp:<line number>: PASSED:
1073 REQUIRE( !!is_true<true>::value )
1074 with expansion:
1075 true
1076
1077 -------------------------------------------------------------------------------
1078 (unimplemented) static bools can be evaluated
1079 direct
1080 -------------------------------------------------------------------------------
1081 Tricky.tests.cpp:<line number>
1082 ...............................................................................
1083
1084 Tricky.tests.cpp:<line number>: PASSED:
1085 REQUIRE( is_true<true>::value )
1086 with expansion:
1087 true
1088
1089 Tricky.tests.cpp:<line number>: PASSED:
1090 REQUIRE_FALSE( is_true<false>::value )
1091 with expansion:
1092 !false
1093
1094 -------------------------------------------------------------------------------
1095 3x3x3 ints
1096 -------------------------------------------------------------------------------
1097 Generators.tests.cpp:<line number>
1098 ...............................................................................
1099
1100 Generators.tests.cpp:<line number>: PASSED:
1101 CHECK( x < y )
1102 with expansion:
1103 1 < 4
1104
1105 Generators.tests.cpp:<line number>: PASSED:
1106 CHECK( y < z )
1107 with expansion:
1108 4 < 7
1109
1110 Generators.tests.cpp:<line number>: PASSED:
1111 REQUIRE( x < z )
1112 with expansion:
1113 1 < 7
1114
1115 -------------------------------------------------------------------------------
1116 3x3x3 ints
1117 -------------------------------------------------------------------------------
1118 Generators.tests.cpp:<line number>
1119 ...............................................................................
1120
1121 Generators.tests.cpp:<line number>: PASSED:
1122 CHECK( x < y )
1123 with expansion:
1124 1 < 4
1125
1126 Generators.tests.cpp:<line number>: PASSED:
1127 CHECK( y < z )
1128 with expansion:
1129 4 < 8
1130
1131 Generators.tests.cpp:<line number>: PASSED:
1132 REQUIRE( x < z )
1133 with expansion:
1134 1 < 8
1135
1136 -------------------------------------------------------------------------------
1137 3x3x3 ints
1138 -------------------------------------------------------------------------------
1139 Generators.tests.cpp:<line number>
1140 ...............................................................................
1141
1142 Generators.tests.cpp:<line number>: PASSED:
1143 CHECK( x < y )
1144 with expansion:
1145 1 < 4
1146
1147 Generators.tests.cpp:<line number>: PASSED:
1148 CHECK( y < z )
1149 with expansion:
1150 4 < 9
1151
1152 Generators.tests.cpp:<line number>: PASSED:
1153 REQUIRE( x < z )
1154 with expansion:
1155 1 < 9
1156
1157 -------------------------------------------------------------------------------
1158 3x3x3 ints
1159 -------------------------------------------------------------------------------
1160 Generators.tests.cpp:<line number>
1161 ...............................................................................
1162
1163 Generators.tests.cpp:<line number>: PASSED:
1164 CHECK( x < y )
1165 with expansion:
1166 1 < 5
1167
1168 Generators.tests.cpp:<line number>: PASSED:
1169 CHECK( y < z )
1170 with expansion:
1171 5 < 7
1172
1173 Generators.tests.cpp:<line number>: PASSED:
1174 REQUIRE( x < z )
1175 with expansion:
1176 1 < 7
1177
1178 -------------------------------------------------------------------------------
1179 3x3x3 ints
1180 -------------------------------------------------------------------------------
1181 Generators.tests.cpp:<line number>
1182 ...............................................................................
1183
1184 Generators.tests.cpp:<line number>: PASSED:
1185 CHECK( x < y )
1186 with expansion:
1187 1 < 5
1188
1189 Generators.tests.cpp:<line number>: PASSED:
1190 CHECK( y < z )
1191 with expansion:
1192 5 < 8
1193
1194 Generators.tests.cpp:<line number>: PASSED:
1195 REQUIRE( x < z )
1196 with expansion:
1197 1 < 8
1198
1199 -------------------------------------------------------------------------------
1200 3x3x3 ints
1201 -------------------------------------------------------------------------------
1202 Generators.tests.cpp:<line number>
1203 ...............................................................................
1204
1205 Generators.tests.cpp:<line number>: PASSED:
1206 CHECK( x < y )
1207 with expansion:
1208 1 < 5
1209
1210 Generators.tests.cpp:<line number>: PASSED:
1211 CHECK( y < z )
1212 with expansion:
1213 5 < 9
1214
1215 Generators.tests.cpp:<line number>: PASSED:
1216 REQUIRE( x < z )
1217 with expansion:
1218 1 < 9
1219
1220 -------------------------------------------------------------------------------
1221 3x3x3 ints
1222 -------------------------------------------------------------------------------
1223 Generators.tests.cpp:<line number>
1224 ...............................................................................
1225
1226 Generators.tests.cpp:<line number>: PASSED:
1227 CHECK( x < y )
1228 with expansion:
1229 1 < 6
1230
1231 Generators.tests.cpp:<line number>: PASSED:
1232 CHECK( y < z )
1233 with expansion:
1234 6 < 7
1235
1236 Generators.tests.cpp:<line number>: PASSED:
1237 REQUIRE( x < z )
1238 with expansion:
1239 1 < 7
1240
1241 -------------------------------------------------------------------------------
1242 3x3x3 ints
1243 -------------------------------------------------------------------------------
1244 Generators.tests.cpp:<line number>
1245 ...............................................................................
1246
1247 Generators.tests.cpp:<line number>: PASSED:
1248 CHECK( x < y )
1249 with expansion:
1250 1 < 6
1251
1252 Generators.tests.cpp:<line number>: PASSED:
1253 CHECK( y < z )
1254 with expansion:
1255 6 < 8
1256
1257 Generators.tests.cpp:<line number>: PASSED:
1258 REQUIRE( x < z )
1259 with expansion:
1260 1 < 8
1261
1262 -------------------------------------------------------------------------------
1263 3x3x3 ints
1264 -------------------------------------------------------------------------------
1265 Generators.tests.cpp:<line number>
1266 ...............................................................................
1267
1268 Generators.tests.cpp:<line number>: PASSED:
1269 CHECK( x < y )
1270 with expansion:
1271 1 < 6
1272
1273 Generators.tests.cpp:<line number>: PASSED:
1274 CHECK( y < z )
1275 with expansion:
1276 6 < 9
1277
1278 Generators.tests.cpp:<line number>: PASSED:
1279 REQUIRE( x < z )
1280 with expansion:
1281 1 < 9
1282
1283 -------------------------------------------------------------------------------
1284 3x3x3 ints
1285 -------------------------------------------------------------------------------
1286 Generators.tests.cpp:<line number>
1287 ...............................................................................
1288
1289 Generators.tests.cpp:<line number>: PASSED:
1290 CHECK( x < y )
1291 with expansion:
1292 2 < 4
1293
1294 Generators.tests.cpp:<line number>: PASSED:
1295 CHECK( y < z )
1296 with expansion:
1297 4 < 7
1298
1299 Generators.tests.cpp:<line number>: PASSED:
1300 REQUIRE( x < z )
1301 with expansion:
1302 2 < 7
1303
1304 -------------------------------------------------------------------------------
1305 3x3x3 ints
1306 -------------------------------------------------------------------------------
1307 Generators.tests.cpp:<line number>
1308 ...............................................................................
1309
1310 Generators.tests.cpp:<line number>: PASSED:
1311 CHECK( x < y )
1312 with expansion:
1313 2 < 4
1314
1315 Generators.tests.cpp:<line number>: PASSED:
1316 CHECK( y < z )
1317 with expansion:
1318 4 < 8
1319
1320 Generators.tests.cpp:<line number>: PASSED:
1321 REQUIRE( x < z )
1322 with expansion:
1323 2 < 8
1324
1325 -------------------------------------------------------------------------------
1326 3x3x3 ints
1327 -------------------------------------------------------------------------------
1328 Generators.tests.cpp:<line number>
1329 ...............................................................................
1330
1331 Generators.tests.cpp:<line number>: PASSED:
1332 CHECK( x < y )
1333 with expansion:
1334 2 < 4
1335
1336 Generators.tests.cpp:<line number>: PASSED:
1337 CHECK( y < z )
1338 with expansion:
1339 4 < 9
1340
1341 Generators.tests.cpp:<line number>: PASSED:
1342 REQUIRE( x < z )
1343 with expansion:
1344 2 < 9
1345
1346 -------------------------------------------------------------------------------
1347 3x3x3 ints
1348 -------------------------------------------------------------------------------
1349 Generators.tests.cpp:<line number>
1350 ...............................................................................
1351
1352 Generators.tests.cpp:<line number>: PASSED:
1353 CHECK( x < y )
1354 with expansion:
1355 2 < 5
1356
1357 Generators.tests.cpp:<line number>: PASSED:
1358 CHECK( y < z )
1359 with expansion:
1360 5 < 7
1361
1362 Generators.tests.cpp:<line number>: PASSED:
1363 REQUIRE( x < z )
1364 with expansion:
1365 2 < 7
1366
1367 -------------------------------------------------------------------------------
1368 3x3x3 ints
1369 -------------------------------------------------------------------------------
1370 Generators.tests.cpp:<line number>
1371 ...............................................................................
1372
1373 Generators.tests.cpp:<line number>: PASSED:
1374 CHECK( x < y )
1375 with expansion:
1376 2 < 5
1377
1378 Generators.tests.cpp:<line number>: PASSED:
1379 CHECK( y < z )
1380 with expansion:
1381 5 < 8
1382
1383 Generators.tests.cpp:<line number>: PASSED:
1384 REQUIRE( x < z )
1385 with expansion:
1386 2 < 8
1387
1388 -------------------------------------------------------------------------------
1389 3x3x3 ints
1390 -------------------------------------------------------------------------------
1391 Generators.tests.cpp:<line number>
1392 ...............................................................................
1393
1394 Generators.tests.cpp:<line number>: PASSED:
1395 CHECK( x < y )
1396 with expansion:
1397 2 < 5
1398
1399 Generators.tests.cpp:<line number>: PASSED:
1400 CHECK( y < z )
1401 with expansion:
1402 5 < 9
1403
1404 Generators.tests.cpp:<line number>: PASSED:
1405 REQUIRE( x < z )
1406 with expansion:
1407 2 < 9
1408
1409 -------------------------------------------------------------------------------
1410 3x3x3 ints
1411 -------------------------------------------------------------------------------
1412 Generators.tests.cpp:<line number>
1413 ...............................................................................
1414
1415 Generators.tests.cpp:<line number>: PASSED:
1416 CHECK( x < y )
1417 with expansion:
1418 2 < 6
1419
1420 Generators.tests.cpp:<line number>: PASSED:
1421 CHECK( y < z )
1422 with expansion:
1423 6 < 7
1424
1425 Generators.tests.cpp:<line number>: PASSED:
1426 REQUIRE( x < z )
1427 with expansion:
1428 2 < 7
1429
1430 -------------------------------------------------------------------------------
1431 3x3x3 ints
1432 -------------------------------------------------------------------------------
1433 Generators.tests.cpp:<line number>
1434 ...............................................................................
1435
1436 Generators.tests.cpp:<line number>: PASSED:
1437 CHECK( x < y )
1438 with expansion:
1439 2 < 6
1440
1441 Generators.tests.cpp:<line number>: PASSED:
1442 CHECK( y < z )
1443 with expansion:
1444 6 < 8
1445
1446 Generators.tests.cpp:<line number>: PASSED:
1447 REQUIRE( x < z )
1448 with expansion:
1449 2 < 8
1450
1451 -------------------------------------------------------------------------------
1452 3x3x3 ints
1453 -------------------------------------------------------------------------------
1454 Generators.tests.cpp:<line number>
1455 ...............................................................................
1456
1457 Generators.tests.cpp:<line number>: PASSED:
1458 CHECK( x < y )
1459 with expansion:
1460 2 < 6
1461
1462 Generators.tests.cpp:<line number>: PASSED:
1463 CHECK( y < z )
1464 with expansion:
1465 6 < 9
1466
1467 Generators.tests.cpp:<line number>: PASSED:
1468 REQUIRE( x < z )
1469 with expansion:
1470 2 < 9
1471
1472 -------------------------------------------------------------------------------
1473 3x3x3 ints
1474 -------------------------------------------------------------------------------
1475 Generators.tests.cpp:<line number>
1476 ...............................................................................
1477
1478 Generators.tests.cpp:<line number>: PASSED:
1479 CHECK( x < y )
1480 with expansion:
1481 3 < 4
1482
1483 Generators.tests.cpp:<line number>: PASSED:
1484 CHECK( y < z )
1485 with expansion:
1486 4 < 7
1487
1488 Generators.tests.cpp:<line number>: PASSED:
1489 REQUIRE( x < z )
1490 with expansion:
1491 3 < 7
1492
1493 -------------------------------------------------------------------------------
1494 3x3x3 ints
1495 -------------------------------------------------------------------------------
1496 Generators.tests.cpp:<line number>
1497 ...............................................................................
1498
1499 Generators.tests.cpp:<line number>: PASSED:
1500 CHECK( x < y )
1501 with expansion:
1502 3 < 4
1503
1504 Generators.tests.cpp:<line number>: PASSED:
1505 CHECK( y < z )
1506 with expansion:
1507 4 < 8
1508
1509 Generators.tests.cpp:<line number>: PASSED:
1510 REQUIRE( x < z )
1511 with expansion:
1512 3 < 8
1513
1514 -------------------------------------------------------------------------------
1515 3x3x3 ints
1516 -------------------------------------------------------------------------------
1517 Generators.tests.cpp:<line number>
1518 ...............................................................................
1519
1520 Generators.tests.cpp:<line number>: PASSED:
1521 CHECK( x < y )
1522 with expansion:
1523 3 < 4
1524
1525 Generators.tests.cpp:<line number>: PASSED:
1526 CHECK( y < z )
1527 with expansion:
1528 4 < 9
1529
1530 Generators.tests.cpp:<line number>: PASSED:
1531 REQUIRE( x < z )
1532 with expansion:
1533 3 < 9
1534
1535 -------------------------------------------------------------------------------
1536 3x3x3 ints
1537 -------------------------------------------------------------------------------
1538 Generators.tests.cpp:<line number>
1539 ...............................................................................
1540
1541 Generators.tests.cpp:<line number>: PASSED:
1542 CHECK( x < y )
1543 with expansion:
1544 3 < 5
1545
1546 Generators.tests.cpp:<line number>: PASSED:
1547 CHECK( y < z )
1548 with expansion:
1549 5 < 7
1550
1551 Generators.tests.cpp:<line number>: PASSED:
1552 REQUIRE( x < z )
1553 with expansion:
1554 3 < 7
1555
1556 -------------------------------------------------------------------------------
1557 3x3x3 ints
1558 -------------------------------------------------------------------------------
1559 Generators.tests.cpp:<line number>
1560 ...............................................................................
1561
1562 Generators.tests.cpp:<line number>: PASSED:
1563 CHECK( x < y )
1564 with expansion:
1565 3 < 5
1566
1567 Generators.tests.cpp:<line number>: PASSED:
1568 CHECK( y < z )
1569 with expansion:
1570 5 < 8
1571
1572 Generators.tests.cpp:<line number>: PASSED:
1573 REQUIRE( x < z )
1574 with expansion:
1575 3 < 8
1576
1577 -------------------------------------------------------------------------------
1578 3x3x3 ints
1579 -------------------------------------------------------------------------------
1580 Generators.tests.cpp:<line number>
1581 ...............................................................................
1582
1583 Generators.tests.cpp:<line number>: PASSED:
1584 CHECK( x < y )
1585 with expansion:
1586 3 < 5
1587
1588 Generators.tests.cpp:<line number>: PASSED:
1589 CHECK( y < z )
1590 with expansion:
1591 5 < 9
1592
1593 Generators.tests.cpp:<line number>: PASSED:
1594 REQUIRE( x < z )
1595 with expansion:
1596 3 < 9
1597
1598 -------------------------------------------------------------------------------
1599 3x3x3 ints
1600 -------------------------------------------------------------------------------
1601 Generators.tests.cpp:<line number>
1602 ...............................................................................
1603
1604 Generators.tests.cpp:<line number>: PASSED:
1605 CHECK( x < y )
1606 with expansion:
1607 3 < 6
1608
1609 Generators.tests.cpp:<line number>: PASSED:
1610 CHECK( y < z )
1611 with expansion:
1612 6 < 7
1613
1614 Generators.tests.cpp:<line number>: PASSED:
1615 REQUIRE( x < z )
1616 with expansion:
1617 3 < 7
1618
1619 -------------------------------------------------------------------------------
1620 3x3x3 ints
1621 -------------------------------------------------------------------------------
1622 Generators.tests.cpp:<line number>
1623 ...............................................................................
1624
1625 Generators.tests.cpp:<line number>: PASSED:
1626 CHECK( x < y )
1627 with expansion:
1628 3 < 6
1629
1630 Generators.tests.cpp:<line number>: PASSED:
1631 CHECK( y < z )
1632 with expansion:
1633 6 < 8
1634
1635 Generators.tests.cpp:<line number>: PASSED:
1636 REQUIRE( x < z )
1637 with expansion:
1638 3 < 8
1639
1640 -------------------------------------------------------------------------------
1641 3x3x3 ints
1642 -------------------------------------------------------------------------------
1643 Generators.tests.cpp:<line number>
1644 ...............................................................................
1645
1646 Generators.tests.cpp:<line number>: PASSED:
1647 CHECK( x < y )
1648 with expansion:
1649 3 < 6
1650
1651 Generators.tests.cpp:<line number>: PASSED:
1652 CHECK( y < z )
1653 with expansion:
1654 6 < 9
1655
1656 Generators.tests.cpp:<line number>: PASSED:
1657 REQUIRE( x < z )
1658 with expansion:
1659 3 < 9
1660
1661 -------------------------------------------------------------------------------
1662 A METHOD_AS_TEST_CASE based test run that fails
1663 -------------------------------------------------------------------------------
1664 Class.tests.cpp:<line number>
1665 ...............................................................................
1666
1667 Class.tests.cpp:<line number>: FAILED:
1668 REQUIRE( s == "world" )
1669 with expansion:
1670 "hello" == "world"
1671
1672 -------------------------------------------------------------------------------
1673 A METHOD_AS_TEST_CASE based test run that succeeds
1674 -------------------------------------------------------------------------------
1675 Class.tests.cpp:<line number>
1676 ...............................................................................
1677
1678 Class.tests.cpp:<line number>: PASSED:
1679 REQUIRE( s == "hello" )
1680 with expansion:
1681 "hello" == "hello"
1682
1683 -------------------------------------------------------------------------------
1684 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
1685 <float>
1686 -------------------------------------------------------------------------------
1687 Class.tests.cpp:<line number>
1688 ...............................................................................
1689
1690 Class.tests.cpp:<line number>: FAILED:
1691 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1692 with expansion:
1693 0 == 1
1694
1695 -------------------------------------------------------------------------------
1696 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
1697 <int>
1698 -------------------------------------------------------------------------------
1699 Class.tests.cpp:<line number>
1700 ...............................................................................
1701
1702 Class.tests.cpp:<line number>: FAILED:
1703 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1704 with expansion:
1705 0 == 1
1706
1707 -------------------------------------------------------------------------------
1708 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
1709 <float>
1710 -------------------------------------------------------------------------------
1711 Class.tests.cpp:<line number>
1712 ...............................................................................
1713
1714 Class.tests.cpp:<line number>: FAILED:
1715 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1716 with expansion:
1717 0 == 1
1718
1719 -------------------------------------------------------------------------------
1720 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
1721 <int>
1722 -------------------------------------------------------------------------------
1723 Class.tests.cpp:<line number>
1724 ...............................................................................
1725
1726 Class.tests.cpp:<line number>: FAILED:
1727 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1728 with expansion:
1729 0 == 1
1730
1731 -------------------------------------------------------------------------------
1732 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
1733 <float>
1734 -------------------------------------------------------------------------------
1735 Class.tests.cpp:<line number>
1736 ...............................................................................
1737
1738 Class.tests.cpp:<line number>: PASSED:
1739 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1740 with expansion:
1741 0 == 0
1742
1743 -------------------------------------------------------------------------------
1744 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
1745 <int>
1746 -------------------------------------------------------------------------------
1747 Class.tests.cpp:<line number>
1748 ...............................................................................
1749
1750 Class.tests.cpp:<line number>: PASSED:
1751 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1752 with expansion:
1753 0 == 0
1754
1755 -------------------------------------------------------------------------------
1756 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
1757 <float>
1758 -------------------------------------------------------------------------------
1759 Class.tests.cpp:<line number>
1760 ...............................................................................
1761
1762 Class.tests.cpp:<line number>: PASSED:
1763 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1764 with expansion:
1765 0 == 0
1766
1767 -------------------------------------------------------------------------------
1768 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
1769 <int>
1770 -------------------------------------------------------------------------------
1771 Class.tests.cpp:<line number>
1772 ...............................................................................
1773
1774 Class.tests.cpp:<line number>: PASSED:
1775 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1776 with expansion:
1777 0 == 0
1778
1779 -------------------------------------------------------------------------------
1780 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
1781 Template_Foo_2<float, 6>
1782 -------------------------------------------------------------------------------
1783 Class.tests.cpp:<line number>
1784 ...............................................................................
1785
1786 Class.tests.cpp:<line number>: FAILED:
1787 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1788 with expansion:
1789 6 < 2
1790
1791 -------------------------------------------------------------------------------
1792 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
1793 Template_Foo_2<int, 2>
1794 -------------------------------------------------------------------------------
1795 Class.tests.cpp:<line number>
1796 ...............................................................................
1797
1798 Class.tests.cpp:<line number>: FAILED:
1799 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1800 with expansion:
1801 2 < 2
1802
1803 -------------------------------------------------------------------------------
1804 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
1805 <float, 6>
1806 -------------------------------------------------------------------------------
1807 Class.tests.cpp:<line number>
1808 ...............................................................................
1809
1810 Class.tests.cpp:<line number>: FAILED:
1811 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1812 with expansion:
1813 6 < 2
1814
1815 -------------------------------------------------------------------------------
1816 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
1817 <int, 2>
1818 -------------------------------------------------------------------------------
1819 Class.tests.cpp:<line number>
1820 ...............................................................................
1821
1822 Class.tests.cpp:<line number>: FAILED:
1823 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1824 with expansion:
1825 2 < 2
1826
1827 -------------------------------------------------------------------------------
1828 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
1829 Template_Foo_2<float,6>
1830 -------------------------------------------------------------------------------
1831 Class.tests.cpp:<line number>
1832 ...............................................................................
1833
1834 Class.tests.cpp:<line number>: PASSED:
1835 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1836 with expansion:
1837 6 >= 2
1838
1839 -------------------------------------------------------------------------------
1840 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
1841 Template_Foo_2<int,2>
1842 -------------------------------------------------------------------------------
1843 Class.tests.cpp:<line number>
1844 ...............................................................................
1845
1846 Class.tests.cpp:<line number>: PASSED:
1847 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1848 with expansion:
1849 2 >= 2
1850
1851 -------------------------------------------------------------------------------
1852 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
1853 array<float,6>
1854 -------------------------------------------------------------------------------
1855 Class.tests.cpp:<line number>
1856 ...............................................................................
1857
1858 Class.tests.cpp:<line number>: PASSED:
1859 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1860 with expansion:
1861 6 >= 2
1862
1863 -------------------------------------------------------------------------------
1864 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
1865 array<int,2>
1866 -------------------------------------------------------------------------------
1867 Class.tests.cpp:<line number>
1868 ...............................................................................
1869
1870 Class.tests.cpp:<line number>: PASSED:
1871 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1872 with expansion:
1873 2 >= 2
1874
1875 -------------------------------------------------------------------------------
1876 A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
1877 -------------------------------------------------------------------------------
1878 Class.tests.cpp:<line number>
1879 ...............................................................................
1880
1881 Class.tests.cpp:<line number>: FAILED:
1882 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1883 with expansion:
1884 1.0 == 2
1885
1886 -------------------------------------------------------------------------------
1887 A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
1888 -------------------------------------------------------------------------------
1889 Class.tests.cpp:<line number>
1890 ...............................................................................
1891
1892 Class.tests.cpp:<line number>: FAILED:
1893 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1894 with expansion:
1895 1.0f == 2
1896
1897 -------------------------------------------------------------------------------
1898 A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
1899 -------------------------------------------------------------------------------
1900 Class.tests.cpp:<line number>
1901 ...............................................................................
1902
1903 Class.tests.cpp:<line number>: FAILED:
1904 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1905 with expansion:
1906 1 == 2
1907
1908 -------------------------------------------------------------------------------
1909 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double
1910 -------------------------------------------------------------------------------
1911 Class.tests.cpp:<line number>
1912 ...............................................................................
1913
1914 Class.tests.cpp:<line number>: PASSED:
1915 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1916 with expansion:
1917 1.0 == 1
1918
1919 -------------------------------------------------------------------------------
1920 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float
1921 -------------------------------------------------------------------------------
1922 Class.tests.cpp:<line number>
1923 ...............................................................................
1924
1925 Class.tests.cpp:<line number>: PASSED:
1926 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1927 with expansion:
1928 1.0f == 1
1929
1930 -------------------------------------------------------------------------------
1931 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int
1932 -------------------------------------------------------------------------------
1933 Class.tests.cpp:<line number>
1934 ...............................................................................
1935
1936 Class.tests.cpp:<line number>: PASSED:
1937 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1938 with expansion:
1939 1 == 1
1940
1941 -------------------------------------------------------------------------------
1942 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
1943 -------------------------------------------------------------------------------
1944 Class.tests.cpp:<line number>
1945 ...............................................................................
1946
1947 Class.tests.cpp:<line number>: FAILED:
1948 REQUIRE( Nttp_Fixture<V>::value == 0 )
1949 with expansion:
1950 1 == 0
1951
1952 -------------------------------------------------------------------------------
1953 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
1954 -------------------------------------------------------------------------------
1955 Class.tests.cpp:<line number>
1956 ...............................................................................
1957
1958 Class.tests.cpp:<line number>: FAILED:
1959 REQUIRE( Nttp_Fixture<V>::value == 0 )
1960 with expansion:
1961 3 == 0
1962
1963 -------------------------------------------------------------------------------
1964 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
1965 -------------------------------------------------------------------------------
1966 Class.tests.cpp:<line number>
1967 ...............................................................................
1968
1969 Class.tests.cpp:<line number>: FAILED:
1970 REQUIRE( Nttp_Fixture<V>::value == 0 )
1971 with expansion:
1972 6 == 0
1973
1974 -------------------------------------------------------------------------------
1975 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1
1976 -------------------------------------------------------------------------------
1977 Class.tests.cpp:<line number>
1978 ...............................................................................
1979
1980 Class.tests.cpp:<line number>: PASSED:
1981 REQUIRE( Nttp_Fixture<V>::value > 0 )
1982 with expansion:
1983 1 > 0
1984
1985 -------------------------------------------------------------------------------
1986 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3
1987 -------------------------------------------------------------------------------
1988 Class.tests.cpp:<line number>
1989 ...............................................................................
1990
1991 Class.tests.cpp:<line number>: PASSED:
1992 REQUIRE( Nttp_Fixture<V>::value > 0 )
1993 with expansion:
1994 3 > 0
1995
1996 -------------------------------------------------------------------------------
1997 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6
1998 -------------------------------------------------------------------------------
1999 Class.tests.cpp:<line number>
2000 ...............................................................................
2001
2002 Class.tests.cpp:<line number>: PASSED:
2003 REQUIRE( Nttp_Fixture<V>::value > 0 )
2004 with expansion:
2005 6 > 0
2006
2007 -------------------------------------------------------------------------------
2008 A TEST_CASE_METHOD based test run that fails
2009 -------------------------------------------------------------------------------
2010 Class.tests.cpp:<line number>
2011 ...............................................................................
2012
2013 Class.tests.cpp:<line number>: FAILED:
2014 REQUIRE( m_a == 2 )
2015 with expansion:
2016 1 == 2
2017
2018 -------------------------------------------------------------------------------
2019 A TEST_CASE_METHOD based test run that succeeds
2020 -------------------------------------------------------------------------------
2021 Class.tests.cpp:<line number>
2022 ...............................................................................
2023
2024 Class.tests.cpp:<line number>: PASSED:
2025 REQUIRE( m_a == 1 )
2026 with expansion:
2027 1 == 1
2028
2029 -------------------------------------------------------------------------------
2030 A Template product test case - Foo<float>
2031 -------------------------------------------------------------------------------
2032 Misc.tests.cpp:<line number>
2033 ...............................................................................
2034
2035 Misc.tests.cpp:<line number>: PASSED:
2036 REQUIRE( x.size() == 0 )
2037 with expansion:
2038 0 == 0
2039
2040 -------------------------------------------------------------------------------
2041 A Template product test case - Foo<int>
2042 -------------------------------------------------------------------------------
2043 Misc.tests.cpp:<line number>
2044 ...............................................................................
2045
2046 Misc.tests.cpp:<line number>: PASSED:
2047 REQUIRE( x.size() == 0 )
2048 with expansion:
2049 0 == 0
2050
2051 -------------------------------------------------------------------------------
2052 A Template product test case - std::vector<float>
2053 -------------------------------------------------------------------------------
2054 Misc.tests.cpp:<line number>
2055 ...............................................................................
2056
2057 Misc.tests.cpp:<line number>: PASSED:
2058 REQUIRE( x.size() == 0 )
2059 with expansion:
2060 0 == 0
2061
2062 -------------------------------------------------------------------------------
2063 A Template product test case - std::vector<int>
2064 -------------------------------------------------------------------------------
2065 Misc.tests.cpp:<line number>
2066 ...............................................................................
2067
2068 Misc.tests.cpp:<line number>: PASSED:
2069 REQUIRE( x.size() == 0 )
2070 with expansion:
2071 0 == 0
2072
2073 -------------------------------------------------------------------------------
2074 A Template product test case with array signature - Bar<float, 42>
2075 -------------------------------------------------------------------------------
2076 Misc.tests.cpp:<line number>
2077 ...............................................................................
2078
2079 Misc.tests.cpp:<line number>: PASSED:
2080 REQUIRE( x.size() > 0 )
2081 with expansion:
2082 42 > 0
2083
2084 -------------------------------------------------------------------------------
2085 A Template product test case with array signature - Bar<int, 9>
2086 -------------------------------------------------------------------------------
2087 Misc.tests.cpp:<line number>
2088 ...............................................................................
2089
2090 Misc.tests.cpp:<line number>: PASSED:
2091 REQUIRE( x.size() > 0 )
2092 with expansion:
2093 9 > 0
2094
2095 -------------------------------------------------------------------------------
2096 A Template product test case with array signature - std::array<float, 42>
2097 -------------------------------------------------------------------------------
2098 Misc.tests.cpp:<line number>
2099 ...............................................................................
2100
2101 Misc.tests.cpp:<line number>: PASSED:
2102 REQUIRE( x.size() > 0 )
2103 with expansion:
2104 42 > 0
2105
2106 -------------------------------------------------------------------------------
2107 A Template product test case with array signature - std::array<int, 9>
2108 -------------------------------------------------------------------------------
2109 Misc.tests.cpp:<line number>
2110 ...............................................................................
2111
2112 Misc.tests.cpp:<line number>: PASSED:
2113 REQUIRE( x.size() > 0 )
2114 with expansion:
2115 9 > 0
2116
2117 -------------------------------------------------------------------------------
2118 A comparison that uses literals instead of the normal constructor
2119 -------------------------------------------------------------------------------
2120 Approx.tests.cpp:<line number>
2121 ...............................................................................
2122
2123 Approx.tests.cpp:<line number>: PASSED:
2124 REQUIRE( d == 1.23_a )
2125 with expansion:
2126 1.23 == Approx( 1.23 )
2127
2128 Approx.tests.cpp:<line number>: PASSED:
2129 REQUIRE( d != 1.22_a )
2130 with expansion:
2131 1.23 != Approx( 1.22 )
2132
2133 Approx.tests.cpp:<line number>: PASSED:
2134 REQUIRE( -d == -1.23_a )
2135 with expansion:
2136 -1.23 == Approx( -1.23 )
2137
2138 Approx.tests.cpp:<line number>: PASSED:
2139 REQUIRE( d == 1.2_a .epsilon(.1) )
2140 with expansion:
2141 1.23 == Approx( 1.2 )
2142
2143 Approx.tests.cpp:<line number>: PASSED:
2144 REQUIRE( d != 1.2_a .epsilon(.001) )
2145 with expansion:
2146 1.23 != Approx( 1.2 )
2147
2148 Approx.tests.cpp:<line number>: PASSED:
2149 REQUIRE( d == 1_a .epsilon(.3) )
2150 with expansion:
2151 1.23 == Approx( 1.0 )
2152
2153 -------------------------------------------------------------------------------
2154 A couple of nested sections followed by a failure
2155 Outer
2156 Inner
2157 -------------------------------------------------------------------------------
2158 Misc.tests.cpp:<line number>
2159 ...............................................................................
2160
2161 Misc.tests.cpp:<line number>: PASSED:
2162 with message:
2163 that's not flying - that's failing in style
2164
2165 -------------------------------------------------------------------------------
2166 A couple of nested sections followed by a failure
2167 -------------------------------------------------------------------------------
2168 Misc.tests.cpp:<line number>
2169 ...............................................................................
2170
2171 Misc.tests.cpp:<line number>: FAILED:
2172 explicitly with message:
2173 to infinity and beyond
2174
2175 -------------------------------------------------------------------------------
2176 A failing expression with a non streamable type is still captured
2177 -------------------------------------------------------------------------------
2178 Tricky.tests.cpp:<line number>
2179 ...............................................................................
2180
2181 Tricky.tests.cpp:<line number>: FAILED:
2182 CHECK( &o1 == &o2 )
2183 with expansion:
2184 0x<hex digits> == 0x<hex digits>
2185
2186 Tricky.tests.cpp:<line number>: FAILED:
2187 CHECK( o1 == o2 )
2188 with expansion:
2189 {?} == {?}
2190
2191 -------------------------------------------------------------------------------
2192 Absolute margin
2193 -------------------------------------------------------------------------------
2194 Approx.tests.cpp:<line number>
2195 ...............................................................................
2196
2197 Approx.tests.cpp:<line number>: PASSED:
2198 REQUIRE( 104.0 != Approx(100.0) )
2199 with expansion:
2200 104.0 != Approx( 100.0 )
2201
2202 Approx.tests.cpp:<line number>: PASSED:
2203 REQUIRE( 104.0 == Approx(100.0).margin(5) )
2204 with expansion:
2205 104.0 == Approx( 100.0 )
2206
2207 Approx.tests.cpp:<line number>: PASSED:
2208 REQUIRE( 104.0 == Approx(100.0).margin(4) )
2209 with expansion:
2210 104.0 == Approx( 100.0 )
2211
2212 Approx.tests.cpp:<line number>: PASSED:
2213 REQUIRE( 104.0 != Approx(100.0).margin(3) )
2214 with expansion:
2215 104.0 != Approx( 100.0 )
2216
2217 Approx.tests.cpp:<line number>: PASSED:
2218 REQUIRE( 100.3 != Approx(100.0) )
2219 with expansion:
2220 100.3 != Approx( 100.0 )
2221
2222 Approx.tests.cpp:<line number>: PASSED:
2223 REQUIRE( 100.3 == Approx(100.0).margin(0.5) )
2224 with expansion:
2225 100.3 == Approx( 100.0 )
2226
2227 -------------------------------------------------------------------------------
2228 An empty test with no assertions
2229 -------------------------------------------------------------------------------
2230 Misc.tests.cpp:<line number>
2231 ...............................................................................
2232
2233
2234 No assertions in test case 'An empty test with no assertions'
2235
2236 -------------------------------------------------------------------------------
2237 An expression with side-effects should only be evaluated once
2238 -------------------------------------------------------------------------------
2239 Tricky.tests.cpp:<line number>
2240 ...............................................................................
2241
2242 Tricky.tests.cpp:<line number>: PASSED:
2243 REQUIRE( i++ == 7 )
2244 with expansion:
2245 7 == 7
2246
2247 Tricky.tests.cpp:<line number>: PASSED:
2248 REQUIRE( i++ == 8 )
2249 with expansion:
2250 8 == 8
2251
2252 -------------------------------------------------------------------------------
2253 An unchecked exception reports the line of the last assertion
2254 -------------------------------------------------------------------------------
2255 Exception.tests.cpp:<line number>
2256 ...............................................................................
2257
2258 Exception.tests.cpp:<line number>: PASSED:
2259 CHECK( 1 == 1 )
2260
2261 Exception.tests.cpp:<line number>: FAILED:
2262 {Unknown expression after the reported line}
2263 due to unexpected exception with message:
2264 unexpected exception
2265
2266 -------------------------------------------------------------------------------
2267 Anonymous test case 1
2268 -------------------------------------------------------------------------------
2269 VariadicMacros.tests.cpp:<line number>
2270 ...............................................................................
2271
2272 VariadicMacros.tests.cpp:<line number>: PASSED:
2273 with message:
2274 anonymous test case
2275
2276 -------------------------------------------------------------------------------
2277 Approx setters validate their arguments
2278 -------------------------------------------------------------------------------
2279 Approx.tests.cpp:<line number>
2280 ...............................................................................
2281
2282 Approx.tests.cpp:<line number>: PASSED:
2283 REQUIRE_NOTHROW( Approx(0).margin(0) )
2284
2285 Approx.tests.cpp:<line number>: PASSED:
2286 REQUIRE_NOTHROW( Approx(0).margin(1234656) )
2287
2288 Approx.tests.cpp:<line number>: PASSED:
2289 REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error )
2290
2291 Approx.tests.cpp:<line number>: PASSED:
2292 REQUIRE_NOTHROW( Approx(0).epsilon(0) )
2293
2294 Approx.tests.cpp:<line number>: PASSED:
2295 REQUIRE_NOTHROW( Approx(0).epsilon(1) )
2296
2297 Approx.tests.cpp:<line number>: PASSED:
2298 REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error )
2299
2300 Approx.tests.cpp:<line number>: PASSED:
2301 REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error )
2302
2303 -------------------------------------------------------------------------------
2304 Approx with exactly-representable margin
2305 -------------------------------------------------------------------------------
2306 Approx.tests.cpp:<line number>
2307 ...............................................................................
2308
2309 Approx.tests.cpp:<line number>: PASSED:
2310 CHECK( 0.25f == Approx(0.0f).margin(0.25f) )
2311 with expansion:
2312 0.25f == Approx( 0.0 )
2313
2314 Approx.tests.cpp:<line number>: PASSED:
2315 CHECK( 0.0f == Approx(0.25f).margin(0.25f) )
2316 with expansion:
2317 0.0f == Approx( 0.25 )
2318
2319 Approx.tests.cpp:<line number>: PASSED:
2320 CHECK( 0.5f == Approx(0.25f).margin(0.25f) )
2321 with expansion:
2322 0.5f == Approx( 0.25 )
2323
2324 Approx.tests.cpp:<line number>: PASSED:
2325 CHECK( 245.0f == Approx(245.25f).margin(0.25f) )
2326 with expansion:
2327 245.0f == Approx( 245.25 )
2328
2329 Approx.tests.cpp:<line number>: PASSED:
2330 CHECK( 245.5f == Approx(245.25f).margin(0.25f) )
2331 with expansion:
2332 245.5f == Approx( 245.25 )
2333
2334 -------------------------------------------------------------------------------
2335 Approximate PI
2336 -------------------------------------------------------------------------------
2337 Approx.tests.cpp:<line number>
2338 ...............................................................................
2339
2340 Approx.tests.cpp:<line number>: PASSED:
2341 REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) )
2342 with expansion:
2343 3.1428571429 == Approx( 3.141 )
2344
2345 Approx.tests.cpp:<line number>: PASSED:
2346 REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) )
2347 with expansion:
2348 3.1428571429 != Approx( 3.141 )
2349
2350 -------------------------------------------------------------------------------
2351 Approximate comparisons with different epsilons
2352 -------------------------------------------------------------------------------
2353 Approx.tests.cpp:<line number>
2354 ...............................................................................
2355
2356 Approx.tests.cpp:<line number>: PASSED:
2357 REQUIRE( d != Approx( 1.231 ) )
2358 with expansion:
2359 1.23 != Approx( 1.231 )
2360
2361 Approx.tests.cpp:<line number>: PASSED:
2362 REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) )
2363 with expansion:
2364 1.23 == Approx( 1.231 )
2365
2366 -------------------------------------------------------------------------------
2367 Approximate comparisons with floats
2368 -------------------------------------------------------------------------------
2369 Approx.tests.cpp:<line number>
2370 ...............................................................................
2371
2372 Approx.tests.cpp:<line number>: PASSED:
2373 REQUIRE( 1.23f == Approx( 1.23f ) )
2374 with expansion:
2375 1.23f == Approx( 1.2300000191 )
2376
2377 Approx.tests.cpp:<line number>: PASSED:
2378 REQUIRE( 0.0f == Approx( 0.0f ) )
2379 with expansion:
2380 0.0f == Approx( 0.0 )
2381
2382 -------------------------------------------------------------------------------
2383 Approximate comparisons with ints
2384 -------------------------------------------------------------------------------
2385 Approx.tests.cpp:<line number>
2386 ...............................................................................
2387
2388 Approx.tests.cpp:<line number>: PASSED:
2389 REQUIRE( 1 == Approx( 1 ) )
2390 with expansion:
2391 1 == Approx( 1.0 )
2392
2393 Approx.tests.cpp:<line number>: PASSED:
2394 REQUIRE( 0 == Approx( 0 ) )
2395 with expansion:
2396 0 == Approx( 0.0 )
2397
2398 -------------------------------------------------------------------------------
2399 Approximate comparisons with mixed numeric types
2400 -------------------------------------------------------------------------------
2401 Approx.tests.cpp:<line number>
2402 ...............................................................................
2403
2404 Approx.tests.cpp:<line number>: PASSED:
2405 REQUIRE( 1.0f == Approx( 1 ) )
2406 with expansion:
2407 1.0f == Approx( 1.0 )
2408
2409 Approx.tests.cpp:<line number>: PASSED:
2410 REQUIRE( 0 == Approx( dZero) )
2411 with expansion:
2412 0 == Approx( 0.0 )
2413
2414 Approx.tests.cpp:<line number>: PASSED:
2415 REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) )
2416 with expansion:
2417 0 == Approx( 0.00001 )
2418
2419 Approx.tests.cpp:<line number>: PASSED:
2420 REQUIRE( 1.234f == Approx( dMedium ) )
2421 with expansion:
2422 1.234f == Approx( 1.234 )
2423
2424 Approx.tests.cpp:<line number>: PASSED:
2425 REQUIRE( dMedium == Approx( 1.234f ) )
2426 with expansion:
2427 1.234 == Approx( 1.2339999676 )
2428
2429 -------------------------------------------------------------------------------
2430 Arbitrary predicate matcher
2431 Function pointer
2432 -------------------------------------------------------------------------------
2433 Matchers.tests.cpp:<line number>
2434 ...............................................................................
2435
2436 Matchers.tests.cpp:<line number>: PASSED:
2437 REQUIRE_THAT( 1, Predicate<int>( alwaysTrue, "always true" ) )
2438 with expansion:
2439 1 matches predicate: "always true"
2440
2441 Matchers.tests.cpp:<line number>: PASSED:
2442 REQUIRE_THAT( 1, !Predicate<int>( alwaysFalse, "always false" ) )
2443 with expansion:
2444 1 not matches predicate: "always false"
2445
2446 -------------------------------------------------------------------------------
2447 Arbitrary predicate matcher
2448 Lambdas + different type
2449 -------------------------------------------------------------------------------
2450 Matchers.tests.cpp:<line number>
2451 ...............................................................................
2452
2453 Matchers.tests.cpp:<line number>: PASSED:
2454 REQUIRE_THAT( "Hello olleH", Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); }, "First and last character should be equal" ) )
2455 with expansion:
2456 "Hello olleH" matches predicate: "First and last character should be equal"
2457
2458 Matchers.tests.cpp:<line number>: PASSED:
2459 REQUIRE_THAT( "This wouldn't pass", !Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); } ) )
2460 with expansion:
2461 "This wouldn't pass" not matches undescribed predicate
2462
2463 -------------------------------------------------------------------------------
2464 Assertion macros support bit operators and bool conversions
2465 -------------------------------------------------------------------------------
2466 Compilation.tests.cpp:<line number>
2467 ...............................................................................
2468
2469 Compilation.tests.cpp:<line number>: PASSED:
2470 REQUIRE( lhs | rhs )
2471 with expansion:
2472 Val: 1 | Val: 2
2473
2474 Compilation.tests.cpp:<line number>: PASSED:
2475 REQUIRE_FALSE( lhs & rhs )
2476 with expansion:
2477 !(Val: 1 & Val: 2)
2478
2479 Compilation.tests.cpp:<line number>: PASSED:
2480 REQUIRE( HasBitOperators{ 1 } & HasBitOperators{ 1 } )
2481 with expansion:
2482 Val: 1 & Val: 1
2483
2484 Compilation.tests.cpp:<line number>: PASSED:
2485 REQUIRE( lhs ^ rhs )
2486 with expansion:
2487 Val: 1 ^ Val: 2
2488
2489 Compilation.tests.cpp:<line number>: PASSED:
2490 REQUIRE_FALSE( lhs ^ lhs )
2491 with expansion:
2492 !(Val: 1 ^ Val: 1)
2493
2494 -------------------------------------------------------------------------------
2495 Assertions then sections
2496 -------------------------------------------------------------------------------
2497 Tricky.tests.cpp:<line number>
2498 ...............................................................................
2499
2500 Tricky.tests.cpp:<line number>: PASSED:
2501 REQUIRE( true )
2502
2503 -------------------------------------------------------------------------------
2504 Assertions then sections
2505 A section
2506 -------------------------------------------------------------------------------
2507 Tricky.tests.cpp:<line number>
2508 ...............................................................................
2509
2510 Tricky.tests.cpp:<line number>: PASSED:
2511 REQUIRE( true )
2512
2513 -------------------------------------------------------------------------------
2514 Assertions then sections
2515 A section
2516 Another section
2517 -------------------------------------------------------------------------------
2518 Tricky.tests.cpp:<line number>
2519 ...............................................................................
2520
2521 Tricky.tests.cpp:<line number>: PASSED:
2522 REQUIRE( true )
2523
2524 -------------------------------------------------------------------------------
2525 Assertions then sections
2526 -------------------------------------------------------------------------------
2527 Tricky.tests.cpp:<line number>
2528 ...............................................................................
2529
2530 Tricky.tests.cpp:<line number>: PASSED:
2531 REQUIRE( true )
2532
2533 -------------------------------------------------------------------------------
2534 Assertions then sections
2535 A section
2536 -------------------------------------------------------------------------------
2537 Tricky.tests.cpp:<line number>
2538 ...............................................................................
2539
2540 Tricky.tests.cpp:<line number>: PASSED:
2541 REQUIRE( true )
2542
2543 -------------------------------------------------------------------------------
2544 Assertions then sections
2545 A section
2546 Another other section
2547 -------------------------------------------------------------------------------
2548 Tricky.tests.cpp:<line number>
2549 ...............................................................................
2550
2551 Tricky.tests.cpp:<line number>: PASSED:
2552 REQUIRE( true )
2553
2554 -------------------------------------------------------------------------------
2555 Basic use of the Contains range matcher
2556 Different argument ranges, same element type, default comparison
2557 -------------------------------------------------------------------------------
2558 MatchersRanges.tests.cpp:<line number>
2559 ...............................................................................
2560
2561 MatchersRanges.tests.cpp:<line number>: PASSED:
2562 REQUIRE_THAT( a, Contains(1) )
2563 with expansion:
2564 { 1, 2, 3 } contains element 1
2565
2566 MatchersRanges.tests.cpp:<line number>: PASSED:
2567 REQUIRE_THAT( b, Contains(1) )
2568 with expansion:
2569 { 0, 1, 2 } contains element 1
2570
2571 MatchersRanges.tests.cpp:<line number>: PASSED:
2572 REQUIRE_THAT( c, !Contains(1) )
2573 with expansion:
2574 { 4, 5, 6 } not contains element 1
2575
2576 -------------------------------------------------------------------------------
2577 Basic use of the Contains range matcher
2578 Different argument ranges, same element type, custom comparison
2579 -------------------------------------------------------------------------------
2580 MatchersRanges.tests.cpp:<line number>
2581 ...............................................................................
2582
2583 MatchersRanges.tests.cpp:<line number>: PASSED:
2584 REQUIRE_THAT( a, Contains(0, close_enough) )
2585 with expansion:
2586 { 1, 2, 3 } contains element 0
2587
2588 MatchersRanges.tests.cpp:<line number>: PASSED:
2589 REQUIRE_THAT( b, Contains(0, close_enough) )
2590 with expansion:
2591 { 0, 1, 2 } contains element 0
2592
2593 MatchersRanges.tests.cpp:<line number>: PASSED:
2594 REQUIRE_THAT( c, !Contains(0, close_enough) )
2595 with expansion:
2596 { 4, 5, 6 } not contains element 0
2597
2598 -------------------------------------------------------------------------------
2599 Basic use of the Contains range matcher
2600 Different element type, custom comparisons
2601 -------------------------------------------------------------------------------
2602 MatchersRanges.tests.cpp:<line number>
2603 ...............................................................................
2604
2605 MatchersRanges.tests.cpp:<line number>: PASSED:
2606 REQUIRE_THAT( a, Contains(4, [](auto&& lhs, size_t sz) { return lhs.size() == sz; }) )
2607 with expansion:
2608 { "abc", "abcd", "abcde" } contains element 4
2609
2610 -------------------------------------------------------------------------------
2611 Basic use of the Contains range matcher
2612 Can handle type that requires ADL-found free function begin and end
2613 -------------------------------------------------------------------------------
2614 MatchersRanges.tests.cpp:<line number>
2615 ...............................................................................
2616
2617 MatchersRanges.tests.cpp:<line number>: PASSED:
2618 REQUIRE_THAT( in, Contains(1) )
2619 with expansion:
2620 { 1, 2, 3, 4, 5 } contains element 1
2621
2622 MatchersRanges.tests.cpp:<line number>: PASSED:
2623 REQUIRE_THAT( in, !Contains(8) )
2624 with expansion:
2625 { 1, 2, 3, 4, 5 } not contains element 8
2626
2627 -------------------------------------------------------------------------------
2628 Basic use of the Contains range matcher
2629 Initialization with move only types
2630 -------------------------------------------------------------------------------
2631 MatchersRanges.tests.cpp:<line number>
2632 ...............................................................................
2633
2634 MatchersRanges.tests.cpp:<line number>: PASSED:
2635 REQUIRE_THAT( in, Contains(MoveOnlyTestElement{ 2 }) )
2636 with expansion:
2637 { 1, 2, 3 } contains element 2
2638
2639 MatchersRanges.tests.cpp:<line number>: PASSED:
2640 REQUIRE_THAT( in, !Contains(MoveOnlyTestElement{ 9 }) )
2641 with expansion:
2642 { 1, 2, 3 } not contains element 9
2643
2644 -------------------------------------------------------------------------------
2645 Basic use of the Contains range matcher
2646 Matching using matcher
2647 -------------------------------------------------------------------------------
2648 MatchersRanges.tests.cpp:<line number>
2649 ...............................................................................
2650
2651 MatchersRanges.tests.cpp:<line number>: PASSED:
2652 REQUIRE_THAT( in, Contains(Catch::Matchers::WithinAbs(0.5, 0.5)) )
2653 with expansion:
2654 { 1.0, 2.0, 3.0, 0.0 } contains element matching is within 0.5 of 0.5
2655
2656 -------------------------------------------------------------------------------
2657 Basic use of the Empty range matcher
2658 Simple, std-provided containers
2659 -------------------------------------------------------------------------------
2660 MatchersRanges.tests.cpp:<line number>
2661 ...............................................................................
2662
2663 MatchersRanges.tests.cpp:<line number>: PASSED:
2664 REQUIRE_THAT( empty_array, IsEmpty() )
2665 with expansion:
2666 { } is empty
2667
2668 MatchersRanges.tests.cpp:<line number>: PASSED:
2669 REQUIRE_THAT( non_empty_array, !IsEmpty() )
2670 with expansion:
2671 { 0.0 } not is empty
2672
2673 MatchersRanges.tests.cpp:<line number>: PASSED:
2674 REQUIRE_THAT( empty_vec, IsEmpty() )
2675 with expansion:
2676 { } is empty
2677
2678 MatchersRanges.tests.cpp:<line number>: PASSED:
2679 REQUIRE_THAT( non_empty_vec, !IsEmpty() )
2680 with expansion:
2681 { 'a', 'b', 'c' } not is empty
2682
2683 MatchersRanges.tests.cpp:<line number>: PASSED:
2684 REQUIRE_THAT( inner_lists_are_empty, !IsEmpty() )
2685 with expansion:
2686 { { } } not is empty
2687
2688 MatchersRanges.tests.cpp:<line number>: PASSED:
2689 REQUIRE_THAT( inner_lists_are_empty.front(), IsEmpty() )
2690 with expansion:
2691 { } is empty
2692
2693 -------------------------------------------------------------------------------
2694 Basic use of the Empty range matcher
2695 Type with empty
2696 -------------------------------------------------------------------------------
2697 MatchersRanges.tests.cpp:<line number>
2698 ...............................................................................
2699
2700 MatchersRanges.tests.cpp:<line number>: PASSED:
2701 REQUIRE_THAT( has_empty{}, !IsEmpty() )
2702 with expansion:
2703 {?} not is empty
2704
2705 -------------------------------------------------------------------------------
2706 Basic use of the Empty range matcher
2707 Type requires ADL found empty free function
2708 -------------------------------------------------------------------------------
2709 MatchersRanges.tests.cpp:<line number>
2710 ...............................................................................
2711
2712 MatchersRanges.tests.cpp:<line number>: PASSED:
2713 REQUIRE_THAT( unrelated::ADL_empty{}, IsEmpty() )
2714 with expansion:
2715 {?} is empty
2716
2717 -------------------------------------------------------------------------------
2718 CAPTURE can deal with complex expressions
2719 -------------------------------------------------------------------------------
2720 Message.tests.cpp:<line number>
2721 ...............................................................................
2722
2723 Message.tests.cpp:<line number>: PASSED:
2724 with messages:
2725 a := 1
2726 b := 2
2727 c := 3
2728 a + b := 3
2729 a+b := 3
2730 c > b := true
2731 a == 1 := true
2732
2733 -------------------------------------------------------------------------------
2734 CAPTURE can deal with complex expressions involving commas
2735 -------------------------------------------------------------------------------
2736 Message.tests.cpp:<line number>
2737 ...............................................................................
2738
2739 Message.tests.cpp:<line number>: PASSED:
2740 with messages:
2741 std::vector<int>{1, 2, 3}[0, 1, 2] := 3
2742 std::vector<int>{1, 2, 3}[(0, 1)] := 2
2743 std::vector<int>{1, 2, 3}[0] := 1
2744 (helper_1436<int, int>{12, -12}) := { 12, -12 }
2745 (helper_1436<int, int>(-12, 12)) := { -12, 12 }
2746 (1, 2) := 2
2747 (2, 3) := 3
2748
2749 -------------------------------------------------------------------------------
2750 CAPTURE parses string and character constants
2751 -------------------------------------------------------------------------------
2752 Message.tests.cpp:<line number>
2753 ...............................................................................
2754
2755 Message.tests.cpp:<line number>: PASSED:
2756 with messages:
2757 ("comma, in string", "escaped, \", ") := "escaped, ", "
2758 "single quote in string,'," := "single quote in string,',"
2759 "some escapes, \\,\\\\" := "some escapes, \,\\"
2760 "some, ), unmatched, } prenheses {[<" := "some, ), unmatched, } prenheses {[
2761 <"
2762 '"' := '"'
2763 '\'' := '''
2764 ',' := ','
2765 '}' := '}'
2766 ')' := ')'
2767 '(' := '('
2768 '{' := '{'
2769
2770 -------------------------------------------------------------------------------
2771 Capture and info messages
2772 Capture should stringify like assertions
2773 -------------------------------------------------------------------------------
2774 ToStringGeneral.tests.cpp:<line number>
2775 ...............................................................................
2776
2777 ToStringGeneral.tests.cpp:<line number>: PASSED:
2778 REQUIRE( true )
2779 with message:
2780 i := 2
2781
2782 -------------------------------------------------------------------------------
2783 Capture and info messages
2784 Info should NOT stringify the way assertions do
2785 -------------------------------------------------------------------------------
2786 ToStringGeneral.tests.cpp:<line number>
2787 ...............................................................................
2788
2789 ToStringGeneral.tests.cpp:<line number>: PASSED:
2790 REQUIRE( true )
2791 with message:
2792 3
2793
2794 -------------------------------------------------------------------------------
2795 CaseInsensitiveEqualsTo is case insensitive
2796 Degenerate cases
2797 -------------------------------------------------------------------------------
2798 Details.tests.cpp:<line number>
2799 ...............................................................................
2800
2801 Details.tests.cpp:<line number>: PASSED:
2802 REQUIRE( eq( "", "" ) )
2803 with expansion:
2804 true
2805
2806 Details.tests.cpp:<line number>: PASSED:
2807 REQUIRE_FALSE( eq( "", "a" ) )
2808 with expansion:
2809 !false
2810
2811 -------------------------------------------------------------------------------
2812 CaseInsensitiveEqualsTo is case insensitive
2813 Plain comparisons
2814 -------------------------------------------------------------------------------
2815 Details.tests.cpp:<line number>
2816 ...............................................................................
2817
2818 Details.tests.cpp:<line number>: PASSED:
2819 REQUIRE( eq( "a", "a" ) )
2820 with expansion:
2821 true
2822
2823 Details.tests.cpp:<line number>: PASSED:
2824 REQUIRE( eq( "a", "A" ) )
2825 with expansion:
2826 true
2827
2828 Details.tests.cpp:<line number>: PASSED:
2829 REQUIRE( eq( "A", "a" ) )
2830 with expansion:
2831 true
2832
2833 Details.tests.cpp:<line number>: PASSED:
2834 REQUIRE( eq( "A", "A" ) )
2835 with expansion:
2836 true
2837
2838 Details.tests.cpp:<line number>: PASSED:
2839 REQUIRE_FALSE( eq( "a", "b" ) )
2840 with expansion:
2841 !false
2842
2843 Details.tests.cpp:<line number>: PASSED:
2844 REQUIRE_FALSE( eq( "a", "B" ) )
2845 with expansion:
2846 !false
2847
2848 -------------------------------------------------------------------------------
2849 CaseInsensitiveLess is case insensitive
2850 Degenerate cases
2851 -------------------------------------------------------------------------------
2852 Details.tests.cpp:<line number>
2853 ...............................................................................
2854
2855 Details.tests.cpp:<line number>: PASSED:
2856 REQUIRE( lt( "", "a" ) )
2857 with expansion:
2858 true
2859
2860 Details.tests.cpp:<line number>: PASSED:
2861 REQUIRE_FALSE( lt( "a", "a" ) )
2862 with expansion:
2863 !false
2864
2865 Details.tests.cpp:<line number>: PASSED:
2866 REQUIRE_FALSE( lt( "", "" ) )
2867 with expansion:
2868 !false
2869
2870 -------------------------------------------------------------------------------
2871 CaseInsensitiveLess is case insensitive
2872 Plain comparisons
2873 -------------------------------------------------------------------------------
2874 Details.tests.cpp:<line number>
2875 ...............................................................................
2876
2877 Details.tests.cpp:<line number>: PASSED:
2878 REQUIRE( lt( "a", "b" ) )
2879 with expansion:
2880 true
2881
2882 Details.tests.cpp:<line number>: PASSED:
2883 REQUIRE( lt( "a", "B" ) )
2884 with expansion:
2885 true
2886
2887 Details.tests.cpp:<line number>: PASSED:
2888 REQUIRE( lt( "A", "b" ) )
2889 with expansion:
2890 true
2891
2892 Details.tests.cpp:<line number>: PASSED:
2893 REQUIRE( lt( "A", "B" ) )
2894 with expansion:
2895 true
2896
2897 -------------------------------------------------------------------------------
2898 Character pretty printing
2899 Specifically escaped
2900 -------------------------------------------------------------------------------
2901 ToStringGeneral.tests.cpp:<line number>
2902 ...............................................................................
2903
2904 ToStringGeneral.tests.cpp:<line number>: PASSED:
2905 CHECK( tab == '\t' )
2906 with expansion:
2907 '\t' == '\t'
2908
2909 ToStringGeneral.tests.cpp:<line number>: PASSED:
2910 CHECK( newline == '\n' )
2911 with expansion:
2912 '\n' == '\n'
2913
2914 ToStringGeneral.tests.cpp:<line number>: PASSED:
2915 CHECK( carr_return == '\r' )
2916 with expansion:
2917 '\r' == '\r'
2918
2919 ToStringGeneral.tests.cpp:<line number>: PASSED:
2920 CHECK( form_feed == '\f' )
2921 with expansion:
2922 '\f' == '\f'
2923
2924 -------------------------------------------------------------------------------
2925 Character pretty printing
2926 General chars
2927 -------------------------------------------------------------------------------
2928 ToStringGeneral.tests.cpp:<line number>
2929 ...............................................................................
2930
2931 ToStringGeneral.tests.cpp:<line number>: PASSED:
2932 CHECK( space == ' ' )
2933 with expansion:
2934 ' ' == ' '
2935
2936 ToStringGeneral.tests.cpp:<line number>: PASSED:
2937 REQUIRE( c == chars[i] )
2938 with expansion:
2939 'a' == 'a'
2940
2941 ToStringGeneral.tests.cpp:<line number>: PASSED:
2942 REQUIRE( c == chars[i] )
2943 with expansion:
2944 'z' == 'z'
2945
2946 ToStringGeneral.tests.cpp:<line number>: PASSED:
2947 REQUIRE( c == chars[i] )
2948 with expansion:
2949 'A' == 'A'
2950
2951 ToStringGeneral.tests.cpp:<line number>: PASSED:
2952 REQUIRE( c == chars[i] )
2953 with expansion:
2954 'Z' == 'Z'
2955
2956 -------------------------------------------------------------------------------
2957 Character pretty printing
2958 Low ASCII
2959 -------------------------------------------------------------------------------
2960 ToStringGeneral.tests.cpp:<line number>
2961 ...............................................................................
2962
2963 ToStringGeneral.tests.cpp:<line number>: PASSED:
2964 CHECK( null_terminator == '\0' )
2965 with expansion:
2966 0 == 0
2967
2968 ToStringGeneral.tests.cpp:<line number>: PASSED:
2969 REQUIRE( c == i )
2970 with expansion:
2971 2 == 2
2972
2973 ToStringGeneral.tests.cpp:<line number>: PASSED:
2974 REQUIRE( c == i )
2975 with expansion:
2976 3 == 3
2977
2978 ToStringGeneral.tests.cpp:<line number>: PASSED:
2979 REQUIRE( c == i )
2980 with expansion:
2981 4 == 4
2982
2983 ToStringGeneral.tests.cpp:<line number>: PASSED:
2984 REQUIRE( c == i )
2985 with expansion:
2986 5 == 5
2987
2988 -------------------------------------------------------------------------------
2989 Clara::Arg supports single-arg parse the way Opt does
2990 -------------------------------------------------------------------------------
2991 Clara.tests.cpp:<line number>
2992 ...............................................................................
2993
2994 Clara.tests.cpp:<line number>: PASSED:
2995 CHECK( name.empty() )
2996 with expansion:
2997 true
2998
2999 Clara.tests.cpp:<line number>: PASSED:
3000 REQUIRE( name == "foo" )
3001 with expansion:
3002 "foo" == "foo"
3003
3004 -------------------------------------------------------------------------------
3005 Clara::Opt supports accept-many lambdas
3006 Parsing fails on multiple options without accept_many
3007 -------------------------------------------------------------------------------
3008 Clara.tests.cpp:<line number>
3009 ...............................................................................
3010
3011 Clara.tests.cpp:<line number>: PASSED:
3012 CHECK_FALSE( parse_result )
3013 with expansion:
3014 !{?}
3015
3016 -------------------------------------------------------------------------------
3017 Clara::Opt supports accept-many lambdas
3018 Parsing succeeds on multiple options with accept_many
3019 -------------------------------------------------------------------------------
3020 Clara.tests.cpp:<line number>
3021 ...............................................................................
3022
3023 Clara.tests.cpp:<line number>: PASSED:
3024 CHECK( parse_result )
3025 with expansion:
3026 {?}
3027
3028 Clara.tests.cpp:<line number>: PASSED:
3029 CHECK( res == std::vector<std::string>{ "aaa", "bbb" } )
3030 with expansion:
3031 { "aaa", "bbb" } == { "aaa", "bbb" }
3032
3033 -------------------------------------------------------------------------------
3034 ColourGuard behaviour
3035 ColourGuard is disengaged by default
3036 -------------------------------------------------------------------------------
3037 ColourImpl.tests.cpp:<line number>
3038 ...............................................................................
3039
3040 ColourImpl.tests.cpp:<line number>: PASSED:
3041 REQUIRE( streamWrapper.str().empty() )
3042 with expansion:
3043 true
3044
3045 -------------------------------------------------------------------------------
3046 ColourGuard behaviour
3047 ColourGuard is engaged by op<<
3048 -------------------------------------------------------------------------------
3049 ColourImpl.tests.cpp:<line number>
3050 ...............................................................................
3051
3052 ColourImpl.tests.cpp:<line number>: PASSED:
3053 REQUIRE( streamWrapper.str() == "1\nUsing code: 2\n2\nUsing code: 0\n3\n" )
3054 with expansion:
3055 "1
3056 Using code: 2
3057 2
3058 Using code: 0
3059 3
3060 "
3061 ==
3062 "1
3063 Using code: 2
3064 2
3065 Using code: 0
3066 3
3067 "
3068
3069 -------------------------------------------------------------------------------
3070 ColourGuard behaviour
3071 ColourGuard can be engaged explicitly
3072 -------------------------------------------------------------------------------
3073 ColourImpl.tests.cpp:<line number>
3074 ...............................................................................
3075
3076 ColourImpl.tests.cpp:<line number>: PASSED:
3077 REQUIRE( streamWrapper.str() == "Using code: 2\nA\nB\nUsing code: 0\nC\n" )
3078 with expansion:
3079 "Using code: 2
3080 A
3081 B
3082 Using code: 0
3083 C
3084 "
3085 ==
3086 "Using code: 2
3087 A
3088 B
3089 Using code: 0
3090 C
3091 "
3092
3093 -------------------------------------------------------------------------------
3094 Combining MatchAllOfGeneric does not nest
3095 -------------------------------------------------------------------------------
3096 Matchers.tests.cpp:<line number>
3097 ...............................................................................
3098
3099 Matchers.tests.cpp:<line number>: PASSED:
3100 with message:
3101 std::is_same< decltype( ( MatcherA() && MatcherB() ) && MatcherC() ), Catch::
3102 Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3103
3104 Matchers.tests.cpp:<line number>: PASSED:
3105 REQUIRE_THAT( 1, ( MatcherA() && MatcherB() ) && MatcherC() )
3106 with expansion:
3107 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3108 1 )
3109
3110 Matchers.tests.cpp:<line number>: PASSED:
3111 with message:
3112 std::is_same< decltype( MatcherA() && ( MatcherB() && MatcherC() ) ), Catch::
3113 Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3114
3115 Matchers.tests.cpp:<line number>: PASSED:
3116 REQUIRE_THAT( 1, MatcherA() && ( MatcherB() && MatcherC() ) )
3117 with expansion:
3118 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3119 1 )
3120
3121 Matchers.tests.cpp:<line number>: PASSED:
3122 with message:
3123 std::is_same< decltype( ( MatcherA() && MatcherB() ) && ( MatcherC() &&
3124 MatcherD() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA,
3125 MatcherB, MatcherC, MatcherD>>:: value
3126
3127 Matchers.tests.cpp:<line number>: PASSED:
3128 REQUIRE_THAT( 1, ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) )
3129 with expansion:
3130 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3131 1 and equals: true )
3132
3133 -------------------------------------------------------------------------------
3134 Combining MatchAnyOfGeneric does not nest
3135 -------------------------------------------------------------------------------
3136 Matchers.tests.cpp:<line number>
3137 ...............................................................................
3138
3139 Matchers.tests.cpp:<line number>: PASSED:
3140 with message:
3141 std::is_same< decltype( ( MatcherA() || MatcherB() ) || MatcherC() ), Catch::
3142 Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3143
3144 Matchers.tests.cpp:<line number>: PASSED:
3145 REQUIRE_THAT( 1, ( MatcherA() || MatcherB() ) || MatcherC() )
3146 with expansion:
3147 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3148 )
3149
3150 Matchers.tests.cpp:<line number>: PASSED:
3151 with message:
3152 std::is_same< decltype( MatcherA() || ( MatcherB() || MatcherC() ) ), Catch::
3153 Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3154
3155 Matchers.tests.cpp:<line number>: PASSED:
3156 REQUIRE_THAT( 1, MatcherA() || ( MatcherB() || MatcherC() ) )
3157 with expansion:
3158 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3159 )
3160
3161 Matchers.tests.cpp:<line number>: PASSED:
3162 with message:
3163 std::is_same< decltype( ( MatcherA() || MatcherB() ) || ( MatcherC() ||
3164 MatcherD() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA,
3165 MatcherB, MatcherC, MatcherD>>:: value
3166
3167 Matchers.tests.cpp:<line number>: PASSED:
3168 REQUIRE_THAT( 1, ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) )
3169 with expansion:
3170 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3171 or equals: true )
3172
3173 -------------------------------------------------------------------------------
3174 Combining MatchNotOfGeneric does not nest
3175 -------------------------------------------------------------------------------
3176 Matchers.tests.cpp:<line number>
3177 ...............................................................................
3178
3179 Matchers.tests.cpp:<line number>: PASSED:
3180 with message:
3181 std::is_same< decltype( !MatcherA() ), Catch::Matchers::Detail::
3182 MatchNotOfGeneric<MatcherA>>::value
3183
3184 Matchers.tests.cpp:<line number>: PASSED:
3185 REQUIRE_THAT( 0, !MatcherA() )
3186 with expansion:
3187 0 not equals: (int) 1 or (string) "1"
3188
3189 Matchers.tests.cpp:<line number>: PASSED:
3190 with message:
3191 std::is_same<decltype( !!MatcherA() ), MatcherA const&>::value
3192
3193 Matchers.tests.cpp:<line number>: PASSED:
3194 REQUIRE_THAT( 1, !!MatcherA() )
3195 with expansion:
3196 1 equals: (int) 1 or (string) "1"
3197
3198 Matchers.tests.cpp:<line number>: PASSED:
3199 with message:
3200 std::is_same< decltype( !!!MatcherA() ), Catch::Matchers::Detail::
3201 MatchNotOfGeneric<MatcherA>>::value
3202
3203 Matchers.tests.cpp:<line number>: PASSED:
3204 REQUIRE_THAT( 0, !!!MatcherA() )
3205 with expansion:
3206 0 not equals: (int) 1 or (string) "1"
3207
3208 Matchers.tests.cpp:<line number>: PASSED:
3209 with message:
3210 std::is_same<decltype( !!!!MatcherA() ), MatcherA const&>::value
3211
3212 Matchers.tests.cpp:<line number>: PASSED:
3213 REQUIRE_THAT( 1, !!!!MatcherA() )
3214 with expansion:
3215 1 equals: (int) 1 or (string) "1"
3216
3217 -------------------------------------------------------------------------------
3218 Combining concrete matchers does not use templated matchers
3219 -------------------------------------------------------------------------------
3220 Matchers.tests.cpp:<line number>
3221 ...............................................................................
3222
3223 Matchers.tests.cpp:<line number>: PASSED:
3224 with message:
3225 std::is_same<decltype( StartsWith( "foo" ) || ( StartsWith( "bar" ) &&
3226 EndsWith( "bar" ) && !EndsWith( "foo" ) ) ), Catch::Matchers::Detail::
3227 MatchAnyOf<std::string>>::value
3228
3229 -------------------------------------------------------------------------------
3230 Combining only templated matchers
3231 -------------------------------------------------------------------------------
3232 Matchers.tests.cpp:<line number>
3233 ...............................................................................
3234
3235 Matchers.tests.cpp:<line number>: PASSED:
3236 with message:
3237 std::is_same<decltype( MatcherA() || MatcherB() ), Catch::Matchers::Detail::
3238 MatchAnyOfGeneric<MatcherA, MatcherB>>::value
3239
3240 Matchers.tests.cpp:<line number>: PASSED:
3241 REQUIRE_THAT( 1, MatcherA() || MatcherB() )
3242 with expansion:
3243 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 )
3244
3245 Matchers.tests.cpp:<line number>: PASSED:
3246 with message:
3247 std::is_same<decltype( MatcherA() && MatcherB() ), Catch::Matchers::Detail::
3248 MatchAllOfGeneric<MatcherA, MatcherB>>::value
3249
3250 Matchers.tests.cpp:<line number>: PASSED:
3251 REQUIRE_THAT( 1, MatcherA() && MatcherB() )
3252 with expansion:
3253 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 )
3254
3255 Matchers.tests.cpp:<line number>: PASSED:
3256 with message:
3257 std::is_same< decltype( MatcherA() || !MatcherB() ), Catch::Matchers::Detail:
3258 :MatchAnyOfGeneric< MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric
3259 <MatcherB>>>::value
3260
3261 Matchers.tests.cpp:<line number>: PASSED:
3262 REQUIRE_THAT( 1, MatcherA() || !MatcherB() )
3263 with expansion:
3264 1 ( equals: (int) 1 or (string) "1" or not equals: (long long) 1 )
3265
3266 -------------------------------------------------------------------------------
3267 Combining templated and concrete matchers
3268 -------------------------------------------------------------------------------
3269 Matchers.tests.cpp:<line number>
3270 ...............................................................................
3271
3272 Matchers.tests.cpp:<line number>: PASSED:
3273 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 ) )
3274 with expansion:
3275 { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5,
3276 3, 1 } )
3277
3278 Matchers.tests.cpp:<line number>: PASSED:
3279 REQUIRE_THAT( str, StartsWith( "foo" ) && EqualsRange( arr ) && EndsWith( "bar" ) )
3280 with expansion:
3281 "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' }
3282 and ends with: "bar" )
3283
3284 Matchers.tests.cpp:<line number>: PASSED:
3285 REQUIRE_THAT( str, StartsWith( "foo" ) && !EqualsRange( bad_arr ) && EndsWith( "bar" ) )
3286 with expansion:
3287 "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r'
3288 } and ends with: "bar" )
3289
3290 Matchers.tests.cpp:<line number>: PASSED:
3291 REQUIRE_THAT( str, EqualsRange( arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) )
3292 with expansion:
3293 "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo"
3294 and ends with: "bar" )
3295
3296 Matchers.tests.cpp:<line number>: PASSED:
3297 REQUIRE_THAT( str, !EqualsRange( bad_arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) )
3298 with expansion:
3299 "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with:
3300 "foo" and ends with: "bar" )
3301
3302 Matchers.tests.cpp:<line number>: PASSED:
3303 REQUIRE_THAT( str, EqualsRange( bad_arr ) || ( StartsWith( "foo" ) && EndsWith( "bar" ) ) )
3304 with expansion:
3305 "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo"
3306 and ends with: "bar" ) )
3307
3308 Matchers.tests.cpp:<line number>: PASSED:
3309 REQUIRE_THAT( str, ( StartsWith( "foo" ) && EndsWith( "bar" ) ) || EqualsRange( bad_arr ) )
3310 with expansion:
3311 "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o',
3312 'f', 'b', 'a', 'r' } )
3313
3314 -------------------------------------------------------------------------------
3315 Combining templated matchers
3316 -------------------------------------------------------------------------------
3317 Matchers.tests.cpp:<line number>
3318 ...............................................................................
3319
3320 Matchers.tests.cpp:<line number>: PASSED:
3321 REQUIRE_THAT( container, EqualsRange( a ) || EqualsRange( b ) || EqualsRange( c ) )
3322 with expansion:
3323 { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6
3324 } )
3325
3326 -------------------------------------------------------------------------------
3327 Commas in various macros are allowed
3328 -------------------------------------------------------------------------------
3329 Tricky.tests.cpp:<line number>
3330 ...............................................................................
3331
3332 Tricky.tests.cpp:<line number>: PASSED:
3333 REQUIRE_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
3334
3335 Tricky.tests.cpp:<line number>: PASSED:
3336 CHECK_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
3337
3338 Tricky.tests.cpp:<line number>: PASSED:
3339 REQUIRE_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
3340
3341 Tricky.tests.cpp:<line number>: PASSED:
3342 CHECK_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
3343
3344 Tricky.tests.cpp:<line number>: PASSED:
3345 REQUIRE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3346 with expansion:
3347 { 1, 2 } == { 1, 2 }
3348
3349 Tricky.tests.cpp:<line number>: PASSED:
3350 CHECK( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3351 with expansion:
3352 { 1, 2 } == { 1, 2 }
3353
3354 Tricky.tests.cpp:<line number>: PASSED:
3355 REQUIRE_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
3356 with expansion:
3357 !({ 1, 2 } == { 1, 2, 3 })
3358
3359 Tricky.tests.cpp:<line number>: PASSED:
3360 CHECK_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
3361 with expansion:
3362 !({ 1, 2 } == { 1, 2, 3 })
3363
3364 Tricky.tests.cpp:<line number>: PASSED:
3365 CHECK_NOFAIL( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3366 with expansion:
3367 { 1, 2 } == { 1, 2 }
3368
3369 Tricky.tests.cpp:<line number>: PASSED:
3370 CHECKED_IF( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3371 with expansion:
3372 { 1, 2 } == { 1, 2 }
3373
3374 Tricky.tests.cpp:<line number>: PASSED:
3375 REQUIRE( true )
3376
3377 Tricky.tests.cpp:<line number>: PASSED:
3378 CHECKED_ELSE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3379 with expansion:
3380 { 1, 2 } == { 1, 2 }
3381
3382 -------------------------------------------------------------------------------
3383 Comparing function pointers
3384 -------------------------------------------------------------------------------
3385 Tricky.tests.cpp:<line number>
3386 ...............................................................................
3387
3388 Tricky.tests.cpp:<line number>: PASSED:
3389 REQUIRE( a )
3390 with expansion:
3391 0x<hex digits>
3392
3393 Tricky.tests.cpp:<line number>: PASSED:
3394 REQUIRE( a == &foo )
3395 with expansion:
3396 0x<hex digits> == 0x<hex digits>
3397
3398 -------------------------------------------------------------------------------
3399 Comparison ops
3400 -------------------------------------------------------------------------------
3401 RandomNumberGeneration.tests.cpp:<line number>
3402 ...............................................................................
3403
3404 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3405 REQUIRE( SimplePcg32{} == SimplePcg32{} )
3406 with expansion:
3407 {?} == {?}
3408
3409 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3410 REQUIRE( SimplePcg32{ 0 } != SimplePcg32{} )
3411 with expansion:
3412 {?} != {?}
3413
3414 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3415 REQUIRE_FALSE( SimplePcg32{ 1 } == SimplePcg32{ 2 } )
3416 with expansion:
3417 !({?} == {?})
3418
3419 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3420 REQUIRE_FALSE( SimplePcg32{ 1 } != SimplePcg32{ 1 } )
3421 with expansion:
3422 !({?} != {?})
3423
3424 -------------------------------------------------------------------------------
3425 Comparison with explicitly convertible types
3426 -------------------------------------------------------------------------------
3427 Approx.tests.cpp:<line number>
3428 ...............................................................................
3429
3430 Approx.tests.cpp:<line number>: PASSED:
3431 REQUIRE( td == Approx(10.0) )
3432 with expansion:
3433 StrongDoubleTypedef(10) == Approx( 10.0 )
3434
3435 Approx.tests.cpp:<line number>: PASSED:
3436 REQUIRE( Approx(10.0) == td )
3437 with expansion:
3438 Approx( 10.0 ) == StrongDoubleTypedef(10)
3439
3440 Approx.tests.cpp:<line number>: PASSED:
3441 REQUIRE( td != Approx(11.0) )
3442 with expansion:
3443 StrongDoubleTypedef(10) != Approx( 11.0 )
3444
3445 Approx.tests.cpp:<line number>: PASSED:
3446 REQUIRE( Approx(11.0) != td )
3447 with expansion:
3448 Approx( 11.0 ) != StrongDoubleTypedef(10)
3449
3450 Approx.tests.cpp:<line number>: PASSED:
3451 REQUIRE( td <= Approx(10.0) )
3452 with expansion:
3453 StrongDoubleTypedef(10) <= Approx( 10.0 )
3454
3455 Approx.tests.cpp:<line number>: PASSED:
3456 REQUIRE( td <= Approx(11.0) )
3457 with expansion:
3458 StrongDoubleTypedef(10) <= Approx( 11.0 )
3459
3460 Approx.tests.cpp:<line number>: PASSED:
3461 REQUIRE( Approx(10.0) <= td )
3462 with expansion:
3463 Approx( 10.0 ) <= StrongDoubleTypedef(10)
3464
3465 Approx.tests.cpp:<line number>: PASSED:
3466 REQUIRE( Approx(9.0) <= td )
3467 with expansion:
3468 Approx( 9.0 ) <= StrongDoubleTypedef(10)
3469
3470 Approx.tests.cpp:<line number>: PASSED:
3471 REQUIRE( td >= Approx(9.0) )
3472 with expansion:
3473 StrongDoubleTypedef(10) >= Approx( 9.0 )
3474
3475 Approx.tests.cpp:<line number>: PASSED:
3476 REQUIRE( td >= Approx(td) )
3477 with expansion:
3478 StrongDoubleTypedef(10) >= Approx( 10.0 )
3479
3480 Approx.tests.cpp:<line number>: PASSED:
3481 REQUIRE( Approx(td) >= td )
3482 with expansion:
3483 Approx( 10.0 ) >= StrongDoubleTypedef(10)
3484
3485 Approx.tests.cpp:<line number>: PASSED:
3486 REQUIRE( Approx(11.0) >= td )
3487 with expansion:
3488 Approx( 11.0 ) >= StrongDoubleTypedef(10)
3489
3490 -------------------------------------------------------------------------------
3491 Comparisons between ints where one side is computed
3492 -------------------------------------------------------------------------------
3493 Condition.tests.cpp:<line number>
3494 ...............................................................................
3495
3496 Condition.tests.cpp:<line number>: PASSED:
3497 CHECK( 54 == 6*9 )
3498 with expansion:
3499 54 == 54
3500
3501 -------------------------------------------------------------------------------
3502 Comparisons between unsigned ints and negative signed ints match c++ standard
3503 behaviour
3504 -------------------------------------------------------------------------------
3505 Condition.tests.cpp:<line number>
3506 ...............................................................................
3507
3508 Condition.tests.cpp:<line number>: PASSED:
3509 CHECK( ( -1 > 2u ) )
3510 with expansion:
3511 true
3512
3513 Condition.tests.cpp:<line number>: PASSED:
3514 CHECK( -1 > 2u )
3515 with expansion:
3516 -1 > 2
3517
3518 Condition.tests.cpp:<line number>: PASSED:
3519 CHECK( ( 2u < -1 ) )
3520 with expansion:
3521 true
3522
3523 Condition.tests.cpp:<line number>: PASSED:
3524 CHECK( 2u < -1 )
3525 with expansion:
3526 2 < -1
3527
3528 Condition.tests.cpp:<line number>: PASSED:
3529 CHECK( ( minInt > 2u ) )
3530 with expansion:
3531 true
3532
3533 Condition.tests.cpp:<line number>: PASSED:
3534 CHECK( minInt > 2u )
3535 with expansion:
3536 -2147483648 > 2
3537
3538 -------------------------------------------------------------------------------
3539 Comparisons with int literals don't warn when mixing signed/ unsigned
3540 -------------------------------------------------------------------------------
3541 Condition.tests.cpp:<line number>
3542 ...............................................................................
3543
3544 Condition.tests.cpp:<line number>: PASSED:
3545 REQUIRE( i == 1 )
3546 with expansion:
3547 1 == 1
3548
3549 Condition.tests.cpp:<line number>: PASSED:
3550 REQUIRE( ui == 2 )
3551 with expansion:
3552 2 == 2
3553
3554 Condition.tests.cpp:<line number>: PASSED:
3555 REQUIRE( l == 3 )
3556 with expansion:
3557 3 == 3
3558
3559 Condition.tests.cpp:<line number>: PASSED:
3560 REQUIRE( ul == 4 )
3561 with expansion:
3562 4 == 4
3563
3564 Condition.tests.cpp:<line number>: PASSED:
3565 REQUIRE( c == 5 )
3566 with expansion:
3567 5 == 5
3568
3569 Condition.tests.cpp:<line number>: PASSED:
3570 REQUIRE( uc == 6 )
3571 with expansion:
3572 6 == 6
3573
3574 Condition.tests.cpp:<line number>: PASSED:
3575 REQUIRE( 1 == i )
3576 with expansion:
3577 1 == 1
3578
3579 Condition.tests.cpp:<line number>: PASSED:
3580 REQUIRE( 2 == ui )
3581 with expansion:
3582 2 == 2
3583
3584 Condition.tests.cpp:<line number>: PASSED:
3585 REQUIRE( 3 == l )
3586 with expansion:
3587 3 == 3
3588
3589 Condition.tests.cpp:<line number>: PASSED:
3590 REQUIRE( 4 == ul )
3591 with expansion:
3592 4 == 4
3593
3594 Condition.tests.cpp:<line number>: PASSED:
3595 REQUIRE( 5 == c )
3596 with expansion:
3597 5 == 5
3598
3599 Condition.tests.cpp:<line number>: PASSED:
3600 REQUIRE( 6 == uc )
3601 with expansion:
3602 6 == 6
3603
3604 Condition.tests.cpp:<line number>: PASSED:
3605 REQUIRE( (std::numeric_limits<uint32_t>::max)() > ul )
3606 with expansion:
3607 4294967295 (0x<hex digits>) > 4
3608
3609 -------------------------------------------------------------------------------
3610 Composed generic matchers shortcircuit
3611 MatchAllOf
3612 -------------------------------------------------------------------------------
3613 Matchers.tests.cpp:<line number>
3614 ...............................................................................
3615
3616 Matchers.tests.cpp:<line number>: PASSED:
3617 CHECK_FALSE( matcher.match( 1 ) )
3618 with expansion:
3619 !false
3620
3621 Matchers.tests.cpp:<line number>: PASSED:
3622 REQUIRE( first.matchCalled )
3623 with expansion:
3624 true
3625
3626 Matchers.tests.cpp:<line number>: PASSED:
3627 REQUIRE( !second.matchCalled )
3628 with expansion:
3629 true
3630
3631 -------------------------------------------------------------------------------
3632 Composed generic matchers shortcircuit
3633 MatchAnyOf
3634 -------------------------------------------------------------------------------
3635 Matchers.tests.cpp:<line number>
3636 ...............................................................................
3637
3638 Matchers.tests.cpp:<line number>: PASSED:
3639 CHECK( matcher.match( 1 ) )
3640 with expansion:
3641 true
3642
3643 Matchers.tests.cpp:<line number>: PASSED:
3644 REQUIRE( first.matchCalled )
3645 with expansion:
3646 true
3647
3648 Matchers.tests.cpp:<line number>: PASSED:
3649 REQUIRE( !second.matchCalled )
3650 with expansion:
3651 true
3652
3653 -------------------------------------------------------------------------------
3654 Composed matchers shortcircuit
3655 MatchAllOf
3656 -------------------------------------------------------------------------------
3657 Matchers.tests.cpp:<line number>
3658 ...............................................................................
3659
3660 Matchers.tests.cpp:<line number>: PASSED:
3661 CHECK_FALSE( matcher.match( 1 ) )
3662 with expansion:
3663 !false
3664
3665 Matchers.tests.cpp:<line number>: PASSED:
3666 REQUIRE( first.matchCalled )
3667 with expansion:
3668 true
3669
3670 Matchers.tests.cpp:<line number>: PASSED:
3671 REQUIRE( !second.matchCalled )
3672 with expansion:
3673 true
3674
3675 -------------------------------------------------------------------------------
3676 Composed matchers shortcircuit
3677 MatchAnyOf
3678 -------------------------------------------------------------------------------
3679 Matchers.tests.cpp:<line number>
3680 ...............................................................................
3681
3682 Matchers.tests.cpp:<line number>: PASSED:
3683 CHECK( matcher.match( 1 ) )
3684 with expansion:
3685 true
3686
3687 Matchers.tests.cpp:<line number>: PASSED:
3688 REQUIRE( first.matchCalled )
3689 with expansion:
3690 true
3691
3692 Matchers.tests.cpp:<line number>: PASSED:
3693 REQUIRE( !second.matchCalled )
3694 with expansion:
3695 true
3696
3697 -------------------------------------------------------------------------------
3698 Contains string matcher
3699 -------------------------------------------------------------------------------
3700 Matchers.tests.cpp:<line number>
3701 ...............................................................................
3702
3703 Matchers.tests.cpp:<line number>: FAILED:
3704 CHECK_THAT( testStringForMatching(), ContainsSubstring( "not there", Catch::CaseSensitive::No ) )
3705 with expansion:
3706 "this string contains 'abc' as a substring" contains: "not there" (case
3707 insensitive)
3708
3709 Matchers.tests.cpp:<line number>: FAILED:
3710 CHECK_THAT( testStringForMatching(), ContainsSubstring( "STRING" ) )
3711 with expansion:
3712 "this string contains 'abc' as a substring" contains: "STRING"
3713
3714 -------------------------------------------------------------------------------
3715 Copy and then generate a range
3716 from var and iterators
3717 -------------------------------------------------------------------------------
3718 Generators.tests.cpp:<line number>
3719 ...............................................................................
3720
3721 Generators.tests.cpp:<line number>: PASSED:
3722 REQUIRE( elem % 2 == 1 )
3723 with expansion:
3724 1 == 1
3725
3726 -------------------------------------------------------------------------------
3727 Copy and then generate a range
3728 from var and iterators
3729 -------------------------------------------------------------------------------
3730 Generators.tests.cpp:<line number>
3731 ...............................................................................
3732
3733 Generators.tests.cpp:<line number>: PASSED:
3734 REQUIRE( elem % 2 == 1 )
3735 with expansion:
3736 1 == 1
3737
3738 -------------------------------------------------------------------------------
3739 Copy and then generate a range
3740 from var and iterators
3741 -------------------------------------------------------------------------------
3742 Generators.tests.cpp:<line number>
3743 ...............................................................................
3744
3745 Generators.tests.cpp:<line number>: PASSED:
3746 REQUIRE( elem % 2 == 1 )
3747 with expansion:
3748 1 == 1
3749
3750 -------------------------------------------------------------------------------
3751 Copy and then generate a range
3752 from var and iterators
3753 -------------------------------------------------------------------------------
3754 Generators.tests.cpp:<line number>
3755 ...............................................................................
3756
3757 Generators.tests.cpp:<line number>: PASSED:
3758 REQUIRE( elem % 2 == 1 )
3759 with expansion:
3760 1 == 1
3761
3762 -------------------------------------------------------------------------------
3763 Copy and then generate a range
3764 from var and iterators
3765 -------------------------------------------------------------------------------
3766 Generators.tests.cpp:<line number>
3767 ...............................................................................
3768
3769 Generators.tests.cpp:<line number>: PASSED:
3770 REQUIRE( elem % 2 == 1 )
3771 with expansion:
3772 1 == 1
3773
3774 -------------------------------------------------------------------------------
3775 Copy and then generate a range
3776 from var and iterators
3777 -------------------------------------------------------------------------------
3778 Generators.tests.cpp:<line number>
3779 ...............................................................................
3780
3781 Generators.tests.cpp:<line number>: PASSED:
3782 REQUIRE( elem % 2 == 1 )
3783 with expansion:
3784 1 == 1
3785
3786 -------------------------------------------------------------------------------
3787 Copy and then generate a range
3788 From a temporary container
3789 -------------------------------------------------------------------------------
3790 Generators.tests.cpp:<line number>
3791 ...............................................................................
3792
3793 Generators.tests.cpp:<line number>: PASSED:
3794 REQUIRE( elem % 2 == 1 )
3795 with expansion:
3796 1 == 1
3797
3798 -------------------------------------------------------------------------------
3799 Copy and then generate a range
3800 From a temporary container
3801 -------------------------------------------------------------------------------
3802 Generators.tests.cpp:<line number>
3803 ...............................................................................
3804
3805 Generators.tests.cpp:<line number>: PASSED:
3806 REQUIRE( elem % 2 == 1 )
3807 with expansion:
3808 1 == 1
3809
3810 -------------------------------------------------------------------------------
3811 Copy and then generate a range
3812 From a temporary container
3813 -------------------------------------------------------------------------------
3814 Generators.tests.cpp:<line number>
3815 ...............................................................................
3816
3817 Generators.tests.cpp:<line number>: PASSED:
3818 REQUIRE( elem % 2 == 1 )
3819 with expansion:
3820 1 == 1
3821
3822 -------------------------------------------------------------------------------
3823 Copy and then generate a range
3824 From a temporary container
3825 -------------------------------------------------------------------------------
3826 Generators.tests.cpp:<line number>
3827 ...............................................................................
3828
3829 Generators.tests.cpp:<line number>: PASSED:
3830 REQUIRE( elem % 2 == 1 )
3831 with expansion:
3832 1 == 1
3833
3834 -------------------------------------------------------------------------------
3835 Copy and then generate a range
3836 From a temporary container
3837 -------------------------------------------------------------------------------
3838 Generators.tests.cpp:<line number>
3839 ...............................................................................
3840
3841 Generators.tests.cpp:<line number>: PASSED:
3842 REQUIRE( elem % 2 == 1 )
3843 with expansion:
3844 1 == 1
3845
3846 -------------------------------------------------------------------------------
3847 Copy and then generate a range
3848 From a temporary container
3849 -------------------------------------------------------------------------------
3850 Generators.tests.cpp:<line number>
3851 ...............................................................................
3852
3853 Generators.tests.cpp:<line number>: PASSED:
3854 REQUIRE( elem % 2 == 1 )
3855 with expansion:
3856 1 == 1
3857
3858 -------------------------------------------------------------------------------
3859 Copy and then generate a range
3860 Final validation
3861 -------------------------------------------------------------------------------
3862 Generators.tests.cpp:<line number>
3863 ...............................................................................
3864
3865 Generators.tests.cpp:<line number>: PASSED:
3866 REQUIRE( call_count == 1 )
3867 with expansion:
3868 1 == 1
3869
3870 Generators.tests.cpp:<line number>: PASSED:
3871 REQUIRE( make_data().size() == test_count )
3872 with expansion:
3873 6 == 6
3874
3875 -------------------------------------------------------------------------------
3876 Cout stream properly declares it writes to stdout
3877 -------------------------------------------------------------------------------
3878 Stream.tests.cpp:<line number>
3879 ...............................................................................
3880
3881 Stream.tests.cpp:<line number>: PASSED:
3882 REQUIRE( Catch::makeStream( "-" )->isConsole() )
3883 with expansion:
3884 true
3885
3886 -------------------------------------------------------------------------------
3887 Custom exceptions can be translated when testing for nothrow
3888 -------------------------------------------------------------------------------
3889 Exception.tests.cpp:<line number>
3890 ...............................................................................
3891
3892 Exception.tests.cpp:<line number>: FAILED:
3893 REQUIRE_NOTHROW( throwCustom() )
3894 due to unexpected exception with message:
3895 custom exception - not std
3896
3897 -------------------------------------------------------------------------------
3898 Custom exceptions can be translated when testing for throwing as something else
3899 -------------------------------------------------------------------------------
3900 Exception.tests.cpp:<line number>
3901 ...............................................................................
3902
3903 Exception.tests.cpp:<line number>: FAILED:
3904 REQUIRE_THROWS_AS( throwCustom(), std::exception )
3905 due to unexpected exception with message:
3906 custom exception - not std
3907
3908 -------------------------------------------------------------------------------
3909 Custom std-exceptions can be custom translated
3910 -------------------------------------------------------------------------------
3911 Exception.tests.cpp:<line number>
3912 ...............................................................................
3913
3914 Exception.tests.cpp:<line number>: FAILED:
3915 due to unexpected exception with message:
3916 custom std exception
3917
3918 -------------------------------------------------------------------------------
3919 Default scale is invisible to comparison
3920 -------------------------------------------------------------------------------
3921 Approx.tests.cpp:<line number>
3922 ...............................................................................
3923
3924 Approx.tests.cpp:<line number>: PASSED:
3925 REQUIRE( 101.000001 != Approx(100).epsilon(0.01) )
3926 with expansion:
3927 101.000001 != Approx( 100.0 )
3928
3929 Approx.tests.cpp:<line number>: PASSED:
3930 REQUIRE( std::pow(10, -5) != Approx(std::pow(10, -7)) )
3931 with expansion:
3932 0.00001 != Approx( 0.0000001 )
3933
3934 -------------------------------------------------------------------------------
3935 Directly creating an EnumInfo
3936 -------------------------------------------------------------------------------
3937 ToString.tests.cpp:<line number>
3938 ...............................................................................
3939
3940 ToString.tests.cpp:<line number>: PASSED:
3941 CHECK( enumInfo->lookup(0) == "Value1" )
3942 with expansion:
3943 Value1 == "Value1"
3944
3945 ToString.tests.cpp:<line number>: PASSED:
3946 CHECK( enumInfo->lookup(1) == "Value2" )
3947 with expansion:
3948 Value2 == "Value2"
3949
3950 ToString.tests.cpp:<line number>: PASSED:
3951 CHECK( enumInfo->lookup(3) == "{** unexpected enum value **}" )
3952 with expansion:
3953 {** unexpected enum value **}
3954 ==
3955 "{** unexpected enum value **}"
3956
3957 -------------------------------------------------------------------------------
3958 Empty generators can SKIP in constructor
3959 -------------------------------------------------------------------------------
3960 Skip.tests.cpp:<line number>
3961 ...............................................................................
3962
3963 Skip.tests.cpp:<line number>: SKIPPED:
3964 explicitly with message:
3965 This generator is empty
3966
3967 -------------------------------------------------------------------------------
3968 Empty stream name opens cout stream
3969 -------------------------------------------------------------------------------
3970 Stream.tests.cpp:<line number>
3971 ...............................................................................
3972
3973 Stream.tests.cpp:<line number>: PASSED:
3974 REQUIRE( Catch::makeStream( "" )->isConsole() )
3975 with expansion:
3976 true
3977
3978 -------------------------------------------------------------------------------
3979 EndsWith string matcher
3980 -------------------------------------------------------------------------------
3981 Matchers.tests.cpp:<line number>
3982 ...............................................................................
3983
3984 Matchers.tests.cpp:<line number>: FAILED:
3985 CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) )
3986 with expansion:
3987 "this string contains 'abc' as a substring" ends with: "Substring"
3988
3989 Matchers.tests.cpp:<line number>: FAILED:
3990 CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) )
3991 with expansion:
3992 "this string contains 'abc' as a substring" ends with: "this" (case
3993 insensitive)
3994
3995 -------------------------------------------------------------------------------
3996 Enums can quickly have stringification enabled using REGISTER_ENUM
3997 -------------------------------------------------------------------------------
3998 EnumToString.tests.cpp:<line number>
3999 ...............................................................................
4000
4001 EnumToString.tests.cpp:<line number>: PASSED:
4002 REQUIRE( stringify( EnumClass3::Value1 ) == "Value1" )
4003 with expansion:
4004 "Value1" == "Value1"
4005
4006 EnumToString.tests.cpp:<line number>: PASSED:
4007 REQUIRE( stringify( EnumClass3::Value2 ) == "Value2" )
4008 with expansion:
4009 "Value2" == "Value2"
4010
4011 EnumToString.tests.cpp:<line number>: PASSED:
4012 REQUIRE( stringify( EnumClass3::Value3 ) == "Value3" )
4013 with expansion:
4014 "Value3" == "Value3"
4015
4016 EnumToString.tests.cpp:<line number>: PASSED:
4017 REQUIRE( stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}" )
4018 with expansion:
4019 "{** unexpected enum value **}"
4020 ==
4021 "{** unexpected enum value **}"
4022
4023 EnumToString.tests.cpp:<line number>: PASSED:
4024 REQUIRE( stringify( ec3 ) == "Value2" )
4025 with expansion:
4026 "Value2" == "Value2"
4027
4028 -------------------------------------------------------------------------------
4029 Enums in namespaces can quickly have stringification enabled using
4030 REGISTER_ENUM
4031 -------------------------------------------------------------------------------
4032 EnumToString.tests.cpp:<line number>
4033 ...............................................................................
4034
4035 EnumToString.tests.cpp:<line number>: PASSED:
4036 REQUIRE( stringify( Bikeshed::Colours::Red ) == "Red" )
4037 with expansion:
4038 "Red" == "Red"
4039
4040 EnumToString.tests.cpp:<line number>: PASSED:
4041 REQUIRE( stringify( Bikeshed::Colours::Blue ) == "Blue" )
4042 with expansion:
4043 "Blue" == "Blue"
4044
4045 -------------------------------------------------------------------------------
4046 Epsilon only applies to Approx's value
4047 -------------------------------------------------------------------------------
4048 Approx.tests.cpp:<line number>
4049 ...............................................................................
4050
4051 Approx.tests.cpp:<line number>: PASSED:
4052 REQUIRE( 101.01 != Approx(100).epsilon(0.01) )
4053 with expansion:
4054 101.01 != Approx( 100.0 )
4055
4056 -------------------------------------------------------------------------------
4057 Equality checks that should fail
4058 -------------------------------------------------------------------------------
4059 Condition.tests.cpp:<line number>
4060 ...............................................................................
4061
4062 Condition.tests.cpp:<line number>: FAILED:
4063 CHECK( data.int_seven == 6 )
4064 with expansion:
4065 7 == 6
4066
4067 Condition.tests.cpp:<line number>: FAILED:
4068 CHECK( data.int_seven == 8 )
4069 with expansion:
4070 7 == 8
4071
4072 Condition.tests.cpp:<line number>: FAILED:
4073 CHECK( data.int_seven == 0 )
4074 with expansion:
4075 7 == 0
4076
4077 Condition.tests.cpp:<line number>: FAILED:
4078 CHECK( data.float_nine_point_one == Approx( 9.11f ) )
4079 with expansion:
4080 9.1f == Approx( 9.1099996567 )
4081
4082 Condition.tests.cpp:<line number>: FAILED:
4083 CHECK( data.float_nine_point_one == Approx( 9.0f ) )
4084 with expansion:
4085 9.1f == Approx( 9.0 )
4086
4087 Condition.tests.cpp:<line number>: FAILED:
4088 CHECK( data.float_nine_point_one == Approx( 1 ) )
4089 with expansion:
4090 9.1f == Approx( 1.0 )
4091
4092 Condition.tests.cpp:<line number>: FAILED:
4093 CHECK( data.float_nine_point_one == Approx( 0 ) )
4094 with expansion:
4095 9.1f == Approx( 0.0 )
4096
4097 Condition.tests.cpp:<line number>: FAILED:
4098 CHECK( data.double_pi == Approx( 3.1415 ) )
4099 with expansion:
4100 3.1415926535 == Approx( 3.1415 )
4101
4102 Condition.tests.cpp:<line number>: FAILED:
4103 CHECK( data.str_hello == "goodbye" )
4104 with expansion:
4105 "hello" == "goodbye"
4106
4107 Condition.tests.cpp:<line number>: FAILED:
4108 CHECK( data.str_hello == "hell" )
4109 with expansion:
4110 "hello" == "hell"
4111
4112 Condition.tests.cpp:<line number>: FAILED:
4113 CHECK( data.str_hello == "hello1" )
4114 with expansion:
4115 "hello" == "hello1"
4116
4117 Condition.tests.cpp:<line number>: FAILED:
4118 CHECK( data.str_hello.size() == 6 )
4119 with expansion:
4120 5 == 6
4121
4122 Condition.tests.cpp:<line number>: FAILED:
4123 CHECK( x == Approx( 1.301 ) )
4124 with expansion:
4125 1.3 == Approx( 1.301 )
4126
4127 -------------------------------------------------------------------------------
4128 Equality checks that should succeed
4129 -------------------------------------------------------------------------------
4130 Condition.tests.cpp:<line number>
4131 ...............................................................................
4132
4133 Condition.tests.cpp:<line number>: PASSED:
4134 REQUIRE( data.int_seven == 7 )
4135 with expansion:
4136 7 == 7
4137
4138 Condition.tests.cpp:<line number>: PASSED:
4139 REQUIRE( data.float_nine_point_one == Approx( 9.1f ) )
4140 with expansion:
4141 9.1f == Approx( 9.1000003815 )
4142
4143 Condition.tests.cpp:<line number>: PASSED:
4144 REQUIRE( data.double_pi == Approx( 3.1415926535 ) )
4145 with expansion:
4146 3.1415926535 == Approx( 3.1415926535 )
4147
4148 Condition.tests.cpp:<line number>: PASSED:
4149 REQUIRE( data.str_hello == "hello" )
4150 with expansion:
4151 "hello" == "hello"
4152
4153 Condition.tests.cpp:<line number>: PASSED:
4154 REQUIRE( "hello" == data.str_hello )
4155 with expansion:
4156 "hello" == "hello"
4157
4158 Condition.tests.cpp:<line number>: PASSED:
4159 REQUIRE( data.str_hello.size() == 5 )
4160 with expansion:
4161 5 == 5
4162
4163 Condition.tests.cpp:<line number>: PASSED:
4164 REQUIRE( x == Approx( 1.3 ) )
4165 with expansion:
4166 1.3 == Approx( 1.3 )
4167
4168 -------------------------------------------------------------------------------
4169 Equals
4170 -------------------------------------------------------------------------------
4171 Matchers.tests.cpp:<line number>
4172 ...............................................................................
4173
4174 Matchers.tests.cpp:<line number>: PASSED:
4175 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) )
4176 with expansion:
4177 "this string contains 'abc' as a substring" equals: "this string contains
4178 'abc' as a substring"
4179
4180 Matchers.tests.cpp:<line number>: PASSED:
4181 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) )
4182 with expansion:
4183 "this string contains 'abc' as a substring" equals: "this string contains
4184 'abc' as a substring" (case insensitive)
4185
4186 -------------------------------------------------------------------------------
4187 Equals string matcher
4188 -------------------------------------------------------------------------------
4189 Matchers.tests.cpp:<line number>
4190 ...............................................................................
4191
4192 Matchers.tests.cpp:<line number>: FAILED:
4193 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) )
4194 with expansion:
4195 "this string contains 'abc' as a substring" equals: "this string contains
4196 'ABC' as a substring"
4197
4198 Matchers.tests.cpp:<line number>: FAILED:
4199 CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) )
4200 with expansion:
4201 "this string contains 'abc' as a substring" equals: "something else" (case
4202 insensitive)
4203
4204 -------------------------------------------------------------------------------
4205 Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
4206 -------------------------------------------------------------------------------
4207 ToStringGeneral.tests.cpp:<line number>
4208 ...............................................................................
4209
4210 ToStringGeneral.tests.cpp:<line number>: PASSED:
4211 REQUIRE( ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" )
4212 with expansion:
4213 "This exception has overridden what() method"
4214 ==
4215 "This exception has overridden what() method"
4216
4217 ToStringGeneral.tests.cpp:<line number>: PASSED:
4218 REQUIRE( ::Catch::Detail::stringify(OperatorException{}) == "OperatorException" )
4219 with expansion:
4220 "OperatorException" == "OperatorException"
4221
4222 ToStringGeneral.tests.cpp:<line number>: PASSED:
4223 REQUIRE( ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" )
4224 with expansion:
4225 "StringMakerException"
4226 ==
4227 "StringMakerException"
4228
4229 -------------------------------------------------------------------------------
4230 Exception matchers that fail
4231 No exception
4232 -------------------------------------------------------------------------------
4233 Matchers.tests.cpp:<line number>
4234 ...............................................................................
4235
4236 Matchers.tests.cpp:<line number>: FAILED:
4237 CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
4238 because no exception was thrown where one was expected:
4239
4240 Matchers.tests.cpp:<line number>: FAILED:
4241 REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
4242 because no exception was thrown where one was expected:
4243
4244 -------------------------------------------------------------------------------
4245 Exception matchers that fail
4246 Type mismatch
4247 -------------------------------------------------------------------------------
4248 Matchers.tests.cpp:<line number>
4249 ...............................................................................
4250
4251 Matchers.tests.cpp:<line number>: FAILED:
4252 CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4253 due to unexpected exception with message:
4254 Unknown exception
4255
4256 Matchers.tests.cpp:<line number>: FAILED:
4257 REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4258 due to unexpected exception with message:
4259 Unknown exception
4260
4261 -------------------------------------------------------------------------------
4262 Exception matchers that fail
4263 Contents are wrong
4264 -------------------------------------------------------------------------------
4265 Matchers.tests.cpp:<line number>
4266 ...............................................................................
4267
4268 Matchers.tests.cpp:<line number>: FAILED:
4269 CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } )
4270 with expansion:
4271 SpecialException::what special exception has value of 1
4272
4273 Matchers.tests.cpp:<line number>: FAILED:
4274 REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } )
4275 with expansion:
4276 SpecialException::what special exception has value of 1
4277
4278 -------------------------------------------------------------------------------
4279 Exception matchers that succeed
4280 -------------------------------------------------------------------------------
4281 Matchers.tests.cpp:<line number>
4282 ...............................................................................
4283
4284 Matchers.tests.cpp:<line number>: PASSED:
4285 CHECK_THROWS_MATCHES( throwsSpecialException( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4286 with expansion:
4287 SpecialException::what special exception has value of 1
4288
4289 Matchers.tests.cpp:<line number>: PASSED:
4290 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, ExceptionMatcher{ 2 } )
4291 with expansion:
4292 SpecialException::what special exception has value of 2
4293
4294 -------------------------------------------------------------------------------
4295 Exception message can be matched
4296 -------------------------------------------------------------------------------
4297 Matchers.tests.cpp:<line number>
4298 ...............................................................................
4299
4300 Matchers.tests.cpp:<line number>: PASSED:
4301 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( StartsWith( "Derived" ) ) )
4302 with expansion:
4303 DerivedException::what matches "starts with: "Derived""
4304
4305 Matchers.tests.cpp:<line number>: PASSED:
4306 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( EndsWith( "::what" ) ) )
4307 with expansion:
4308 DerivedException::what matches "ends with: "::what""
4309
4310 Matchers.tests.cpp:<line number>: PASSED:
4311 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( !StartsWith( "::what" ) ) )
4312 with expansion:
4313 DerivedException::what matches "not starts with: "::what""
4314
4315 Matchers.tests.cpp:<line number>: PASSED:
4316 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, MessageMatches( StartsWith( "Special" ) ) )
4317 with expansion:
4318 SpecialException::what matches "starts with: "Special""
4319
4320 -------------------------------------------------------------------------------
4321 Exception messages can be tested for
4322 exact match
4323 -------------------------------------------------------------------------------
4324 Exception.tests.cpp:<line number>
4325 ...............................................................................
4326
4327 Exception.tests.cpp:<line number>: PASSED:
4328 REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
4329 with expansion:
4330 "expected exception" equals: "expected exception"
4331
4332 -------------------------------------------------------------------------------
4333 Exception messages can be tested for
4334 different case
4335 -------------------------------------------------------------------------------
4336 Exception.tests.cpp:<line number>
4337 ...............................................................................
4338
4339 Exception.tests.cpp:<line number>: PASSED:
4340 REQUIRE_THROWS_WITH( thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) )
4341 with expansion:
4342 "expected exception" equals: "expected exception" (case insensitive)
4343
4344 -------------------------------------------------------------------------------
4345 Exception messages can be tested for
4346 wildcarded
4347 -------------------------------------------------------------------------------
4348 Exception.tests.cpp:<line number>
4349 ...............................................................................
4350
4351 Exception.tests.cpp:<line number>: PASSED:
4352 REQUIRE_THROWS_WITH( thisThrows(), StartsWith( "expected" ) )
4353 with expansion:
4354 "expected exception" starts with: "expected"
4355
4356 Exception.tests.cpp:<line number>: PASSED:
4357 REQUIRE_THROWS_WITH( thisThrows(), EndsWith( "exception" ) )
4358 with expansion:
4359 "expected exception" ends with: "exception"
4360
4361 Exception.tests.cpp:<line number>: PASSED:
4362 REQUIRE_THROWS_WITH( thisThrows(), ContainsSubstring( "except" ) )
4363 with expansion:
4364 "expected exception" contains: "except"
4365
4366 Exception.tests.cpp:<line number>: PASSED:
4367 REQUIRE_THROWS_WITH( thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) )
4368 with expansion:
4369 "expected exception" contains: "except" (case insensitive)
4370
4371 -------------------------------------------------------------------------------
4372 Exceptions matchers
4373 -------------------------------------------------------------------------------
4374 Matchers.tests.cpp:<line number>
4375 ...............................................................................
4376
4377 Matchers.tests.cpp:<line number>: PASSED:
4378 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) )
4379 with expansion:
4380 DerivedException::what exception message matches "DerivedException::what"
4381
4382 Matchers.tests.cpp:<line number>: PASSED:
4383 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) )
4384 with expansion:
4385 DerivedException::what not exception message matches "derivedexception::what"
4386
4387 Matchers.tests.cpp:<line number>: PASSED:
4388 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) )
4389 with expansion:
4390 SpecialException::what not exception message matches "DerivedException::what"
4391
4392 Matchers.tests.cpp:<line number>: PASSED:
4393 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, Message( "SpecialException::what" ) )
4394 with expansion:
4395 SpecialException::what exception message matches "SpecialException::what"
4396
4397 -------------------------------------------------------------------------------
4398 Expected exceptions that don't throw or unexpected exceptions fail the test
4399 -------------------------------------------------------------------------------
4400 Exception.tests.cpp:<line number>
4401 ...............................................................................
4402
4403 Exception.tests.cpp:<line number>: FAILED:
4404 CHECK_THROWS_AS( thisThrows(), std::string )
4405 due to unexpected exception with message:
4406 expected exception
4407
4408 Exception.tests.cpp:<line number>: FAILED:
4409 CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error )
4410 because no exception was thrown where one was expected:
4411
4412 Exception.tests.cpp:<line number>: FAILED:
4413 CHECK_NOTHROW( thisThrows() )
4414 due to unexpected exception with message:
4415 expected exception
4416
4417 -------------------------------------------------------------------------------
4418 FAIL aborts the test
4419 -------------------------------------------------------------------------------
4420 Message.tests.cpp:<line number>
4421 ...............................................................................
4422
4423 Message.tests.cpp:<line number>: FAILED:
4424 explicitly with message:
4425 This is a failure
4426
4427 -------------------------------------------------------------------------------
4428 FAIL does not require an argument
4429 -------------------------------------------------------------------------------
4430 Message.tests.cpp:<line number>
4431 ...............................................................................
4432
4433 Message.tests.cpp:<line number>: FAILED:
4434
4435 -------------------------------------------------------------------------------
4436 FAIL_CHECK does not abort the test
4437 -------------------------------------------------------------------------------
4438 Message.tests.cpp:<line number>
4439 ...............................................................................
4440
4441 Message.tests.cpp:<line number>: FAILED:
4442 explicitly with message:
4443 This is a failure
4444
4445 Message.tests.cpp:<line number>: warning:
4446 This message appears in the output
4447
4448 -------------------------------------------------------------------------------
4449 Factorials are computed
4450 -------------------------------------------------------------------------------
4451 Misc.tests.cpp:<line number>
4452 ...............................................................................
4453
4454 Misc.tests.cpp:<line number>: PASSED:
4455 REQUIRE( Factorial(0) == 1 )
4456 with expansion:
4457 1 == 1
4458
4459 Misc.tests.cpp:<line number>: PASSED:
4460 REQUIRE( Factorial(1) == 1 )
4461 with expansion:
4462 1 == 1
4463
4464 Misc.tests.cpp:<line number>: PASSED:
4465 REQUIRE( Factorial(2) == 2 )
4466 with expansion:
4467 2 == 2
4468
4469 Misc.tests.cpp:<line number>: PASSED:
4470 REQUIRE( Factorial(3) == 6 )
4471 with expansion:
4472 6 == 6
4473
4474 Misc.tests.cpp:<line number>: PASSED:
4475 REQUIRE( Factorial(10) == 3628800 )
4476 with expansion:
4477 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
4478
4479 -------------------------------------------------------------------------------
4480 Filter generator throws exception for empty generator
4481 -------------------------------------------------------------------------------
4482 GeneratorsImpl.tests.cpp:<line number>
4483 ...............................................................................
4484
4485 GeneratorsImpl.tests.cpp:<line number>: PASSED:
4486 REQUIRE_THROWS_AS( filter( []( int ) { return false; }, value( 3 ) ), Catch::GeneratorException )
4487
4488 -------------------------------------------------------------------------------
4489 Floating point matchers: double
4490 Relative
4491 -------------------------------------------------------------------------------
4492 Matchers.tests.cpp:<line number>
4493 ...............................................................................
4494
4495 Matchers.tests.cpp:<line number>: PASSED:
4496 REQUIRE_THAT( 10., WithinRel( 11.1, 0.1 ) )
4497 with expansion:
4498 10.0 and 11.1 are within 10% of each other
4499
4500 Matchers.tests.cpp:<line number>: PASSED:
4501 REQUIRE_THAT( 10., !WithinRel( 11.2, 0.1 ) )
4502 with expansion:
4503 10.0 not and 11.2 are within 10% of each other
4504
4505 Matchers.tests.cpp:<line number>: PASSED:
4506 REQUIRE_THAT( 1., !WithinRel( 0., 0.99 ) )
4507 with expansion:
4508 1.0 not and 0 are within 99% of each other
4509
4510 Matchers.tests.cpp:<line number>: PASSED:
4511 REQUIRE_THAT( -0., WithinRel( 0. ) )
4512 with expansion:
4513 -0.0 and 0 are within 2.22045e-12% of each other
4514
4515 -------------------------------------------------------------------------------
4516 Floating point matchers: double
4517 Relative
4518 Some subnormal values
4519 -------------------------------------------------------------------------------
4520 Matchers.tests.cpp:<line number>
4521 ...............................................................................
4522
4523 Matchers.tests.cpp:<line number>: PASSED:
4524 REQUIRE_THAT( v1, WithinRel( v2 ) )
4525 with expansion:
4526 0.0 and 2.22507e-308 are within 2.22045e-12% of each other
4527
4528 -------------------------------------------------------------------------------
4529 Floating point matchers: double
4530 Margin
4531 -------------------------------------------------------------------------------
4532 Matchers.tests.cpp:<line number>
4533 ...............................................................................
4534
4535 Matchers.tests.cpp:<line number>: PASSED:
4536 REQUIRE_THAT( 1., WithinAbs( 1., 0 ) )
4537 with expansion:
4538 1.0 is within 0.0 of 1.0
4539
4540 Matchers.tests.cpp:<line number>: PASSED:
4541 REQUIRE_THAT( 0., WithinAbs( 1., 1 ) )
4542 with expansion:
4543 0.0 is within 1.0 of 1.0
4544
4545 Matchers.tests.cpp:<line number>: PASSED:
4546 REQUIRE_THAT( 0., !WithinAbs( 1., 0.99 ) )
4547 with expansion:
4548 0.0 not is within 0.99 of 1.0
4549
4550 Matchers.tests.cpp:<line number>: PASSED:
4551 REQUIRE_THAT( 0., !WithinAbs( 1., 0.99 ) )
4552 with expansion:
4553 0.0 not is within 0.99 of 1.0
4554
4555 Matchers.tests.cpp:<line number>: PASSED:
4556 REQUIRE_THAT( 11., !WithinAbs( 10., 0.5 ) )
4557 with expansion:
4558 11.0 not is within 0.5 of 10.0
4559
4560 Matchers.tests.cpp:<line number>: PASSED:
4561 REQUIRE_THAT( 10., !WithinAbs( 11., 0.5 ) )
4562 with expansion:
4563 10.0 not is within 0.5 of 11.0
4564
4565 Matchers.tests.cpp:<line number>: PASSED:
4566 REQUIRE_THAT( -10., WithinAbs( -10., 0.5 ) )
4567 with expansion:
4568 -10.0 is within 0.5 of -10.0
4569
4570 Matchers.tests.cpp:<line number>: PASSED:
4571 REQUIRE_THAT( -10., WithinAbs( -9.6, 0.5 ) )
4572 with expansion:
4573 -10.0 is within 0.5 of -9.6
4574
4575 -------------------------------------------------------------------------------
4576 Floating point matchers: double
4577 ULPs
4578 -------------------------------------------------------------------------------
4579 Matchers.tests.cpp:<line number>
4580 ...............................................................................
4581
4582 Matchers.tests.cpp:<line number>: PASSED:
4583 REQUIRE_THAT( 1., WithinULP( 1., 0 ) )
4584 with expansion:
4585 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
4586 0000000000000000e+00])
4587
4588 Matchers.tests.cpp:<line number>: PASSED:
4589 REQUIRE_THAT( nextafter( 1., 2. ), WithinULP( 1., 1 ) )
4590 with expansion:
4591 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.
4592 0000000000000002e+00])
4593
4594 Matchers.tests.cpp:<line number>: PASSED:
4595 REQUIRE_THAT( 0., WithinULP( nextafter( 0., 1. ), 1 ) )
4596 with expansion:
4597 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.
4598 8813129168249309e-324])
4599
4600 Matchers.tests.cpp:<line number>: PASSED:
4601 REQUIRE_THAT( 1., WithinULP( nextafter( 1., 0. ), 1 ) )
4602 with expansion:
4603 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.
4604 0000000000000000e+00])
4605
4606 Matchers.tests.cpp:<line number>: PASSED:
4607 REQUIRE_THAT( 1., !WithinULP( nextafter( 1., 2. ), 0 ) )
4608 with expansion:
4609 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00,
4610 1.0000000000000002e+00])
4611
4612 Matchers.tests.cpp:<line number>: PASSED:
4613 REQUIRE_THAT( 1., WithinULP( 1., 0 ) )
4614 with expansion:
4615 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
4616 0000000000000000e+00])
4617
4618 Matchers.tests.cpp:<line number>: PASSED:
4619 REQUIRE_THAT( -0., WithinULP( 0., 0 ) )
4620 with expansion:
4621 -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.
4622 0000000000000000e+00])
4623
4624 -------------------------------------------------------------------------------
4625 Floating point matchers: double
4626 Composed
4627 -------------------------------------------------------------------------------
4628 Matchers.tests.cpp:<line number>
4629 ...............................................................................
4630
4631 Matchers.tests.cpp:<line number>: PASSED:
4632 REQUIRE_THAT( 1., WithinAbs( 1., 0.5 ) || WithinULP( 2., 1 ) )
4633 with expansion:
4634 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.
4635 9999999999999998e+00, 2.0000000000000004e+00]) )
4636
4637 Matchers.tests.cpp:<line number>: PASSED:
4638 REQUIRE_THAT( 1., WithinAbs( 2., 0.5 ) || WithinULP( 1., 0 ) )
4639 with expansion:
4640 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.
4641 0000000000000000e+00, 1.0000000000000000e+00]) )
4642
4643 Matchers.tests.cpp:<line number>: PASSED:
4644 REQUIRE_THAT( 0.0001, WithinAbs( 0., 0.001 ) || WithinRel( 0., 0.1 ) )
4645 with expansion:
4646 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
4647
4648 -------------------------------------------------------------------------------
4649 Floating point matchers: double
4650 Constructor validation
4651 -------------------------------------------------------------------------------
4652 Matchers.tests.cpp:<line number>
4653 ...............................................................................
4654
4655 Matchers.tests.cpp:<line number>: PASSED:
4656 REQUIRE_NOTHROW( WithinAbs( 1., 0. ) )
4657
4658 Matchers.tests.cpp:<line number>: PASSED:
4659 REQUIRE_THROWS_AS( WithinAbs( 1., -1. ), std::domain_error )
4660
4661 Matchers.tests.cpp:<line number>: PASSED:
4662 REQUIRE_NOTHROW( WithinULP( 1., 0 ) )
4663
4664 Matchers.tests.cpp:<line number>: PASSED:
4665 REQUIRE_NOTHROW( WithinRel( 1., 0. ) )
4666
4667 Matchers.tests.cpp:<line number>: PASSED:
4668 REQUIRE_THROWS_AS( WithinRel( 1., -0.2 ), std::domain_error )
4669
4670 Matchers.tests.cpp:<line number>: PASSED:
4671 REQUIRE_THROWS_AS( WithinRel( 1., 1. ), std::domain_error )
4672
4673 -------------------------------------------------------------------------------
4674 Floating point matchers: double
4675 IsNaN
4676 -------------------------------------------------------------------------------
4677 Matchers.tests.cpp:<line number>
4678 ...............................................................................
4679
4680 Matchers.tests.cpp:<line number>: PASSED:
4681 REQUIRE_THAT( 1., !IsNaN() )
4682 with expansion:
4683 1.0 not is NaN
4684
4685 -------------------------------------------------------------------------------
4686 Floating point matchers: float
4687 Relative
4688 -------------------------------------------------------------------------------
4689 Matchers.tests.cpp:<line number>
4690 ...............................................................................
4691
4692 Matchers.tests.cpp:<line number>: PASSED:
4693 REQUIRE_THAT( 10.f, WithinRel( 11.1f, 0.1f ) )
4694 with expansion:
4695 10.0f and 11.1 are within 10% of each other
4696
4697 Matchers.tests.cpp:<line number>: PASSED:
4698 REQUIRE_THAT( 10.f, !WithinRel( 11.2f, 0.1f ) )
4699 with expansion:
4700 10.0f not and 11.2 are within 10% of each other
4701
4702 Matchers.tests.cpp:<line number>: PASSED:
4703 REQUIRE_THAT( 1.f, !WithinRel( 0.f, 0.99f ) )
4704 with expansion:
4705 1.0f not and 0 are within 99% of each other
4706
4707 Matchers.tests.cpp:<line number>: PASSED:
4708 REQUIRE_THAT( -0.f, WithinRel( 0.f ) )
4709 with expansion:
4710 -0.0f and 0 are within 0.00119209% of each other
4711
4712 -------------------------------------------------------------------------------
4713 Floating point matchers: float
4714 Relative
4715 Some subnormal values
4716 -------------------------------------------------------------------------------
4717 Matchers.tests.cpp:<line number>
4718 ...............................................................................
4719
4720 Matchers.tests.cpp:<line number>: PASSED:
4721 REQUIRE_THAT( v1, WithinRel( v2 ) )
4722 with expansion:
4723 0.0f and 1.17549e-38 are within 0.00119209% of each other
4724
4725 -------------------------------------------------------------------------------
4726 Floating point matchers: float
4727 Margin
4728 -------------------------------------------------------------------------------
4729 Matchers.tests.cpp:<line number>
4730 ...............................................................................
4731
4732 Matchers.tests.cpp:<line number>: PASSED:
4733 REQUIRE_THAT( 1.f, WithinAbs( 1.f, 0 ) )
4734 with expansion:
4735 1.0f is within 0.0 of 1.0
4736
4737 Matchers.tests.cpp:<line number>: PASSED:
4738 REQUIRE_THAT( 0.f, WithinAbs( 1.f, 1 ) )
4739 with expansion:
4740 0.0f is within 1.0 of 1.0
4741
4742 Matchers.tests.cpp:<line number>: PASSED:
4743 REQUIRE_THAT( 0.f, !WithinAbs( 1.f, 0.99f ) )
4744 with expansion:
4745 0.0f not is within 0.9900000095 of 1.0
4746
4747 Matchers.tests.cpp:<line number>: PASSED:
4748 REQUIRE_THAT( 0.f, !WithinAbs( 1.f, 0.99f ) )
4749 with expansion:
4750 0.0f not is within 0.9900000095 of 1.0
4751
4752 Matchers.tests.cpp:<line number>: PASSED:
4753 REQUIRE_THAT( 0.f, WithinAbs( -0.f, 0 ) )
4754 with expansion:
4755 0.0f is within 0.0 of -0.0
4756
4757 Matchers.tests.cpp:<line number>: PASSED:
4758 REQUIRE_THAT( 11.f, !WithinAbs( 10.f, 0.5f ) )
4759 with expansion:
4760 11.0f not is within 0.5 of 10.0
4761
4762 Matchers.tests.cpp:<line number>: PASSED:
4763 REQUIRE_THAT( 10.f, !WithinAbs( 11.f, 0.5f ) )
4764 with expansion:
4765 10.0f not is within 0.5 of 11.0
4766
4767 Matchers.tests.cpp:<line number>: PASSED:
4768 REQUIRE_THAT( -10.f, WithinAbs( -10.f, 0.5f ) )
4769 with expansion:
4770 -10.0f is within 0.5 of -10.0
4771
4772 Matchers.tests.cpp:<line number>: PASSED:
4773 REQUIRE_THAT( -10.f, WithinAbs( -9.6f, 0.5f ) )
4774 with expansion:
4775 -10.0f is within 0.5 of -9.6000003815
4776
4777 -------------------------------------------------------------------------------
4778 Floating point matchers: float
4779 ULPs
4780 -------------------------------------------------------------------------------
4781 Matchers.tests.cpp:<line number>
4782 ...............................................................................
4783
4784 Matchers.tests.cpp:<line number>: PASSED:
4785 REQUIRE_THAT( 1.f, WithinULP( 1.f, 0 ) )
4786 with expansion:
4787 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
4788
4789 Matchers.tests.cpp:<line number>: PASSED:
4790 REQUIRE_THAT( -1.f, WithinULP( -1.f, 0 ) )
4791 with expansion:
4792 -1.0f is within 0 ULPs of -1.00000000e+00f ([-1.00000000e+00, -1.00000000e+
4793 00])
4794
4795 Matchers.tests.cpp:<line number>: PASSED:
4796 REQUIRE_THAT( nextafter( 1.f, 2.f ), WithinULP( 1.f, 1 ) )
4797 with expansion:
4798 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00])
4799
4800 Matchers.tests.cpp:<line number>: PASSED:
4801 REQUIRE_THAT( 0.f, WithinULP( nextafter( 0.f, 1.f ), 1 ) )
4802 with expansion:
4803 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
4804
4805 Matchers.tests.cpp:<line number>: PASSED:
4806 REQUIRE_THAT( 1.f, WithinULP( nextafter( 1.f, 0.f ), 1 ) )
4807 with expansion:
4808 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
4809
4810 Matchers.tests.cpp:<line number>: PASSED:
4811 REQUIRE_THAT( 1.f, !WithinULP( nextafter( 1.f, 2.f ), 0 ) )
4812 with expansion:
4813 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+
4814 00])
4815
4816 Matchers.tests.cpp:<line number>: PASSED:
4817 REQUIRE_THAT( 1.f, WithinULP( 1.f, 0 ) )
4818 with expansion:
4819 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
4820
4821 Matchers.tests.cpp:<line number>: PASSED:
4822 REQUIRE_THAT( -0.f, WithinULP( 0.f, 0 ) )
4823 with expansion:
4824 -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
4825
4826 -------------------------------------------------------------------------------
4827 Floating point matchers: float
4828 Composed
4829 -------------------------------------------------------------------------------
4830 Matchers.tests.cpp:<line number>
4831 ...............................................................................
4832
4833 Matchers.tests.cpp:<line number>: PASSED:
4834 REQUIRE_THAT( 1.f, WithinAbs( 1.f, 0.5 ) || WithinULP( 1.f, 1 ) )
4835 with expansion:
4836 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.
4837 99999940e-01, 1.00000012e+00]) )
4838
4839 Matchers.tests.cpp:<line number>: PASSED:
4840 REQUIRE_THAT( 1.f, WithinAbs( 2.f, 0.5 ) || WithinULP( 1.f, 0 ) )
4841 with expansion:
4842 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.
4843 00000000e+00, 1.00000000e+00]) )
4844
4845 Matchers.tests.cpp:<line number>: PASSED:
4846 REQUIRE_THAT( 0.0001f, WithinAbs( 0.f, 0.001f ) || WithinRel( 0.f, 0.1f ) )
4847 with expansion:
4848 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
4849
4850 -------------------------------------------------------------------------------
4851 Floating point matchers: float
4852 Constructor validation
4853 -------------------------------------------------------------------------------
4854 Matchers.tests.cpp:<line number>
4855 ...............................................................................
4856
4857 Matchers.tests.cpp:<line number>: PASSED:
4858 REQUIRE_NOTHROW( WithinAbs( 1.f, 0.f ) )
4859
4860 Matchers.tests.cpp:<line number>: PASSED:
4861 REQUIRE_THROWS_AS( WithinAbs( 1.f, -1.f ), std::domain_error )
4862
4863 Matchers.tests.cpp:<line number>: PASSED:
4864 REQUIRE_NOTHROW( WithinULP( 1.f, 0 ) )
4865
4866 Matchers.tests.cpp:<line number>: PASSED:
4867 REQUIRE_THROWS_AS( WithinULP( 1.f, static_cast<uint64_t>( -1 ) ), std::domain_error )
4868
4869 Matchers.tests.cpp:<line number>: PASSED:
4870 REQUIRE_NOTHROW( WithinRel( 1.f, 0.f ) )
4871
4872 Matchers.tests.cpp:<line number>: PASSED:
4873 REQUIRE_THROWS_AS( WithinRel( 1.f, -0.2f ), std::domain_error )
4874
4875 Matchers.tests.cpp:<line number>: PASSED:
4876 REQUIRE_THROWS_AS( WithinRel( 1.f, 1.f ), std::domain_error )
4877
4878 -------------------------------------------------------------------------------
4879 Floating point matchers: float
4880 IsNaN
4881 -------------------------------------------------------------------------------
4882 Matchers.tests.cpp:<line number>
4883 ...............................................................................
4884
4885 Matchers.tests.cpp:<line number>: PASSED:
4886 REQUIRE_THAT( 1., !IsNaN() )
4887 with expansion:
4888 1.0 not is NaN
4889
4890 -------------------------------------------------------------------------------
4891 Generators -- adapters
4892 Filtering by predicate
4893 Basic usage
4894 -------------------------------------------------------------------------------
4895 Generators.tests.cpp:<line number>
4896 ...............................................................................
4897
4898 Generators.tests.cpp:<line number>: PASSED:
4899 REQUIRE( i % 2 == 0 )
4900 with expansion:
4901 0 == 0
4902
4903 -------------------------------------------------------------------------------
4904 Generators -- adapters
4905 Filtering by predicate
4906 Basic usage
4907 -------------------------------------------------------------------------------
4908 Generators.tests.cpp:<line number>
4909 ...............................................................................
4910
4911 Generators.tests.cpp:<line number>: PASSED:
4912 REQUIRE( i % 2 == 0 )
4913 with expansion:
4914 0 == 0
4915
4916 -------------------------------------------------------------------------------
4917 Generators -- adapters
4918 Filtering by predicate
4919 Basic usage
4920 -------------------------------------------------------------------------------
4921 Generators.tests.cpp:<line number>
4922 ...............................................................................
4923
4924 Generators.tests.cpp:<line number>: PASSED:
4925 REQUIRE( i % 2 == 0 )
4926 with expansion:
4927 0 == 0
4928
4929 -------------------------------------------------------------------------------
4930 Generators -- adapters
4931 Filtering by predicate
4932 Throws if there are no matching values
4933 -------------------------------------------------------------------------------
4934 Generators.tests.cpp:<line number>
4935 ...............................................................................
4936
4937 Generators.tests.cpp:<line number>: PASSED:
4938 REQUIRE_THROWS_AS( filter([] (int) {return false; }, value(1)), Catch::GeneratorException )
4939
4940 -------------------------------------------------------------------------------
4941 Generators -- adapters
4942 Shortening a range
4943 -------------------------------------------------------------------------------
4944 Generators.tests.cpp:<line number>
4945 ...............................................................................
4946
4947 Generators.tests.cpp:<line number>: PASSED:
4948 REQUIRE( i < 4 )
4949 with expansion:
4950 1 < 4
4951
4952 -------------------------------------------------------------------------------
4953 Generators -- adapters
4954 Shortening a range
4955 -------------------------------------------------------------------------------
4956 Generators.tests.cpp:<line number>
4957 ...............................................................................
4958
4959 Generators.tests.cpp:<line number>: PASSED:
4960 REQUIRE( i < 4 )
4961 with expansion:
4962 2 < 4
4963
4964 -------------------------------------------------------------------------------
4965 Generators -- adapters
4966 Shortening a range
4967 -------------------------------------------------------------------------------
4968 Generators.tests.cpp:<line number>
4969 ...............................................................................
4970
4971 Generators.tests.cpp:<line number>: PASSED:
4972 REQUIRE( i < 4 )
4973 with expansion:
4974 3 < 4
4975
4976 -------------------------------------------------------------------------------
4977 Generators -- adapters
4978 Transforming elements
4979 Same type
4980 -------------------------------------------------------------------------------
4981 Generators.tests.cpp:<line number>
4982 ...............................................................................
4983
4984 Generators.tests.cpp:<line number>: PASSED:
4985 REQUIRE( i % 2 == 0 )
4986 with expansion:
4987 0 == 0
4988
4989 -------------------------------------------------------------------------------
4990 Generators -- adapters
4991 Transforming elements
4992 Same type
4993 -------------------------------------------------------------------------------
4994 Generators.tests.cpp:<line number>
4995 ...............................................................................
4996
4997 Generators.tests.cpp:<line number>: PASSED:
4998 REQUIRE( i % 2 == 0 )
4999 with expansion:
5000 0 == 0
5001
5002 -------------------------------------------------------------------------------
5003 Generators -- adapters
5004 Transforming elements
5005 Same type
5006 -------------------------------------------------------------------------------
5007 Generators.tests.cpp:<line number>
5008 ...............................................................................
5009
5010 Generators.tests.cpp:<line number>: PASSED:
5011 REQUIRE( i % 2 == 0 )
5012 with expansion:
5013 0 == 0
5014
5015 -------------------------------------------------------------------------------
5016 Generators -- adapters
5017 Transforming elements
5018 Different type
5019 -------------------------------------------------------------------------------
5020 Generators.tests.cpp:<line number>
5021 ...............................................................................
5022
5023 Generators.tests.cpp:<line number>: PASSED:
5024 REQUIRE( i.size() == 1 )
5025 with expansion:
5026 1 == 1
5027
5028 -------------------------------------------------------------------------------
5029 Generators -- adapters
5030 Transforming elements
5031 Different type
5032 -------------------------------------------------------------------------------
5033 Generators.tests.cpp:<line number>
5034 ...............................................................................
5035
5036 Generators.tests.cpp:<line number>: PASSED:
5037 REQUIRE( i.size() == 1 )
5038 with expansion:
5039 1 == 1
5040
5041 -------------------------------------------------------------------------------
5042 Generators -- adapters
5043 Transforming elements
5044 Different type
5045 -------------------------------------------------------------------------------
5046 Generators.tests.cpp:<line number>
5047 ...............................................................................
5048
5049 Generators.tests.cpp:<line number>: PASSED:
5050 REQUIRE( i.size() == 1 )
5051 with expansion:
5052 1 == 1
5053
5054 -------------------------------------------------------------------------------
5055 Generators -- adapters
5056 Transforming elements
5057 Different deduced type
5058 -------------------------------------------------------------------------------
5059 Generators.tests.cpp:<line number>
5060 ...............................................................................
5061
5062 Generators.tests.cpp:<line number>: PASSED:
5063 REQUIRE( i.size() == 1 )
5064 with expansion:
5065 1 == 1
5066
5067 -------------------------------------------------------------------------------
5068 Generators -- adapters
5069 Transforming elements
5070 Different deduced type
5071 -------------------------------------------------------------------------------
5072 Generators.tests.cpp:<line number>
5073 ...............................................................................
5074
5075 Generators.tests.cpp:<line number>: PASSED:
5076 REQUIRE( i.size() == 1 )
5077 with expansion:
5078 1 == 1
5079
5080 -------------------------------------------------------------------------------
5081 Generators -- adapters
5082 Transforming elements
5083 Different deduced type
5084 -------------------------------------------------------------------------------
5085 Generators.tests.cpp:<line number>
5086 ...............................................................................
5087
5088 Generators.tests.cpp:<line number>: PASSED:
5089 REQUIRE( i.size() == 1 )
5090 with expansion:
5091 1 == 1
5092
5093 -------------------------------------------------------------------------------
5094 Generators -- adapters
5095 Repeating a generator
5096 -------------------------------------------------------------------------------
5097 Generators.tests.cpp:<line number>
5098 ...............................................................................
5099
5100 Generators.tests.cpp:<line number>: PASSED:
5101 REQUIRE( j > 0 )
5102 with expansion:
5103 1 > 0
5104
5105 -------------------------------------------------------------------------------
5106 Generators -- adapters
5107 Repeating a generator
5108 -------------------------------------------------------------------------------
5109 Generators.tests.cpp:<line number>
5110 ...............................................................................
5111
5112 Generators.tests.cpp:<line number>: PASSED:
5113 REQUIRE( j > 0 )
5114 with expansion:
5115 2 > 0
5116
5117 -------------------------------------------------------------------------------
5118 Generators -- adapters
5119 Repeating a generator
5120 -------------------------------------------------------------------------------
5121 Generators.tests.cpp:<line number>
5122 ...............................................................................
5123
5124 Generators.tests.cpp:<line number>: PASSED:
5125 REQUIRE( j > 0 )
5126 with expansion:
5127 3 > 0
5128
5129 -------------------------------------------------------------------------------
5130 Generators -- adapters
5131 Repeating a generator
5132 -------------------------------------------------------------------------------
5133 Generators.tests.cpp:<line number>
5134 ...............................................................................
5135
5136 Generators.tests.cpp:<line number>: PASSED:
5137 REQUIRE( j > 0 )
5138 with expansion:
5139 1 > 0
5140
5141 -------------------------------------------------------------------------------
5142 Generators -- adapters
5143 Repeating a generator
5144 -------------------------------------------------------------------------------
5145 Generators.tests.cpp:<line number>
5146 ...............................................................................
5147
5148 Generators.tests.cpp:<line number>: PASSED:
5149 REQUIRE( j > 0 )
5150 with expansion:
5151 2 > 0
5152
5153 -------------------------------------------------------------------------------
5154 Generators -- adapters
5155 Repeating a generator
5156 -------------------------------------------------------------------------------
5157 Generators.tests.cpp:<line number>
5158 ...............................................................................
5159
5160 Generators.tests.cpp:<line number>: PASSED:
5161 REQUIRE( j > 0 )
5162 with expansion:
5163 3 > 0
5164
5165 -------------------------------------------------------------------------------
5166 Generators -- adapters
5167 Chunking a generator into sized pieces
5168 Number of elements in source is divisible by chunk size
5169 -------------------------------------------------------------------------------
5170 Generators.tests.cpp:<line number>
5171 ...............................................................................
5172
5173 Generators.tests.cpp:<line number>: PASSED:
5174 REQUIRE( chunk2.size() == 2 )
5175 with expansion:
5176 2 == 2
5177
5178 Generators.tests.cpp:<line number>: PASSED:
5179 REQUIRE( chunk2.front() == chunk2.back() )
5180 with expansion:
5181 1 == 1
5182
5183 -------------------------------------------------------------------------------
5184 Generators -- adapters
5185 Chunking a generator into sized pieces
5186 Number of elements in source is divisible by chunk size
5187 -------------------------------------------------------------------------------
5188 Generators.tests.cpp:<line number>
5189 ...............................................................................
5190
5191 Generators.tests.cpp:<line number>: PASSED:
5192 REQUIRE( chunk2.size() == 2 )
5193 with expansion:
5194 2 == 2
5195
5196 Generators.tests.cpp:<line number>: PASSED:
5197 REQUIRE( chunk2.front() == chunk2.back() )
5198 with expansion:
5199 2 == 2
5200
5201 -------------------------------------------------------------------------------
5202 Generators -- adapters
5203 Chunking a generator into sized pieces
5204 Number of elements in source is divisible by chunk size
5205 -------------------------------------------------------------------------------
5206 Generators.tests.cpp:<line number>
5207 ...............................................................................
5208
5209 Generators.tests.cpp:<line number>: PASSED:
5210 REQUIRE( chunk2.size() == 2 )
5211 with expansion:
5212 2 == 2
5213
5214 Generators.tests.cpp:<line number>: PASSED:
5215 REQUIRE( chunk2.front() == chunk2.back() )
5216 with expansion:
5217 3 == 3
5218
5219 -------------------------------------------------------------------------------
5220 Generators -- adapters
5221 Chunking a generator into sized pieces
5222 Number of elements in source is not divisible by chunk size
5223 -------------------------------------------------------------------------------
5224 Generators.tests.cpp:<line number>
5225 ...............................................................................
5226
5227 Generators.tests.cpp:<line number>: PASSED:
5228 REQUIRE( chunk2.size() == 2 )
5229 with expansion:
5230 2 == 2
5231
5232 Generators.tests.cpp:<line number>: PASSED:
5233 REQUIRE( chunk2.front() == chunk2.back() )
5234 with expansion:
5235 1 == 1
5236
5237 Generators.tests.cpp:<line number>: PASSED:
5238 REQUIRE( chunk2.front() < 3 )
5239 with expansion:
5240 1 < 3
5241
5242 -------------------------------------------------------------------------------
5243 Generators -- adapters
5244 Chunking a generator into sized pieces
5245 Number of elements in source is not divisible by chunk size
5246 -------------------------------------------------------------------------------
5247 Generators.tests.cpp:<line number>
5248 ...............................................................................
5249
5250 Generators.tests.cpp:<line number>: PASSED:
5251 REQUIRE( chunk2.size() == 2 )
5252 with expansion:
5253 2 == 2
5254
5255 Generators.tests.cpp:<line number>: PASSED:
5256 REQUIRE( chunk2.front() == chunk2.back() )
5257 with expansion:
5258 2 == 2
5259
5260 Generators.tests.cpp:<line number>: PASSED:
5261 REQUIRE( chunk2.front() < 3 )
5262 with expansion:
5263 2 < 3
5264
5265 -------------------------------------------------------------------------------
5266 Generators -- adapters
5267 Chunking a generator into sized pieces
5268 Chunk size of zero
5269 -------------------------------------------------------------------------------
5270 Generators.tests.cpp:<line number>
5271 ...............................................................................
5272
5273 Generators.tests.cpp:<line number>: PASSED:
5274 REQUIRE( chunk2.size() == 0 )
5275 with expansion:
5276 0 == 0
5277
5278 -------------------------------------------------------------------------------
5279 Generators -- adapters
5280 Chunking a generator into sized pieces
5281 Chunk size of zero
5282 -------------------------------------------------------------------------------
5283 Generators.tests.cpp:<line number>
5284 ...............................................................................
5285
5286 Generators.tests.cpp:<line number>: PASSED:
5287 REQUIRE( chunk2.size() == 0 )
5288 with expansion:
5289 0 == 0
5290
5291 -------------------------------------------------------------------------------
5292 Generators -- adapters
5293 Chunking a generator into sized pieces
5294 Chunk size of zero
5295 -------------------------------------------------------------------------------
5296 Generators.tests.cpp:<line number>
5297 ...............................................................................
5298
5299 Generators.tests.cpp:<line number>: PASSED:
5300 REQUIRE( chunk2.size() == 0 )
5301 with expansion:
5302 0 == 0
5303
5304 -------------------------------------------------------------------------------
5305 Generators -- adapters
5306 Chunking a generator into sized pieces
5307 Throws on too small generators
5308 -------------------------------------------------------------------------------
5309 Generators.tests.cpp:<line number>
5310 ...............................................................................
5311
5312 Generators.tests.cpp:<line number>: PASSED:
5313 REQUIRE_THROWS_AS( chunk(2, value(1)), Catch::GeneratorException )
5314
5315 -------------------------------------------------------------------------------
5316 Generators -- simple
5317 one
5318 -------------------------------------------------------------------------------
5319 Generators.tests.cpp:<line number>
5320 ...............................................................................
5321
5322 Generators.tests.cpp:<line number>: PASSED:
5323 REQUIRE( j < i )
5324 with expansion:
5325 -3 < 1
5326
5327 -------------------------------------------------------------------------------
5328 Generators -- simple
5329 one
5330 -------------------------------------------------------------------------------
5331 Generators.tests.cpp:<line number>
5332 ...............................................................................
5333
5334 Generators.tests.cpp:<line number>: PASSED:
5335 REQUIRE( j < i )
5336 with expansion:
5337 -2 < 1
5338
5339 -------------------------------------------------------------------------------
5340 Generators -- simple
5341 one
5342 -------------------------------------------------------------------------------
5343 Generators.tests.cpp:<line number>
5344 ...............................................................................
5345
5346 Generators.tests.cpp:<line number>: PASSED:
5347 REQUIRE( j < i )
5348 with expansion:
5349 -1 < 1
5350
5351 -------------------------------------------------------------------------------
5352 Generators -- simple
5353 two
5354 -------------------------------------------------------------------------------
5355 Generators.tests.cpp:<line number>
5356 ...............................................................................
5357
5358 Generators.tests.cpp:<line number>: PASSED:
5359 REQUIRE( 4u * i > str.size() )
5360 with expansion:
5361 4 > 1
5362
5363 -------------------------------------------------------------------------------
5364 Generators -- simple
5365 two
5366 -------------------------------------------------------------------------------
5367 Generators.tests.cpp:<line number>
5368 ...............................................................................
5369
5370 Generators.tests.cpp:<line number>: PASSED:
5371 REQUIRE( 4u * i > str.size() )
5372 with expansion:
5373 4 > 2
5374
5375 -------------------------------------------------------------------------------
5376 Generators -- simple
5377 two
5378 -------------------------------------------------------------------------------
5379 Generators.tests.cpp:<line number>
5380 ...............................................................................
5381
5382 Generators.tests.cpp:<line number>: PASSED:
5383 REQUIRE( 4u * i > str.size() )
5384 with expansion:
5385 4 > 3
5386
5387 -------------------------------------------------------------------------------
5388 Generators -- simple
5389 one
5390 -------------------------------------------------------------------------------
5391 Generators.tests.cpp:<line number>
5392 ...............................................................................
5393
5394 Generators.tests.cpp:<line number>: PASSED:
5395 REQUIRE( j < i )
5396 with expansion:
5397 -3 < 2
5398
5399 -------------------------------------------------------------------------------
5400 Generators -- simple
5401 one
5402 -------------------------------------------------------------------------------
5403 Generators.tests.cpp:<line number>
5404 ...............................................................................
5405
5406 Generators.tests.cpp:<line number>: PASSED:
5407 REQUIRE( j < i )
5408 with expansion:
5409 -2 < 2
5410
5411 -------------------------------------------------------------------------------
5412 Generators -- simple
5413 one
5414 -------------------------------------------------------------------------------
5415 Generators.tests.cpp:<line number>
5416 ...............................................................................
5417
5418 Generators.tests.cpp:<line number>: PASSED:
5419 REQUIRE( j < i )
5420 with expansion:
5421 -1 < 2
5422
5423 -------------------------------------------------------------------------------
5424 Generators -- simple
5425 two
5426 -------------------------------------------------------------------------------
5427 Generators.tests.cpp:<line number>
5428 ...............................................................................
5429
5430 Generators.tests.cpp:<line number>: PASSED:
5431 REQUIRE( 4u * i > str.size() )
5432 with expansion:
5433 8 > 1
5434
5435 -------------------------------------------------------------------------------
5436 Generators -- simple
5437 two
5438 -------------------------------------------------------------------------------
5439 Generators.tests.cpp:<line number>
5440 ...............................................................................
5441
5442 Generators.tests.cpp:<line number>: PASSED:
5443 REQUIRE( 4u * i > str.size() )
5444 with expansion:
5445 8 > 2
5446
5447 -------------------------------------------------------------------------------
5448 Generators -- simple
5449 two
5450 -------------------------------------------------------------------------------
5451 Generators.tests.cpp:<line number>
5452 ...............................................................................
5453
5454 Generators.tests.cpp:<line number>: PASSED:
5455 REQUIRE( 4u * i > str.size() )
5456 with expansion:
5457 8 > 3
5458
5459 -------------------------------------------------------------------------------
5460 Generators -- simple
5461 one
5462 -------------------------------------------------------------------------------
5463 Generators.tests.cpp:<line number>
5464 ...............................................................................
5465
5466 Generators.tests.cpp:<line number>: PASSED:
5467 REQUIRE( j < i )
5468 with expansion:
5469 -3 < 3
5470
5471 -------------------------------------------------------------------------------
5472 Generators -- simple
5473 one
5474 -------------------------------------------------------------------------------
5475 Generators.tests.cpp:<line number>
5476 ...............................................................................
5477
5478 Generators.tests.cpp:<line number>: PASSED:
5479 REQUIRE( j < i )
5480 with expansion:
5481 -2 < 3
5482
5483 -------------------------------------------------------------------------------
5484 Generators -- simple
5485 one
5486 -------------------------------------------------------------------------------
5487 Generators.tests.cpp:<line number>
5488 ...............................................................................
5489
5490 Generators.tests.cpp:<line number>: PASSED:
5491 REQUIRE( j < i )
5492 with expansion:
5493 -1 < 3
5494
5495 -------------------------------------------------------------------------------
5496 Generators -- simple
5497 two
5498 -------------------------------------------------------------------------------
5499 Generators.tests.cpp:<line number>
5500 ...............................................................................
5501
5502 Generators.tests.cpp:<line number>: PASSED:
5503 REQUIRE( 4u * i > str.size() )
5504 with expansion:
5505 12 > 1
5506
5507 -------------------------------------------------------------------------------
5508 Generators -- simple
5509 two
5510 -------------------------------------------------------------------------------
5511 Generators.tests.cpp:<line number>
5512 ...............................................................................
5513
5514 Generators.tests.cpp:<line number>: PASSED:
5515 REQUIRE( 4u * i > str.size() )
5516 with expansion:
5517 12 > 2
5518
5519 -------------------------------------------------------------------------------
5520 Generators -- simple
5521 two
5522 -------------------------------------------------------------------------------
5523 Generators.tests.cpp:<line number>
5524 ...............................................................................
5525
5526 Generators.tests.cpp:<line number>: PASSED:
5527 REQUIRE( 4u * i > str.size() )
5528 with expansion:
5529 12 > 3
5530
5531 -------------------------------------------------------------------------------
5532 Generators internals
5533 Single value
5534 -------------------------------------------------------------------------------
5535 GeneratorsImpl.tests.cpp:<line number>
5536 ...............................................................................
5537
5538 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5539 REQUIRE( gen.get() == 123 )
5540 with expansion:
5541 123 == 123
5542
5543 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5544 REQUIRE_FALSE( gen.next() )
5545 with expansion:
5546 !false
5547
5548 -------------------------------------------------------------------------------
5549 Generators internals
5550 Preset values
5551 -------------------------------------------------------------------------------
5552 GeneratorsImpl.tests.cpp:<line number>
5553 ...............................................................................
5554
5555 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5556 REQUIRE( gen.get() == 1 )
5557 with expansion:
5558 1 == 1
5559
5560 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5561 REQUIRE( gen.next() )
5562 with expansion:
5563 true
5564
5565 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5566 REQUIRE( gen.get() == 3 )
5567 with expansion:
5568 3 == 3
5569
5570 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5571 REQUIRE( gen.next() )
5572 with expansion:
5573 true
5574
5575 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5576 REQUIRE( gen.get() == 5 )
5577 with expansion:
5578 5 == 5
5579
5580 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5581 REQUIRE_FALSE( gen.next() )
5582 with expansion:
5583 !false
5584
5585 -------------------------------------------------------------------------------
5586 Generators internals
5587 Generator combinator
5588 -------------------------------------------------------------------------------
5589 GeneratorsImpl.tests.cpp:<line number>
5590 ...............................................................................
5591
5592 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5593 REQUIRE( gen.get() == 1 )
5594 with expansion:
5595 1 == 1
5596
5597 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5598 REQUIRE( gen.next() )
5599 with expansion:
5600 true
5601
5602 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5603 REQUIRE( gen.get() == 5 )
5604 with expansion:
5605 5 == 5
5606
5607 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5608 REQUIRE( gen.next() )
5609 with expansion:
5610 true
5611
5612 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5613 REQUIRE( gen.get() == 2 )
5614 with expansion:
5615 2 == 2
5616
5617 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5618 REQUIRE( gen.next() )
5619 with expansion:
5620 true
5621
5622 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5623 REQUIRE( gen.get() == 4 )
5624 with expansion:
5625 4 == 4
5626
5627 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5628 REQUIRE( gen.next() )
5629 with expansion:
5630 true
5631
5632 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5633 REQUIRE( gen.get() == 0 )
5634 with expansion:
5635 0 == 0
5636
5637 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5638 REQUIRE_FALSE( gen.next() )
5639 with expansion:
5640 !false
5641
5642 -------------------------------------------------------------------------------
5643 Generators internals
5644 Explicitly typed generator sequence
5645 -------------------------------------------------------------------------------
5646 GeneratorsImpl.tests.cpp:<line number>
5647 ...............................................................................
5648
5649 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5650 REQUIRE( gen.get().size() == 2 )
5651 with expansion:
5652 2 == 2
5653
5654 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5655 REQUIRE( gen.get() == "aa" )
5656 with expansion:
5657 "aa" == "aa"
5658
5659 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5660 REQUIRE( gen.next() )
5661 with expansion:
5662 true
5663
5664 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5665 REQUIRE( gen.get() == "bb" )
5666 with expansion:
5667 "bb" == "bb"
5668
5669 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5670 REQUIRE( gen.next() )
5671 with expansion:
5672 true
5673
5674 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5675 REQUIRE( gen.get() == "cc" )
5676 with expansion:
5677 "cc" == "cc"
5678
5679 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5680 REQUIRE_FALSE( gen.next() )
5681 with expansion:
5682 !false
5683
5684 -------------------------------------------------------------------------------
5685 Generators internals
5686 Filter generator
5687 Simple filtering
5688 -------------------------------------------------------------------------------
5689 GeneratorsImpl.tests.cpp:<line number>
5690 ...............................................................................
5691
5692 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5693 REQUIRE( gen.get() == 1 )
5694 with expansion:
5695 1 == 1
5696
5697 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5698 REQUIRE( gen.next() )
5699 with expansion:
5700 true
5701
5702 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5703 REQUIRE( gen.get() == 3 )
5704 with expansion:
5705 3 == 3
5706
5707 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5708 REQUIRE_FALSE( gen.next() )
5709 with expansion:
5710 !false
5711
5712 -------------------------------------------------------------------------------
5713 Generators internals
5714 Filter generator
5715 Filter out multiple elements at the start and end
5716 -------------------------------------------------------------------------------
5717 GeneratorsImpl.tests.cpp:<line number>
5718 ...............................................................................
5719
5720 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5721 REQUIRE( gen.get() == 1 )
5722 with expansion:
5723 1 == 1
5724
5725 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5726 REQUIRE( gen.next() )
5727 with expansion:
5728 true
5729
5730 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5731 REQUIRE( gen.get() == 3 )
5732 with expansion:
5733 3 == 3
5734
5735 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5736 REQUIRE_FALSE( gen.next() )
5737 with expansion:
5738 !false
5739
5740 -------------------------------------------------------------------------------
5741 Generators internals
5742 Filter generator
5743 Throws on construction if it can't get initial element
5744 -------------------------------------------------------------------------------
5745 GeneratorsImpl.tests.cpp:<line number>
5746 ...............................................................................
5747
5748 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5749 REQUIRE_THROWS_AS( filter([](int) { return false; }, value(1)), Catch::GeneratorException )
5750
5751 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5752 REQUIRE_THROWS_AS( filter([](int) { return false; }, values({ 1, 2, 3 })), Catch::GeneratorException )
5753
5754 -------------------------------------------------------------------------------
5755 Generators internals
5756 Take generator
5757 Take less
5758 -------------------------------------------------------------------------------
5759 GeneratorsImpl.tests.cpp:<line number>
5760 ...............................................................................
5761
5762 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5763 REQUIRE( gen.get() == 1 )
5764 with expansion:
5765 1 == 1
5766
5767 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5768 REQUIRE( gen.next() )
5769 with expansion:
5770 true
5771
5772 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5773 REQUIRE( gen.get() == 2 )
5774 with expansion:
5775 2 == 2
5776
5777 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5778 REQUIRE_FALSE( gen.next() )
5779 with expansion:
5780 !false
5781
5782 -------------------------------------------------------------------------------
5783 Generators internals
5784 Take generator
5785 Take more
5786 -------------------------------------------------------------------------------
5787 GeneratorsImpl.tests.cpp:<line number>
5788 ...............................................................................
5789
5790 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5791 REQUIRE( gen.get() == 1 )
5792 with expansion:
5793 1 == 1
5794
5795 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5796 REQUIRE_FALSE( gen.next() )
5797 with expansion:
5798 !false
5799
5800 -------------------------------------------------------------------------------
5801 Generators internals
5802 Map with explicit return type
5803 -------------------------------------------------------------------------------
5804 GeneratorsImpl.tests.cpp:<line number>
5805 ...............................................................................
5806
5807 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5808 REQUIRE( gen.get() == 2.0 )
5809 with expansion:
5810 2.0 == 2.0
5811
5812 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5813 REQUIRE( gen.next() )
5814 with expansion:
5815 true
5816
5817 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5818 REQUIRE( gen.get() == 4.0 )
5819 with expansion:
5820 4.0 == 4.0
5821
5822 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5823 REQUIRE( gen.next() )
5824 with expansion:
5825 true
5826
5827 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5828 REQUIRE( gen.get() == 6.0 )
5829 with expansion:
5830 6.0 == 6.0
5831
5832 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5833 REQUIRE_FALSE( gen.next() )
5834 with expansion:
5835 !false
5836
5837 -------------------------------------------------------------------------------
5838 Generators internals
5839 Map with deduced return type
5840 -------------------------------------------------------------------------------
5841 GeneratorsImpl.tests.cpp:<line number>
5842 ...............................................................................
5843
5844 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5845 REQUIRE( gen.get() == 2.0 )
5846 with expansion:
5847 2.0 == 2.0
5848
5849 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5850 REQUIRE( gen.next() )
5851 with expansion:
5852 true
5853
5854 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5855 REQUIRE( gen.get() == 4.0 )
5856 with expansion:
5857 4.0 == 4.0
5858
5859 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5860 REQUIRE( gen.next() )
5861 with expansion:
5862 true
5863
5864 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5865 REQUIRE( gen.get() == 6.0 )
5866 with expansion:
5867 6.0 == 6.0
5868
5869 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5870 REQUIRE_FALSE( gen.next() )
5871 with expansion:
5872 !false
5873
5874 -------------------------------------------------------------------------------
5875 Generators internals
5876 Repeat
5877 Singular repeat
5878 -------------------------------------------------------------------------------
5879 GeneratorsImpl.tests.cpp:<line number>
5880 ...............................................................................
5881
5882 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5883 REQUIRE( gen.get() == 3 )
5884 with expansion:
5885 3 == 3
5886
5887 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5888 REQUIRE_FALSE( gen.next() )
5889 with expansion:
5890 !false
5891
5892 -------------------------------------------------------------------------------
5893 Generators internals
5894 Repeat
5895 Actual repeat
5896 -------------------------------------------------------------------------------
5897 GeneratorsImpl.tests.cpp:<line number>
5898 ...............................................................................
5899
5900 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5901 REQUIRE( gen.get() == 1 )
5902 with expansion:
5903 1 == 1
5904
5905 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5906 REQUIRE( gen.next() )
5907 with expansion:
5908 true
5909
5910 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5911 REQUIRE( gen.get() == 2 )
5912 with expansion:
5913 2 == 2
5914
5915 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5916 REQUIRE( gen.next() )
5917 with expansion:
5918 true
5919
5920 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5921 REQUIRE( gen.get() == 3 )
5922 with expansion:
5923 3 == 3
5924
5925 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5926 REQUIRE( gen.next() )
5927 with expansion:
5928 true
5929
5930 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5931 REQUIRE( gen.get() == 1 )
5932 with expansion:
5933 1 == 1
5934
5935 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5936 REQUIRE( gen.next() )
5937 with expansion:
5938 true
5939
5940 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5941 REQUIRE( gen.get() == 2 )
5942 with expansion:
5943 2 == 2
5944
5945 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5946 REQUIRE( gen.next() )
5947 with expansion:
5948 true
5949
5950 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5951 REQUIRE( gen.get() == 3 )
5952 with expansion:
5953 3 == 3
5954
5955 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5956 REQUIRE_FALSE( gen.next() )
5957 with expansion:
5958 !false
5959
5960 -------------------------------------------------------------------------------
5961 Generators internals
5962 Range
5963 Positive auto step
5964 Integer
5965 -------------------------------------------------------------------------------
5966 GeneratorsImpl.tests.cpp:<line number>
5967 ...............................................................................
5968
5969 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5970 REQUIRE( gen.get() == -2 )
5971 with expansion:
5972 -2 == -2
5973
5974 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5975 REQUIRE( gen.next() )
5976 with expansion:
5977 true
5978
5979 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5980 REQUIRE( gen.get() == -1 )
5981 with expansion:
5982 -1 == -1
5983
5984 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5985 REQUIRE( gen.next() )
5986 with expansion:
5987 true
5988
5989 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5990 REQUIRE( gen.get() == 0 )
5991 with expansion:
5992 0 == 0
5993
5994 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5995 REQUIRE( gen.next() )
5996 with expansion:
5997 true
5998
5999 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6000 REQUIRE( gen.get() == 1 )
6001 with expansion:
6002 1 == 1
6003
6004 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6005 REQUIRE_FALSE( gen.next() )
6006 with expansion:
6007 !false
6008
6009 -------------------------------------------------------------------------------
6010 Generators internals
6011 Range
6012 Negative auto step
6013 Integer
6014 -------------------------------------------------------------------------------
6015 GeneratorsImpl.tests.cpp:<line number>
6016 ...............................................................................
6017
6018 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6019 REQUIRE( gen.get() == 2 )
6020 with expansion:
6021 2 == 2
6022
6023 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6024 REQUIRE( gen.next() )
6025 with expansion:
6026 true
6027
6028 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6029 REQUIRE( gen.get() == 1 )
6030 with expansion:
6031 1 == 1
6032
6033 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6034 REQUIRE( gen.next() )
6035 with expansion:
6036 true
6037
6038 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6039 REQUIRE( gen.get() == 0 )
6040 with expansion:
6041 0 == 0
6042
6043 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6044 REQUIRE( gen.next() )
6045 with expansion:
6046 true
6047
6048 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6049 REQUIRE( gen.get() == -1 )
6050 with expansion:
6051 -1 == -1
6052
6053 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6054 REQUIRE_FALSE( gen.next() )
6055 with expansion:
6056 !false
6057
6058 -------------------------------------------------------------------------------
6059 Generators internals
6060 Range
6061 Positive manual step
6062 Integer
6063 Exact
6064 -------------------------------------------------------------------------------
6065 GeneratorsImpl.tests.cpp:<line number>
6066 ...............................................................................
6067
6068 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6069 REQUIRE( gen.get() == -7 )
6070 with expansion:
6071 -7 == -7
6072
6073 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6074 REQUIRE( gen.next() )
6075 with expansion:
6076 true
6077
6078 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6079 REQUIRE( gen.get() == -4 )
6080 with expansion:
6081 -4 == -4
6082
6083 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6084 REQUIRE( gen.next() )
6085 with expansion:
6086 true
6087
6088 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6089 REQUIRE( gen.get() == -1 )
6090 with expansion:
6091 -1 == -1
6092
6093 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6094 REQUIRE( gen.next() )
6095 with expansion:
6096 true
6097
6098 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6099 REQUIRE( gen.get() == 2 )
6100 with expansion:
6101 2 == 2
6102
6103 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6104 REQUIRE_FALSE( gen.next() )
6105 with expansion:
6106 !false
6107
6108 -------------------------------------------------------------------------------
6109 Generators internals
6110 Range
6111 Positive manual step
6112 Integer
6113 Slightly over end
6114 -------------------------------------------------------------------------------
6115 GeneratorsImpl.tests.cpp:<line number>
6116 ...............................................................................
6117
6118 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6119 REQUIRE( gen.get() == -7 )
6120 with expansion:
6121 -7 == -7
6122
6123 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6124 REQUIRE( gen.next() )
6125 with expansion:
6126 true
6127
6128 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6129 REQUIRE( gen.get() == -4 )
6130 with expansion:
6131 -4 == -4
6132
6133 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6134 REQUIRE( gen.next() )
6135 with expansion:
6136 true
6137
6138 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6139 REQUIRE( gen.get() == -1 )
6140 with expansion:
6141 -1 == -1
6142
6143 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6144 REQUIRE( gen.next() )
6145 with expansion:
6146 true
6147
6148 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6149 REQUIRE( gen.get() == 2 )
6150 with expansion:
6151 2 == 2
6152
6153 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6154 REQUIRE_FALSE( gen.next() )
6155 with expansion:
6156 !false
6157
6158 -------------------------------------------------------------------------------
6159 Generators internals
6160 Range
6161 Positive manual step
6162 Integer
6163 Slightly under end
6164 -------------------------------------------------------------------------------
6165 GeneratorsImpl.tests.cpp:<line number>
6166 ...............................................................................
6167
6168 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6169 REQUIRE( gen.get() == -7 )
6170 with expansion:
6171 -7 == -7
6172
6173 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6174 REQUIRE( gen.next() )
6175 with expansion:
6176 true
6177
6178 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6179 REQUIRE( gen.get() == -4 )
6180 with expansion:
6181 -4 == -4
6182
6183 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6184 REQUIRE( gen.next() )
6185 with expansion:
6186 true
6187
6188 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6189 REQUIRE( gen.get() == -1 )
6190 with expansion:
6191 -1 == -1
6192
6193 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6194 REQUIRE( gen.next() )
6195 with expansion:
6196 true
6197
6198 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6199 REQUIRE( gen.get() == 2 )
6200 with expansion:
6201 2 == 2
6202
6203 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6204 REQUIRE( gen.next() )
6205 with expansion:
6206 true
6207
6208 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6209 REQUIRE( gen.get() == 5 )
6210 with expansion:
6211 5 == 5
6212
6213 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6214 REQUIRE_FALSE( gen.next() )
6215 with expansion:
6216 !false
6217
6218 -------------------------------------------------------------------------------
6219 Generators internals
6220 Range
6221 Positive manual step
6222 Floating Point
6223 Exact
6224 -------------------------------------------------------------------------------
6225 GeneratorsImpl.tests.cpp:<line number>
6226 ...............................................................................
6227
6228 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6229 REQUIRE( gen.get() == Approx(expected) )
6230 with expansion:
6231 -1.0 == Approx( -1.0 )
6232 with message:
6233 Current expected value is -1
6234
6235 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6236 REQUIRE( gen.next() )
6237 with expansion:
6238 true
6239 with message:
6240 Current expected value is -1
6241
6242 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6243 REQUIRE( gen.get() == Approx(expected) )
6244 with expansion:
6245 -0.9 == Approx( -0.9 )
6246 with message:
6247 Current expected value is -0.9
6248
6249 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6250 REQUIRE( gen.next() )
6251 with expansion:
6252 true
6253 with message:
6254 Current expected value is -0.9
6255
6256 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6257 REQUIRE( gen.get() == Approx(expected) )
6258 with expansion:
6259 -0.8 == Approx( -0.8 )
6260 with message:
6261 Current expected value is -0.8
6262
6263 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6264 REQUIRE( gen.next() )
6265 with expansion:
6266 true
6267 with message:
6268 Current expected value is -0.8
6269
6270 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6271 REQUIRE( gen.get() == Approx(expected) )
6272 with expansion:
6273 -0.7 == Approx( -0.7 )
6274 with message:
6275 Current expected value is -0.7
6276
6277 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6278 REQUIRE( gen.next() )
6279 with expansion:
6280 true
6281 with message:
6282 Current expected value is -0.7
6283
6284 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6285 REQUIRE( gen.get() == Approx(expected) )
6286 with expansion:
6287 -0.6 == Approx( -0.6 )
6288 with message:
6289 Current expected value is -0.6
6290
6291 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6292 REQUIRE( gen.next() )
6293 with expansion:
6294 true
6295 with message:
6296 Current expected value is -0.6
6297
6298 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6299 REQUIRE( gen.get() == Approx(expected) )
6300 with expansion:
6301 -0.5 == Approx( -0.5 )
6302 with message:
6303 Current expected value is -0.5
6304
6305 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6306 REQUIRE( gen.next() )
6307 with expansion:
6308 true
6309 with message:
6310 Current expected value is -0.5
6311
6312 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6313 REQUIRE( gen.get() == Approx(expected) )
6314 with expansion:
6315 -0.4 == Approx( -0.4 )
6316 with message:
6317 Current expected value is -0.4
6318
6319 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6320 REQUIRE( gen.next() )
6321 with expansion:
6322 true
6323 with message:
6324 Current expected value is -0.4
6325
6326 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6327 REQUIRE( gen.get() == Approx(expected) )
6328 with expansion:
6329 -0.3 == Approx( -0.3 )
6330 with message:
6331 Current expected value is -0.3
6332
6333 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6334 REQUIRE( gen.next() )
6335 with expansion:
6336 true
6337 with message:
6338 Current expected value is -0.3
6339
6340 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6341 REQUIRE( gen.get() == Approx(expected) )
6342 with expansion:
6343 -0.2 == Approx( -0.2 )
6344 with message:
6345 Current expected value is -0.2
6346
6347 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6348 REQUIRE( gen.next() )
6349 with expansion:
6350 true
6351 with message:
6352 Current expected value is -0.2
6353
6354 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6355 REQUIRE( gen.get() == Approx(expected) )
6356 with expansion:
6357 -0.1 == Approx( -0.1 )
6358 with message:
6359 Current expected value is -0.1
6360
6361 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6362 REQUIRE( gen.next() )
6363 with expansion:
6364 true
6365 with message:
6366 Current expected value is -0.1
6367
6368 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6369 REQUIRE( gen.get() == Approx(expected) )
6370 with expansion:
6371 -0.0 == Approx( -0.0 )
6372 with message:
6373 Current expected value is -1.38778e-16
6374
6375 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6376 REQUIRE( gen.next() )
6377 with expansion:
6378 true
6379 with message:
6380 Current expected value is -1.38778e-16
6381
6382 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6383 REQUIRE( gen.get() == Approx(expected) )
6384 with expansion:
6385 0.1 == Approx( 0.1 )
6386 with message:
6387 Current expected value is 0.1
6388
6389 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6390 REQUIRE( gen.next() )
6391 with expansion:
6392 true
6393 with message:
6394 Current expected value is 0.1
6395
6396 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6397 REQUIRE( gen.get() == Approx(expected) )
6398 with expansion:
6399 0.2 == Approx( 0.2 )
6400 with message:
6401 Current expected value is 0.2
6402
6403 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6404 REQUIRE( gen.next() )
6405 with expansion:
6406 true
6407 with message:
6408 Current expected value is 0.2
6409
6410 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6411 REQUIRE( gen.get() == Approx(expected) )
6412 with expansion:
6413 0.3 == Approx( 0.3 )
6414 with message:
6415 Current expected value is 0.3
6416
6417 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6418 REQUIRE( gen.next() )
6419 with expansion:
6420 true
6421 with message:
6422 Current expected value is 0.3
6423
6424 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6425 REQUIRE( gen.get() == Approx(expected) )
6426 with expansion:
6427 0.4 == Approx( 0.4 )
6428 with message:
6429 Current expected value is 0.4
6430
6431 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6432 REQUIRE( gen.next() )
6433 with expansion:
6434 true
6435 with message:
6436 Current expected value is 0.4
6437
6438 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6439 REQUIRE( gen.get() == Approx(expected) )
6440 with expansion:
6441 0.5 == Approx( 0.5 )
6442 with message:
6443 Current expected value is 0.5
6444
6445 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6446 REQUIRE( gen.next() )
6447 with expansion:
6448 true
6449 with message:
6450 Current expected value is 0.5
6451
6452 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6453 REQUIRE( gen.get() == Approx(expected) )
6454 with expansion:
6455 0.6 == Approx( 0.6 )
6456 with message:
6457 Current expected value is 0.6
6458
6459 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6460 REQUIRE( gen.next() )
6461 with expansion:
6462 true
6463 with message:
6464 Current expected value is 0.6
6465
6466 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6467 REQUIRE( gen.get() == Approx(expected) )
6468 with expansion:
6469 0.7 == Approx( 0.7 )
6470 with message:
6471 Current expected value is 0.7
6472
6473 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6474 REQUIRE( gen.next() )
6475 with expansion:
6476 true
6477 with message:
6478 Current expected value is 0.7
6479
6480 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6481 REQUIRE( gen.get() == Approx(expected) )
6482 with expansion:
6483 0.8 == Approx( 0.8 )
6484 with message:
6485 Current expected value is 0.8
6486
6487 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6488 REQUIRE( gen.next() )
6489 with expansion:
6490 true
6491 with message:
6492 Current expected value is 0.8
6493
6494 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6495 REQUIRE( gen.get() == Approx(expected) )
6496 with expansion:
6497 0.9 == Approx( 0.9 )
6498 with message:
6499 Current expected value is 0.9
6500
6501 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6502 REQUIRE( gen.next() )
6503 with expansion:
6504 true
6505 with message:
6506 Current expected value is 0.9
6507
6508 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6509 REQUIRE( gen.get() == Approx( rangeEnd ) )
6510 with expansion:
6511 1.0 == Approx( 1.0 )
6512
6513 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6514 REQUIRE_FALSE( gen.next() )
6515 with expansion:
6516 !false
6517
6518 -------------------------------------------------------------------------------
6519 Generators internals
6520 Range
6521 Positive manual step
6522 Floating Point
6523 Slightly over end
6524 -------------------------------------------------------------------------------
6525 GeneratorsImpl.tests.cpp:<line number>
6526 ...............................................................................
6527
6528 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6529 REQUIRE( gen.get() == Approx(expected) )
6530 with expansion:
6531 -1.0 == Approx( -1.0 )
6532 with message:
6533 Current expected value is -1
6534
6535 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6536 REQUIRE( gen.next() )
6537 with expansion:
6538 true
6539 with message:
6540 Current expected value is -1
6541
6542 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6543 REQUIRE( gen.get() == Approx(expected) )
6544 with expansion:
6545 -0.7 == Approx( -0.7 )
6546 with message:
6547 Current expected value is -0.7
6548
6549 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6550 REQUIRE( gen.next() )
6551 with expansion:
6552 true
6553 with message:
6554 Current expected value is -0.7
6555
6556 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6557 REQUIRE( gen.get() == Approx(expected) )
6558 with expansion:
6559 -0.4 == Approx( -0.4 )
6560 with message:
6561 Current expected value is -0.4
6562
6563 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6564 REQUIRE( gen.next() )
6565 with expansion:
6566 true
6567 with message:
6568 Current expected value is -0.4
6569
6570 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6571 REQUIRE( gen.get() == Approx(expected) )
6572 with expansion:
6573 -0.1 == Approx( -0.1 )
6574 with message:
6575 Current expected value is -0.1
6576
6577 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6578 REQUIRE( gen.next() )
6579 with expansion:
6580 true
6581 with message:
6582 Current expected value is -0.1
6583
6584 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6585 REQUIRE( gen.get() == Approx(expected) )
6586 with expansion:
6587 0.2 == Approx( 0.2 )
6588 with message:
6589 Current expected value is 0.2
6590
6591 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6592 REQUIRE( gen.next() )
6593 with expansion:
6594 true
6595 with message:
6596 Current expected value is 0.2
6597
6598 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6599 REQUIRE( gen.get() == Approx(expected) )
6600 with expansion:
6601 0.5 == Approx( 0.5 )
6602 with message:
6603 Current expected value is 0.5
6604
6605 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6606 REQUIRE( gen.next() )
6607 with expansion:
6608 true
6609 with message:
6610 Current expected value is 0.5
6611
6612 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6613 REQUIRE_FALSE( gen.next() )
6614 with expansion:
6615 !false
6616
6617 -------------------------------------------------------------------------------
6618 Generators internals
6619 Range
6620 Positive manual step
6621 Floating Point
6622 Slightly under end
6623 -------------------------------------------------------------------------------
6624 GeneratorsImpl.tests.cpp:<line number>
6625 ...............................................................................
6626
6627 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6628 REQUIRE( gen.get() == Approx(expected) )
6629 with expansion:
6630 -1.0 == Approx( -1.0 )
6631 with message:
6632 Current expected value is -1
6633
6634 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6635 REQUIRE( gen.next() )
6636 with expansion:
6637 true
6638 with message:
6639 Current expected value is -1
6640
6641 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6642 REQUIRE( gen.get() == Approx(expected) )
6643 with expansion:
6644 -0.7 == Approx( -0.7 )
6645 with message:
6646 Current expected value is -0.7
6647
6648 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6649 REQUIRE( gen.next() )
6650 with expansion:
6651 true
6652 with message:
6653 Current expected value is -0.7
6654
6655 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6656 REQUIRE( gen.get() == Approx(expected) )
6657 with expansion:
6658 -0.4 == Approx( -0.4 )
6659 with message:
6660 Current expected value is -0.4
6661
6662 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6663 REQUIRE( gen.next() )
6664 with expansion:
6665 true
6666 with message:
6667 Current expected value is -0.4
6668
6669 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6670 REQUIRE( gen.get() == Approx(expected) )
6671 with expansion:
6672 -0.1 == Approx( -0.1 )
6673 with message:
6674 Current expected value is -0.1
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.1
6682
6683 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6684 REQUIRE( gen.get() == Approx(expected) )
6685 with expansion:
6686 0.2 == Approx( 0.2 )
6687 with message:
6688 Current expected value is 0.2
6689
6690 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6691 REQUIRE( gen.next() )
6692 with expansion:
6693 true
6694 with message:
6695 Current expected value is 0.2
6696
6697 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6698 REQUIRE( gen.get() == Approx(expected) )
6699 with expansion:
6700 0.5 == Approx( 0.5 )
6701 with message:
6702 Current expected value is 0.5
6703
6704 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6705 REQUIRE( gen.next() )
6706 with expansion:
6707 true
6708 with message:
6709 Current expected value is 0.5
6710
6711 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6712 REQUIRE_FALSE( gen.next() )
6713 with expansion:
6714 !false
6715
6716 -------------------------------------------------------------------------------
6717 Generators internals
6718 Range
6719 Negative manual step
6720 Integer
6721 Exact
6722 -------------------------------------------------------------------------------
6723 GeneratorsImpl.tests.cpp:<line number>
6724 ...............................................................................
6725
6726 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6727 REQUIRE( gen.get() == 5 )
6728 with expansion:
6729 5 == 5
6730
6731 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6732 REQUIRE( gen.next() )
6733 with expansion:
6734 true
6735
6736 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6737 REQUIRE( gen.get() == 2 )
6738 with expansion:
6739 2 == 2
6740
6741 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6742 REQUIRE( gen.next() )
6743 with expansion:
6744 true
6745
6746 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6747 REQUIRE( gen.get() == -1 )
6748 with expansion:
6749 -1 == -1
6750
6751 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6752 REQUIRE( gen.next() )
6753 with expansion:
6754 true
6755
6756 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6757 REQUIRE( gen.get() == -4 )
6758 with expansion:
6759 -4 == -4
6760
6761 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6762 REQUIRE_FALSE( gen.next() )
6763 with expansion:
6764 !false
6765
6766 -------------------------------------------------------------------------------
6767 Generators internals
6768 Range
6769 Negative manual step
6770 Integer
6771 Slightly over end
6772 -------------------------------------------------------------------------------
6773 GeneratorsImpl.tests.cpp:<line number>
6774 ...............................................................................
6775
6776 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6777 REQUIRE( gen.get() == 5 )
6778 with expansion:
6779 5 == 5
6780
6781 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6782 REQUIRE( gen.next() )
6783 with expansion:
6784 true
6785
6786 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6787 REQUIRE( gen.get() == 2 )
6788 with expansion:
6789 2 == 2
6790
6791 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6792 REQUIRE( gen.next() )
6793 with expansion:
6794 true
6795
6796 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6797 REQUIRE( gen.get() == -1 )
6798 with expansion:
6799 -1 == -1
6800
6801 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6802 REQUIRE( gen.next() )
6803 with expansion:
6804 true
6805
6806 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6807 REQUIRE( gen.get() == -4 )
6808 with expansion:
6809 -4 == -4
6810
6811 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6812 REQUIRE_FALSE( gen.next() )
6813 with expansion:
6814 !false
6815
6816 -------------------------------------------------------------------------------
6817 Generators internals
6818 Range
6819 Negative manual step
6820 Integer
6821 Slightly under end
6822 -------------------------------------------------------------------------------
6823 GeneratorsImpl.tests.cpp:<line number>
6824 ...............................................................................
6825
6826 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6827 REQUIRE( gen.get() == 5 )
6828 with expansion:
6829 5 == 5
6830
6831 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6832 REQUIRE( gen.next() )
6833 with expansion:
6834 true
6835
6836 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6837 REQUIRE( gen.get() == 2 )
6838 with expansion:
6839 2 == 2
6840
6841 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6842 REQUIRE( gen.next() )
6843 with expansion:
6844 true
6845
6846 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6847 REQUIRE( gen.get() == -1 )
6848 with expansion:
6849 -1 == -1
6850
6851 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6852 REQUIRE( gen.next() )
6853 with expansion:
6854 true
6855
6856 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6857 REQUIRE( gen.get() == -4 )
6858 with expansion:
6859 -4 == -4
6860
6861 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6862 REQUIRE( gen.next() )
6863 with expansion:
6864 true
6865
6866 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6867 REQUIRE( gen.get() == -7 )
6868 with expansion:
6869 -7 == -7
6870
6871 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6872 REQUIRE_FALSE( gen.next() )
6873 with expansion:
6874 !false
6875
6876 -------------------------------------------------------------------------------
6877 Greater-than inequalities with different epsilons
6878 -------------------------------------------------------------------------------
6879 Approx.tests.cpp:<line number>
6880 ...............................................................................
6881
6882 Approx.tests.cpp:<line number>: PASSED:
6883 REQUIRE( d >= Approx( 1.22 ) )
6884 with expansion:
6885 1.23 >= Approx( 1.22 )
6886
6887 Approx.tests.cpp:<line number>: PASSED:
6888 REQUIRE( d >= Approx( 1.23 ) )
6889 with expansion:
6890 1.23 >= Approx( 1.23 )
6891
6892 Approx.tests.cpp:<line number>: PASSED:
6893 REQUIRE_FALSE( d >= Approx( 1.24 ) )
6894 with expansion:
6895 !(1.23 >= Approx( 1.24 ))
6896
6897 Approx.tests.cpp:<line number>: PASSED:
6898 REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) )
6899 with expansion:
6900 1.23 >= Approx( 1.24 )
6901
6902 -------------------------------------------------------------------------------
6903 Hashers with different seed produce different hash with same test case
6904 -------------------------------------------------------------------------------
6905 TestCaseInfoHasher.tests.cpp:<line number>
6906 ...............................................................................
6907
6908 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6909 REQUIRE( h1( dummy ) != h2( dummy ) )
6910 with expansion:
6911 3422778688 (0x<hex digits>)
6912 !=
6913 130711275 (0x<hex digits>)
6914
6915 -------------------------------------------------------------------------------
6916 Hashers with same seed produce same hash
6917 -------------------------------------------------------------------------------
6918 TestCaseInfoHasher.tests.cpp:<line number>
6919 ...............................................................................
6920
6921 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6922 REQUIRE( h1( dummy ) == h2( dummy ) )
6923 with expansion:
6924 3422778688 (0x<hex digits>)
6925 ==
6926 3422778688 (0x<hex digits>)
6927
6928 -------------------------------------------------------------------------------
6929 Hashing different test cases produces different result
6930 Different test name
6931 -------------------------------------------------------------------------------
6932 TestCaseInfoHasher.tests.cpp:<line number>
6933 ...............................................................................
6934
6935 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6936 REQUIRE( h( dummy1 ) != h( dummy2 ) )
6937 with expansion:
6938 2903002874 (0x<hex digits>)
6939 !=
6940 2668622104 (0x<hex digits>)
6941
6942 -------------------------------------------------------------------------------
6943 Hashing different test cases produces different result
6944 Different classname
6945 -------------------------------------------------------------------------------
6946 TestCaseInfoHasher.tests.cpp:<line number>
6947 ...............................................................................
6948
6949 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6950 REQUIRE( h( dummy1 ) != h( dummy2 ) )
6951 with expansion:
6952 2673152918 (0x<hex digits>)
6953 !=
6954 3916075712 (0x<hex digits>)
6955
6956 -------------------------------------------------------------------------------
6957 Hashing different test cases produces different result
6958 Different tags
6959 -------------------------------------------------------------------------------
6960 TestCaseInfoHasher.tests.cpp:<line number>
6961 ...............................................................................
6962
6963 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6964 REQUIRE( h( dummy1 ) != h( dummy2 ) )
6965 with expansion:
6966 2074929312 (0x<hex digits>)
6967 !=
6968 3429949824 (0x<hex digits>)
6969
6970 -------------------------------------------------------------------------------
6971 Hashing test case produces same hash across multiple calls
6972 -------------------------------------------------------------------------------
6973 TestCaseInfoHasher.tests.cpp:<line number>
6974 ...............................................................................
6975
6976 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6977 REQUIRE( h( dummy ) == h( dummy ) )
6978 with expansion:
6979 3422778688 (0x<hex digits>)
6980 ==
6981 3422778688 (0x<hex digits>)
6982
6983 -------------------------------------------------------------------------------
6984 INFO and WARN do not abort tests
6985 -------------------------------------------------------------------------------
6986 Message.tests.cpp:<line number>
6987 ...............................................................................
6988
6989 Message.tests.cpp:<line number>: warning:
6990 this is a message
6991 this is a warning
6992
6993
6994 No assertions in test case 'INFO and WARN do not abort tests'
6995
6996 -------------------------------------------------------------------------------
6997 INFO gets logged on failure
6998 -------------------------------------------------------------------------------
6999 Message.tests.cpp:<line number>
7000 ...............................................................................
7001
7002 Message.tests.cpp:<line number>: FAILED:
7003 REQUIRE( a == 1 )
7004 with expansion:
7005 2 == 1
7006 with messages:
7007 this message should be logged
7008 so should this
7009
7010 -------------------------------------------------------------------------------
7011 INFO gets logged on failure, even if captured before successful assertions
7012 -------------------------------------------------------------------------------
7013 Message.tests.cpp:<line number>
7014 ...............................................................................
7015
7016 Message.tests.cpp:<line number>: PASSED:
7017 CHECK( a == 2 )
7018 with expansion:
7019 2 == 2
7020 with message:
7021 this message may be logged later
7022
7023 Message.tests.cpp:<line number>: FAILED:
7024 CHECK( a == 1 )
7025 with expansion:
7026 2 == 1
7027 with messages:
7028 this message may be logged later
7029 this message should be logged
7030
7031 Message.tests.cpp:<line number>: FAILED:
7032 CHECK( a == 0 )
7033 with expansion:
7034 2 == 0
7035 with messages:
7036 this message may be logged later
7037 this message should be logged
7038 and this, but later
7039
7040 Message.tests.cpp:<line number>: PASSED:
7041 CHECK( a == 2 )
7042 with expansion:
7043 2 == 2
7044 with messages:
7045 this message may be logged later
7046 this message should be logged
7047 and this, but later
7048 but not this
7049
7050 -------------------------------------------------------------------------------
7051 INFO is reset for each loop
7052 -------------------------------------------------------------------------------
7053 Message.tests.cpp:<line number>
7054 ...............................................................................
7055
7056 Message.tests.cpp:<line number>: PASSED:
7057 REQUIRE( i < 10 )
7058 with expansion:
7059 0 < 10
7060 with messages:
7061 current counter 0
7062 i := 0
7063
7064 Message.tests.cpp:<line number>: PASSED:
7065 REQUIRE( i < 10 )
7066 with expansion:
7067 1 < 10
7068 with messages:
7069 current counter 1
7070 i := 1
7071
7072 Message.tests.cpp:<line number>: PASSED:
7073 REQUIRE( i < 10 )
7074 with expansion:
7075 2 < 10
7076 with messages:
7077 current counter 2
7078 i := 2
7079
7080 Message.tests.cpp:<line number>: PASSED:
7081 REQUIRE( i < 10 )
7082 with expansion:
7083 3 < 10
7084 with messages:
7085 current counter 3
7086 i := 3
7087
7088 Message.tests.cpp:<line number>: PASSED:
7089 REQUIRE( i < 10 )
7090 with expansion:
7091 4 < 10
7092 with messages:
7093 current counter 4
7094 i := 4
7095
7096 Message.tests.cpp:<line number>: PASSED:
7097 REQUIRE( i < 10 )
7098 with expansion:
7099 5 < 10
7100 with messages:
7101 current counter 5
7102 i := 5
7103
7104 Message.tests.cpp:<line number>: PASSED:
7105 REQUIRE( i < 10 )
7106 with expansion:
7107 6 < 10
7108 with messages:
7109 current counter 6
7110 i := 6
7111
7112 Message.tests.cpp:<line number>: PASSED:
7113 REQUIRE( i < 10 )
7114 with expansion:
7115 7 < 10
7116 with messages:
7117 current counter 7
7118 i := 7
7119
7120 Message.tests.cpp:<line number>: PASSED:
7121 REQUIRE( i < 10 )
7122 with expansion:
7123 8 < 10
7124 with messages:
7125 current counter 8
7126 i := 8
7127
7128 Message.tests.cpp:<line number>: PASSED:
7129 REQUIRE( i < 10 )
7130 with expansion:
7131 9 < 10
7132 with messages:
7133 current counter 9
7134 i := 9
7135
7136 Message.tests.cpp:<line number>: FAILED:
7137 REQUIRE( i < 10 )
7138 with expansion:
7139 10 < 10
7140 with messages:
7141 current counter 10
7142 i := 10
7143
7144 -------------------------------------------------------------------------------
7145 Inequality checks that should fail
7146 -------------------------------------------------------------------------------
7147 Condition.tests.cpp:<line number>
7148 ...............................................................................
7149
7150 Condition.tests.cpp:<line number>: FAILED:
7151 CHECK( data.int_seven != 7 )
7152 with expansion:
7153 7 != 7
7154
7155 Condition.tests.cpp:<line number>: FAILED:
7156 CHECK( data.float_nine_point_one != Approx( 9.1f ) )
7157 with expansion:
7158 9.1f != Approx( 9.1000003815 )
7159
7160 Condition.tests.cpp:<line number>: FAILED:
7161 CHECK( data.double_pi != Approx( 3.1415926535 ) )
7162 with expansion:
7163 3.1415926535 != Approx( 3.1415926535 )
7164
7165 Condition.tests.cpp:<line number>: FAILED:
7166 CHECK( data.str_hello != "hello" )
7167 with expansion:
7168 "hello" != "hello"
7169
7170 Condition.tests.cpp:<line number>: FAILED:
7171 CHECK( data.str_hello.size() != 5 )
7172 with expansion:
7173 5 != 5
7174
7175 -------------------------------------------------------------------------------
7176 Inequality checks that should succeed
7177 -------------------------------------------------------------------------------
7178 Condition.tests.cpp:<line number>
7179 ...............................................................................
7180
7181 Condition.tests.cpp:<line number>: PASSED:
7182 REQUIRE( data.int_seven != 6 )
7183 with expansion:
7184 7 != 6
7185
7186 Condition.tests.cpp:<line number>: PASSED:
7187 REQUIRE( data.int_seven != 8 )
7188 with expansion:
7189 7 != 8
7190
7191 Condition.tests.cpp:<line number>: PASSED:
7192 REQUIRE( data.float_nine_point_one != Approx( 9.11f ) )
7193 with expansion:
7194 9.1f != Approx( 9.1099996567 )
7195
7196 Condition.tests.cpp:<line number>: PASSED:
7197 REQUIRE( data.float_nine_point_one != Approx( 9.0f ) )
7198 with expansion:
7199 9.1f != Approx( 9.0 )
7200
7201 Condition.tests.cpp:<line number>: PASSED:
7202 REQUIRE( data.float_nine_point_one != Approx( 1 ) )
7203 with expansion:
7204 9.1f != Approx( 1.0 )
7205
7206 Condition.tests.cpp:<line number>: PASSED:
7207 REQUIRE( data.float_nine_point_one != Approx( 0 ) )
7208 with expansion:
7209 9.1f != Approx( 0.0 )
7210
7211 Condition.tests.cpp:<line number>: PASSED:
7212 REQUIRE( data.double_pi != Approx( 3.1415 ) )
7213 with expansion:
7214 3.1415926535 != Approx( 3.1415 )
7215
7216 Condition.tests.cpp:<line number>: PASSED:
7217 REQUIRE( data.str_hello != "goodbye" )
7218 with expansion:
7219 "hello" != "goodbye"
7220
7221 Condition.tests.cpp:<line number>: PASSED:
7222 REQUIRE( data.str_hello != "hell" )
7223 with expansion:
7224 "hello" != "hell"
7225
7226 Condition.tests.cpp:<line number>: PASSED:
7227 REQUIRE( data.str_hello != "hello1" )
7228 with expansion:
7229 "hello" != "hello1"
7230
7231 Condition.tests.cpp:<line number>: PASSED:
7232 REQUIRE( data.str_hello.size() != 6 )
7233 with expansion:
7234 5 != 6
7235
7236 -------------------------------------------------------------------------------
7237 Lambdas in assertions
7238 -------------------------------------------------------------------------------
7239 Compilation.tests.cpp:<line number>
7240 ...............................................................................
7241
7242 Compilation.tests.cpp:<line number>: PASSED:
7243 REQUIRE( []() { return true; }() )
7244 with expansion:
7245 true
7246
7247 -------------------------------------------------------------------------------
7248 Less-than inequalities with different epsilons
7249 -------------------------------------------------------------------------------
7250 Approx.tests.cpp:<line number>
7251 ...............................................................................
7252
7253 Approx.tests.cpp:<line number>: PASSED:
7254 REQUIRE( d <= Approx( 1.24 ) )
7255 with expansion:
7256 1.23 <= Approx( 1.24 )
7257
7258 Approx.tests.cpp:<line number>: PASSED:
7259 REQUIRE( d <= Approx( 1.23 ) )
7260 with expansion:
7261 1.23 <= Approx( 1.23 )
7262
7263 Approx.tests.cpp:<line number>: PASSED:
7264 REQUIRE_FALSE( d <= Approx( 1.22 ) )
7265 with expansion:
7266 !(1.23 <= Approx( 1.22 ))
7267
7268 Approx.tests.cpp:<line number>: PASSED:
7269 REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) )
7270 with expansion:
7271 1.23 <= Approx( 1.22 )
7272
7273 -------------------------------------------------------------------------------
7274 ManuallyRegistered
7275 -------------------------------------------------------------------------------
7276 Misc.tests.cpp:<line number>
7277 ...............................................................................
7278
7279 Misc.tests.cpp:<line number>: PASSED:
7280 with message:
7281 was called
7282
7283 -------------------------------------------------------------------------------
7284 Matchers can be (AllOf) composed with the && operator
7285 -------------------------------------------------------------------------------
7286 Matchers.tests.cpp:<line number>
7287 ...............................................................................
7288
7289 Matchers.tests.cpp:<line number>: PASSED:
7290 CHECK_THAT( testStringForMatching(), ContainsSubstring( "string" ) && ContainsSubstring( "abc" ) && ContainsSubstring( "substring" ) && ContainsSubstring( "contains" ) )
7291 with expansion:
7292 "this string contains 'abc' as a substring" ( contains: "string" and
7293 contains: "abc" and contains: "substring" and contains: "contains" )
7294
7295 -------------------------------------------------------------------------------
7296 Matchers can be (AnyOf) composed with the || operator
7297 -------------------------------------------------------------------------------
7298 Matchers.tests.cpp:<line number>
7299 ...............................................................................
7300
7301 Matchers.tests.cpp:<line number>: PASSED:
7302 CHECK_THAT( testStringForMatching(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) )
7303 with expansion:
7304 "this string contains 'abc' as a substring" ( contains: "string" or contains:
7305 "different" or contains: "random" )
7306
7307 Matchers.tests.cpp:<line number>: PASSED:
7308 CHECK_THAT( testStringForMatching2(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) )
7309 with expansion:
7310 "some completely different text that contains one common word" ( contains:
7311 "string" or contains: "different" or contains: "random" )
7312
7313 -------------------------------------------------------------------------------
7314 Matchers can be composed with both && and ||
7315 -------------------------------------------------------------------------------
7316 Matchers.tests.cpp:<line number>
7317 ...............................................................................
7318
7319 Matchers.tests.cpp:<line number>: PASSED:
7320 CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "substring" ) )
7321 with expansion:
7322 "this string contains 'abc' as a substring" ( ( contains: "string" or
7323 contains: "different" ) and contains: "substring" )
7324
7325 -------------------------------------------------------------------------------
7326 Matchers can be composed with both && and || - failing
7327 -------------------------------------------------------------------------------
7328 Matchers.tests.cpp:<line number>
7329 ...............................................................................
7330
7331 Matchers.tests.cpp:<line number>: FAILED:
7332 CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "random" ) )
7333 with expansion:
7334 "this string contains 'abc' as a substring" ( ( contains: "string" or
7335 contains: "different" ) and contains: "random" )
7336
7337 -------------------------------------------------------------------------------
7338 Matchers can be negated (Not) with the ! operator
7339 -------------------------------------------------------------------------------
7340 Matchers.tests.cpp:<line number>
7341 ...............................................................................
7342
7343 Matchers.tests.cpp:<line number>: PASSED:
7344 CHECK_THAT( testStringForMatching(), !ContainsSubstring( "different" ) )
7345 with expansion:
7346 "this string contains 'abc' as a substring" not contains: "different"
7347
7348 -------------------------------------------------------------------------------
7349 Matchers can be negated (Not) with the ! operator - failing
7350 -------------------------------------------------------------------------------
7351 Matchers.tests.cpp:<line number>
7352 ...............................................................................
7353
7354 Matchers.tests.cpp:<line number>: FAILED:
7355 CHECK_THAT( testStringForMatching(), !ContainsSubstring( "substring" ) )
7356 with expansion:
7357 "this string contains 'abc' as a substring" not contains: "substring"
7358
7359 -------------------------------------------------------------------------------
7360 Mayfail test case with nested sections
7361 A
7362 1
7363 -------------------------------------------------------------------------------
7364 Condition.tests.cpp:<line number>
7365 ...............................................................................
7366
7367 Condition.tests.cpp:<line number>: FAILED:
7368
7369 -------------------------------------------------------------------------------
7370 Mayfail test case with nested sections
7371 A
7372 2
7373 -------------------------------------------------------------------------------
7374 Condition.tests.cpp:<line number>
7375 ...............................................................................
7376
7377 Condition.tests.cpp:<line number>: FAILED:
7378
7379 -------------------------------------------------------------------------------
7380 Mayfail test case with nested sections
7381 B
7382 1
7383 -------------------------------------------------------------------------------
7384 Condition.tests.cpp:<line number>
7385 ...............................................................................
7386
7387 Condition.tests.cpp:<line number>: FAILED:
7388
7389 -------------------------------------------------------------------------------
7390 Mayfail test case with nested sections
7391 B
7392 2
7393 -------------------------------------------------------------------------------
7394 Condition.tests.cpp:<line number>
7395 ...............................................................................
7396
7397 Condition.tests.cpp:<line number>: FAILED:
7398
7399 -------------------------------------------------------------------------------
7400 Mismatching exception messages failing the test
7401 -------------------------------------------------------------------------------
7402 Exception.tests.cpp:<line number>
7403 ...............................................................................
7404
7405 Exception.tests.cpp:<line number>: PASSED:
7406 REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
7407 with expansion:
7408 "expected exception" equals: "expected exception"
7409
7410 Exception.tests.cpp:<line number>: FAILED:
7411 REQUIRE_THROWS_WITH( thisThrows(), "should fail" )
7412 with expansion:
7413 "expected exception" equals: "should fail"
7414
7415 -------------------------------------------------------------------------------
7416 Multireporter calls reporters and listeners in correct order
7417 -------------------------------------------------------------------------------
7418 Reporters.tests.cpp:<line number>
7419 ...............................................................................
7420
7421 Reporters.tests.cpp:<line number>: PASSED:
7422 REQUIRE( records == expected )
7423 with expansion:
7424 { "Hello", "world", "Goodbye", "world" }
7425 ==
7426 { "Hello", "world", "Goodbye", "world" }
7427
7428 -------------------------------------------------------------------------------
7429 Multireporter updates ReporterPreferences properly
7430 -------------------------------------------------------------------------------
7431 Reporters.tests.cpp:<line number>
7432 ...............................................................................
7433
7434 Reporters.tests.cpp:<line number>: PASSED:
7435 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == false )
7436 with expansion:
7437 false == false
7438
7439 Reporters.tests.cpp:<line number>: PASSED:
7440 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
7441 with expansion:
7442 false == false
7443
7444 -------------------------------------------------------------------------------
7445 Multireporter updates ReporterPreferences properly
7446 Adding listeners
7447 -------------------------------------------------------------------------------
7448 Reporters.tests.cpp:<line number>
7449 ...............................................................................
7450
7451 Reporters.tests.cpp:<line number>: PASSED:
7452 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7453 with expansion:
7454 true == true
7455
7456 Reporters.tests.cpp:<line number>: PASSED:
7457 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
7458 with expansion:
7459 false == false
7460
7461 Reporters.tests.cpp:<line number>: PASSED:
7462 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7463 with expansion:
7464 true == true
7465
7466 Reporters.tests.cpp:<line number>: PASSED:
7467 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
7468 with expansion:
7469 true == true
7470
7471 Reporters.tests.cpp:<line number>: PASSED:
7472 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7473 with expansion:
7474 true == true
7475
7476 Reporters.tests.cpp:<line number>: PASSED:
7477 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
7478 with expansion:
7479 true == true
7480
7481 -------------------------------------------------------------------------------
7482 Multireporter updates ReporterPreferences properly
7483 -------------------------------------------------------------------------------
7484 Reporters.tests.cpp:<line number>
7485 ...............................................................................
7486
7487 Reporters.tests.cpp:<line number>: PASSED:
7488 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == false )
7489 with expansion:
7490 false == false
7491
7492 Reporters.tests.cpp:<line number>: PASSED:
7493 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
7494 with expansion:
7495 false == false
7496
7497 -------------------------------------------------------------------------------
7498 Multireporter updates ReporterPreferences properly
7499 Adding reporters
7500 -------------------------------------------------------------------------------
7501 Reporters.tests.cpp:<line number>
7502 ...............................................................................
7503
7504 Reporters.tests.cpp:<line number>: PASSED:
7505 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7506 with expansion:
7507 true == true
7508
7509 Reporters.tests.cpp:<line number>: PASSED:
7510 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
7511 with expansion:
7512 false == false
7513
7514 Reporters.tests.cpp:<line number>: PASSED:
7515 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7516 with expansion:
7517 true == true
7518
7519 Reporters.tests.cpp:<line number>: PASSED:
7520 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
7521 with expansion:
7522 true == true
7523
7524 Reporters.tests.cpp:<line number>: PASSED:
7525 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7526 with expansion:
7527 true == true
7528
7529 Reporters.tests.cpp:<line number>: PASSED:
7530 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
7531 with expansion:
7532 true == true
7533
7534 -------------------------------------------------------------------------------
7535 Nested generators and captured variables
7536 -------------------------------------------------------------------------------
7537 Generators.tests.cpp:<line number>
7538 ...............................................................................
7539
7540 Generators.tests.cpp:<line number>: PASSED:
7541 REQUIRE( values > -6 )
7542 with expansion:
7543 3 > -6
7544
7545 -------------------------------------------------------------------------------
7546 Nested generators and captured variables
7547 -------------------------------------------------------------------------------
7548 Generators.tests.cpp:<line number>
7549 ...............................................................................
7550
7551 Generators.tests.cpp:<line number>: PASSED:
7552 REQUIRE( values > -6 )
7553 with expansion:
7554 4 > -6
7555
7556 -------------------------------------------------------------------------------
7557 Nested generators and captured variables
7558 -------------------------------------------------------------------------------
7559 Generators.tests.cpp:<line number>
7560 ...............................................................................
7561
7562 Generators.tests.cpp:<line number>: PASSED:
7563 REQUIRE( values > -6 )
7564 with expansion:
7565 5 > -6
7566
7567 -------------------------------------------------------------------------------
7568 Nested generators and captured variables
7569 -------------------------------------------------------------------------------
7570 Generators.tests.cpp:<line number>
7571 ...............................................................................
7572
7573 Generators.tests.cpp:<line number>: PASSED:
7574 REQUIRE( values > -6 )
7575 with expansion:
7576 6 > -6
7577
7578 -------------------------------------------------------------------------------
7579 Nested generators and captured variables
7580 -------------------------------------------------------------------------------
7581 Generators.tests.cpp:<line number>
7582 ...............................................................................
7583
7584 Generators.tests.cpp:<line number>: PASSED:
7585 REQUIRE( values > -6 )
7586 with expansion:
7587 -5 > -6
7588
7589 -------------------------------------------------------------------------------
7590 Nested generators and captured variables
7591 -------------------------------------------------------------------------------
7592 Generators.tests.cpp:<line number>
7593 ...............................................................................
7594
7595 Generators.tests.cpp:<line number>: PASSED:
7596 REQUIRE( values > -6 )
7597 with expansion:
7598 -4 > -6
7599
7600 -------------------------------------------------------------------------------
7601 Nested generators and captured variables
7602 -------------------------------------------------------------------------------
7603 Generators.tests.cpp:<line number>
7604 ...............................................................................
7605
7606 Generators.tests.cpp:<line number>: PASSED:
7607 REQUIRE( values > -6 )
7608 with expansion:
7609 90 > -6
7610
7611 -------------------------------------------------------------------------------
7612 Nested generators and captured variables
7613 -------------------------------------------------------------------------------
7614 Generators.tests.cpp:<line number>
7615 ...............................................................................
7616
7617 Generators.tests.cpp:<line number>: PASSED:
7618 REQUIRE( values > -6 )
7619 with expansion:
7620 91 > -6
7621
7622 -------------------------------------------------------------------------------
7623 Nested generators and captured variables
7624 -------------------------------------------------------------------------------
7625 Generators.tests.cpp:<line number>
7626 ...............................................................................
7627
7628 Generators.tests.cpp:<line number>: PASSED:
7629 REQUIRE( values > -6 )
7630 with expansion:
7631 92 > -6
7632
7633 -------------------------------------------------------------------------------
7634 Nested generators and captured variables
7635 -------------------------------------------------------------------------------
7636 Generators.tests.cpp:<line number>
7637 ...............................................................................
7638
7639 Generators.tests.cpp:<line number>: PASSED:
7640 REQUIRE( values > -6 )
7641 with expansion:
7642 93 > -6
7643
7644 -------------------------------------------------------------------------------
7645 Nested generators and captured variables
7646 -------------------------------------------------------------------------------
7647 Generators.tests.cpp:<line number>
7648 ...............................................................................
7649
7650 Generators.tests.cpp:<line number>: PASSED:
7651 REQUIRE( values > -6 )
7652 with expansion:
7653 94 > -6
7654
7655 -------------------------------------------------------------------------------
7656 Nested generators and captured variables
7657 -------------------------------------------------------------------------------
7658 Generators.tests.cpp:<line number>
7659 ...............................................................................
7660
7661 Generators.tests.cpp:<line number>: PASSED:
7662 REQUIRE( values > -6 )
7663 with expansion:
7664 95 > -6
7665
7666 -------------------------------------------------------------------------------
7667 Nested generators and captured variables
7668 -------------------------------------------------------------------------------
7669 Generators.tests.cpp:<line number>
7670 ...............................................................................
7671
7672 Generators.tests.cpp:<line number>: PASSED:
7673 REQUIRE( values > -6 )
7674 with expansion:
7675 96 > -6
7676
7677 -------------------------------------------------------------------------------
7678 Nested generators and captured variables
7679 -------------------------------------------------------------------------------
7680 Generators.tests.cpp:<line number>
7681 ...............................................................................
7682
7683 Generators.tests.cpp:<line number>: PASSED:
7684 REQUIRE( values > -6 )
7685 with expansion:
7686 97 > -6
7687
7688 -------------------------------------------------------------------------------
7689 Nested generators and captured variables
7690 -------------------------------------------------------------------------------
7691 Generators.tests.cpp:<line number>
7692 ...............................................................................
7693
7694 Generators.tests.cpp:<line number>: PASSED:
7695 REQUIRE( values > -6 )
7696 with expansion:
7697 98 > -6
7698
7699 -------------------------------------------------------------------------------
7700 Nested generators and captured variables
7701 -------------------------------------------------------------------------------
7702 Generators.tests.cpp:<line number>
7703 ...............................................................................
7704
7705 Generators.tests.cpp:<line number>: PASSED:
7706 REQUIRE( values > -6 )
7707 with expansion:
7708 99 > -6
7709
7710 -------------------------------------------------------------------------------
7711 Nice descriptive name
7712 -------------------------------------------------------------------------------
7713 Misc.tests.cpp:<line number>
7714 ...............................................................................
7715
7716 Misc.tests.cpp:<line number>: warning:
7717 This one ran
7718
7719
7720 No assertions in test case 'Nice descriptive name'
7721
7722 -------------------------------------------------------------------------------
7723 Non-std exceptions can be translated
7724 -------------------------------------------------------------------------------
7725 Exception.tests.cpp:<line number>
7726 ...............................................................................
7727
7728 Exception.tests.cpp:<line number>: FAILED:
7729 due to unexpected exception with message:
7730 custom exception
7731
7732 -------------------------------------------------------------------------------
7733 Objects that evaluated in boolean contexts can be checked
7734 -------------------------------------------------------------------------------
7735 Tricky.tests.cpp:<line number>
7736 ...............................................................................
7737
7738 Tricky.tests.cpp:<line number>: PASSED:
7739 CHECK( True )
7740 with expansion:
7741 {?}
7742
7743 Tricky.tests.cpp:<line number>: PASSED:
7744 CHECK( !False )
7745 with expansion:
7746 true
7747
7748 Tricky.tests.cpp:<line number>: PASSED:
7749 CHECK_FALSE( False )
7750 with expansion:
7751 !{?}
7752
7753 -------------------------------------------------------------------------------
7754 Optionally static assertions
7755 -------------------------------------------------------------------------------
7756 Compilation.tests.cpp:<line number>
7757 ...............................................................................
7758
7759 Compilation.tests.cpp:<line number>: PASSED:
7760 with message:
7761 std::is_void<void>::value
7762
7763 Compilation.tests.cpp:<line number>: PASSED:
7764 with message:
7765 !(std::is_void<int>::value)
7766
7767 Compilation.tests.cpp:<line number>: PASSED:
7768 with message:
7769 std::is_void<void>::value
7770
7771 Compilation.tests.cpp:<line number>: PASSED:
7772 with message:
7773 !(std::is_void<int>::value)
7774
7775 -------------------------------------------------------------------------------
7776 Ordering comparison checks that should fail
7777 -------------------------------------------------------------------------------
7778 Condition.tests.cpp:<line number>
7779 ...............................................................................
7780
7781 Condition.tests.cpp:<line number>: FAILED:
7782 CHECK( data.int_seven > 7 )
7783 with expansion:
7784 7 > 7
7785
7786 Condition.tests.cpp:<line number>: FAILED:
7787 CHECK( data.int_seven < 7 )
7788 with expansion:
7789 7 < 7
7790
7791 Condition.tests.cpp:<line number>: FAILED:
7792 CHECK( data.int_seven > 8 )
7793 with expansion:
7794 7 > 8
7795
7796 Condition.tests.cpp:<line number>: FAILED:
7797 CHECK( data.int_seven < 6 )
7798 with expansion:
7799 7 < 6
7800
7801 Condition.tests.cpp:<line number>: FAILED:
7802 CHECK( data.int_seven < 0 )
7803 with expansion:
7804 7 < 0
7805
7806 Condition.tests.cpp:<line number>: FAILED:
7807 CHECK( data.int_seven < -1 )
7808 with expansion:
7809 7 < -1
7810
7811 Condition.tests.cpp:<line number>: FAILED:
7812 CHECK( data.int_seven >= 8 )
7813 with expansion:
7814 7 >= 8
7815
7816 Condition.tests.cpp:<line number>: FAILED:
7817 CHECK( data.int_seven <= 6 )
7818 with expansion:
7819 7 <= 6
7820
7821 Condition.tests.cpp:<line number>: FAILED:
7822 CHECK( data.float_nine_point_one < 9 )
7823 with expansion:
7824 9.1f < 9
7825
7826 Condition.tests.cpp:<line number>: FAILED:
7827 CHECK( data.float_nine_point_one > 10 )
7828 with expansion:
7829 9.1f > 10
7830
7831 Condition.tests.cpp:<line number>: FAILED:
7832 CHECK( data.float_nine_point_one > 9.2 )
7833 with expansion:
7834 9.1f > 9.2
7835
7836 Condition.tests.cpp:<line number>: FAILED:
7837 CHECK( data.str_hello > "hello" )
7838 with expansion:
7839 "hello" > "hello"
7840
7841 Condition.tests.cpp:<line number>: FAILED:
7842 CHECK( data.str_hello < "hello" )
7843 with expansion:
7844 "hello" < "hello"
7845
7846 Condition.tests.cpp:<line number>: FAILED:
7847 CHECK( data.str_hello > "hellp" )
7848 with expansion:
7849 "hello" > "hellp"
7850
7851 Condition.tests.cpp:<line number>: FAILED:
7852 CHECK( data.str_hello > "z" )
7853 with expansion:
7854 "hello" > "z"
7855
7856 Condition.tests.cpp:<line number>: FAILED:
7857 CHECK( data.str_hello < "hellm" )
7858 with expansion:
7859 "hello" < "hellm"
7860
7861 Condition.tests.cpp:<line number>: FAILED:
7862 CHECK( data.str_hello < "a" )
7863 with expansion:
7864 "hello" < "a"
7865
7866 Condition.tests.cpp:<line number>: FAILED:
7867 CHECK( data.str_hello >= "z" )
7868 with expansion:
7869 "hello" >= "z"
7870
7871 Condition.tests.cpp:<line number>: FAILED:
7872 CHECK( data.str_hello <= "a" )
7873 with expansion:
7874 "hello" <= "a"
7875
7876 -------------------------------------------------------------------------------
7877 Ordering comparison checks that should succeed
7878 -------------------------------------------------------------------------------
7879 Condition.tests.cpp:<line number>
7880 ...............................................................................
7881
7882 Condition.tests.cpp:<line number>: PASSED:
7883 REQUIRE( data.int_seven < 8 )
7884 with expansion:
7885 7 < 8
7886
7887 Condition.tests.cpp:<line number>: PASSED:
7888 REQUIRE( data.int_seven > 6 )
7889 with expansion:
7890 7 > 6
7891
7892 Condition.tests.cpp:<line number>: PASSED:
7893 REQUIRE( data.int_seven > 0 )
7894 with expansion:
7895 7 > 0
7896
7897 Condition.tests.cpp:<line number>: PASSED:
7898 REQUIRE( data.int_seven > -1 )
7899 with expansion:
7900 7 > -1
7901
7902 Condition.tests.cpp:<line number>: PASSED:
7903 REQUIRE( data.int_seven >= 7 )
7904 with expansion:
7905 7 >= 7
7906
7907 Condition.tests.cpp:<line number>: PASSED:
7908 REQUIRE( data.int_seven >= 6 )
7909 with expansion:
7910 7 >= 6
7911
7912 Condition.tests.cpp:<line number>: PASSED:
7913 REQUIRE( data.int_seven <= 7 )
7914 with expansion:
7915 7 <= 7
7916
7917 Condition.tests.cpp:<line number>: PASSED:
7918 REQUIRE( data.int_seven <= 8 )
7919 with expansion:
7920 7 <= 8
7921
7922 Condition.tests.cpp:<line number>: PASSED:
7923 REQUIRE( data.float_nine_point_one > 9 )
7924 with expansion:
7925 9.1f > 9
7926
7927 Condition.tests.cpp:<line number>: PASSED:
7928 REQUIRE( data.float_nine_point_one < 10 )
7929 with expansion:
7930 9.1f < 10
7931
7932 Condition.tests.cpp:<line number>: PASSED:
7933 REQUIRE( data.float_nine_point_one < 9.2 )
7934 with expansion:
7935 9.1f < 9.2
7936
7937 Condition.tests.cpp:<line number>: PASSED:
7938 REQUIRE( data.str_hello <= "hello" )
7939 with expansion:
7940 "hello" <= "hello"
7941
7942 Condition.tests.cpp:<line number>: PASSED:
7943 REQUIRE( data.str_hello >= "hello" )
7944 with expansion:
7945 "hello" >= "hello"
7946
7947 Condition.tests.cpp:<line number>: PASSED:
7948 REQUIRE( data.str_hello < "hellp" )
7949 with expansion:
7950 "hello" < "hellp"
7951
7952 Condition.tests.cpp:<line number>: PASSED:
7953 REQUIRE( data.str_hello < "zebra" )
7954 with expansion:
7955 "hello" < "zebra"
7956
7957 Condition.tests.cpp:<line number>: PASSED:
7958 REQUIRE( data.str_hello > "hellm" )
7959 with expansion:
7960 "hello" > "hellm"
7961
7962 Condition.tests.cpp:<line number>: PASSED:
7963 REQUIRE( data.str_hello > "a" )
7964 with expansion:
7965 "hello" > "a"
7966
7967 -------------------------------------------------------------------------------
7968 Our PCG implementation provides expected results for known seeds
7969 Default seeded
7970 -------------------------------------------------------------------------------
7971 RandomNumberGeneration.tests.cpp:<line number>
7972 ...............................................................................
7973
7974 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
7975 REQUIRE( rng() == 0x<hex digits> )
7976 with expansion:
7977 4242248763 (0x<hex digits>)
7978 ==
7979 4242248763 (0x<hex digits>)
7980
7981 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
7982 REQUIRE( rng() == 0x<hex digits> )
7983 with expansion:
7984 1867888929 (0x<hex digits>)
7985 ==
7986 1867888929 (0x<hex digits>)
7987
7988 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
7989 REQUIRE( rng() == 0x<hex digits> )
7990 with expansion:
7991 1276619030 (0x<hex digits>)
7992 ==
7993 1276619030 (0x<hex digits>)
7994
7995 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
7996 REQUIRE( rng() == 0x<hex digits> )
7997 with expansion:
7998 1911218783 (0x<hex digits>)
7999 ==
8000 1911218783 (0x<hex digits>)
8001
8002 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8003 REQUIRE( rng() == 0x<hex digits> )
8004 with expansion:
8005 1827115164 (0x<hex digits>)
8006 ==
8007 1827115164 (0x<hex digits>)
8008
8009 -------------------------------------------------------------------------------
8010 Our PCG implementation provides expected results for known seeds
8011 Specific seed
8012 -------------------------------------------------------------------------------
8013 RandomNumberGeneration.tests.cpp:<line number>
8014 ...............................................................................
8015
8016 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8017 REQUIRE( rng() == 0x<hex digits> )
8018 with expansion:
8019 1472234645 (0x<hex digits>)
8020 ==
8021 1472234645 (0x<hex digits>)
8022
8023 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8024 REQUIRE( rng() == 0x<hex digits> )
8025 with expansion:
8026 868832940 (0x<hex digits>)
8027 ==
8028 868832940 (0x<hex digits>)
8029
8030 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8031 REQUIRE( rng() == 0x<hex digits> )
8032 with expansion:
8033 570883446 (0x<hex digits>)
8034 ==
8035 570883446 (0x<hex digits>)
8036
8037 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8038 REQUIRE( rng() == 0x<hex digits> )
8039 with expansion:
8040 889299803 (0x<hex digits>)
8041 ==
8042 889299803 (0x<hex digits>)
8043
8044 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8045 REQUIRE( rng() == 0x<hex digits> )
8046 with expansion:
8047 4261393167 (0x<hex digits>)
8048 ==
8049 4261393167 (0x<hex digits>)
8050
8051 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8052 REQUIRE( rng() == 0x<hex digits> )
8053 with expansion:
8054 1472234645 (0x<hex digits>)
8055 ==
8056 1472234645 (0x<hex digits>)
8057
8058 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8059 REQUIRE( rng() == 0x<hex digits> )
8060 with expansion:
8061 868832940 (0x<hex digits>)
8062 ==
8063 868832940 (0x<hex digits>)
8064
8065 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8066 REQUIRE( rng() == 0x<hex digits> )
8067 with expansion:
8068 570883446 (0x<hex digits>)
8069 ==
8070 570883446 (0x<hex digits>)
8071
8072 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8073 REQUIRE( rng() == 0x<hex digits> )
8074 with expansion:
8075 889299803 (0x<hex digits>)
8076 ==
8077 889299803 (0x<hex digits>)
8078
8079 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8080 REQUIRE( rng() == 0x<hex digits> )
8081 with expansion:
8082 4261393167 (0x<hex digits>)
8083 ==
8084 4261393167 (0x<hex digits>)
8085
8086 -------------------------------------------------------------------------------
8087 Output from all sections is reported
8088 one
8089 -------------------------------------------------------------------------------
8090 Message.tests.cpp:<line number>
8091 ...............................................................................
8092
8093 Message.tests.cpp:<line number>: FAILED:
8094 explicitly with message:
8095 Message from section one
8096
8097 -------------------------------------------------------------------------------
8098 Output from all sections is reported
8099 two
8100 -------------------------------------------------------------------------------
8101 Message.tests.cpp:<line number>
8102 ...............................................................................
8103
8104 Message.tests.cpp:<line number>: FAILED:
8105 explicitly with message:
8106 Message from section two
8107
8108 -------------------------------------------------------------------------------
8109 Overloaded comma or address-of operators are not used
8110 -------------------------------------------------------------------------------
8111 Matchers.tests.cpp:<line number>
8112 ...............................................................................
8113
8114 Matchers.tests.cpp:<line number>: PASSED:
8115 REQUIRE_THROWS_AS( ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed )
8116
8117 Matchers.tests.cpp:<line number>: PASSED:
8118 REQUIRE_THROWS_AS( &EvilMatcher(), EvilAddressOfOperatorUsed )
8119
8120 Matchers.tests.cpp:<line number>: PASSED:
8121 REQUIRE_NOTHROW( EvilMatcher() || ( EvilMatcher() && !EvilMatcher() ) )
8122
8123 Matchers.tests.cpp:<line number>: PASSED:
8124 REQUIRE_NOTHROW( ( EvilMatcher() && EvilMatcher() ) || !EvilMatcher() )
8125
8126 -------------------------------------------------------------------------------
8127 Parse uints
8128 proper inputs
8129 -------------------------------------------------------------------------------
8130 Parse.tests.cpp:<line number>
8131 ...............................................................................
8132
8133 Parse.tests.cpp:<line number>: PASSED:
8134 REQUIRE( parseUInt( "0" ) == Optional<unsigned int>{ 0 } )
8135 with expansion:
8136 {?} == {?}
8137
8138 Parse.tests.cpp:<line number>: PASSED:
8139 REQUIRE( parseUInt( "100" ) == Optional<unsigned int>{ 100 } )
8140 with expansion:
8141 {?} == {?}
8142
8143 Parse.tests.cpp:<line number>: PASSED:
8144 REQUIRE( parseUInt( "4294967295" ) == Optional<unsigned int>{ 4294967295 } )
8145 with expansion:
8146 {?} == {?}
8147
8148 Parse.tests.cpp:<line number>: PASSED:
8149 REQUIRE( parseUInt( "0x<hex digits>", 16 ) == Optional<unsigned int>{ 255 } )
8150 with expansion:
8151 {?} == {?}
8152
8153 -------------------------------------------------------------------------------
8154 Parse uints
8155 Bad inputs
8156 -------------------------------------------------------------------------------
8157 Parse.tests.cpp:<line number>
8158 ...............................................................................
8159
8160 Parse.tests.cpp:<line number>: PASSED:
8161 REQUIRE_FALSE( parseUInt( "" ) )
8162 with expansion:
8163 !{?}
8164
8165 Parse.tests.cpp:<line number>: PASSED:
8166 REQUIRE_FALSE( parseUInt( "!!KJHF*#" ) )
8167 with expansion:
8168 !{?}
8169
8170 Parse.tests.cpp:<line number>: PASSED:
8171 REQUIRE_FALSE( parseUInt( "-1" ) )
8172 with expansion:
8173 !{?}
8174
8175 Parse.tests.cpp:<line number>: PASSED:
8176 REQUIRE_FALSE( parseUInt( "4294967296" ) )
8177 with expansion:
8178 !{?}
8179
8180 Parse.tests.cpp:<line number>: PASSED:
8181 REQUIRE_FALSE( parseUInt( "42949672964294967296429496729642949672964294967296" ) )
8182 with expansion:
8183 !{?}
8184
8185 Parse.tests.cpp:<line number>: PASSED:
8186 REQUIRE_FALSE( parseUInt( "2 4" ) )
8187 with expansion:
8188 !{?}
8189
8190 Parse.tests.cpp:<line number>: PASSED:
8191 REQUIRE_FALSE( parseUInt( "0x<hex digits>", 10 ) )
8192 with expansion:
8193 !{?}
8194
8195 -------------------------------------------------------------------------------
8196 Parsed tags are matched case insensitive
8197 -------------------------------------------------------------------------------
8198 TestSpecParser.tests.cpp:<line number>
8199 ...............................................................................
8200
8201 TestSpecParser.tests.cpp:<line number>: PASSED:
8202 REQUIRE( spec.hasFilters() )
8203 with expansion:
8204 true
8205
8206 TestSpecParser.tests.cpp:<line number>: PASSED:
8207 REQUIRE( spec.getInvalidSpecs().empty() )
8208 with expansion:
8209 true
8210
8211 TestSpecParser.tests.cpp:<line number>: PASSED:
8212 REQUIRE( spec.matches( testCase ) )
8213 with expansion:
8214 true
8215
8216 -------------------------------------------------------------------------------
8217 Parsing sharding-related cli flags
8218 shard-count
8219 -------------------------------------------------------------------------------
8220 CmdLine.tests.cpp:<line number>
8221 ...............................................................................
8222
8223 CmdLine.tests.cpp:<line number>: PASSED:
8224 CHECK( cli.parse({ "test", "--shard-count=8" }) )
8225 with expansion:
8226 {?}
8227
8228 CmdLine.tests.cpp:<line number>: PASSED:
8229 REQUIRE( config.shardCount == 8 )
8230 with expansion:
8231 8 == 8
8232
8233 -------------------------------------------------------------------------------
8234 Parsing sharding-related cli flags
8235 Negative shard count reports error
8236 -------------------------------------------------------------------------------
8237 CmdLine.tests.cpp:<line number>
8238 ...............................................................................
8239
8240 CmdLine.tests.cpp:<line number>: PASSED:
8241 CHECK_FALSE( result )
8242 with expansion:
8243 !{?}
8244
8245 CmdLine.tests.cpp:<line number>: PASSED:
8246 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Could not parse '-1' as shard count" ) )
8247 with expansion:
8248 "Could not parse '-1' as shard count" contains: "Could not parse '-1' as
8249 shard count"
8250
8251 -------------------------------------------------------------------------------
8252 Parsing sharding-related cli flags
8253 Zero shard count reports error
8254 -------------------------------------------------------------------------------
8255 CmdLine.tests.cpp:<line number>
8256 ...............................................................................
8257
8258 CmdLine.tests.cpp:<line number>: PASSED:
8259 CHECK_FALSE( result )
8260 with expansion:
8261 !{?}
8262
8263 CmdLine.tests.cpp:<line number>: PASSED:
8264 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Shard count must be positive" ) )
8265 with expansion:
8266 "Shard count must be positive" contains: "Shard count must be positive"
8267
8268 -------------------------------------------------------------------------------
8269 Parsing sharding-related cli flags
8270 shard-index
8271 -------------------------------------------------------------------------------
8272 CmdLine.tests.cpp:<line number>
8273 ...............................................................................
8274
8275 CmdLine.tests.cpp:<line number>: PASSED:
8276 CHECK( cli.parse({ "test", "--shard-index=2" }) )
8277 with expansion:
8278 {?}
8279
8280 CmdLine.tests.cpp:<line number>: PASSED:
8281 REQUIRE( config.shardIndex == 2 )
8282 with expansion:
8283 2 == 2
8284
8285 -------------------------------------------------------------------------------
8286 Parsing sharding-related cli flags
8287 Negative shard index reports error
8288 -------------------------------------------------------------------------------
8289 CmdLine.tests.cpp:<line number>
8290 ...............................................................................
8291
8292 CmdLine.tests.cpp:<line number>: PASSED:
8293 CHECK_FALSE( result )
8294 with expansion:
8295 !{?}
8296
8297 CmdLine.tests.cpp:<line number>: PASSED:
8298 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Could not parse '-12' as shard index" ) )
8299 with expansion:
8300 "Could not parse '-12' as shard index" contains: "Could not parse '-12' as
8301 shard index"
8302
8303 -------------------------------------------------------------------------------
8304 Parsing sharding-related cli flags
8305 Shard index 0 is accepted
8306 -------------------------------------------------------------------------------
8307 CmdLine.tests.cpp:<line number>
8308 ...............................................................................
8309
8310 CmdLine.tests.cpp:<line number>: PASSED:
8311 CHECK( cli.parse({ "test", "--shard-index=0" }) )
8312 with expansion:
8313 {?}
8314
8315 CmdLine.tests.cpp:<line number>: PASSED:
8316 REQUIRE( config.shardIndex == 0 )
8317 with expansion:
8318 0 == 0
8319
8320 -------------------------------------------------------------------------------
8321 Parsing tags with non-alphabetical characters is pass-through
8322 -------------------------------------------------------------------------------
8323 TestSpecParser.tests.cpp:<line number>
8324 ...............................................................................
8325
8326 TestSpecParser.tests.cpp:<line number>: PASSED:
8327 REQUIRE( spec.hasFilters() )
8328 with expansion:
8329 true
8330 with message:
8331 tagString := "[tag with spaces]"
8332
8333 TestSpecParser.tests.cpp:<line number>: PASSED:
8334 REQUIRE( spec.getInvalidSpecs().empty() )
8335 with expansion:
8336 true
8337 with message:
8338 tagString := "[tag with spaces]"
8339
8340 TestSpecParser.tests.cpp:<line number>: PASSED:
8341 REQUIRE( spec.matches( testCase ) )
8342 with expansion:
8343 true
8344 with message:
8345 tagString := "[tag with spaces]"
8346
8347 -------------------------------------------------------------------------------
8348 Parsing tags with non-alphabetical characters is pass-through
8349 -------------------------------------------------------------------------------
8350 TestSpecParser.tests.cpp:<line number>
8351 ...............................................................................
8352
8353 TestSpecParser.tests.cpp:<line number>: PASSED:
8354 REQUIRE( spec.hasFilters() )
8355 with expansion:
8356 true
8357 with message:
8358 tagString := "[I said "good day" sir!]"
8359
8360 TestSpecParser.tests.cpp:<line number>: PASSED:
8361 REQUIRE( spec.getInvalidSpecs().empty() )
8362 with expansion:
8363 true
8364 with message:
8365 tagString := "[I said "good day" sir!]"
8366
8367 TestSpecParser.tests.cpp:<line number>: PASSED:
8368 REQUIRE( spec.matches( testCase ) )
8369 with expansion:
8370 true
8371 with message:
8372 tagString := "[I said "good day" sir!]"
8373
8374 -------------------------------------------------------------------------------
8375 Parsing warnings
8376 NoAssertions
8377 -------------------------------------------------------------------------------
8378 CmdLine.tests.cpp:<line number>
8379 ...............................................................................
8380
8381 CmdLine.tests.cpp:<line number>: PASSED:
8382 REQUIRE( cli.parse( { "test", "-w", "NoAssertions" } ) )
8383 with expansion:
8384 {?}
8385
8386 CmdLine.tests.cpp:<line number>: PASSED:
8387 REQUIRE( config.warnings == WarnAbout::NoAssertions )
8388 with expansion:
8389 1 == 1
8390
8391 -------------------------------------------------------------------------------
8392 Parsing warnings
8393 NoTests is no longer supported
8394 -------------------------------------------------------------------------------
8395 CmdLine.tests.cpp:<line number>
8396 ...............................................................................
8397
8398 CmdLine.tests.cpp:<line number>: PASSED:
8399 REQUIRE_FALSE( cli.parse( { "test", "-w", "NoTests" } ) )
8400 with expansion:
8401 !{?}
8402
8403 -------------------------------------------------------------------------------
8404 Parsing warnings
8405 Combining multiple warnings
8406 -------------------------------------------------------------------------------
8407 CmdLine.tests.cpp:<line number>
8408 ...............................................................................
8409
8410 CmdLine.tests.cpp:<line number>: PASSED:
8411 REQUIRE( cli.parse( { "test", "--warn", "NoAssertions", "--warn", "UnmatchedTestSpec" } ) )
8412 with expansion:
8413 {?}
8414
8415 CmdLine.tests.cpp:<line number>: PASSED:
8416 REQUIRE( config.warnings == ( WarnAbout::NoAssertions | WarnAbout::UnmatchedTestSpec ) )
8417 with expansion:
8418 3 == 3
8419
8420 -------------------------------------------------------------------------------
8421 Pointers can be compared to null
8422 -------------------------------------------------------------------------------
8423 Condition.tests.cpp:<line number>
8424 ...............................................................................
8425
8426 Condition.tests.cpp:<line number>: PASSED:
8427 REQUIRE( p == 0 )
8428 with expansion:
8429 0 == 0
8430
8431 Condition.tests.cpp:<line number>: PASSED:
8432 REQUIRE( p == pNULL )
8433 with expansion:
8434 0 == 0
8435
8436 Condition.tests.cpp:<line number>: PASSED:
8437 REQUIRE( p != 0 )
8438 with expansion:
8439 0x<hex digits> != 0
8440
8441 Condition.tests.cpp:<line number>: PASSED:
8442 REQUIRE( cp != 0 )
8443 with expansion:
8444 0x<hex digits> != 0
8445
8446 Condition.tests.cpp:<line number>: PASSED:
8447 REQUIRE( cpc != 0 )
8448 with expansion:
8449 0x<hex digits> != 0
8450
8451 Condition.tests.cpp:<line number>: PASSED:
8452 REQUIRE( returnsNull() == 0 )
8453 with expansion:
8454 {null string} == 0
8455
8456 Condition.tests.cpp:<line number>: PASSED:
8457 REQUIRE( returnsConstNull() == 0 )
8458 with expansion:
8459 {null string} == 0
8460
8461 Condition.tests.cpp:<line number>: PASSED:
8462 REQUIRE( 0 != p )
8463 with expansion:
8464 0 != 0x<hex digits>
8465
8466 -------------------------------------------------------------------------------
8467 Precision of floating point stringification can be set
8468 Floats
8469 -------------------------------------------------------------------------------
8470 ToStringGeneral.tests.cpp:<line number>
8471 ...............................................................................
8472
8473 ToStringGeneral.tests.cpp:<line number>: PASSED:
8474 CHECK( str1.size() == 3 + 5 )
8475 with expansion:
8476 8 == 8
8477
8478 ToStringGeneral.tests.cpp:<line number>: PASSED:
8479 REQUIRE( str2.size() == 3 + 10 )
8480 with expansion:
8481 13 == 13
8482
8483 -------------------------------------------------------------------------------
8484 Precision of floating point stringification can be set
8485 Double
8486 -------------------------------------------------------------------------------
8487 ToStringGeneral.tests.cpp:<line number>
8488 ...............................................................................
8489
8490 ToStringGeneral.tests.cpp:<line number>: PASSED:
8491 CHECK( str1.size() == 2 + 5 )
8492 with expansion:
8493 7 == 7
8494
8495 ToStringGeneral.tests.cpp:<line number>: PASSED:
8496 REQUIRE( str2.size() == 2 + 15 )
8497 with expansion:
8498 17 == 17
8499
8500 -------------------------------------------------------------------------------
8501 Predicate matcher can accept const char*
8502 -------------------------------------------------------------------------------
8503 Matchers.tests.cpp:<line number>
8504 ...............................................................................
8505
8506 Matchers.tests.cpp:<line number>: PASSED:
8507 REQUIRE_THAT( "foo", Predicate<const char*>( []( const char* const& ) { return true; } ) )
8508 with expansion:
8509 "foo" matches undescribed predicate
8510
8511 -------------------------------------------------------------------------------
8512 Process can be configured on command line
8513 empty args don't cause a crash
8514 -------------------------------------------------------------------------------
8515 CmdLine.tests.cpp:<line number>
8516 ...............................................................................
8517
8518 CmdLine.tests.cpp:<line number>: PASSED:
8519 CHECK( result )
8520 with expansion:
8521 {?}
8522
8523 CmdLine.tests.cpp:<line number>: PASSED:
8524 CHECK( config.processName == "" )
8525 with expansion:
8526 "" == ""
8527
8528 -------------------------------------------------------------------------------
8529 Process can be configured on command line
8530 default - no arguments
8531 -------------------------------------------------------------------------------
8532 CmdLine.tests.cpp:<line number>
8533 ...............................................................................
8534
8535 CmdLine.tests.cpp:<line number>: PASSED:
8536 CHECK( result )
8537 with expansion:
8538 {?}
8539
8540 CmdLine.tests.cpp:<line number>: PASSED:
8541 CHECK( config.processName == "test" )
8542 with expansion:
8543 "test" == "test"
8544
8545 CmdLine.tests.cpp:<line number>: PASSED:
8546 CHECK( config.shouldDebugBreak == false )
8547 with expansion:
8548 false == false
8549
8550 CmdLine.tests.cpp:<line number>: PASSED:
8551 CHECK( config.abortAfter == -1 )
8552 with expansion:
8553 -1 == -1
8554
8555 CmdLine.tests.cpp:<line number>: PASSED:
8556 CHECK( config.noThrow == false )
8557 with expansion:
8558 false == false
8559
8560 CmdLine.tests.cpp:<line number>: PASSED:
8561 CHECK( config.reporterSpecifications.empty() )
8562 with expansion:
8563 true
8564
8565 CmdLine.tests.cpp:<line number>: PASSED:
8566 CHECK_FALSE( cfg.hasTestFilters() )
8567 with expansion:
8568 !false
8569
8570 CmdLine.tests.cpp:<line number>: PASSED:
8571 CHECK( cfg.getReporterSpecs().size() == 1 )
8572 with expansion:
8573 1 == 1
8574
8575 CmdLine.tests.cpp:<line number>: PASSED:
8576 CHECK( cfg.getReporterSpecs()[0] == Catch::ReporterSpec{ expectedReporter, {}, {}, {} } )
8577 with expansion:
8578 {?} == {?}
8579
8580 CmdLine.tests.cpp:<line number>: PASSED:
8581 CHECK( cfg.getProcessedReporterSpecs().size() == 1 )
8582 with expansion:
8583 1 == 1
8584
8585 CmdLine.tests.cpp:<line number>: PASSED:
8586 CHECK( cfg.getProcessedReporterSpecs()[0] == Catch::ProcessedReporterSpec{ expectedReporter, std::string{}, Catch::ColourMode::PlatformDefault, {} } )
8587 with expansion:
8588 {?} == {?}
8589
8590 -------------------------------------------------------------------------------
8591 Process can be configured on command line
8592 test lists
8593 Specify one test case using
8594 -------------------------------------------------------------------------------
8595 CmdLine.tests.cpp:<line number>
8596 ...............................................................................
8597
8598 CmdLine.tests.cpp:<line number>: PASSED:
8599 CHECK( result )
8600 with expansion:
8601 {?}
8602
8603 CmdLine.tests.cpp:<line number>: PASSED:
8604 REQUIRE( cfg.hasTestFilters() )
8605 with expansion:
8606 true
8607
8608 CmdLine.tests.cpp:<line number>: PASSED:
8609 REQUIRE( cfg.testSpec().matches(*fakeTestCase("notIncluded")) == false )
8610 with expansion:
8611 false == false
8612
8613 CmdLine.tests.cpp:<line number>: PASSED:
8614 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) )
8615 with expansion:
8616 true
8617
8618 -------------------------------------------------------------------------------
8619 Process can be configured on command line
8620 test lists
8621 Specify one test case exclusion using exclude:
8622 -------------------------------------------------------------------------------
8623 CmdLine.tests.cpp:<line number>
8624 ...............................................................................
8625
8626 CmdLine.tests.cpp:<line number>: PASSED:
8627 CHECK( result )
8628 with expansion:
8629 {?}
8630
8631 CmdLine.tests.cpp:<line number>: PASSED:
8632 REQUIRE( cfg.hasTestFilters() )
8633 with expansion:
8634 true
8635
8636 CmdLine.tests.cpp:<line number>: PASSED:
8637 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) == false )
8638 with expansion:
8639 false == false
8640
8641 CmdLine.tests.cpp:<line number>: PASSED:
8642 REQUIRE( cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) )
8643 with expansion:
8644 true
8645
8646 -------------------------------------------------------------------------------
8647 Process can be configured on command line
8648 test lists
8649 Specify one test case exclusion using ~
8650 -------------------------------------------------------------------------------
8651 CmdLine.tests.cpp:<line number>
8652 ...............................................................................
8653
8654 CmdLine.tests.cpp:<line number>: PASSED:
8655 CHECK( result )
8656 with expansion:
8657 {?}
8658
8659 CmdLine.tests.cpp:<line number>: PASSED:
8660 REQUIRE( cfg.hasTestFilters() )
8661 with expansion:
8662 true
8663
8664 CmdLine.tests.cpp:<line number>: PASSED:
8665 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) == false )
8666 with expansion:
8667 false == false
8668
8669 CmdLine.tests.cpp:<line number>: PASSED:
8670 REQUIRE( cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) )
8671 with expansion:
8672 true
8673
8674 -------------------------------------------------------------------------------
8675 Process can be configured on command line
8676 reporter
8677 -r/console
8678 -------------------------------------------------------------------------------
8679 CmdLine.tests.cpp:<line number>
8680 ...............................................................................
8681
8682 CmdLine.tests.cpp:<line number>: PASSED:
8683 CHECK( result )
8684 with expansion:
8685 {?}
8686 with message:
8687 result.errorMessage() := ""
8688
8689 CmdLine.tests.cpp:<line number>: PASSED:
8690 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", {}, {}, {} } } )
8691 with expansion:
8692 { {?} } == { {?} }
8693 with message:
8694 result.errorMessage() := ""
8695
8696 -------------------------------------------------------------------------------
8697 Process can be configured on command line
8698 reporter
8699 -r/xml
8700 -------------------------------------------------------------------------------
8701 CmdLine.tests.cpp:<line number>
8702 ...............................................................................
8703
8704 CmdLine.tests.cpp:<line number>: PASSED:
8705 CHECK( result )
8706 with expansion:
8707 {?}
8708 with message:
8709 result.errorMessage() := ""
8710
8711 CmdLine.tests.cpp:<line number>: PASSED:
8712 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", {}, {}, {} } } )
8713 with expansion:
8714 { {?} } == { {?} }
8715 with message:
8716 result.errorMessage() := ""
8717
8718 -------------------------------------------------------------------------------
8719 Process can be configured on command line
8720 reporter
8721 --reporter/junit
8722 -------------------------------------------------------------------------------
8723 CmdLine.tests.cpp:<line number>
8724 ...............................................................................
8725
8726 CmdLine.tests.cpp:<line number>: PASSED:
8727 CHECK( result )
8728 with expansion:
8729 {?}
8730 with message:
8731 result.errorMessage() := ""
8732
8733 CmdLine.tests.cpp:<line number>: PASSED:
8734 REQUIRE( config.reporterSpecifications == vec_Specs{ { "junit", {}, {}, {} } } )
8735 with expansion:
8736 { {?} } == { {?} }
8737 with message:
8738 result.errorMessage() := ""
8739
8740 -------------------------------------------------------------------------------
8741 Process can be configured on command line
8742 reporter
8743 must match one of the available ones
8744 -------------------------------------------------------------------------------
8745 CmdLine.tests.cpp:<line number>
8746 ...............................................................................
8747
8748 CmdLine.tests.cpp:<line number>: PASSED:
8749 CHECK( !result )
8750 with expansion:
8751 true
8752
8753 CmdLine.tests.cpp:<line number>: PASSED:
8754 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Unrecognized reporter") )
8755 with expansion:
8756 "Unrecognized reporter, 'unsupported'. Check available with --list-reporters"
8757 contains: "Unrecognized reporter"
8758
8759 -------------------------------------------------------------------------------
8760 Process can be configured on command line
8761 reporter
8762 With output file
8763 -------------------------------------------------------------------------------
8764 CmdLine.tests.cpp:<line number>
8765 ...............................................................................
8766
8767 CmdLine.tests.cpp:<line number>: PASSED:
8768 CHECK( result )
8769 with expansion:
8770 {?}
8771 with message:
8772 result.errorMessage() := ""
8773
8774 CmdLine.tests.cpp:<line number>: PASSED:
8775 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", "out.txt"s, {}, {} } } )
8776 with expansion:
8777 { {?} } == { {?} }
8778 with message:
8779 result.errorMessage() := ""
8780
8781 -------------------------------------------------------------------------------
8782 Process can be configured on command line
8783 reporter
8784 With Windows-like absolute path as output file
8785 -------------------------------------------------------------------------------
8786 CmdLine.tests.cpp:<line number>
8787 ...............................................................................
8788
8789 CmdLine.tests.cpp:<line number>: PASSED:
8790 CHECK( result )
8791 with expansion:
8792 {?}
8793 with message:
8794 result.errorMessage() := ""
8795
8796 CmdLine.tests.cpp:<line number>: PASSED:
8797 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", "C:\\Temp\\out.txt"s, {}, {} } } )
8798 with expansion:
8799 { {?} } == { {?} }
8800 with message:
8801 result.errorMessage() := ""
8802
8803 -------------------------------------------------------------------------------
8804 Process can be configured on command line
8805 reporter
8806 Multiple reporters
8807 All with output files
8808 -------------------------------------------------------------------------------
8809 CmdLine.tests.cpp:<line number>
8810 ...............................................................................
8811
8812 CmdLine.tests.cpp:<line number>: PASSED:
8813 CHECK( cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "junit::out=output-junit.xml" }) )
8814 with expansion:
8815 {?}
8816
8817 CmdLine.tests.cpp:<line number>: PASSED:
8818 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "junit", "output-junit.xml"s, {}, {} } } )
8819 with expansion:
8820 { {?}, {?} } == { {?}, {?} }
8821
8822 -------------------------------------------------------------------------------
8823 Process can be configured on command line
8824 reporter
8825 Multiple reporters
8826 Mixed output files and default output
8827 -------------------------------------------------------------------------------
8828 CmdLine.tests.cpp:<line number>
8829 ...............................................................................
8830
8831 CmdLine.tests.cpp:<line number>: PASSED:
8832 CHECK( cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "console" }) )
8833 with expansion:
8834 {?}
8835
8836 CmdLine.tests.cpp:<line number>: PASSED:
8837 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "console", {}, {}, {} } } )
8838 with expansion:
8839 { {?}, {?} } == { {?}, {?} }
8840
8841 -------------------------------------------------------------------------------
8842 Process can be configured on command line
8843 reporter
8844 Multiple reporters
8845 cannot have multiple reporters with default output
8846 -------------------------------------------------------------------------------
8847 CmdLine.tests.cpp:<line number>
8848 ...............................................................................
8849
8850 CmdLine.tests.cpp:<line number>: PASSED:
8851 CHECK( !result )
8852 with expansion:
8853 true
8854
8855 CmdLine.tests.cpp:<line number>: PASSED:
8856 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Only one reporter may have unspecified output file.") )
8857 with expansion:
8858 "Only one reporter may have unspecified output file." contains: "Only one
8859 reporter may have unspecified output file."
8860
8861 -------------------------------------------------------------------------------
8862 Process can be configured on command line
8863 debugger
8864 -b
8865 -------------------------------------------------------------------------------
8866 CmdLine.tests.cpp:<line number>
8867 ...............................................................................
8868
8869 CmdLine.tests.cpp:<line number>: PASSED:
8870 CHECK( cli.parse({"test", "-b"}) )
8871 with expansion:
8872 {?}
8873
8874 CmdLine.tests.cpp:<line number>: PASSED:
8875 REQUIRE( config.shouldDebugBreak == true )
8876 with expansion:
8877 true == true
8878
8879 -------------------------------------------------------------------------------
8880 Process can be configured on command line
8881 debugger
8882 --break
8883 -------------------------------------------------------------------------------
8884 CmdLine.tests.cpp:<line number>
8885 ...............................................................................
8886
8887 CmdLine.tests.cpp:<line number>: PASSED:
8888 CHECK( cli.parse({"test", "--break"}) )
8889 with expansion:
8890 {?}
8891
8892 CmdLine.tests.cpp:<line number>: PASSED:
8893 REQUIRE( config.shouldDebugBreak )
8894 with expansion:
8895 true
8896
8897 -------------------------------------------------------------------------------
8898 Process can be configured on command line
8899 abort
8900 -a aborts after first failure
8901 -------------------------------------------------------------------------------
8902 CmdLine.tests.cpp:<line number>
8903 ...............................................................................
8904
8905 CmdLine.tests.cpp:<line number>: PASSED:
8906 CHECK( cli.parse({"test", "-a"}) )
8907 with expansion:
8908 {?}
8909
8910 CmdLine.tests.cpp:<line number>: PASSED:
8911 REQUIRE( config.abortAfter == 1 )
8912 with expansion:
8913 1 == 1
8914
8915 -------------------------------------------------------------------------------
8916 Process can be configured on command line
8917 abort
8918 -x 2 aborts after two failures
8919 -------------------------------------------------------------------------------
8920 CmdLine.tests.cpp:<line number>
8921 ...............................................................................
8922
8923 CmdLine.tests.cpp:<line number>: PASSED:
8924 CHECK( cli.parse({"test", "-x", "2"}) )
8925 with expansion:
8926 {?}
8927
8928 CmdLine.tests.cpp:<line number>: PASSED:
8929 REQUIRE( config.abortAfter == 2 )
8930 with expansion:
8931 2 == 2
8932
8933 -------------------------------------------------------------------------------
8934 Process can be configured on command line
8935 abort
8936 -x must be numeric
8937 -------------------------------------------------------------------------------
8938 CmdLine.tests.cpp:<line number>
8939 ...............................................................................
8940
8941 CmdLine.tests.cpp:<line number>: PASSED:
8942 CHECK( !result )
8943 with expansion:
8944 true
8945
8946 CmdLine.tests.cpp:<line number>: PASSED:
8947 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("convert") && ContainsSubstring("oops") )
8948 with expansion:
8949 "Unable to convert 'oops' to destination type" ( contains: "convert" and
8950 contains: "oops" )
8951
8952 -------------------------------------------------------------------------------
8953 Process can be configured on command line
8954 abort
8955 wait-for-keypress
8956 Accepted options
8957 -------------------------------------------------------------------------------
8958 CmdLine.tests.cpp:<line number>
8959 ...............................................................................
8960
8961 CmdLine.tests.cpp:<line number>: PASSED:
8962 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
8963 with expansion:
8964 {?}
8965
8966 CmdLine.tests.cpp:<line number>: PASSED:
8967 REQUIRE( config.waitForKeypress == std::get<1>(input) )
8968 with expansion:
8969 0 == 0
8970
8971 -------------------------------------------------------------------------------
8972 Process can be configured on command line
8973 abort
8974 wait-for-keypress
8975 Accepted options
8976 -------------------------------------------------------------------------------
8977 CmdLine.tests.cpp:<line number>
8978 ...............................................................................
8979
8980 CmdLine.tests.cpp:<line number>: PASSED:
8981 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
8982 with expansion:
8983 {?}
8984
8985 CmdLine.tests.cpp:<line number>: PASSED:
8986 REQUIRE( config.waitForKeypress == std::get<1>(input) )
8987 with expansion:
8988 1 == 1
8989
8990 -------------------------------------------------------------------------------
8991 Process can be configured on command line
8992 abort
8993 wait-for-keypress
8994 Accepted options
8995 -------------------------------------------------------------------------------
8996 CmdLine.tests.cpp:<line number>
8997 ...............................................................................
8998
8999 CmdLine.tests.cpp:<line number>: PASSED:
9000 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9001 with expansion:
9002 {?}
9003
9004 CmdLine.tests.cpp:<line number>: PASSED:
9005 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9006 with expansion:
9007 2 == 2
9008
9009 -------------------------------------------------------------------------------
9010 Process can be configured on command line
9011 abort
9012 wait-for-keypress
9013 Accepted options
9014 -------------------------------------------------------------------------------
9015 CmdLine.tests.cpp:<line number>
9016 ...............................................................................
9017
9018 CmdLine.tests.cpp:<line number>: PASSED:
9019 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9020 with expansion:
9021 {?}
9022
9023 CmdLine.tests.cpp:<line number>: PASSED:
9024 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9025 with expansion:
9026 3 == 3
9027
9028 -------------------------------------------------------------------------------
9029 Process can be configured on command line
9030 abort
9031 wait-for-keypress
9032 invalid options are reported
9033 -------------------------------------------------------------------------------
9034 CmdLine.tests.cpp:<line number>
9035 ...............................................................................
9036
9037 CmdLine.tests.cpp:<line number>: PASSED:
9038 CHECK( !result )
9039 with expansion:
9040 true
9041
9042 CmdLine.tests.cpp:<line number>: PASSED:
9043 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("never") && ContainsSubstring("both") )
9044 with expansion:
9045 "keypress argument must be one of: never, start, exit or both. 'sometimes'
9046 not recognised" ( contains: "never" and contains: "both" )
9047
9048 -------------------------------------------------------------------------------
9049 Process can be configured on command line
9050 nothrow
9051 -e
9052 -------------------------------------------------------------------------------
9053 CmdLine.tests.cpp:<line number>
9054 ...............................................................................
9055
9056 CmdLine.tests.cpp:<line number>: PASSED:
9057 CHECK( cli.parse({"test", "-e"}) )
9058 with expansion:
9059 {?}
9060
9061 CmdLine.tests.cpp:<line number>: PASSED:
9062 REQUIRE( config.noThrow )
9063 with expansion:
9064 true
9065
9066 -------------------------------------------------------------------------------
9067 Process can be configured on command line
9068 nothrow
9069 --nothrow
9070 -------------------------------------------------------------------------------
9071 CmdLine.tests.cpp:<line number>
9072 ...............................................................................
9073
9074 CmdLine.tests.cpp:<line number>: PASSED:
9075 CHECK( cli.parse({"test", "--nothrow"}) )
9076 with expansion:
9077 {?}
9078
9079 CmdLine.tests.cpp:<line number>: PASSED:
9080 REQUIRE( config.noThrow )
9081 with expansion:
9082 true
9083
9084 -------------------------------------------------------------------------------
9085 Process can be configured on command line
9086 output filename
9087 -o filename
9088 -------------------------------------------------------------------------------
9089 CmdLine.tests.cpp:<line number>
9090 ...............................................................................
9091
9092 CmdLine.tests.cpp:<line number>: PASSED:
9093 CHECK( cli.parse({"test", "-o", "filename.ext"}) )
9094 with expansion:
9095 {?}
9096
9097 CmdLine.tests.cpp:<line number>: PASSED:
9098 REQUIRE( config.defaultOutputFilename == "filename.ext" )
9099 with expansion:
9100 "filename.ext" == "filename.ext"
9101
9102 -------------------------------------------------------------------------------
9103 Process can be configured on command line
9104 output filename
9105 --out
9106 -------------------------------------------------------------------------------
9107 CmdLine.tests.cpp:<line number>
9108 ...............................................................................
9109
9110 CmdLine.tests.cpp:<line number>: PASSED:
9111 CHECK( cli.parse({"test", "--out", "filename.ext"}) )
9112 with expansion:
9113 {?}
9114
9115 CmdLine.tests.cpp:<line number>: PASSED:
9116 REQUIRE( config.defaultOutputFilename == "filename.ext" )
9117 with expansion:
9118 "filename.ext" == "filename.ext"
9119
9120 -------------------------------------------------------------------------------
9121 Process can be configured on command line
9122 combinations
9123 Single character flags can be combined
9124 -------------------------------------------------------------------------------
9125 CmdLine.tests.cpp:<line number>
9126 ...............................................................................
9127
9128 CmdLine.tests.cpp:<line number>: PASSED:
9129 CHECK( cli.parse({"test", "-abe"}) )
9130 with expansion:
9131 {?}
9132
9133 CmdLine.tests.cpp:<line number>: PASSED:
9134 CHECK( config.abortAfter == 1 )
9135 with expansion:
9136 1 == 1
9137
9138 CmdLine.tests.cpp:<line number>: PASSED:
9139 CHECK( config.shouldDebugBreak )
9140 with expansion:
9141 true
9142
9143 CmdLine.tests.cpp:<line number>: PASSED:
9144 CHECK( config.noThrow == true )
9145 with expansion:
9146 true == true
9147
9148 -------------------------------------------------------------------------------
9149 Process can be configured on command line
9150 use-colour
9151 without option
9152 -------------------------------------------------------------------------------
9153 CmdLine.tests.cpp:<line number>
9154 ...............................................................................
9155
9156 CmdLine.tests.cpp:<line number>: PASSED:
9157 CHECK( cli.parse({"test"}) )
9158 with expansion:
9159 {?}
9160
9161 CmdLine.tests.cpp:<line number>: PASSED:
9162 REQUIRE( config.defaultColourMode == ColourMode::PlatformDefault )
9163 with expansion:
9164 0 == 0
9165
9166 -------------------------------------------------------------------------------
9167 Process can be configured on command line
9168 use-colour
9169 auto
9170 -------------------------------------------------------------------------------
9171 CmdLine.tests.cpp:<line number>
9172 ...............................................................................
9173
9174 CmdLine.tests.cpp:<line number>: PASSED:
9175 CHECK( cli.parse( { "test", "--colour-mode", "default" } ) )
9176 with expansion:
9177 {?}
9178
9179 CmdLine.tests.cpp:<line number>: PASSED:
9180 REQUIRE( config.defaultColourMode == ColourMode::PlatformDefault )
9181 with expansion:
9182 0 == 0
9183
9184 -------------------------------------------------------------------------------
9185 Process can be configured on command line
9186 use-colour
9187 yes
9188 -------------------------------------------------------------------------------
9189 CmdLine.tests.cpp:<line number>
9190 ...............................................................................
9191
9192 CmdLine.tests.cpp:<line number>: PASSED:
9193 CHECK( cli.parse({"test", "--colour-mode", "ansi"}) )
9194 with expansion:
9195 {?}
9196
9197 CmdLine.tests.cpp:<line number>: PASSED:
9198 REQUIRE( config.defaultColourMode == ColourMode::ANSI )
9199 with expansion:
9200 1 == 1
9201
9202 -------------------------------------------------------------------------------
9203 Process can be configured on command line
9204 use-colour
9205 no
9206 -------------------------------------------------------------------------------
9207 CmdLine.tests.cpp:<line number>
9208 ...............................................................................
9209
9210 CmdLine.tests.cpp:<line number>: PASSED:
9211 CHECK( cli.parse({"test", "--colour-mode", "none"}) )
9212 with expansion:
9213 {?}
9214
9215 CmdLine.tests.cpp:<line number>: PASSED:
9216 REQUIRE( config.defaultColourMode == ColourMode::None )
9217 with expansion:
9218 3 == 3
9219
9220 -------------------------------------------------------------------------------
9221 Process can be configured on command line
9222 use-colour
9223 error
9224 -------------------------------------------------------------------------------
9225 CmdLine.tests.cpp:<line number>
9226 ...............................................................................
9227
9228 CmdLine.tests.cpp:<line number>: PASSED:
9229 CHECK( !result )
9230 with expansion:
9231 true
9232
9233 CmdLine.tests.cpp:<line number>: PASSED:
9234 CHECK_THAT( result.errorMessage(), ContainsSubstring( "colour mode must be one of" ) )
9235 with expansion:
9236 "colour mode must be one of: default, ansi, win32, or none. 'wrong' is not
9237 recognised" contains: "colour mode must be one of"
9238
9239 -------------------------------------------------------------------------------
9240 Process can be configured on command line
9241 Benchmark options
9242 samples
9243 -------------------------------------------------------------------------------
9244 CmdLine.tests.cpp:<line number>
9245 ...............................................................................
9246
9247 CmdLine.tests.cpp:<line number>: PASSED:
9248 CHECK( cli.parse({ "test", "--benchmark-samples=200" }) )
9249 with expansion:
9250 {?}
9251
9252 CmdLine.tests.cpp:<line number>: PASSED:
9253 REQUIRE( config.benchmarkSamples == 200 )
9254 with expansion:
9255 200 == 200
9256
9257 -------------------------------------------------------------------------------
9258 Process can be configured on command line
9259 Benchmark options
9260 resamples
9261 -------------------------------------------------------------------------------
9262 CmdLine.tests.cpp:<line number>
9263 ...............................................................................
9264
9265 CmdLine.tests.cpp:<line number>: PASSED:
9266 CHECK( cli.parse({ "test", "--benchmark-resamples=20000" }) )
9267 with expansion:
9268 {?}
9269
9270 CmdLine.tests.cpp:<line number>: PASSED:
9271 REQUIRE( config.benchmarkResamples == 20000 )
9272 with expansion:
9273 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
9274
9275 -------------------------------------------------------------------------------
9276 Process can be configured on command line
9277 Benchmark options
9278 confidence-interval
9279 -------------------------------------------------------------------------------
9280 CmdLine.tests.cpp:<line number>
9281 ...............................................................................
9282
9283 CmdLine.tests.cpp:<line number>: PASSED:
9284 CHECK( cli.parse({ "test", "--benchmark-confidence-interval=0.99" }) )
9285 with expansion:
9286 {?}
9287
9288 CmdLine.tests.cpp:<line number>: PASSED:
9289 REQUIRE( config.benchmarkConfidenceInterval == Catch::Approx(0.99) )
9290 with expansion:
9291 0.99 == Approx( 0.99 )
9292
9293 -------------------------------------------------------------------------------
9294 Process can be configured on command line
9295 Benchmark options
9296 no-analysis
9297 -------------------------------------------------------------------------------
9298 CmdLine.tests.cpp:<line number>
9299 ...............................................................................
9300
9301 CmdLine.tests.cpp:<line number>: PASSED:
9302 CHECK( cli.parse({ "test", "--benchmark-no-analysis" }) )
9303 with expansion:
9304 {?}
9305
9306 CmdLine.tests.cpp:<line number>: PASSED:
9307 REQUIRE( config.benchmarkNoAnalysis )
9308 with expansion:
9309 true
9310
9311 -------------------------------------------------------------------------------
9312 Process can be configured on command line
9313 Benchmark options
9314 warmup-time
9315 -------------------------------------------------------------------------------
9316 CmdLine.tests.cpp:<line number>
9317 ...............................................................................
9318
9319 CmdLine.tests.cpp:<line number>: PASSED:
9320 CHECK( cli.parse({ "test", "--benchmark-warmup-time=10" }) )
9321 with expansion:
9322 {?}
9323
9324 CmdLine.tests.cpp:<line number>: PASSED:
9325 REQUIRE( config.benchmarkWarmupTime == 10 )
9326 with expansion:
9327 10 == 10
9328
9329 -------------------------------------------------------------------------------
9330 Product with differing arities - std::tuple<int, double, float>
9331 -------------------------------------------------------------------------------
9332 Misc.tests.cpp:<line number>
9333 ...............................................................................
9334
9335 Misc.tests.cpp:<line number>: PASSED:
9336 REQUIRE( std::tuple_size<TestType>::value >= 1 )
9337 with expansion:
9338 3 >= 1
9339
9340 -------------------------------------------------------------------------------
9341 Product with differing arities - std::tuple<int, double>
9342 -------------------------------------------------------------------------------
9343 Misc.tests.cpp:<line number>
9344 ...............................................................................
9345
9346 Misc.tests.cpp:<line number>: PASSED:
9347 REQUIRE( std::tuple_size<TestType>::value >= 1 )
9348 with expansion:
9349 2 >= 1
9350
9351 -------------------------------------------------------------------------------
9352 Product with differing arities - std::tuple<int>
9353 -------------------------------------------------------------------------------
9354 Misc.tests.cpp:<line number>
9355 ...............................................................................
9356
9357 Misc.tests.cpp:<line number>: PASSED:
9358 REQUIRE( std::tuple_size<TestType>::value >= 1 )
9359 with expansion:
9360 1 >= 1
9361
9362 -------------------------------------------------------------------------------
9363 Random seed generation accepts known methods
9364 -------------------------------------------------------------------------------
9365 RandomNumberGeneration.tests.cpp:<line number>
9366 ...............................................................................
9367
9368 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
9369 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
9370
9371 -------------------------------------------------------------------------------
9372 Random seed generation accepts known methods
9373 -------------------------------------------------------------------------------
9374 RandomNumberGeneration.tests.cpp:<line number>
9375 ...............................................................................
9376
9377 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
9378 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
9379
9380 -------------------------------------------------------------------------------
9381 Random seed generation accepts known methods
9382 -------------------------------------------------------------------------------
9383 RandomNumberGeneration.tests.cpp:<line number>
9384 ...............................................................................
9385
9386 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
9387 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
9388
9389 -------------------------------------------------------------------------------
9390 Random seed generation reports unknown methods
9391 -------------------------------------------------------------------------------
9392 RandomNumberGeneration.tests.cpp:<line number>
9393 ...............................................................................
9394
9395 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
9396 REQUIRE_THROWS( Catch::generateRandomSeed(static_cast<Catch::GenerateFrom>(77)) )
9397
9398 -------------------------------------------------------------------------------
9399 Range type with sentinel
9400 -------------------------------------------------------------------------------
9401 ToString.tests.cpp:<line number>
9402 ...............................................................................
9403
9404 ToString.tests.cpp:<line number>: PASSED:
9405 CHECK( Catch::Detail::stringify(UsesSentinel{}) == "{ }" )
9406 with expansion:
9407 "{ }" == "{ }"
9408
9409 -------------------------------------------------------------------------------
9410 Reconstruction should be based on stringification: #914
9411 -------------------------------------------------------------------------------
9412 Decomposition.tests.cpp:<line number>
9413 ...............................................................................
9414
9415 Decomposition.tests.cpp:<line number>: FAILED:
9416 CHECK( truthy(false) )
9417 with expansion:
9418 Hey, its truthy!
9419
9420 -------------------------------------------------------------------------------
9421 Regex string matcher
9422 -------------------------------------------------------------------------------
9423 Matchers.tests.cpp:<line number>
9424 ...............................................................................
9425
9426 Matchers.tests.cpp:<line number>: FAILED:
9427 CHECK_THAT( testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) )
9428 with expansion:
9429 "this string contains 'abc' as a substring" matches "this STRING contains
9430 'abc' as a substring" case sensitively
9431
9432 Matchers.tests.cpp:<line number>: FAILED:
9433 CHECK_THAT( testStringForMatching(), Matches( "contains 'abc' as a substring" ) )
9434 with expansion:
9435 "this string contains 'abc' as a substring" matches "contains 'abc' as a
9436 substring" case sensitively
9437
9438 Matchers.tests.cpp:<line number>: FAILED:
9439 CHECK_THAT( testStringForMatching(), Matches( "this string contains 'abc' as a" ) )
9440 with expansion:
9441 "this string contains 'abc' as a substring" matches "this string contains
9442 'abc' as a" case sensitively
9443
9444 -------------------------------------------------------------------------------
9445 Registering reporter with '::' in name fails
9446 -------------------------------------------------------------------------------
9447 Reporters.tests.cpp:<line number>
9448 ...............................................................................
9449
9450 Reporters.tests.cpp:<line number>: PASSED:
9451 REQUIRE_THROWS_WITH( registry.registerReporter( "with::doublecolons", Catch::Detail::make_unique<TestReporterFactory>() ), "'::' is not allowed in reporter name: 'with::doublecolons'" )
9452 with expansion:
9453 "'::' is not allowed in reporter name: 'with::doublecolons'" equals: "'::' is
9454 not allowed in reporter name: 'with::doublecolons'"
9455
9456 -------------------------------------------------------------------------------
9457 Regression test #1
9458 -------------------------------------------------------------------------------
9459 Matchers.tests.cpp:<line number>
9460 ...............................................................................
9461
9462 Matchers.tests.cpp:<line number>: PASSED:
9463 CHECK_THAT( actual, !UnorderedEquals( expected ) )
9464 with expansion:
9465 { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
9466
9467 -------------------------------------------------------------------------------
9468 Reporter's write listings to provided stream
9469 -------------------------------------------------------------------------------
9470 Reporters.tests.cpp:<line number>
9471 ...............................................................................
9472
9473 Reporters.tests.cpp:<line number>: PASSED:
9474 REQUIRE_FALSE( factories.empty() )
9475 with expansion:
9476 !false
9477
9478 -------------------------------------------------------------------------------
9479 Reporter's write listings to provided stream
9480 Automake reporter lists tags
9481 -------------------------------------------------------------------------------
9482 Reporters.tests.cpp:<line number>
9483 ...............................................................................
9484
9485 Reporters.tests.cpp:<line number>: PASSED:
9486 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9487 with expansion:
9488 "All available tags:
9489 1 [fakeTag]
9490 1 tag
9491
9492 " contains: "fakeTag"
9493 with message:
9494 Tested reporter: Automake
9495
9496 -------------------------------------------------------------------------------
9497 Reporter's write listings to provided stream
9498 -------------------------------------------------------------------------------
9499 Reporters.tests.cpp:<line number>
9500 ...............................................................................
9501
9502 Reporters.tests.cpp:<line number>: PASSED:
9503 REQUIRE_FALSE( factories.empty() )
9504 with expansion:
9505 !false
9506
9507 -------------------------------------------------------------------------------
9508 Reporter's write listings to provided stream
9509 Automake reporter lists reporters
9510 -------------------------------------------------------------------------------
9511 Reporters.tests.cpp:<line number>
9512 ...............................................................................
9513
9514 Reporters.tests.cpp:<line number>: PASSED:
9515 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9516 with expansion:
9517 "Available reporters:
9518 fake reporter: fake description
9519
9520 " contains: "fake reporter"
9521 with message:
9522 Tested reporter: Automake
9523
9524 -------------------------------------------------------------------------------
9525 Reporter's write listings to provided stream
9526 -------------------------------------------------------------------------------
9527 Reporters.tests.cpp:<line number>
9528 ...............................................................................
9529
9530 Reporters.tests.cpp:<line number>: PASSED:
9531 REQUIRE_FALSE( factories.empty() )
9532 with expansion:
9533 !false
9534
9535 -------------------------------------------------------------------------------
9536 Reporter's write listings to provided stream
9537 Automake reporter lists tests
9538 -------------------------------------------------------------------------------
9539 Reporters.tests.cpp:<line number>
9540 ...............................................................................
9541
9542 Reporters.tests.cpp:<line number>: PASSED:
9543 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9544 with expansion:
9545 "All available test cases:
9546 fake test name
9547 [fakeTestTag]
9548 1 test case
9549
9550 " ( contains: "fake test name" and contains: "fakeTestTag" )
9551 with message:
9552 Tested reporter: Automake
9553
9554 -------------------------------------------------------------------------------
9555 Reporter's write listings to provided stream
9556 -------------------------------------------------------------------------------
9557 Reporters.tests.cpp:<line number>
9558 ...............................................................................
9559
9560 Reporters.tests.cpp:<line number>: PASSED:
9561 REQUIRE_FALSE( factories.empty() )
9562 with expansion:
9563 !false
9564
9565 -------------------------------------------------------------------------------
9566 Reporter's write listings to provided stream
9567 compact reporter lists tags
9568 -------------------------------------------------------------------------------
9569 Reporters.tests.cpp:<line number>
9570 ...............................................................................
9571
9572 Reporters.tests.cpp:<line number>: PASSED:
9573 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9574 with expansion:
9575 "All available tags:
9576 1 [fakeTag]
9577 1 tag
9578
9579 " contains: "fakeTag"
9580 with message:
9581 Tested reporter: compact
9582
9583 -------------------------------------------------------------------------------
9584 Reporter's write listings to provided stream
9585 -------------------------------------------------------------------------------
9586 Reporters.tests.cpp:<line number>
9587 ...............................................................................
9588
9589 Reporters.tests.cpp:<line number>: PASSED:
9590 REQUIRE_FALSE( factories.empty() )
9591 with expansion:
9592 !false
9593
9594 -------------------------------------------------------------------------------
9595 Reporter's write listings to provided stream
9596 compact reporter lists reporters
9597 -------------------------------------------------------------------------------
9598 Reporters.tests.cpp:<line number>
9599 ...............................................................................
9600
9601 Reporters.tests.cpp:<line number>: PASSED:
9602 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9603 with expansion:
9604 "Available reporters:
9605 fake reporter: fake description
9606
9607 " contains: "fake reporter"
9608 with message:
9609 Tested reporter: compact
9610
9611 -------------------------------------------------------------------------------
9612 Reporter's write listings to provided stream
9613 -------------------------------------------------------------------------------
9614 Reporters.tests.cpp:<line number>
9615 ...............................................................................
9616
9617 Reporters.tests.cpp:<line number>: PASSED:
9618 REQUIRE_FALSE( factories.empty() )
9619 with expansion:
9620 !false
9621
9622 -------------------------------------------------------------------------------
9623 Reporter's write listings to provided stream
9624 compact reporter lists tests
9625 -------------------------------------------------------------------------------
9626 Reporters.tests.cpp:<line number>
9627 ...............................................................................
9628
9629 Reporters.tests.cpp:<line number>: PASSED:
9630 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9631 with expansion:
9632 "All available test cases:
9633 fake test name
9634 [fakeTestTag]
9635 1 test case
9636
9637 " ( contains: "fake test name" and contains: "fakeTestTag" )
9638 with message:
9639 Tested reporter: compact
9640
9641 -------------------------------------------------------------------------------
9642 Reporter's write listings to provided stream
9643 -------------------------------------------------------------------------------
9644 Reporters.tests.cpp:<line number>
9645 ...............................................................................
9646
9647 Reporters.tests.cpp:<line number>: PASSED:
9648 REQUIRE_FALSE( factories.empty() )
9649 with expansion:
9650 !false
9651
9652 -------------------------------------------------------------------------------
9653 Reporter's write listings to provided stream
9654 console reporter lists tags
9655 -------------------------------------------------------------------------------
9656 Reporters.tests.cpp:<line number>
9657 ...............................................................................
9658
9659 Reporters.tests.cpp:<line number>: PASSED:
9660 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9661 with expansion:
9662 "All available tags:
9663 1 [fakeTag]
9664 1 tag
9665
9666 " contains: "fakeTag"
9667 with message:
9668 Tested reporter: console
9669
9670 -------------------------------------------------------------------------------
9671 Reporter's write listings to provided stream
9672 -------------------------------------------------------------------------------
9673 Reporters.tests.cpp:<line number>
9674 ...............................................................................
9675
9676 Reporters.tests.cpp:<line number>: PASSED:
9677 REQUIRE_FALSE( factories.empty() )
9678 with expansion:
9679 !false
9680
9681 -------------------------------------------------------------------------------
9682 Reporter's write listings to provided stream
9683 console reporter lists reporters
9684 -------------------------------------------------------------------------------
9685 Reporters.tests.cpp:<line number>
9686 ...............................................................................
9687
9688 Reporters.tests.cpp:<line number>: PASSED:
9689 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9690 with expansion:
9691 "Available reporters:
9692 fake reporter: fake description
9693
9694 " contains: "fake reporter"
9695 with message:
9696 Tested reporter: console
9697
9698 -------------------------------------------------------------------------------
9699 Reporter's write listings to provided stream
9700 -------------------------------------------------------------------------------
9701 Reporters.tests.cpp:<line number>
9702 ...............................................................................
9703
9704 Reporters.tests.cpp:<line number>: PASSED:
9705 REQUIRE_FALSE( factories.empty() )
9706 with expansion:
9707 !false
9708
9709 -------------------------------------------------------------------------------
9710 Reporter's write listings to provided stream
9711 console reporter lists tests
9712 -------------------------------------------------------------------------------
9713 Reporters.tests.cpp:<line number>
9714 ...............................................................................
9715
9716 Reporters.tests.cpp:<line number>: PASSED:
9717 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9718 with expansion:
9719 "All available test cases:
9720 fake test name
9721 [fakeTestTag]
9722 1 test case
9723
9724 " ( contains: "fake test name" and contains: "fakeTestTag" )
9725 with message:
9726 Tested reporter: console
9727
9728 -------------------------------------------------------------------------------
9729 Reporter's write listings to provided stream
9730 -------------------------------------------------------------------------------
9731 Reporters.tests.cpp:<line number>
9732 ...............................................................................
9733
9734 Reporters.tests.cpp:<line number>: PASSED:
9735 REQUIRE_FALSE( factories.empty() )
9736 with expansion:
9737 !false
9738
9739 -------------------------------------------------------------------------------
9740 Reporter's write listings to provided stream
9741 JUnit reporter lists tags
9742 -------------------------------------------------------------------------------
9743 Reporters.tests.cpp:<line number>
9744 ...............................................................................
9745
9746 Reporters.tests.cpp:<line number>: PASSED:
9747 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9748 with expansion:
9749 "<?xml version="1.0" encoding="UTF-8"?>
9750 All available tags:
9751 1 [fakeTag]
9752 1 tag
9753
9754 " contains: "fakeTag"
9755 with message:
9756 Tested reporter: JUnit
9757
9758 -------------------------------------------------------------------------------
9759 Reporter's write listings to provided stream
9760 -------------------------------------------------------------------------------
9761 Reporters.tests.cpp:<line number>
9762 ...............................................................................
9763
9764 Reporters.tests.cpp:<line number>: PASSED:
9765 REQUIRE_FALSE( factories.empty() )
9766 with expansion:
9767 !false
9768
9769 -------------------------------------------------------------------------------
9770 Reporter's write listings to provided stream
9771 JUnit reporter lists reporters
9772 -------------------------------------------------------------------------------
9773 Reporters.tests.cpp:<line number>
9774 ...............................................................................
9775
9776 Reporters.tests.cpp:<line number>: PASSED:
9777 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9778 with expansion:
9779 "<?xml version="1.0" encoding="UTF-8"?>
9780 Available reporters:
9781 fake reporter: fake description
9782
9783 " contains: "fake reporter"
9784 with message:
9785 Tested reporter: JUnit
9786
9787 -------------------------------------------------------------------------------
9788 Reporter's write listings to provided stream
9789 -------------------------------------------------------------------------------
9790 Reporters.tests.cpp:<line number>
9791 ...............................................................................
9792
9793 Reporters.tests.cpp:<line number>: PASSED:
9794 REQUIRE_FALSE( factories.empty() )
9795 with expansion:
9796 !false
9797
9798 -------------------------------------------------------------------------------
9799 Reporter's write listings to provided stream
9800 JUnit reporter lists tests
9801 -------------------------------------------------------------------------------
9802 Reporters.tests.cpp:<line number>
9803 ...............................................................................
9804
9805 Reporters.tests.cpp:<line number>: PASSED:
9806 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9807 with expansion:
9808 "<?xml version="1.0" encoding="UTF-8"?>
9809 All available test cases:
9810 fake test name
9811 [fakeTestTag]
9812 1 test case
9813
9814 " ( contains: "fake test name" and contains: "fakeTestTag" )
9815 with message:
9816 Tested reporter: JUnit
9817
9818 -------------------------------------------------------------------------------
9819 Reporter's write listings to provided stream
9820 -------------------------------------------------------------------------------
9821 Reporters.tests.cpp:<line number>
9822 ...............................................................................
9823
9824 Reporters.tests.cpp:<line number>: PASSED:
9825 REQUIRE_FALSE( factories.empty() )
9826 with expansion:
9827 !false
9828
9829 -------------------------------------------------------------------------------
9830 Reporter's write listings to provided stream
9831 SonarQube reporter lists tags
9832 -------------------------------------------------------------------------------
9833 Reporters.tests.cpp:<line number>
9834 ...............................................................................
9835
9836 Reporters.tests.cpp:<line number>: PASSED:
9837 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9838 with expansion:
9839 "<?xml version="1.0" encoding="UTF-8"?>
9840 All available tags:
9841 1 [fakeTag]
9842 1 tag
9843
9844 " contains: "fakeTag"
9845 with message:
9846 Tested reporter: SonarQube
9847
9848 -------------------------------------------------------------------------------
9849 Reporter's write listings to provided stream
9850 -------------------------------------------------------------------------------
9851 Reporters.tests.cpp:<line number>
9852 ...............................................................................
9853
9854 Reporters.tests.cpp:<line number>: PASSED:
9855 REQUIRE_FALSE( factories.empty() )
9856 with expansion:
9857 !false
9858
9859 -------------------------------------------------------------------------------
9860 Reporter's write listings to provided stream
9861 SonarQube reporter lists reporters
9862 -------------------------------------------------------------------------------
9863 Reporters.tests.cpp:<line number>
9864 ...............................................................................
9865
9866 Reporters.tests.cpp:<line number>: PASSED:
9867 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9868 with expansion:
9869 "<?xml version="1.0" encoding="UTF-8"?>
9870 Available reporters:
9871 fake reporter: fake description
9872
9873 " contains: "fake reporter"
9874 with message:
9875 Tested reporter: SonarQube
9876
9877 -------------------------------------------------------------------------------
9878 Reporter's write listings to provided stream
9879 -------------------------------------------------------------------------------
9880 Reporters.tests.cpp:<line number>
9881 ...............................................................................
9882
9883 Reporters.tests.cpp:<line number>: PASSED:
9884 REQUIRE_FALSE( factories.empty() )
9885 with expansion:
9886 !false
9887
9888 -------------------------------------------------------------------------------
9889 Reporter's write listings to provided stream
9890 SonarQube reporter lists tests
9891 -------------------------------------------------------------------------------
9892 Reporters.tests.cpp:<line number>
9893 ...............................................................................
9894
9895 Reporters.tests.cpp:<line number>: PASSED:
9896 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9897 with expansion:
9898 "<?xml version="1.0" encoding="UTF-8"?>
9899 All available test cases:
9900 fake test name
9901 [fakeTestTag]
9902 1 test case
9903
9904 " ( contains: "fake test name" and contains: "fakeTestTag" )
9905 with message:
9906 Tested reporter: SonarQube
9907
9908 -------------------------------------------------------------------------------
9909 Reporter's write listings to provided stream
9910 -------------------------------------------------------------------------------
9911 Reporters.tests.cpp:<line number>
9912 ...............................................................................
9913
9914 Reporters.tests.cpp:<line number>: PASSED:
9915 REQUIRE_FALSE( factories.empty() )
9916 with expansion:
9917 !false
9918
9919 -------------------------------------------------------------------------------
9920 Reporter's write listings to provided stream
9921 TAP reporter lists tags
9922 -------------------------------------------------------------------------------
9923 Reporters.tests.cpp:<line number>
9924 ...............................................................................
9925
9926 Reporters.tests.cpp:<line number>: PASSED:
9927 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9928 with expansion:
9929 "All available tags:
9930 1 [fakeTag]
9931 1 tag
9932
9933 " contains: "fakeTag"
9934 with message:
9935 Tested reporter: TAP
9936
9937 -------------------------------------------------------------------------------
9938 Reporter's write listings to provided stream
9939 -------------------------------------------------------------------------------
9940 Reporters.tests.cpp:<line number>
9941 ...............................................................................
9942
9943 Reporters.tests.cpp:<line number>: PASSED:
9944 REQUIRE_FALSE( factories.empty() )
9945 with expansion:
9946 !false
9947
9948 -------------------------------------------------------------------------------
9949 Reporter's write listings to provided stream
9950 TAP reporter lists reporters
9951 -------------------------------------------------------------------------------
9952 Reporters.tests.cpp:<line number>
9953 ...............................................................................
9954
9955 Reporters.tests.cpp:<line number>: PASSED:
9956 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9957 with expansion:
9958 "Available reporters:
9959 fake reporter: fake description
9960
9961 " contains: "fake reporter"
9962 with message:
9963 Tested reporter: TAP
9964
9965 -------------------------------------------------------------------------------
9966 Reporter's write listings to provided stream
9967 -------------------------------------------------------------------------------
9968 Reporters.tests.cpp:<line number>
9969 ...............................................................................
9970
9971 Reporters.tests.cpp:<line number>: PASSED:
9972 REQUIRE_FALSE( factories.empty() )
9973 with expansion:
9974 !false
9975
9976 -------------------------------------------------------------------------------
9977 Reporter's write listings to provided stream
9978 TAP reporter lists tests
9979 -------------------------------------------------------------------------------
9980 Reporters.tests.cpp:<line number>
9981 ...............................................................................
9982
9983 Reporters.tests.cpp:<line number>: PASSED:
9984 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9985 with expansion:
9986 "All available test cases:
9987 fake test name
9988 [fakeTestTag]
9989 1 test case
9990
9991 " ( contains: "fake test name" and contains: "fakeTestTag" )
9992 with message:
9993 Tested reporter: TAP
9994
9995 -------------------------------------------------------------------------------
9996 Reporter's write listings to provided stream
9997 -------------------------------------------------------------------------------
9998 Reporters.tests.cpp:<line number>
9999 ...............................................................................
10000
10001 Reporters.tests.cpp:<line number>: PASSED:
10002 REQUIRE_FALSE( factories.empty() )
10003 with expansion:
10004 !false
10005
10006 -------------------------------------------------------------------------------
10007 Reporter's write listings to provided stream
10008 TeamCity reporter lists tags
10009 -------------------------------------------------------------------------------
10010 Reporters.tests.cpp:<line number>
10011 ...............................................................................
10012
10013 Reporters.tests.cpp:<line number>: PASSED:
10014 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10015 with expansion:
10016 "All available tags:
10017 1 [fakeTag]
10018 1 tag
10019
10020 " contains: "fakeTag"
10021 with message:
10022 Tested reporter: TeamCity
10023
10024 -------------------------------------------------------------------------------
10025 Reporter's write listings to provided stream
10026 -------------------------------------------------------------------------------
10027 Reporters.tests.cpp:<line number>
10028 ...............................................................................
10029
10030 Reporters.tests.cpp:<line number>: PASSED:
10031 REQUIRE_FALSE( factories.empty() )
10032 with expansion:
10033 !false
10034
10035 -------------------------------------------------------------------------------
10036 Reporter's write listings to provided stream
10037 TeamCity reporter lists reporters
10038 -------------------------------------------------------------------------------
10039 Reporters.tests.cpp:<line number>
10040 ...............................................................................
10041
10042 Reporters.tests.cpp:<line number>: PASSED:
10043 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10044 with expansion:
10045 "Available reporters:
10046 fake reporter: fake description
10047
10048 " contains: "fake reporter"
10049 with message:
10050 Tested reporter: TeamCity
10051
10052 -------------------------------------------------------------------------------
10053 Reporter's write listings to provided stream
10054 -------------------------------------------------------------------------------
10055 Reporters.tests.cpp:<line number>
10056 ...............................................................................
10057
10058 Reporters.tests.cpp:<line number>: PASSED:
10059 REQUIRE_FALSE( factories.empty() )
10060 with expansion:
10061 !false
10062
10063 -------------------------------------------------------------------------------
10064 Reporter's write listings to provided stream
10065 TeamCity reporter lists tests
10066 -------------------------------------------------------------------------------
10067 Reporters.tests.cpp:<line number>
10068 ...............................................................................
10069
10070 Reporters.tests.cpp:<line number>: PASSED:
10071 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10072 with expansion:
10073 "All available test cases:
10074 fake test name
10075 [fakeTestTag]
10076 1 test case
10077
10078 " ( contains: "fake test name" and contains: "fakeTestTag" )
10079 with message:
10080 Tested reporter: TeamCity
10081
10082 -------------------------------------------------------------------------------
10083 Reporter's write listings to provided stream
10084 -------------------------------------------------------------------------------
10085 Reporters.tests.cpp:<line number>
10086 ...............................................................................
10087
10088 Reporters.tests.cpp:<line number>: PASSED:
10089 REQUIRE_FALSE( factories.empty() )
10090 with expansion:
10091 !false
10092
10093 -------------------------------------------------------------------------------
10094 Reporter's write listings to provided stream
10095 XML reporter lists tags
10096 -------------------------------------------------------------------------------
10097 Reporters.tests.cpp:<line number>
10098 ...............................................................................
10099
10100 Reporters.tests.cpp:<line number>: PASSED:
10101 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10102 with expansion:
10103 "<?xml version="1.0" encoding="UTF-8"?>
10104 <TagsFromMatchingTests>
10105 <Tag>
10106 <Count>1</Count>
10107 <Aliases>
10108 <Alias>fakeTag</Alias>
10109 </Aliases>
10110 </Tag>
10111 </TagsFromMatchingTests>" contains: "fakeTag"
10112 with message:
10113 Tested reporter: XML
10114
10115 -------------------------------------------------------------------------------
10116 Reporter's write listings to provided stream
10117 -------------------------------------------------------------------------------
10118 Reporters.tests.cpp:<line number>
10119 ...............................................................................
10120
10121 Reporters.tests.cpp:<line number>: PASSED:
10122 REQUIRE_FALSE( factories.empty() )
10123 with expansion:
10124 !false
10125
10126 -------------------------------------------------------------------------------
10127 Reporter's write listings to provided stream
10128 XML reporter lists reporters
10129 -------------------------------------------------------------------------------
10130 Reporters.tests.cpp:<line number>
10131 ...............................................................................
10132
10133 Reporters.tests.cpp:<line number>: PASSED:
10134 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10135 with expansion:
10136 "<?xml version="1.0" encoding="UTF-8"?>
10137 <AvailableReporters>
10138 <Reporter>
10139 <Name>fake reporter</Name>
10140 <Description>fake description</Description>
10141 </Reporter>
10142 </AvailableReporters>" contains: "fake reporter"
10143 with message:
10144 Tested reporter: XML
10145
10146 -------------------------------------------------------------------------------
10147 Reporter's write listings to provided stream
10148 -------------------------------------------------------------------------------
10149 Reporters.tests.cpp:<line number>
10150 ...............................................................................
10151
10152 Reporters.tests.cpp:<line number>: PASSED:
10153 REQUIRE_FALSE( factories.empty() )
10154 with expansion:
10155 !false
10156
10157 -------------------------------------------------------------------------------
10158 Reporter's write listings to provided stream
10159 XML reporter lists tests
10160 -------------------------------------------------------------------------------
10161 Reporters.tests.cpp:<line number>
10162 ...............................................................................
10163
10164 Reporters.tests.cpp:<line number>: PASSED:
10165 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10166 with expansion:
10167 "<?xml version="1.0" encoding="UTF-8"?>
10168 <MatchingTests>
10169 <TestCase>
10170 <Name>fake test name</Name>
10171 <ClassName/>
10172 <Tags>[fakeTestTag]</Tags>
10173 <SourceInfo>
10174 <File>fake-file.cpp</File>
10175 <Line>123456789</Line>
10176 </SourceInfo>
10177 </TestCase>
10178 </MatchingTests>" ( contains: "fake test name" and contains: "fakeTestTag" )
10179 with message:
10180 Tested reporter: XML
10181
10182 -------------------------------------------------------------------------------
10183 Reproducer for #2309 - a very long description past 80 chars (default console
10184 width) with a late colon : blablabla
10185 -------------------------------------------------------------------------------
10186 Reporters.tests.cpp:<line number>
10187 ...............................................................................
10188
10189 Reporters.tests.cpp:<line number>: PASSED:
10190
10191 -------------------------------------------------------------------------------
10192 SUCCEED counts as a test pass
10193 -------------------------------------------------------------------------------
10194 Message.tests.cpp:<line number>
10195 ...............................................................................
10196
10197 Message.tests.cpp:<line number>: PASSED:
10198 with message:
10199 this is a success
10200
10201 -------------------------------------------------------------------------------
10202 SUCCEED does not require an argument
10203 -------------------------------------------------------------------------------
10204 Message.tests.cpp:<line number>
10205 ...............................................................................
10206
10207 Message.tests.cpp:<line number>: PASSED:
10208
10209 -------------------------------------------------------------------------------
10210 Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
10211 methods
10212 Given: No operations precede me
10213 -------------------------------------------------------------------------------
10214 BDD.tests.cpp:<line number>
10215 ...............................................................................
10216
10217 BDD.tests.cpp:<line number>: PASSED:
10218 REQUIRE( before == 0 )
10219 with expansion:
10220 0 == 0
10221
10222 -------------------------------------------------------------------------------
10223 Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
10224 methods
10225 Given: No operations precede me
10226 When: We get the count
10227 Then: Subsequently values are higher
10228 -------------------------------------------------------------------------------
10229 BDD.tests.cpp:<line number>
10230 ...............................................................................
10231
10232 BDD.tests.cpp:<line number>: PASSED:
10233 REQUIRE( after > before )
10234 with expansion:
10235 1 > 0
10236
10237 -------------------------------------------------------------------------------
10238 Scenario: Do that thing with the thing
10239 Given: This stuff exists
10240 And given: And some assumption
10241 When: I do this
10242 Then: it should do this
10243 -------------------------------------------------------------------------------
10244 BDD.tests.cpp:<line number>
10245 ...............................................................................
10246
10247 BDD.tests.cpp:<line number>: PASSED:
10248 REQUIRE( itDoesThis() )
10249 with expansion:
10250 true
10251
10252 -------------------------------------------------------------------------------
10253 Scenario: Do that thing with the thing
10254 Given: This stuff exists
10255 And given: And some assumption
10256 When: I do this
10257 Then: it should do this
10258 And: do that
10259 -------------------------------------------------------------------------------
10260 BDD.tests.cpp:<line number>
10261 ...............................................................................
10262
10263 BDD.tests.cpp:<line number>: PASSED:
10264 REQUIRE( itDoesThat() )
10265 with expansion:
10266 true
10267
10268 -------------------------------------------------------------------------------
10269 Scenario: This is a really long scenario name to see how the list command deals
10270 with wrapping
10271 Given: A section name that is so long that it cannot fit in a single
10272 console width
10273 When: The test headers are printed as part of the normal running of the
10274 scenario
10275 Then: The, deliberately very long and overly verbose (you see what I did
10276 there?) section names must wrap, along with an indent
10277 -------------------------------------------------------------------------------
10278 BDD.tests.cpp:<line number>
10279 ...............................................................................
10280
10281 BDD.tests.cpp:<line number>: PASSED:
10282 with message:
10283 boo!
10284
10285 -------------------------------------------------------------------------------
10286 Scenario: Vector resizing affects size and capacity
10287 Given: an empty vector
10288 -------------------------------------------------------------------------------
10289 BDD.tests.cpp:<line number>
10290 ...............................................................................
10291
10292 BDD.tests.cpp:<line number>: PASSED:
10293 REQUIRE( v.size() == 0 )
10294 with expansion:
10295 0 == 0
10296
10297 -------------------------------------------------------------------------------
10298 Scenario: Vector resizing affects size and capacity
10299 Given: an empty vector
10300 When: it is made larger
10301 Then: the size and capacity go up
10302 -------------------------------------------------------------------------------
10303 BDD.tests.cpp:<line number>
10304 ...............................................................................
10305
10306 BDD.tests.cpp:<line number>: PASSED:
10307 REQUIRE( v.size() == 10 )
10308 with expansion:
10309 10 == 10
10310
10311 BDD.tests.cpp:<line number>: PASSED:
10312 REQUIRE( v.capacity() >= 10 )
10313 with expansion:
10314 10 >= 10
10315
10316 -------------------------------------------------------------------------------
10317 Scenario: Vector resizing affects size and capacity
10318 Given: an empty vector
10319 When: it is made larger
10320 Then: the size and capacity go up
10321 And when: it is made smaller again
10322 Then: the size goes down but the capacity stays the same
10323 -------------------------------------------------------------------------------
10324 BDD.tests.cpp:<line number>
10325 ...............................................................................
10326
10327 BDD.tests.cpp:<line number>: PASSED:
10328 REQUIRE( v.size() == 5 )
10329 with expansion:
10330 5 == 5
10331
10332 BDD.tests.cpp:<line number>: PASSED:
10333 REQUIRE( v.capacity() >= 10 )
10334 with expansion:
10335 10 >= 10
10336
10337 -------------------------------------------------------------------------------
10338 Scenario: Vector resizing affects size and capacity
10339 Given: an empty vector
10340 -------------------------------------------------------------------------------
10341 BDD.tests.cpp:<line number>
10342 ...............................................................................
10343
10344 BDD.tests.cpp:<line number>: PASSED:
10345 REQUIRE( v.size() == 0 )
10346 with expansion:
10347 0 == 0
10348
10349 -------------------------------------------------------------------------------
10350 Scenario: Vector resizing affects size and capacity
10351 Given: an empty vector
10352 When: we reserve more space
10353 Then: The capacity is increased but the size remains the same
10354 -------------------------------------------------------------------------------
10355 BDD.tests.cpp:<line number>
10356 ...............................................................................
10357
10358 BDD.tests.cpp:<line number>: PASSED:
10359 REQUIRE( v.capacity() >= 10 )
10360 with expansion:
10361 10 >= 10
10362
10363 BDD.tests.cpp:<line number>: PASSED:
10364 REQUIRE( v.size() == 0 )
10365 with expansion:
10366 0 == 0
10367
10368 -------------------------------------------------------------------------------
10369 Sends stuff to stdout and stderr
10370 -------------------------------------------------------------------------------
10371 Misc.tests.cpp:<line number>
10372 ...............................................................................
10373
10374
10375 No assertions in test case 'Sends stuff to stdout and stderr'
10376
10377 -------------------------------------------------------------------------------
10378 Some simple comparisons between doubles
10379 -------------------------------------------------------------------------------
10380 Approx.tests.cpp:<line number>
10381 ...............................................................................
10382
10383 Approx.tests.cpp:<line number>: PASSED:
10384 REQUIRE( d == Approx( 1.23 ) )
10385 with expansion:
10386 1.23 == Approx( 1.23 )
10387
10388 Approx.tests.cpp:<line number>: PASSED:
10389 REQUIRE( d != Approx( 1.22 ) )
10390 with expansion:
10391 1.23 != Approx( 1.22 )
10392
10393 Approx.tests.cpp:<line number>: PASSED:
10394 REQUIRE( d != Approx( 1.24 ) )
10395 with expansion:
10396 1.23 != Approx( 1.24 )
10397
10398 Approx.tests.cpp:<line number>: PASSED:
10399 REQUIRE( d == 1.23_a )
10400 with expansion:
10401 1.23 == Approx( 1.23 )
10402
10403 Approx.tests.cpp:<line number>: PASSED:
10404 REQUIRE( d != 1.22_a )
10405 with expansion:
10406 1.23 != Approx( 1.22 )
10407
10408 Approx.tests.cpp:<line number>: PASSED:
10409 REQUIRE( Approx( d ) == 1.23 )
10410 with expansion:
10411 Approx( 1.23 ) == 1.23
10412
10413 Approx.tests.cpp:<line number>: PASSED:
10414 REQUIRE( Approx( d ) != 1.22 )
10415 with expansion:
10416 Approx( 1.23 ) != 1.22
10417
10418 Approx.tests.cpp:<line number>: PASSED:
10419 REQUIRE( Approx( d ) != 1.24 )
10420 with expansion:
10421 Approx( 1.23 ) != 1.24
10422
10423 -------------------------------------------------------------------------------
10424 Standard output from all sections is reported
10425 one
10426 -------------------------------------------------------------------------------
10427 Message.tests.cpp:<line number>
10428 ...............................................................................
10429
10430
10431 No assertions in section 'one'
10432
10433 -------------------------------------------------------------------------------
10434 Standard output from all sections is reported
10435 two
10436 -------------------------------------------------------------------------------
10437 Message.tests.cpp:<line number>
10438 ...............................................................................
10439
10440
10441 No assertions in section 'two'
10442
10443 -------------------------------------------------------------------------------
10444 StartsWith string matcher
10445 -------------------------------------------------------------------------------
10446 Matchers.tests.cpp:<line number>
10447 ...............................................................................
10448
10449 Matchers.tests.cpp:<line number>: FAILED:
10450 CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) )
10451 with expansion:
10452 "this string contains 'abc' as a substring" starts with: "This String"
10453
10454 Matchers.tests.cpp:<line number>: FAILED:
10455 CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) )
10456 with expansion:
10457 "this string contains 'abc' as a substring" starts with: "string" (case
10458 insensitive)
10459
10460 -------------------------------------------------------------------------------
10461 Static arrays are convertible to string
10462 Single item
10463 -------------------------------------------------------------------------------
10464 ToStringGeneral.tests.cpp:<line number>
10465 ...............................................................................
10466
10467 ToStringGeneral.tests.cpp:<line number>: PASSED:
10468 REQUIRE( Catch::Detail::stringify(singular) == "{ 1 }" )
10469 with expansion:
10470 "{ 1 }" == "{ 1 }"
10471
10472 -------------------------------------------------------------------------------
10473 Static arrays are convertible to string
10474 Multiple
10475 -------------------------------------------------------------------------------
10476 ToStringGeneral.tests.cpp:<line number>
10477 ...............................................................................
10478
10479 ToStringGeneral.tests.cpp:<line number>: PASSED:
10480 REQUIRE( Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" )
10481 with expansion:
10482 "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
10483
10484 -------------------------------------------------------------------------------
10485 Static arrays are convertible to string
10486 Non-trivial inner items
10487 -------------------------------------------------------------------------------
10488 ToStringGeneral.tests.cpp:<line number>
10489 ...............................................................................
10490
10491 ToStringGeneral.tests.cpp:<line number>: PASSED:
10492 REQUIRE( Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" )
10493 with expansion:
10494 "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
10495 ==
10496 "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
10497
10498 -------------------------------------------------------------------------------
10499 String matchers
10500 -------------------------------------------------------------------------------
10501 Matchers.tests.cpp:<line number>
10502 ...............................................................................
10503
10504 Matchers.tests.cpp:<line number>: PASSED:
10505 REQUIRE_THAT( testStringForMatching(), ContainsSubstring( "string" ) )
10506 with expansion:
10507 "this string contains 'abc' as a substring" contains: "string"
10508
10509 Matchers.tests.cpp:<line number>: PASSED:
10510 REQUIRE_THAT( testStringForMatching(), ContainsSubstring( "string", Catch::CaseSensitive::No ) )
10511 with expansion:
10512 "this string contains 'abc' as a substring" contains: "string" (case
10513 insensitive)
10514
10515 Matchers.tests.cpp:<line number>: PASSED:
10516 CHECK_THAT( testStringForMatching(), ContainsSubstring( "abc" ) )
10517 with expansion:
10518 "this string contains 'abc' as a substring" contains: "abc"
10519
10520 Matchers.tests.cpp:<line number>: PASSED:
10521 CHECK_THAT( testStringForMatching(), ContainsSubstring( "aBC", Catch::CaseSensitive::No ) )
10522 with expansion:
10523 "this string contains 'abc' as a substring" contains: "abc" (case
10524 insensitive)
10525
10526 Matchers.tests.cpp:<line number>: PASSED:
10527 CHECK_THAT( testStringForMatching(), StartsWith( "this" ) )
10528 with expansion:
10529 "this string contains 'abc' as a substring" starts with: "this"
10530
10531 Matchers.tests.cpp:<line number>: PASSED:
10532 CHECK_THAT( testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) )
10533 with expansion:
10534 "this string contains 'abc' as a substring" starts with: "this" (case
10535 insensitive)
10536
10537 Matchers.tests.cpp:<line number>: PASSED:
10538 CHECK_THAT( testStringForMatching(), EndsWith( "substring" ) )
10539 with expansion:
10540 "this string contains 'abc' as a substring" ends with: "substring"
10541
10542 Matchers.tests.cpp:<line number>: PASSED:
10543 CHECK_THAT( testStringForMatching(), EndsWith( " SuBsTrInG", Catch::CaseSensitive::No ) )
10544 with expansion:
10545 "this string contains 'abc' as a substring" ends with: " substring" (case
10546 insensitive)
10547
10548 -------------------------------------------------------------------------------
10549 StringRef
10550 Empty string
10551 -------------------------------------------------------------------------------
10552 String.tests.cpp:<line number>
10553 ...............................................................................
10554
10555 String.tests.cpp:<line number>: PASSED:
10556 REQUIRE( empty.empty() )
10557 with expansion:
10558 true
10559
10560 String.tests.cpp:<line number>: PASSED:
10561 REQUIRE( empty.size() == 0 )
10562 with expansion:
10563 0 == 0
10564
10565 String.tests.cpp:<line number>: PASSED:
10566 REQUIRE( std::strcmp( empty.data(), "" ) == 0 )
10567 with expansion:
10568 0 == 0
10569
10570 -------------------------------------------------------------------------------
10571 StringRef
10572 From string literal
10573 -------------------------------------------------------------------------------
10574 String.tests.cpp:<line number>
10575 ...............................................................................
10576
10577 String.tests.cpp:<line number>: PASSED:
10578 REQUIRE( s.empty() == false )
10579 with expansion:
10580 false == false
10581
10582 String.tests.cpp:<line number>: PASSED:
10583 REQUIRE( s.size() == 5 )
10584 with expansion:
10585 5 == 5
10586
10587 String.tests.cpp:<line number>: PASSED:
10588 REQUIRE( std::strcmp( rawChars, "hello" ) == 0 )
10589 with expansion:
10590 0 == 0
10591
10592 String.tests.cpp:<line number>: PASSED:
10593 REQUIRE( s.data() == rawChars )
10594 with expansion:
10595 "hello" == "hello"
10596
10597 -------------------------------------------------------------------------------
10598 StringRef
10599 From sub-string
10600 -------------------------------------------------------------------------------
10601 String.tests.cpp:<line number>
10602 ...............................................................................
10603
10604 String.tests.cpp:<line number>: PASSED:
10605 REQUIRE( original == "original" )
10606
10607 String.tests.cpp:<line number>: PASSED:
10608 REQUIRE_NOTHROW( original.data() )
10609
10610 -------------------------------------------------------------------------------
10611 StringRef
10612 Copy construction is shallow
10613 -------------------------------------------------------------------------------
10614 String.tests.cpp:<line number>
10615 ...............................................................................
10616
10617 String.tests.cpp:<line number>: PASSED:
10618 REQUIRE( original.begin() == copy.begin() )
10619 with expansion:
10620 "original string" == "original string"
10621
10622 -------------------------------------------------------------------------------
10623 StringRef
10624 Copy assignment is shallow
10625 -------------------------------------------------------------------------------
10626 String.tests.cpp:<line number>
10627 ...............................................................................
10628
10629 String.tests.cpp:<line number>: PASSED:
10630 REQUIRE( original.begin() == copy.begin() )
10631 with expansion:
10632 "original string" == "original string"
10633
10634 -------------------------------------------------------------------------------
10635 StringRef
10636 Substrings
10637 zero-based substring
10638 -------------------------------------------------------------------------------
10639 String.tests.cpp:<line number>
10640 ...............................................................................
10641
10642 String.tests.cpp:<line number>: PASSED:
10643 REQUIRE( ss.empty() == false )
10644 with expansion:
10645 false == false
10646
10647 String.tests.cpp:<line number>: PASSED:
10648 REQUIRE( ss.size() == 5 )
10649 with expansion:
10650 5 == 5
10651
10652 String.tests.cpp:<line number>: PASSED:
10653 REQUIRE( std::strncmp( ss.data(), "hello", 5 ) == 0 )
10654 with expansion:
10655 0 == 0
10656
10657 String.tests.cpp:<line number>: PASSED:
10658 REQUIRE( ss == "hello" )
10659 with expansion:
10660 hello == "hello"
10661
10662 -------------------------------------------------------------------------------
10663 StringRef
10664 Substrings
10665 non-zero-based substring
10666 -------------------------------------------------------------------------------
10667 String.tests.cpp:<line number>
10668 ...............................................................................
10669
10670 String.tests.cpp:<line number>: PASSED:
10671 REQUIRE( ss.size() == 6 )
10672 with expansion:
10673 6 == 6
10674
10675 String.tests.cpp:<line number>: PASSED:
10676 REQUIRE( std::strcmp( ss.data(), "world!" ) == 0 )
10677 with expansion:
10678 0 == 0
10679
10680 -------------------------------------------------------------------------------
10681 StringRef
10682 Substrings
10683 Pointer values of full refs should match
10684 -------------------------------------------------------------------------------
10685 String.tests.cpp:<line number>
10686 ...............................................................................
10687
10688 String.tests.cpp:<line number>: PASSED:
10689 REQUIRE( s.data() == s2.data() )
10690 with expansion:
10691 "hello world!" == "hello world!"
10692
10693 -------------------------------------------------------------------------------
10694 StringRef
10695 Substrings
10696 Pointer values of substring refs should also match
10697 -------------------------------------------------------------------------------
10698 String.tests.cpp:<line number>
10699 ...............................................................................
10700
10701 String.tests.cpp:<line number>: PASSED:
10702 REQUIRE( s.data() == ss.data() )
10703 with expansion:
10704 "hello world!" == "hello world!"
10705
10706 -------------------------------------------------------------------------------
10707 StringRef
10708 Substrings
10709 Past the end substring
10710 -------------------------------------------------------------------------------
10711 String.tests.cpp:<line number>
10712 ...............................................................................
10713
10714 String.tests.cpp:<line number>: PASSED:
10715 REQUIRE( s.substr(s.size() + 1, 123).empty() )
10716 with expansion:
10717 true
10718
10719 -------------------------------------------------------------------------------
10720 StringRef
10721 Substrings
10722 Substring off the end are trimmed
10723 -------------------------------------------------------------------------------
10724 String.tests.cpp:<line number>
10725 ...............................................................................
10726
10727 String.tests.cpp:<line number>: PASSED:
10728 REQUIRE( std::strcmp(ss.data(), "world!") == 0 )
10729 with expansion:
10730 0 == 0
10731
10732 -------------------------------------------------------------------------------
10733 StringRef
10734 Substrings
10735 substring start after the end is empty
10736 -------------------------------------------------------------------------------
10737 String.tests.cpp:<line number>
10738 ...............................................................................
10739
10740 String.tests.cpp:<line number>: PASSED:
10741 REQUIRE( s.substr(1'000'000, 1).empty() )
10742 with expansion:
10743 true
10744
10745 -------------------------------------------------------------------------------
10746 StringRef
10747 Comparisons are deep
10748 -------------------------------------------------------------------------------
10749 String.tests.cpp:<line number>
10750 ...............................................................................
10751
10752 String.tests.cpp:<line number>: PASSED:
10753 CHECK( reinterpret_cast<char*>(buffer1) != reinterpret_cast<char*>(buffer2) )
10754 with expansion:
10755 "Hello" != "Hello"
10756
10757 String.tests.cpp:<line number>: PASSED:
10758 REQUIRE( left == right )
10759 with expansion:
10760 Hello == Hello
10761
10762 String.tests.cpp:<line number>: PASSED:
10763 REQUIRE( left != left.substr(0, 3) )
10764 with expansion:
10765 Hello != Hel
10766
10767 -------------------------------------------------------------------------------
10768 StringRef
10769 from std::string
10770 implicitly constructed
10771 -------------------------------------------------------------------------------
10772 String.tests.cpp:<line number>
10773 ...............................................................................
10774
10775 String.tests.cpp:<line number>: PASSED:
10776 REQUIRE( sr == "a standard string" )
10777 with expansion:
10778 a standard string == "a standard string"
10779
10780 String.tests.cpp:<line number>: PASSED:
10781 REQUIRE( sr.size() == stdStr.size() )
10782 with expansion:
10783 17 == 17
10784
10785 -------------------------------------------------------------------------------
10786 StringRef
10787 from std::string
10788 explicitly constructed
10789 -------------------------------------------------------------------------------
10790 String.tests.cpp:<line number>
10791 ...............................................................................
10792
10793 String.tests.cpp:<line number>: PASSED:
10794 REQUIRE( sr == "a standard string" )
10795 with expansion:
10796 a standard string == "a standard string"
10797
10798 String.tests.cpp:<line number>: PASSED:
10799 REQUIRE( sr.size() == stdStr.size() )
10800 with expansion:
10801 17 == 17
10802
10803 -------------------------------------------------------------------------------
10804 StringRef
10805 from std::string
10806 assigned
10807 -------------------------------------------------------------------------------
10808 String.tests.cpp:<line number>
10809 ...............................................................................
10810
10811 String.tests.cpp:<line number>: PASSED:
10812 REQUIRE( sr == "a standard string" )
10813 with expansion:
10814 a standard string == "a standard string"
10815
10816 String.tests.cpp:<line number>: PASSED:
10817 REQUIRE( sr.size() == stdStr.size() )
10818 with expansion:
10819 17 == 17
10820
10821 -------------------------------------------------------------------------------
10822 StringRef
10823 to std::string
10824 explicitly constructed
10825 -------------------------------------------------------------------------------
10826 String.tests.cpp:<line number>
10827 ...............................................................................
10828
10829 String.tests.cpp:<line number>: PASSED:
10830 REQUIRE( stdStr == "a stringref" )
10831 with expansion:
10832 "a stringref" == "a stringref"
10833
10834 String.tests.cpp:<line number>: PASSED:
10835 REQUIRE( stdStr.size() == sr.size() )
10836 with expansion:
10837 11 == 11
10838
10839 -------------------------------------------------------------------------------
10840 StringRef
10841 to std::string
10842 assigned
10843 -------------------------------------------------------------------------------
10844 String.tests.cpp:<line number>
10845 ...............................................................................
10846
10847 String.tests.cpp:<line number>: PASSED:
10848 REQUIRE( stdStr == "a stringref" )
10849 with expansion:
10850 "a stringref" == "a stringref"
10851
10852 String.tests.cpp:<line number>: PASSED:
10853 REQUIRE( stdStr.size() == sr.size() )
10854 with expansion:
10855 11 == 11
10856
10857 -------------------------------------------------------------------------------
10858 StringRef
10859 std::string += StringRef
10860 -------------------------------------------------------------------------------
10861 String.tests.cpp:<line number>
10862 ...............................................................................
10863
10864 String.tests.cpp:<line number>: PASSED:
10865 REQUIRE( lhs == "some string += the stringref contents" )
10866 with expansion:
10867 "some string += the stringref contents"
10868 ==
10869 "some string += the stringref contents"
10870
10871 -------------------------------------------------------------------------------
10872 StringRef
10873 StringRef + StringRef
10874 -------------------------------------------------------------------------------
10875 String.tests.cpp:<line number>
10876 ...............................................................................
10877
10878 String.tests.cpp:<line number>: PASSED:
10879 REQUIRE( together == "abrakadabra" )
10880 with expansion:
10881 "abrakadabra" == "abrakadabra"
10882
10883 -------------------------------------------------------------------------------
10884 StringRef at compilation time
10885 Simple constructors
10886 -------------------------------------------------------------------------------
10887 String.tests.cpp:<line number>
10888 ...............................................................................
10889
10890 String.tests.cpp:<line number>: PASSED:
10891 with message:
10892 empty.size() == 0
10893
10894 String.tests.cpp:<line number>: PASSED:
10895 with message:
10896 empty.begin() == empty.end()
10897
10898 String.tests.cpp:<line number>: PASSED:
10899 with message:
10900 stringref.size() == 3
10901
10902 String.tests.cpp:<line number>: PASSED:
10903 with message:
10904 stringref.data() == abc
10905
10906 String.tests.cpp:<line number>: PASSED:
10907 with message:
10908 stringref.begin() == abc
10909
10910 String.tests.cpp:<line number>: PASSED:
10911 with message:
10912 stringref.begin() != stringref.end()
10913
10914 String.tests.cpp:<line number>: PASSED:
10915 with message:
10916 stringref.substr(10, 0).empty()
10917
10918 String.tests.cpp:<line number>: PASSED:
10919 with message:
10920 stringref.substr(2, 1).data() == abc + 2
10921
10922 String.tests.cpp:<line number>: PASSED:
10923 with message:
10924 stringref[1] == 'b'
10925
10926 String.tests.cpp:<line number>: PASSED:
10927 with message:
10928 shortened.size() == 2
10929
10930 String.tests.cpp:<line number>: PASSED:
10931 with message:
10932 shortened.data() == abc
10933
10934 String.tests.cpp:<line number>: PASSED:
10935 with message:
10936 shortened.begin() != shortened.end()
10937
10938 -------------------------------------------------------------------------------
10939 StringRef at compilation time
10940 UDL construction
10941 -------------------------------------------------------------------------------
10942 String.tests.cpp:<line number>
10943 ...............................................................................
10944
10945 String.tests.cpp:<line number>: PASSED:
10946 with message:
10947 !(sr1.empty())
10948
10949 String.tests.cpp:<line number>: PASSED:
10950 with message:
10951 sr1.size() == 3
10952
10953 String.tests.cpp:<line number>: PASSED:
10954 with message:
10955 sr2.empty()
10956
10957 String.tests.cpp:<line number>: PASSED:
10958 with message:
10959 sr2.size() == 0
10960
10961 -------------------------------------------------------------------------------
10962 Stringifying char arrays with statically known sizes - char
10963 -------------------------------------------------------------------------------
10964 ToString.tests.cpp:<line number>
10965 ...............................................................................
10966
10967 ToString.tests.cpp:<line number>: PASSED:
10968 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
10969 with expansion:
10970 ""abc"" == ""abc""
10971
10972 ToString.tests.cpp:<line number>: PASSED:
10973 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
10974 with expansion:
10975 ""abc"" == ""abc""
10976
10977 -------------------------------------------------------------------------------
10978 Stringifying char arrays with statically known sizes - signed char
10979 -------------------------------------------------------------------------------
10980 ToString.tests.cpp:<line number>
10981 ...............................................................................
10982
10983 ToString.tests.cpp:<line number>: PASSED:
10984 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
10985 with expansion:
10986 ""abc"" == ""abc""
10987
10988 ToString.tests.cpp:<line number>: PASSED:
10989 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
10990 with expansion:
10991 ""abc"" == ""abc""
10992
10993 -------------------------------------------------------------------------------
10994 Stringifying char arrays with statically known sizes - unsigned char
10995 -------------------------------------------------------------------------------
10996 ToString.tests.cpp:<line number>
10997 ...............................................................................
10998
10999 ToString.tests.cpp:<line number>: PASSED:
11000 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
11001 with expansion:
11002 ""abc"" == ""abc""
11003
11004 ToString.tests.cpp:<line number>: PASSED:
11005 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
11006 with expansion:
11007 ""abc"" == ""abc""
11008
11009 -------------------------------------------------------------------------------
11010 Stringifying std::chrono::duration helpers
11011 -------------------------------------------------------------------------------
11012 ToStringChrono.tests.cpp:<line number>
11013 ...............................................................................
11014
11015 ToStringChrono.tests.cpp:<line number>: PASSED:
11016 REQUIRE( minute == seconds )
11017 with expansion:
11018 1 m == 60 s
11019
11020 ToStringChrono.tests.cpp:<line number>: PASSED:
11021 REQUIRE( hour != seconds )
11022 with expansion:
11023 1 h != 60 s
11024
11025 ToStringChrono.tests.cpp:<line number>: PASSED:
11026 REQUIRE( micro != milli )
11027 with expansion:
11028 1 us != 1 ms
11029
11030 ToStringChrono.tests.cpp:<line number>: PASSED:
11031 REQUIRE( nano != micro )
11032 with expansion:
11033 1 ns != 1 us
11034
11035 -------------------------------------------------------------------------------
11036 Stringifying std::chrono::duration with weird ratios
11037 -------------------------------------------------------------------------------
11038 ToStringChrono.tests.cpp:<line number>
11039 ...............................................................................
11040
11041 ToStringChrono.tests.cpp:<line number>: PASSED:
11042 REQUIRE( half_minute != femto_second )
11043 with expansion:
11044 1 [30/1]s != 1 fs
11045
11046 ToStringChrono.tests.cpp:<line number>: PASSED:
11047 REQUIRE( pico_second != atto_second )
11048 with expansion:
11049 1 ps != 1 as
11050
11051 -------------------------------------------------------------------------------
11052 Stringifying std::chrono::time_point<system_clock>
11053 -------------------------------------------------------------------------------
11054 ToStringChrono.tests.cpp:<line number>
11055 ...............................................................................
11056
11057 ToStringChrono.tests.cpp:<line number>: PASSED:
11058 REQUIRE( now != later )
11059 with expansion:
11060 {iso8601-timestamp}
11061 !=
11062 {iso8601-timestamp}
11063
11064 -------------------------------------------------------------------------------
11065 Tabs and newlines show in output
11066 -------------------------------------------------------------------------------
11067 Misc.tests.cpp:<line number>
11068 ...............................................................................
11069
11070 Misc.tests.cpp:<line number>: FAILED:
11071 CHECK( s1 == s2 )
11072 with expansion:
11073 "if ($b == 10) {
11074 $a = 20;
11075 }"
11076 ==
11077 "if ($b == 10) {
11078 $a = 20;
11079 }
11080 "
11081
11082 -------------------------------------------------------------------------------
11083 Tag alias can be registered against tag patterns
11084 The same tag alias can only be registered once
11085 -------------------------------------------------------------------------------
11086 Tag.tests.cpp:<line number>
11087 ...............................................................................
11088
11089 Tag.tests.cpp:<line number>: PASSED:
11090 CHECK_THAT( what, ContainsSubstring( "[@zzz]" ) )
11091 with expansion:
11092 "error: tag alias, '[@zzz]' already registered.
11093 First seen at: file:2
11094 Redefined at: file:10" contains: "[@zzz]"
11095
11096 Tag.tests.cpp:<line number>: PASSED:
11097 CHECK_THAT( what, ContainsSubstring( "file" ) )
11098 with expansion:
11099 "error: tag alias, '[@zzz]' already registered.
11100 First seen at: file:2
11101 Redefined at: file:10" contains: "file"
11102
11103 Tag.tests.cpp:<line number>: PASSED:
11104 CHECK_THAT( what, ContainsSubstring( "2" ) )
11105 with expansion:
11106 "error: tag alias, '[@zzz]' already registered.
11107 First seen at: file:2
11108 Redefined at: file:10" contains: "2"
11109
11110 Tag.tests.cpp:<line number>: PASSED:
11111 CHECK_THAT( what, ContainsSubstring( "10" ) )
11112 with expansion:
11113 "error: tag alias, '[@zzz]' already registered.
11114 First seen at: file:2
11115 Redefined at: file:10" contains: "10"
11116
11117 -------------------------------------------------------------------------------
11118 Tag alias can be registered against tag patterns
11119 Tag aliases must be of the form [@name]
11120 -------------------------------------------------------------------------------
11121 Tag.tests.cpp:<line number>
11122 ...............................................................................
11123
11124 Tag.tests.cpp:<line number>: PASSED:
11125 CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) )
11126
11127 Tag.tests.cpp:<line number>: PASSED:
11128 CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
11129
11130 Tag.tests.cpp:<line number>: PASSED:
11131 CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
11132
11133 Tag.tests.cpp:<line number>: PASSED:
11134 CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) )
11135
11136 -------------------------------------------------------------------------------
11137 Tags with spaces and non-alphanumerical characters are accepted
11138 -------------------------------------------------------------------------------
11139 Tag.tests.cpp:<line number>
11140 ...............................................................................
11141
11142 Tag.tests.cpp:<line number>: PASSED:
11143 REQUIRE( testCase.tags.size() == 2 )
11144 with expansion:
11145 2 == 2
11146
11147 Tag.tests.cpp:<line number>: PASSED:
11148 REQUIRE_THAT( testCase.tags, VectorContains( Tag( "tag with spaces" ) ) && VectorContains( Tag( "I said \"good day\" sir!"_catch_sr ) ) )
11149 with expansion:
11150 { {?}, {?} } ( Contains: {?} and Contains: {?} )
11151
11152 -------------------------------------------------------------------------------
11153 Template test case method with test types specified inside std::tuple - MyTypes
11154 - 0
11155 -------------------------------------------------------------------------------
11156 Class.tests.cpp:<line number>
11157 ...............................................................................
11158
11159 Class.tests.cpp:<line number>: PASSED:
11160 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
11161 with expansion:
11162 1 == 1
11163
11164 -------------------------------------------------------------------------------
11165 Template test case method with test types specified inside std::tuple - MyTypes
11166 - 1
11167 -------------------------------------------------------------------------------
11168 Class.tests.cpp:<line number>
11169 ...............................................................................
11170
11171 Class.tests.cpp:<line number>: PASSED:
11172 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
11173 with expansion:
11174 1 == 1
11175
11176 -------------------------------------------------------------------------------
11177 Template test case method with test types specified inside std::tuple - MyTypes
11178 - 2
11179 -------------------------------------------------------------------------------
11180 Class.tests.cpp:<line number>
11181 ...............................................................................
11182
11183 Class.tests.cpp:<line number>: PASSED:
11184 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
11185 with expansion:
11186 1.0 == 1
11187
11188 -------------------------------------------------------------------------------
11189 Template test case with test types specified inside non-copyable and non-
11190 movable std::tuple - NonCopyableAndNonMovableTypes - 0
11191 -------------------------------------------------------------------------------
11192 Misc.tests.cpp:<line number>
11193 ...............................................................................
11194
11195 Misc.tests.cpp:<line number>: PASSED:
11196 REQUIRE( sizeof(TestType) > 0 )
11197 with expansion:
11198 1 > 0
11199
11200 -------------------------------------------------------------------------------
11201 Template test case with test types specified inside non-copyable and non-
11202 movable std::tuple - NonCopyableAndNonMovableTypes - 1
11203 -------------------------------------------------------------------------------
11204 Misc.tests.cpp:<line number>
11205 ...............................................................................
11206
11207 Misc.tests.cpp:<line number>: PASSED:
11208 REQUIRE( sizeof(TestType) > 0 )
11209 with expansion:
11210 4 > 0
11211
11212 -------------------------------------------------------------------------------
11213 Template test case with test types specified inside non-default-constructible
11214 std::tuple - MyNonDefaultConstructibleTypes - 0
11215 -------------------------------------------------------------------------------
11216 Misc.tests.cpp:<line number>
11217 ...............................................................................
11218
11219 Misc.tests.cpp:<line number>: PASSED:
11220 REQUIRE( sizeof(TestType) > 0 )
11221 with expansion:
11222 1 > 0
11223
11224 -------------------------------------------------------------------------------
11225 Template test case with test types specified inside non-default-constructible
11226 std::tuple - MyNonDefaultConstructibleTypes - 1
11227 -------------------------------------------------------------------------------
11228 Misc.tests.cpp:<line number>
11229 ...............................................................................
11230
11231 Misc.tests.cpp:<line number>: PASSED:
11232 REQUIRE( sizeof(TestType) > 0 )
11233 with expansion:
11234 4 > 0
11235
11236 -------------------------------------------------------------------------------
11237 Template test case with test types specified inside std::tuple - MyTypes - 0
11238 -------------------------------------------------------------------------------
11239 Misc.tests.cpp:<line number>
11240 ...............................................................................
11241
11242 Misc.tests.cpp:<line number>: PASSED:
11243 REQUIRE( sizeof(TestType) > 0 )
11244 with expansion:
11245 4 > 0
11246
11247 -------------------------------------------------------------------------------
11248 Template test case with test types specified inside std::tuple - MyTypes - 1
11249 -------------------------------------------------------------------------------
11250 Misc.tests.cpp:<line number>
11251 ...............................................................................
11252
11253 Misc.tests.cpp:<line number>: PASSED:
11254 REQUIRE( sizeof(TestType) > 0 )
11255 with expansion:
11256 1 > 0
11257
11258 -------------------------------------------------------------------------------
11259 Template test case with test types specified inside std::tuple - MyTypes - 2
11260 -------------------------------------------------------------------------------
11261 Misc.tests.cpp:<line number>
11262 ...............................................................................
11263
11264 Misc.tests.cpp:<line number>: PASSED:
11265 REQUIRE( sizeof(TestType) > 0 )
11266 with expansion:
11267 4 > 0
11268
11269 -------------------------------------------------------------------------------
11270 TemplateTest: vectors can be sized and resized - float
11271 -------------------------------------------------------------------------------
11272 Misc.tests.cpp:<line number>
11273 ...............................................................................
11274
11275 Misc.tests.cpp:<line number>: PASSED:
11276 REQUIRE( v.size() == 5 )
11277 with expansion:
11278 5 == 5
11279
11280 Misc.tests.cpp:<line number>: PASSED:
11281 REQUIRE( v.capacity() >= 5 )
11282 with expansion:
11283 5 >= 5
11284
11285 -------------------------------------------------------------------------------
11286 TemplateTest: vectors can be sized and resized - float
11287 resizing bigger changes size and capacity
11288 -------------------------------------------------------------------------------
11289 Misc.tests.cpp:<line number>
11290 ...............................................................................
11291
11292 Misc.tests.cpp:<line number>: PASSED:
11293 REQUIRE( v.size() == 10 )
11294 with expansion:
11295 10 == 10
11296
11297 Misc.tests.cpp:<line number>: PASSED:
11298 REQUIRE( v.capacity() >= 10 )
11299 with expansion:
11300 10 >= 10
11301
11302 -------------------------------------------------------------------------------
11303 TemplateTest: vectors can be sized and resized - float
11304 -------------------------------------------------------------------------------
11305 Misc.tests.cpp:<line number>
11306 ...............................................................................
11307
11308 Misc.tests.cpp:<line number>: PASSED:
11309 REQUIRE( v.size() == 5 )
11310 with expansion:
11311 5 == 5
11312
11313 Misc.tests.cpp:<line number>: PASSED:
11314 REQUIRE( v.capacity() >= 5 )
11315 with expansion:
11316 5 >= 5
11317
11318 -------------------------------------------------------------------------------
11319 TemplateTest: vectors can be sized and resized - float
11320 resizing smaller changes size but not capacity
11321 -------------------------------------------------------------------------------
11322 Misc.tests.cpp:<line number>
11323 ...............................................................................
11324
11325 Misc.tests.cpp:<line number>: PASSED:
11326 REQUIRE( v.size() == 0 )
11327 with expansion:
11328 0 == 0
11329
11330 Misc.tests.cpp:<line number>: PASSED:
11331 REQUIRE( v.capacity() >= 5 )
11332 with expansion:
11333 5 >= 5
11334
11335 -------------------------------------------------------------------------------
11336 TemplateTest: vectors can be sized and resized - float
11337 resizing smaller changes size but not capacity
11338 We can use the 'swap trick' to reset the capacity
11339 -------------------------------------------------------------------------------
11340 Misc.tests.cpp:<line number>
11341 ...............................................................................
11342
11343 Misc.tests.cpp:<line number>: PASSED:
11344 REQUIRE( v.capacity() == 0 )
11345 with expansion:
11346 0 == 0
11347
11348 -------------------------------------------------------------------------------
11349 TemplateTest: vectors can be sized and resized - float
11350 -------------------------------------------------------------------------------
11351 Misc.tests.cpp:<line number>
11352 ...............................................................................
11353
11354 Misc.tests.cpp:<line number>: PASSED:
11355 REQUIRE( v.size() == 5 )
11356 with expansion:
11357 5 == 5
11358
11359 Misc.tests.cpp:<line number>: PASSED:
11360 REQUIRE( v.capacity() >= 5 )
11361 with expansion:
11362 5 >= 5
11363
11364 -------------------------------------------------------------------------------
11365 TemplateTest: vectors can be sized and resized - float
11366 reserving bigger changes capacity but not size
11367 -------------------------------------------------------------------------------
11368 Misc.tests.cpp:<line number>
11369 ...............................................................................
11370
11371 Misc.tests.cpp:<line number>: PASSED:
11372 REQUIRE( v.size() == 5 )
11373 with expansion:
11374 5 == 5
11375
11376 Misc.tests.cpp:<line number>: PASSED:
11377 REQUIRE( v.capacity() >= 10 )
11378 with expansion:
11379 10 >= 10
11380
11381 -------------------------------------------------------------------------------
11382 TemplateTest: vectors can be sized and resized - float
11383 -------------------------------------------------------------------------------
11384 Misc.tests.cpp:<line number>
11385 ...............................................................................
11386
11387 Misc.tests.cpp:<line number>: PASSED:
11388 REQUIRE( v.size() == 5 )
11389 with expansion:
11390 5 == 5
11391
11392 Misc.tests.cpp:<line number>: PASSED:
11393 REQUIRE( v.capacity() >= 5 )
11394 with expansion:
11395 5 >= 5
11396
11397 -------------------------------------------------------------------------------
11398 TemplateTest: vectors can be sized and resized - float
11399 reserving smaller does not change size or capacity
11400 -------------------------------------------------------------------------------
11401 Misc.tests.cpp:<line number>
11402 ...............................................................................
11403
11404 Misc.tests.cpp:<line number>: PASSED:
11405 REQUIRE( v.size() == 5 )
11406 with expansion:
11407 5 == 5
11408
11409 Misc.tests.cpp:<line number>: PASSED:
11410 REQUIRE( v.capacity() >= 5 )
11411 with expansion:
11412 5 >= 5
11413
11414 -------------------------------------------------------------------------------
11415 TemplateTest: vectors can be sized and resized - int
11416 -------------------------------------------------------------------------------
11417 Misc.tests.cpp:<line number>
11418 ...............................................................................
11419
11420 Misc.tests.cpp:<line number>: PASSED:
11421 REQUIRE( v.size() == 5 )
11422 with expansion:
11423 5 == 5
11424
11425 Misc.tests.cpp:<line number>: PASSED:
11426 REQUIRE( v.capacity() >= 5 )
11427 with expansion:
11428 5 >= 5
11429
11430 -------------------------------------------------------------------------------
11431 TemplateTest: vectors can be sized and resized - int
11432 resizing bigger changes size and capacity
11433 -------------------------------------------------------------------------------
11434 Misc.tests.cpp:<line number>
11435 ...............................................................................
11436
11437 Misc.tests.cpp:<line number>: PASSED:
11438 REQUIRE( v.size() == 10 )
11439 with expansion:
11440 10 == 10
11441
11442 Misc.tests.cpp:<line number>: PASSED:
11443 REQUIRE( v.capacity() >= 10 )
11444 with expansion:
11445 10 >= 10
11446
11447 -------------------------------------------------------------------------------
11448 TemplateTest: vectors can be sized and resized - int
11449 -------------------------------------------------------------------------------
11450 Misc.tests.cpp:<line number>
11451 ...............................................................................
11452
11453 Misc.tests.cpp:<line number>: PASSED:
11454 REQUIRE( v.size() == 5 )
11455 with expansion:
11456 5 == 5
11457
11458 Misc.tests.cpp:<line number>: PASSED:
11459 REQUIRE( v.capacity() >= 5 )
11460 with expansion:
11461 5 >= 5
11462
11463 -------------------------------------------------------------------------------
11464 TemplateTest: vectors can be sized and resized - int
11465 resizing smaller changes size but not capacity
11466 -------------------------------------------------------------------------------
11467 Misc.tests.cpp:<line number>
11468 ...............................................................................
11469
11470 Misc.tests.cpp:<line number>: PASSED:
11471 REQUIRE( v.size() == 0 )
11472 with expansion:
11473 0 == 0
11474
11475 Misc.tests.cpp:<line number>: PASSED:
11476 REQUIRE( v.capacity() >= 5 )
11477 with expansion:
11478 5 >= 5
11479
11480 -------------------------------------------------------------------------------
11481 TemplateTest: vectors can be sized and resized - int
11482 resizing smaller changes size but not capacity
11483 We can use the 'swap trick' to reset the capacity
11484 -------------------------------------------------------------------------------
11485 Misc.tests.cpp:<line number>
11486 ...............................................................................
11487
11488 Misc.tests.cpp:<line number>: PASSED:
11489 REQUIRE( v.capacity() == 0 )
11490 with expansion:
11491 0 == 0
11492
11493 -------------------------------------------------------------------------------
11494 TemplateTest: vectors can be sized and resized - int
11495 -------------------------------------------------------------------------------
11496 Misc.tests.cpp:<line number>
11497 ...............................................................................
11498
11499 Misc.tests.cpp:<line number>: PASSED:
11500 REQUIRE( v.size() == 5 )
11501 with expansion:
11502 5 == 5
11503
11504 Misc.tests.cpp:<line number>: PASSED:
11505 REQUIRE( v.capacity() >= 5 )
11506 with expansion:
11507 5 >= 5
11508
11509 -------------------------------------------------------------------------------
11510 TemplateTest: vectors can be sized and resized - int
11511 reserving bigger changes capacity but not size
11512 -------------------------------------------------------------------------------
11513 Misc.tests.cpp:<line number>
11514 ...............................................................................
11515
11516 Misc.tests.cpp:<line number>: PASSED:
11517 REQUIRE( v.size() == 5 )
11518 with expansion:
11519 5 == 5
11520
11521 Misc.tests.cpp:<line number>: PASSED:
11522 REQUIRE( v.capacity() >= 10 )
11523 with expansion:
11524 10 >= 10
11525
11526 -------------------------------------------------------------------------------
11527 TemplateTest: vectors can be sized and resized - int
11528 -------------------------------------------------------------------------------
11529 Misc.tests.cpp:<line number>
11530 ...............................................................................
11531
11532 Misc.tests.cpp:<line number>: PASSED:
11533 REQUIRE( v.size() == 5 )
11534 with expansion:
11535 5 == 5
11536
11537 Misc.tests.cpp:<line number>: PASSED:
11538 REQUIRE( v.capacity() >= 5 )
11539 with expansion:
11540 5 >= 5
11541
11542 -------------------------------------------------------------------------------
11543 TemplateTest: vectors can be sized and resized - int
11544 reserving smaller does not change size or capacity
11545 -------------------------------------------------------------------------------
11546 Misc.tests.cpp:<line number>
11547 ...............................................................................
11548
11549 Misc.tests.cpp:<line number>: PASSED:
11550 REQUIRE( v.size() == 5 )
11551 with expansion:
11552 5 == 5
11553
11554 Misc.tests.cpp:<line number>: PASSED:
11555 REQUIRE( v.capacity() >= 5 )
11556 with expansion:
11557 5 >= 5
11558
11559 -------------------------------------------------------------------------------
11560 TemplateTest: vectors can be sized and resized - std::string
11561 -------------------------------------------------------------------------------
11562 Misc.tests.cpp:<line number>
11563 ...............................................................................
11564
11565 Misc.tests.cpp:<line number>: PASSED:
11566 REQUIRE( v.size() == 5 )
11567 with expansion:
11568 5 == 5
11569
11570 Misc.tests.cpp:<line number>: PASSED:
11571 REQUIRE( v.capacity() >= 5 )
11572 with expansion:
11573 5 >= 5
11574
11575 -------------------------------------------------------------------------------
11576 TemplateTest: vectors can be sized and resized - std::string
11577 resizing bigger changes size and capacity
11578 -------------------------------------------------------------------------------
11579 Misc.tests.cpp:<line number>
11580 ...............................................................................
11581
11582 Misc.tests.cpp:<line number>: PASSED:
11583 REQUIRE( v.size() == 10 )
11584 with expansion:
11585 10 == 10
11586
11587 Misc.tests.cpp:<line number>: PASSED:
11588 REQUIRE( v.capacity() >= 10 )
11589 with expansion:
11590 10 >= 10
11591
11592 -------------------------------------------------------------------------------
11593 TemplateTest: vectors can be sized and resized - std::string
11594 -------------------------------------------------------------------------------
11595 Misc.tests.cpp:<line number>
11596 ...............................................................................
11597
11598 Misc.tests.cpp:<line number>: PASSED:
11599 REQUIRE( v.size() == 5 )
11600 with expansion:
11601 5 == 5
11602
11603 Misc.tests.cpp:<line number>: PASSED:
11604 REQUIRE( v.capacity() >= 5 )
11605 with expansion:
11606 5 >= 5
11607
11608 -------------------------------------------------------------------------------
11609 TemplateTest: vectors can be sized and resized - std::string
11610 resizing smaller changes size but not capacity
11611 -------------------------------------------------------------------------------
11612 Misc.tests.cpp:<line number>
11613 ...............................................................................
11614
11615 Misc.tests.cpp:<line number>: PASSED:
11616 REQUIRE( v.size() == 0 )
11617 with expansion:
11618 0 == 0
11619
11620 Misc.tests.cpp:<line number>: PASSED:
11621 REQUIRE( v.capacity() >= 5 )
11622 with expansion:
11623 5 >= 5
11624
11625 -------------------------------------------------------------------------------
11626 TemplateTest: vectors can be sized and resized - std::string
11627 resizing smaller changes size but not capacity
11628 We can use the 'swap trick' to reset the capacity
11629 -------------------------------------------------------------------------------
11630 Misc.tests.cpp:<line number>
11631 ...............................................................................
11632
11633 Misc.tests.cpp:<line number>: PASSED:
11634 REQUIRE( v.capacity() == 0 )
11635 with expansion:
11636 0 == 0
11637
11638 -------------------------------------------------------------------------------
11639 TemplateTest: vectors can be sized and resized - std::string
11640 -------------------------------------------------------------------------------
11641 Misc.tests.cpp:<line number>
11642 ...............................................................................
11643
11644 Misc.tests.cpp:<line number>: PASSED:
11645 REQUIRE( v.size() == 5 )
11646 with expansion:
11647 5 == 5
11648
11649 Misc.tests.cpp:<line number>: PASSED:
11650 REQUIRE( v.capacity() >= 5 )
11651 with expansion:
11652 5 >= 5
11653
11654 -------------------------------------------------------------------------------
11655 TemplateTest: vectors can be sized and resized - std::string
11656 reserving bigger changes capacity but not size
11657 -------------------------------------------------------------------------------
11658 Misc.tests.cpp:<line number>
11659 ...............................................................................
11660
11661 Misc.tests.cpp:<line number>: PASSED:
11662 REQUIRE( v.size() == 5 )
11663 with expansion:
11664 5 == 5
11665
11666 Misc.tests.cpp:<line number>: PASSED:
11667 REQUIRE( v.capacity() >= 10 )
11668 with expansion:
11669 10 >= 10
11670
11671 -------------------------------------------------------------------------------
11672 TemplateTest: vectors can be sized and resized - std::string
11673 -------------------------------------------------------------------------------
11674 Misc.tests.cpp:<line number>
11675 ...............................................................................
11676
11677 Misc.tests.cpp:<line number>: PASSED:
11678 REQUIRE( v.size() == 5 )
11679 with expansion:
11680 5 == 5
11681
11682 Misc.tests.cpp:<line number>: PASSED:
11683 REQUIRE( v.capacity() >= 5 )
11684 with expansion:
11685 5 >= 5
11686
11687 -------------------------------------------------------------------------------
11688 TemplateTest: vectors can be sized and resized - std::string
11689 reserving smaller does not change size or capacity
11690 -------------------------------------------------------------------------------
11691 Misc.tests.cpp:<line number>
11692 ...............................................................................
11693
11694 Misc.tests.cpp:<line number>: PASSED:
11695 REQUIRE( v.size() == 5 )
11696 with expansion:
11697 5 == 5
11698
11699 Misc.tests.cpp:<line number>: PASSED:
11700 REQUIRE( v.capacity() >= 5 )
11701 with expansion:
11702 5 >= 5
11703
11704 -------------------------------------------------------------------------------
11705 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11706 -------------------------------------------------------------------------------
11707 Misc.tests.cpp:<line number>
11708 ...............................................................................
11709
11710 Misc.tests.cpp:<line number>: PASSED:
11711 REQUIRE( v.size() == 5 )
11712 with expansion:
11713 5 == 5
11714
11715 Misc.tests.cpp:<line number>: PASSED:
11716 REQUIRE( v.capacity() >= 5 )
11717 with expansion:
11718 5 >= 5
11719
11720 -------------------------------------------------------------------------------
11721 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11722 resizing bigger changes size and capacity
11723 -------------------------------------------------------------------------------
11724 Misc.tests.cpp:<line number>
11725 ...............................................................................
11726
11727 Misc.tests.cpp:<line number>: PASSED:
11728 REQUIRE( v.size() == 10 )
11729 with expansion:
11730 10 == 10
11731
11732 Misc.tests.cpp:<line number>: PASSED:
11733 REQUIRE( v.capacity() >= 10 )
11734 with expansion:
11735 10 >= 10
11736
11737 -------------------------------------------------------------------------------
11738 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11739 -------------------------------------------------------------------------------
11740 Misc.tests.cpp:<line number>
11741 ...............................................................................
11742
11743 Misc.tests.cpp:<line number>: PASSED:
11744 REQUIRE( v.size() == 5 )
11745 with expansion:
11746 5 == 5
11747
11748 Misc.tests.cpp:<line number>: PASSED:
11749 REQUIRE( v.capacity() >= 5 )
11750 with expansion:
11751 5 >= 5
11752
11753 -------------------------------------------------------------------------------
11754 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11755 resizing smaller changes size but not capacity
11756 -------------------------------------------------------------------------------
11757 Misc.tests.cpp:<line number>
11758 ...............................................................................
11759
11760 Misc.tests.cpp:<line number>: PASSED:
11761 REQUIRE( v.size() == 0 )
11762 with expansion:
11763 0 == 0
11764
11765 Misc.tests.cpp:<line number>: PASSED:
11766 REQUIRE( v.capacity() >= 5 )
11767 with expansion:
11768 5 >= 5
11769
11770 -------------------------------------------------------------------------------
11771 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11772 resizing smaller changes size but not capacity
11773 We can use the 'swap trick' to reset the capacity
11774 -------------------------------------------------------------------------------
11775 Misc.tests.cpp:<line number>
11776 ...............................................................................
11777
11778 Misc.tests.cpp:<line number>: PASSED:
11779 REQUIRE( v.capacity() == 0 )
11780 with expansion:
11781 0 == 0
11782
11783 -------------------------------------------------------------------------------
11784 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11785 -------------------------------------------------------------------------------
11786 Misc.tests.cpp:<line number>
11787 ...............................................................................
11788
11789 Misc.tests.cpp:<line number>: PASSED:
11790 REQUIRE( v.size() == 5 )
11791 with expansion:
11792 5 == 5
11793
11794 Misc.tests.cpp:<line number>: PASSED:
11795 REQUIRE( v.capacity() >= 5 )
11796 with expansion:
11797 5 >= 5
11798
11799 -------------------------------------------------------------------------------
11800 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11801 reserving bigger changes capacity but not size
11802 -------------------------------------------------------------------------------
11803 Misc.tests.cpp:<line number>
11804 ...............................................................................
11805
11806 Misc.tests.cpp:<line number>: PASSED:
11807 REQUIRE( v.size() == 5 )
11808 with expansion:
11809 5 == 5
11810
11811 Misc.tests.cpp:<line number>: PASSED:
11812 REQUIRE( v.capacity() >= 10 )
11813 with expansion:
11814 10 >= 10
11815
11816 -------------------------------------------------------------------------------
11817 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11818 -------------------------------------------------------------------------------
11819 Misc.tests.cpp:<line number>
11820 ...............................................................................
11821
11822 Misc.tests.cpp:<line number>: PASSED:
11823 REQUIRE( v.size() == 5 )
11824 with expansion:
11825 5 == 5
11826
11827 Misc.tests.cpp:<line number>: PASSED:
11828 REQUIRE( v.capacity() >= 5 )
11829 with expansion:
11830 5 >= 5
11831
11832 -------------------------------------------------------------------------------
11833 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11834 reserving smaller does not change size or capacity
11835 -------------------------------------------------------------------------------
11836 Misc.tests.cpp:<line number>
11837 ...............................................................................
11838
11839 Misc.tests.cpp:<line number>: PASSED:
11840 REQUIRE( v.size() == 5 )
11841 with expansion:
11842 5 == 5
11843
11844 Misc.tests.cpp:<line number>: PASSED:
11845 REQUIRE( v.capacity() >= 5 )
11846 with expansion:
11847 5 >= 5
11848
11849 -------------------------------------------------------------------------------
11850 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11851 -------------------------------------------------------------------------------
11852 Misc.tests.cpp:<line number>
11853 ...............................................................................
11854
11855 Misc.tests.cpp:<line number>: PASSED:
11856 REQUIRE( v.size() == V )
11857 with expansion:
11858 6 == 6
11859
11860 Misc.tests.cpp:<line number>: PASSED:
11861 REQUIRE( v.capacity() >= V )
11862 with expansion:
11863 6 >= 6
11864
11865 -------------------------------------------------------------------------------
11866 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11867 resizing bigger changes size and capacity
11868 -------------------------------------------------------------------------------
11869 Misc.tests.cpp:<line number>
11870 ...............................................................................
11871
11872 Misc.tests.cpp:<line number>: PASSED:
11873 REQUIRE( v.size() == 2 * V )
11874 with expansion:
11875 12 == 12
11876
11877 Misc.tests.cpp:<line number>: PASSED:
11878 REQUIRE( v.capacity() >= 2 * V )
11879 with expansion:
11880 12 >= 12
11881
11882 -------------------------------------------------------------------------------
11883 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11884 -------------------------------------------------------------------------------
11885 Misc.tests.cpp:<line number>
11886 ...............................................................................
11887
11888 Misc.tests.cpp:<line number>: PASSED:
11889 REQUIRE( v.size() == V )
11890 with expansion:
11891 6 == 6
11892
11893 Misc.tests.cpp:<line number>: PASSED:
11894 REQUIRE( v.capacity() >= V )
11895 with expansion:
11896 6 >= 6
11897
11898 -------------------------------------------------------------------------------
11899 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11900 resizing smaller changes size but not capacity
11901 -------------------------------------------------------------------------------
11902 Misc.tests.cpp:<line number>
11903 ...............................................................................
11904
11905 Misc.tests.cpp:<line number>: PASSED:
11906 REQUIRE( v.size() == 0 )
11907 with expansion:
11908 0 == 0
11909
11910 Misc.tests.cpp:<line number>: PASSED:
11911 REQUIRE( v.capacity() >= V )
11912 with expansion:
11913 6 >= 6
11914
11915 -------------------------------------------------------------------------------
11916 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11917 resizing smaller changes size but not capacity
11918 We can use the 'swap trick' to reset the capacity
11919 -------------------------------------------------------------------------------
11920 Misc.tests.cpp:<line number>
11921 ...............................................................................
11922
11923 Misc.tests.cpp:<line number>: PASSED:
11924 REQUIRE( v.capacity() == 0 )
11925 with expansion:
11926 0 == 0
11927
11928 -------------------------------------------------------------------------------
11929 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11930 -------------------------------------------------------------------------------
11931 Misc.tests.cpp:<line number>
11932 ...............................................................................
11933
11934 Misc.tests.cpp:<line number>: PASSED:
11935 REQUIRE( v.size() == V )
11936 with expansion:
11937 6 == 6
11938
11939 Misc.tests.cpp:<line number>: PASSED:
11940 REQUIRE( v.capacity() >= V )
11941 with expansion:
11942 6 >= 6
11943
11944 -------------------------------------------------------------------------------
11945 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11946 reserving bigger changes capacity but not size
11947 -------------------------------------------------------------------------------
11948 Misc.tests.cpp:<line number>
11949 ...............................................................................
11950
11951 Misc.tests.cpp:<line number>: PASSED:
11952 REQUIRE( v.size() == V )
11953 with expansion:
11954 6 == 6
11955
11956 Misc.tests.cpp:<line number>: PASSED:
11957 REQUIRE( v.capacity() >= 2 * V )
11958 with expansion:
11959 12 >= 12
11960
11961 -------------------------------------------------------------------------------
11962 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11963 -------------------------------------------------------------------------------
11964 Misc.tests.cpp:<line number>
11965 ...............................................................................
11966
11967 Misc.tests.cpp:<line number>: PASSED:
11968 REQUIRE( v.size() == V )
11969 with expansion:
11970 6 == 6
11971
11972 Misc.tests.cpp:<line number>: PASSED:
11973 REQUIRE( v.capacity() >= V )
11974 with expansion:
11975 6 >= 6
11976
11977 -------------------------------------------------------------------------------
11978 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11979 reserving smaller does not change size or capacity
11980 -------------------------------------------------------------------------------
11981 Misc.tests.cpp:<line number>
11982 ...............................................................................
11983
11984 Misc.tests.cpp:<line number>: PASSED:
11985 REQUIRE( v.size() == V )
11986 with expansion:
11987 6 == 6
11988
11989 Misc.tests.cpp:<line number>: PASSED:
11990 REQUIRE( v.capacity() >= V )
11991 with expansion:
11992 6 >= 6
11993
11994 -------------------------------------------------------------------------------
11995 TemplateTestSig: vectors can be sized and resized - float,4
11996 -------------------------------------------------------------------------------
11997 Misc.tests.cpp:<line number>
11998 ...............................................................................
11999
12000 Misc.tests.cpp:<line number>: PASSED:
12001 REQUIRE( v.size() == V )
12002 with expansion:
12003 4 == 4
12004
12005 Misc.tests.cpp:<line number>: PASSED:
12006 REQUIRE( v.capacity() >= V )
12007 with expansion:
12008 4 >= 4
12009
12010 -------------------------------------------------------------------------------
12011 TemplateTestSig: vectors can be sized and resized - float,4
12012 resizing bigger changes size and capacity
12013 -------------------------------------------------------------------------------
12014 Misc.tests.cpp:<line number>
12015 ...............................................................................
12016
12017 Misc.tests.cpp:<line number>: PASSED:
12018 REQUIRE( v.size() == 2 * V )
12019 with expansion:
12020 8 == 8
12021
12022 Misc.tests.cpp:<line number>: PASSED:
12023 REQUIRE( v.capacity() >= 2 * V )
12024 with expansion:
12025 8 >= 8
12026
12027 -------------------------------------------------------------------------------
12028 TemplateTestSig: vectors can be sized and resized - float,4
12029 -------------------------------------------------------------------------------
12030 Misc.tests.cpp:<line number>
12031 ...............................................................................
12032
12033 Misc.tests.cpp:<line number>: PASSED:
12034 REQUIRE( v.size() == V )
12035 with expansion:
12036 4 == 4
12037
12038 Misc.tests.cpp:<line number>: PASSED:
12039 REQUIRE( v.capacity() >= V )
12040 with expansion:
12041 4 >= 4
12042
12043 -------------------------------------------------------------------------------
12044 TemplateTestSig: vectors can be sized and resized - float,4
12045 resizing smaller changes size but not capacity
12046 -------------------------------------------------------------------------------
12047 Misc.tests.cpp:<line number>
12048 ...............................................................................
12049
12050 Misc.tests.cpp:<line number>: PASSED:
12051 REQUIRE( v.size() == 0 )
12052 with expansion:
12053 0 == 0
12054
12055 Misc.tests.cpp:<line number>: PASSED:
12056 REQUIRE( v.capacity() >= V )
12057 with expansion:
12058 4 >= 4
12059
12060 -------------------------------------------------------------------------------
12061 TemplateTestSig: vectors can be sized and resized - float,4
12062 resizing smaller changes size but not capacity
12063 We can use the 'swap trick' to reset the capacity
12064 -------------------------------------------------------------------------------
12065 Misc.tests.cpp:<line number>
12066 ...............................................................................
12067
12068 Misc.tests.cpp:<line number>: PASSED:
12069 REQUIRE( v.capacity() == 0 )
12070 with expansion:
12071 0 == 0
12072
12073 -------------------------------------------------------------------------------
12074 TemplateTestSig: vectors can be sized and resized - float,4
12075 -------------------------------------------------------------------------------
12076 Misc.tests.cpp:<line number>
12077 ...............................................................................
12078
12079 Misc.tests.cpp:<line number>: PASSED:
12080 REQUIRE( v.size() == V )
12081 with expansion:
12082 4 == 4
12083
12084 Misc.tests.cpp:<line number>: PASSED:
12085 REQUIRE( v.capacity() >= V )
12086 with expansion:
12087 4 >= 4
12088
12089 -------------------------------------------------------------------------------
12090 TemplateTestSig: vectors can be sized and resized - float,4
12091 reserving bigger changes capacity but not size
12092 -------------------------------------------------------------------------------
12093 Misc.tests.cpp:<line number>
12094 ...............................................................................
12095
12096 Misc.tests.cpp:<line number>: PASSED:
12097 REQUIRE( v.size() == V )
12098 with expansion:
12099 4 == 4
12100
12101 Misc.tests.cpp:<line number>: PASSED:
12102 REQUIRE( v.capacity() >= 2 * V )
12103 with expansion:
12104 8 >= 8
12105
12106 -------------------------------------------------------------------------------
12107 TemplateTestSig: vectors can be sized and resized - float,4
12108 -------------------------------------------------------------------------------
12109 Misc.tests.cpp:<line number>
12110 ...............................................................................
12111
12112 Misc.tests.cpp:<line number>: PASSED:
12113 REQUIRE( v.size() == V )
12114 with expansion:
12115 4 == 4
12116
12117 Misc.tests.cpp:<line number>: PASSED:
12118 REQUIRE( v.capacity() >= V )
12119 with expansion:
12120 4 >= 4
12121
12122 -------------------------------------------------------------------------------
12123 TemplateTestSig: vectors can be sized and resized - float,4
12124 reserving smaller does not change size or capacity
12125 -------------------------------------------------------------------------------
12126 Misc.tests.cpp:<line number>
12127 ...............................................................................
12128
12129 Misc.tests.cpp:<line number>: PASSED:
12130 REQUIRE( v.size() == V )
12131 with expansion:
12132 4 == 4
12133
12134 Misc.tests.cpp:<line number>: PASSED:
12135 REQUIRE( v.capacity() >= V )
12136 with expansion:
12137 4 >= 4
12138
12139 -------------------------------------------------------------------------------
12140 TemplateTestSig: vectors can be sized and resized - int,5
12141 -------------------------------------------------------------------------------
12142 Misc.tests.cpp:<line number>
12143 ...............................................................................
12144
12145 Misc.tests.cpp:<line number>: PASSED:
12146 REQUIRE( v.size() == V )
12147 with expansion:
12148 5 == 5
12149
12150 Misc.tests.cpp:<line number>: PASSED:
12151 REQUIRE( v.capacity() >= V )
12152 with expansion:
12153 5 >= 5
12154
12155 -------------------------------------------------------------------------------
12156 TemplateTestSig: vectors can be sized and resized - int,5
12157 resizing bigger changes size and capacity
12158 -------------------------------------------------------------------------------
12159 Misc.tests.cpp:<line number>
12160 ...............................................................................
12161
12162 Misc.tests.cpp:<line number>: PASSED:
12163 REQUIRE( v.size() == 2 * V )
12164 with expansion:
12165 10 == 10
12166
12167 Misc.tests.cpp:<line number>: PASSED:
12168 REQUIRE( v.capacity() >= 2 * V )
12169 with expansion:
12170 10 >= 10
12171
12172 -------------------------------------------------------------------------------
12173 TemplateTestSig: vectors can be sized and resized - int,5
12174 -------------------------------------------------------------------------------
12175 Misc.tests.cpp:<line number>
12176 ...............................................................................
12177
12178 Misc.tests.cpp:<line number>: PASSED:
12179 REQUIRE( v.size() == V )
12180 with expansion:
12181 5 == 5
12182
12183 Misc.tests.cpp:<line number>: PASSED:
12184 REQUIRE( v.capacity() >= V )
12185 with expansion:
12186 5 >= 5
12187
12188 -------------------------------------------------------------------------------
12189 TemplateTestSig: vectors can be sized and resized - int,5
12190 resizing smaller changes size but not capacity
12191 -------------------------------------------------------------------------------
12192 Misc.tests.cpp:<line number>
12193 ...............................................................................
12194
12195 Misc.tests.cpp:<line number>: PASSED:
12196 REQUIRE( v.size() == 0 )
12197 with expansion:
12198 0 == 0
12199
12200 Misc.tests.cpp:<line number>: PASSED:
12201 REQUIRE( v.capacity() >= V )
12202 with expansion:
12203 5 >= 5
12204
12205 -------------------------------------------------------------------------------
12206 TemplateTestSig: vectors can be sized and resized - int,5
12207 resizing smaller changes size but not capacity
12208 We can use the 'swap trick' to reset the capacity
12209 -------------------------------------------------------------------------------
12210 Misc.tests.cpp:<line number>
12211 ...............................................................................
12212
12213 Misc.tests.cpp:<line number>: PASSED:
12214 REQUIRE( v.capacity() == 0 )
12215 with expansion:
12216 0 == 0
12217
12218 -------------------------------------------------------------------------------
12219 TemplateTestSig: vectors can be sized and resized - int,5
12220 -------------------------------------------------------------------------------
12221 Misc.tests.cpp:<line number>
12222 ...............................................................................
12223
12224 Misc.tests.cpp:<line number>: PASSED:
12225 REQUIRE( v.size() == V )
12226 with expansion:
12227 5 == 5
12228
12229 Misc.tests.cpp:<line number>: PASSED:
12230 REQUIRE( v.capacity() >= V )
12231 with expansion:
12232 5 >= 5
12233
12234 -------------------------------------------------------------------------------
12235 TemplateTestSig: vectors can be sized and resized - int,5
12236 reserving bigger changes capacity but not size
12237 -------------------------------------------------------------------------------
12238 Misc.tests.cpp:<line number>
12239 ...............................................................................
12240
12241 Misc.tests.cpp:<line number>: PASSED:
12242 REQUIRE( v.size() == V )
12243 with expansion:
12244 5 == 5
12245
12246 Misc.tests.cpp:<line number>: PASSED:
12247 REQUIRE( v.capacity() >= 2 * V )
12248 with expansion:
12249 10 >= 10
12250
12251 -------------------------------------------------------------------------------
12252 TemplateTestSig: vectors can be sized and resized - int,5
12253 -------------------------------------------------------------------------------
12254 Misc.tests.cpp:<line number>
12255 ...............................................................................
12256
12257 Misc.tests.cpp:<line number>: PASSED:
12258 REQUIRE( v.size() == V )
12259 with expansion:
12260 5 == 5
12261
12262 Misc.tests.cpp:<line number>: PASSED:
12263 REQUIRE( v.capacity() >= V )
12264 with expansion:
12265 5 >= 5
12266
12267 -------------------------------------------------------------------------------
12268 TemplateTestSig: vectors can be sized and resized - int,5
12269 reserving smaller does not change size or capacity
12270 -------------------------------------------------------------------------------
12271 Misc.tests.cpp:<line number>
12272 ...............................................................................
12273
12274 Misc.tests.cpp:<line number>: PASSED:
12275 REQUIRE( v.size() == V )
12276 with expansion:
12277 5 == 5
12278
12279 Misc.tests.cpp:<line number>: PASSED:
12280 REQUIRE( v.capacity() >= V )
12281 with expansion:
12282 5 >= 5
12283
12284 -------------------------------------------------------------------------------
12285 TemplateTestSig: vectors can be sized and resized - std::string,15
12286 -------------------------------------------------------------------------------
12287 Misc.tests.cpp:<line number>
12288 ...............................................................................
12289
12290 Misc.tests.cpp:<line number>: PASSED:
12291 REQUIRE( v.size() == V )
12292 with expansion:
12293 15 == 15
12294
12295 Misc.tests.cpp:<line number>: PASSED:
12296 REQUIRE( v.capacity() >= V )
12297 with expansion:
12298 15 >= 15
12299
12300 -------------------------------------------------------------------------------
12301 TemplateTestSig: vectors can be sized and resized - std::string,15
12302 resizing bigger changes size and capacity
12303 -------------------------------------------------------------------------------
12304 Misc.tests.cpp:<line number>
12305 ...............................................................................
12306
12307 Misc.tests.cpp:<line number>: PASSED:
12308 REQUIRE( v.size() == 2 * V )
12309 with expansion:
12310 30 == 30
12311
12312 Misc.tests.cpp:<line number>: PASSED:
12313 REQUIRE( v.capacity() >= 2 * V )
12314 with expansion:
12315 30 >= 30
12316
12317 -------------------------------------------------------------------------------
12318 TemplateTestSig: vectors can be sized and resized - std::string,15
12319 -------------------------------------------------------------------------------
12320 Misc.tests.cpp:<line number>
12321 ...............................................................................
12322
12323 Misc.tests.cpp:<line number>: PASSED:
12324 REQUIRE( v.size() == V )
12325 with expansion:
12326 15 == 15
12327
12328 Misc.tests.cpp:<line number>: PASSED:
12329 REQUIRE( v.capacity() >= V )
12330 with expansion:
12331 15 >= 15
12332
12333 -------------------------------------------------------------------------------
12334 TemplateTestSig: vectors can be sized and resized - std::string,15
12335 resizing smaller changes size but not capacity
12336 -------------------------------------------------------------------------------
12337 Misc.tests.cpp:<line number>
12338 ...............................................................................
12339
12340 Misc.tests.cpp:<line number>: PASSED:
12341 REQUIRE( v.size() == 0 )
12342 with expansion:
12343 0 == 0
12344
12345 Misc.tests.cpp:<line number>: PASSED:
12346 REQUIRE( v.capacity() >= V )
12347 with expansion:
12348 15 >= 15
12349
12350 -------------------------------------------------------------------------------
12351 TemplateTestSig: vectors can be sized and resized - std::string,15
12352 resizing smaller changes size but not capacity
12353 We can use the 'swap trick' to reset the capacity
12354 -------------------------------------------------------------------------------
12355 Misc.tests.cpp:<line number>
12356 ...............................................................................
12357
12358 Misc.tests.cpp:<line number>: PASSED:
12359 REQUIRE( v.capacity() == 0 )
12360 with expansion:
12361 0 == 0
12362
12363 -------------------------------------------------------------------------------
12364 TemplateTestSig: vectors can be sized and resized - std::string,15
12365 -------------------------------------------------------------------------------
12366 Misc.tests.cpp:<line number>
12367 ...............................................................................
12368
12369 Misc.tests.cpp:<line number>: PASSED:
12370 REQUIRE( v.size() == V )
12371 with expansion:
12372 15 == 15
12373
12374 Misc.tests.cpp:<line number>: PASSED:
12375 REQUIRE( v.capacity() >= V )
12376 with expansion:
12377 15 >= 15
12378
12379 -------------------------------------------------------------------------------
12380 TemplateTestSig: vectors can be sized and resized - std::string,15
12381 reserving bigger changes capacity but not size
12382 -------------------------------------------------------------------------------
12383 Misc.tests.cpp:<line number>
12384 ...............................................................................
12385
12386 Misc.tests.cpp:<line number>: PASSED:
12387 REQUIRE( v.size() == V )
12388 with expansion:
12389 15 == 15
12390
12391 Misc.tests.cpp:<line number>: PASSED:
12392 REQUIRE( v.capacity() >= 2 * V )
12393 with expansion:
12394 30 >= 30
12395
12396 -------------------------------------------------------------------------------
12397 TemplateTestSig: vectors can be sized and resized - std::string,15
12398 -------------------------------------------------------------------------------
12399 Misc.tests.cpp:<line number>
12400 ...............................................................................
12401
12402 Misc.tests.cpp:<line number>: PASSED:
12403 REQUIRE( v.size() == V )
12404 with expansion:
12405 15 == 15
12406
12407 Misc.tests.cpp:<line number>: PASSED:
12408 REQUIRE( v.capacity() >= V )
12409 with expansion:
12410 15 >= 15
12411
12412 -------------------------------------------------------------------------------
12413 TemplateTestSig: vectors can be sized and resized - std::string,15
12414 reserving smaller does not change size or capacity
12415 -------------------------------------------------------------------------------
12416 Misc.tests.cpp:<line number>
12417 ...............................................................................
12418
12419 Misc.tests.cpp:<line number>: PASSED:
12420 REQUIRE( v.size() == V )
12421 with expansion:
12422 15 == 15
12423
12424 Misc.tests.cpp:<line number>: PASSED:
12425 REQUIRE( v.capacity() >= V )
12426 with expansion:
12427 15 >= 15
12428
12429 -------------------------------------------------------------------------------
12430 Test case with identical tags keeps just one
12431 -------------------------------------------------------------------------------
12432 Tag.tests.cpp:<line number>
12433 ...............................................................................
12434
12435 Tag.tests.cpp:<line number>: PASSED:
12436 REQUIRE( testCase.tags.size() == 1 )
12437 with expansion:
12438 1 == 1
12439
12440 Tag.tests.cpp:<line number>: PASSED:
12441 REQUIRE( testCase.tags[0] == Tag( "tag1" ) )
12442 with expansion:
12443 {?} == {?}
12444
12445 -------------------------------------------------------------------------------
12446 Test case with one argument
12447 -------------------------------------------------------------------------------
12448 VariadicMacros.tests.cpp:<line number>
12449 ...............................................................................
12450
12451 VariadicMacros.tests.cpp:<line number>: PASSED:
12452 with message:
12453 no assertions
12454
12455 -------------------------------------------------------------------------------
12456 Test enum bit values
12457 -------------------------------------------------------------------------------
12458 Tricky.tests.cpp:<line number>
12459 ...............................................................................
12460
12461 Tricky.tests.cpp:<line number>: PASSED:
12462 REQUIRE( 0x<hex digits> == bit30and31 )
12463 with expansion:
12464 3221225472 (0x<hex digits>) == 3221225472
12465
12466 -------------------------------------------------------------------------------
12467 Test with special, characters "in name
12468 -------------------------------------------------------------------------------
12469 CmdLine.tests.cpp:<line number>
12470 ...............................................................................
12471
12472 CmdLine.tests.cpp:<line number>: PASSED:
12473
12474 -------------------------------------------------------------------------------
12475 Testing checked-if
12476 -------------------------------------------------------------------------------
12477 Misc.tests.cpp:<line number>
12478 ...............................................................................
12479
12480 Misc.tests.cpp:<line number>: PASSED:
12481 CHECKED_IF( true )
12482
12483 Misc.tests.cpp:<line number>: PASSED:
12484
12485 Misc.tests.cpp:<line number>: FAILED - but was ok:
12486 CHECKED_IF( false )
12487
12488 Misc.tests.cpp:<line number>: PASSED:
12489 CHECKED_ELSE( true )
12490
12491 Misc.tests.cpp:<line number>: FAILED - but was ok:
12492 CHECKED_ELSE( false )
12493
12494 Misc.tests.cpp:<line number>: PASSED:
12495
12496 -------------------------------------------------------------------------------
12497 Testing checked-if 2
12498 -------------------------------------------------------------------------------
12499 Misc.tests.cpp:<line number>
12500 ...............................................................................
12501
12502 Misc.tests.cpp:<line number>: PASSED:
12503 CHECKED_IF( true )
12504
12505 Misc.tests.cpp:<line number>: FAILED:
12506
12507 -------------------------------------------------------------------------------
12508 Testing checked-if 3
12509 -------------------------------------------------------------------------------
12510 Misc.tests.cpp:<line number>
12511 ...............................................................................
12512
12513 Misc.tests.cpp:<line number>: FAILED - but was ok:
12514 CHECKED_ELSE( false )
12515
12516 Misc.tests.cpp:<line number>: FAILED:
12517
12518 -------------------------------------------------------------------------------
12519 The NO_FAIL macro reports a failure but does not fail the test
12520 -------------------------------------------------------------------------------
12521 Message.tests.cpp:<line number>
12522 ...............................................................................
12523
12524 Message.tests.cpp:<line number>: FAILED - but was ok:
12525 CHECK_NOFAIL( 1 == 2 )
12526
12527
12528 No assertions in test case 'The NO_FAIL macro reports a failure but does not fail the test'
12529
12530 -------------------------------------------------------------------------------
12531 The default listing implementation write to provided stream
12532 Listing tags
12533 -------------------------------------------------------------------------------
12534 Reporters.tests.cpp:<line number>
12535 ...............................................................................
12536
12537 Reporters.tests.cpp:<line number>: PASSED:
12538 REQUIRE_THAT( listingString, ContainsSubstring("[fakeTag]"s) )
12539 with expansion:
12540 "All available tags:
12541 1 [fakeTag]
12542 1 tag
12543
12544 " contains: "[fakeTag]"
12545
12546 -------------------------------------------------------------------------------
12547 The default listing implementation write to provided stream
12548 Listing reporters
12549 -------------------------------------------------------------------------------
12550 Reporters.tests.cpp:<line number>
12551 ...............................................................................
12552
12553 Reporters.tests.cpp:<line number>: PASSED:
12554 REQUIRE_THAT( listingString, ContainsSubstring( "fake reporter"s ) && ContainsSubstring( "fake description"s ) )
12555 with expansion:
12556 "Available reporters:
12557 fake reporter: fake description
12558
12559 " ( contains: "fake reporter" and contains: "fake description" )
12560
12561 -------------------------------------------------------------------------------
12562 The default listing implementation write to provided stream
12563 Listing tests
12564 -------------------------------------------------------------------------------
12565 Reporters.tests.cpp:<line number>
12566 ...............................................................................
12567
12568 Reporters.tests.cpp:<line number>: PASSED:
12569 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
12570 with expansion:
12571 "All available test cases:
12572 fake test name
12573 [fakeTestTag]
12574 1 test case
12575
12576 " ( contains: "fake test name" and contains: "fakeTestTag" )
12577
12578 -------------------------------------------------------------------------------
12579 The default listing implementation write to provided stream
12580 Listing listeners
12581 -------------------------------------------------------------------------------
12582 Reporters.tests.cpp:<line number>
12583 ...............................................................................
12584
12585 Reporters.tests.cpp:<line number>: PASSED:
12586 REQUIRE_THAT( listingString, ContainsSubstring( "fakeListener"s ) && ContainsSubstring( "fake description"s ) )
12587 with expansion:
12588 "Registered listeners:
12589 fakeListener: fake description
12590
12591 " ( contains: "fakeListener" and contains: "fake description" )
12592
12593 -------------------------------------------------------------------------------
12594 This test 'should' fail but doesn't
12595 -------------------------------------------------------------------------------
12596 Misc.tests.cpp:<line number>
12597 ...............................................................................
12598
12599 Misc.tests.cpp:<line number>: PASSED:
12600 with message:
12601 oops!
12602
12603 -------------------------------------------------------------------------------
12604 Thrown string literals are translated
12605 -------------------------------------------------------------------------------
12606 Exception.tests.cpp:<line number>
12607 ...............................................................................
12608
12609 Exception.tests.cpp:<line number>: FAILED:
12610 due to unexpected exception with message:
12611 For some reason someone is throwing a string literal!
12612
12613 -------------------------------------------------------------------------------
12614 Tracker
12615 -------------------------------------------------------------------------------
12616 PartTracker.tests.cpp:<line number>
12617 ...............................................................................
12618
12619 PartTracker.tests.cpp:<line number>: PASSED:
12620 REQUIRE( testCase.isOpen() )
12621 with expansion:
12622 true
12623
12624 PartTracker.tests.cpp:<line number>: PASSED:
12625 REQUIRE( s1.isOpen() )
12626 with expansion:
12627 true
12628
12629 -------------------------------------------------------------------------------
12630 Tracker
12631 successfully close one section
12632 -------------------------------------------------------------------------------
12633 PartTracker.tests.cpp:<line number>
12634 ...............................................................................
12635
12636 PartTracker.tests.cpp:<line number>: PASSED:
12637 REQUIRE( s1.isSuccessfullyCompleted() )
12638 with expansion:
12639 true
12640
12641 PartTracker.tests.cpp:<line number>: PASSED:
12642 REQUIRE( testCase.isComplete() == false )
12643 with expansion:
12644 false == false
12645
12646 PartTracker.tests.cpp:<line number>: PASSED:
12647 REQUIRE( ctx.completedCycle() )
12648 with expansion:
12649 true
12650
12651 PartTracker.tests.cpp:<line number>: PASSED:
12652 REQUIRE( testCase.isSuccessfullyCompleted() )
12653 with expansion:
12654 true
12655
12656 -------------------------------------------------------------------------------
12657 Tracker
12658 -------------------------------------------------------------------------------
12659 PartTracker.tests.cpp:<line number>
12660 ...............................................................................
12661
12662 PartTracker.tests.cpp:<line number>: PASSED:
12663 REQUIRE( testCase.isOpen() )
12664 with expansion:
12665 true
12666
12667 PartTracker.tests.cpp:<line number>: PASSED:
12668 REQUIRE( s1.isOpen() )
12669 with expansion:
12670 true
12671
12672 -------------------------------------------------------------------------------
12673 Tracker
12674 fail one section
12675 -------------------------------------------------------------------------------
12676 PartTracker.tests.cpp:<line number>
12677 ...............................................................................
12678
12679 PartTracker.tests.cpp:<line number>: PASSED:
12680 REQUIRE( s1.isComplete() )
12681 with expansion:
12682 true
12683
12684 PartTracker.tests.cpp:<line number>: PASSED:
12685 REQUIRE( s1.isSuccessfullyCompleted() == false )
12686 with expansion:
12687 false == false
12688
12689 PartTracker.tests.cpp:<line number>: PASSED:
12690 REQUIRE( testCase.isComplete() == false )
12691 with expansion:
12692 false == false
12693
12694 PartTracker.tests.cpp:<line number>: PASSED:
12695 REQUIRE( ctx.completedCycle() )
12696 with expansion:
12697 true
12698
12699 PartTracker.tests.cpp:<line number>: PASSED:
12700 REQUIRE( testCase.isSuccessfullyCompleted() == false )
12701 with expansion:
12702 false == false
12703
12704 -------------------------------------------------------------------------------
12705 Tracker
12706 fail one section
12707 re-enter after failed section
12708 -------------------------------------------------------------------------------
12709 PartTracker.tests.cpp:<line number>
12710 ...............................................................................
12711
12712 PartTracker.tests.cpp:<line number>: PASSED:
12713 REQUIRE( testCase2.isOpen() )
12714 with expansion:
12715 true
12716
12717 PartTracker.tests.cpp:<line number>: PASSED:
12718 REQUIRE( s1b.isOpen() == false )
12719 with expansion:
12720 false == false
12721
12722 PartTracker.tests.cpp:<line number>: PASSED:
12723 REQUIRE( ctx.completedCycle() )
12724 with expansion:
12725 true
12726
12727 PartTracker.tests.cpp:<line number>: PASSED:
12728 REQUIRE( testCase.isComplete() )
12729 with expansion:
12730 true
12731
12732 PartTracker.tests.cpp:<line number>: PASSED:
12733 REQUIRE( testCase.isSuccessfullyCompleted() )
12734 with expansion:
12735 true
12736
12737 -------------------------------------------------------------------------------
12738 Tracker
12739 -------------------------------------------------------------------------------
12740 PartTracker.tests.cpp:<line number>
12741 ...............................................................................
12742
12743 PartTracker.tests.cpp:<line number>: PASSED:
12744 REQUIRE( testCase.isOpen() )
12745 with expansion:
12746 true
12747
12748 PartTracker.tests.cpp:<line number>: PASSED:
12749 REQUIRE( s1.isOpen() )
12750 with expansion:
12751 true
12752
12753 -------------------------------------------------------------------------------
12754 Tracker
12755 fail one section
12756 -------------------------------------------------------------------------------
12757 PartTracker.tests.cpp:<line number>
12758 ...............................................................................
12759
12760 PartTracker.tests.cpp:<line number>: PASSED:
12761 REQUIRE( s1.isComplete() )
12762 with expansion:
12763 true
12764
12765 PartTracker.tests.cpp:<line number>: PASSED:
12766 REQUIRE( s1.isSuccessfullyCompleted() == false )
12767 with expansion:
12768 false == false
12769
12770 PartTracker.tests.cpp:<line number>: PASSED:
12771 REQUIRE( testCase.isComplete() == false )
12772 with expansion:
12773 false == false
12774
12775 PartTracker.tests.cpp:<line number>: PASSED:
12776 REQUIRE( ctx.completedCycle() )
12777 with expansion:
12778 true
12779
12780 PartTracker.tests.cpp:<line number>: PASSED:
12781 REQUIRE( testCase.isSuccessfullyCompleted() == false )
12782 with expansion:
12783 false == false
12784
12785 -------------------------------------------------------------------------------
12786 Tracker
12787 fail one section
12788 re-enter after failed section and find next section
12789 -------------------------------------------------------------------------------
12790 PartTracker.tests.cpp:<line number>
12791 ...............................................................................
12792
12793 PartTracker.tests.cpp:<line number>: PASSED:
12794 REQUIRE( testCase2.isOpen() )
12795 with expansion:
12796 true
12797
12798 PartTracker.tests.cpp:<line number>: PASSED:
12799 REQUIRE( s1b.isOpen() == false )
12800 with expansion:
12801 false == false
12802
12803 PartTracker.tests.cpp:<line number>: PASSED:
12804 REQUIRE( s2.isOpen() )
12805 with expansion:
12806 true
12807
12808 PartTracker.tests.cpp:<line number>: PASSED:
12809 REQUIRE( ctx.completedCycle() )
12810 with expansion:
12811 true
12812
12813 PartTracker.tests.cpp:<line number>: PASSED:
12814 REQUIRE( testCase.isComplete() )
12815 with expansion:
12816 true
12817
12818 PartTracker.tests.cpp:<line number>: PASSED:
12819 REQUIRE( testCase.isSuccessfullyCompleted() )
12820 with expansion:
12821 true
12822
12823 -------------------------------------------------------------------------------
12824 Tracker
12825 -------------------------------------------------------------------------------
12826 PartTracker.tests.cpp:<line number>
12827 ...............................................................................
12828
12829 PartTracker.tests.cpp:<line number>: PASSED:
12830 REQUIRE( testCase.isOpen() )
12831 with expansion:
12832 true
12833
12834 PartTracker.tests.cpp:<line number>: PASSED:
12835 REQUIRE( s1.isOpen() )
12836 with expansion:
12837 true
12838
12839 -------------------------------------------------------------------------------
12840 Tracker
12841 successfully close one section, then find another
12842 -------------------------------------------------------------------------------
12843 PartTracker.tests.cpp:<line number>
12844 ...............................................................................
12845
12846 PartTracker.tests.cpp:<line number>: PASSED:
12847 REQUIRE( s2.isOpen() == false )
12848 with expansion:
12849 false == false
12850
12851 PartTracker.tests.cpp:<line number>: PASSED:
12852 REQUIRE( testCase.isComplete() == false )
12853 with expansion:
12854 false == false
12855
12856 -------------------------------------------------------------------------------
12857 Tracker
12858 successfully close one section, then find another
12859 Re-enter - skips S1 and enters S2
12860 -------------------------------------------------------------------------------
12861 PartTracker.tests.cpp:<line number>
12862 ...............................................................................
12863
12864 PartTracker.tests.cpp:<line number>: PASSED:
12865 REQUIRE( testCase2.isOpen() )
12866 with expansion:
12867 true
12868
12869 PartTracker.tests.cpp:<line number>: PASSED:
12870 REQUIRE( s1b.isOpen() == false )
12871 with expansion:
12872 false == false
12873
12874 PartTracker.tests.cpp:<line number>: PASSED:
12875 REQUIRE( s2b.isOpen() )
12876 with expansion:
12877 true
12878
12879 PartTracker.tests.cpp:<line number>: PASSED:
12880 REQUIRE( ctx.completedCycle() == false )
12881 with expansion:
12882 false == false
12883
12884 -------------------------------------------------------------------------------
12885 Tracker
12886 successfully close one section, then find another
12887 Re-enter - skips S1 and enters S2
12888 Successfully close S2
12889 -------------------------------------------------------------------------------
12890 PartTracker.tests.cpp:<line number>
12891 ...............................................................................
12892
12893 PartTracker.tests.cpp:<line number>: PASSED:
12894 REQUIRE( ctx.completedCycle() )
12895 with expansion:
12896 true
12897
12898 PartTracker.tests.cpp:<line number>: PASSED:
12899 REQUIRE( s2b.isSuccessfullyCompleted() )
12900 with expansion:
12901 true
12902
12903 PartTracker.tests.cpp:<line number>: PASSED:
12904 REQUIRE( testCase2.isComplete() == false )
12905 with expansion:
12906 false == false
12907
12908 PartTracker.tests.cpp:<line number>: PASSED:
12909 REQUIRE( testCase2.isSuccessfullyCompleted() )
12910 with expansion:
12911 true
12912
12913 -------------------------------------------------------------------------------
12914 Tracker
12915 -------------------------------------------------------------------------------
12916 PartTracker.tests.cpp:<line number>
12917 ...............................................................................
12918
12919 PartTracker.tests.cpp:<line number>: PASSED:
12920 REQUIRE( testCase.isOpen() )
12921 with expansion:
12922 true
12923
12924 PartTracker.tests.cpp:<line number>: PASSED:
12925 REQUIRE( s1.isOpen() )
12926 with expansion:
12927 true
12928
12929 -------------------------------------------------------------------------------
12930 Tracker
12931 successfully close one section, then find another
12932 -------------------------------------------------------------------------------
12933 PartTracker.tests.cpp:<line number>
12934 ...............................................................................
12935
12936 PartTracker.tests.cpp:<line number>: PASSED:
12937 REQUIRE( s2.isOpen() == false )
12938 with expansion:
12939 false == false
12940
12941 PartTracker.tests.cpp:<line number>: PASSED:
12942 REQUIRE( testCase.isComplete() == false )
12943 with expansion:
12944 false == false
12945
12946 -------------------------------------------------------------------------------
12947 Tracker
12948 successfully close one section, then find another
12949 Re-enter - skips S1 and enters S2
12950 -------------------------------------------------------------------------------
12951 PartTracker.tests.cpp:<line number>
12952 ...............................................................................
12953
12954 PartTracker.tests.cpp:<line number>: PASSED:
12955 REQUIRE( testCase2.isOpen() )
12956 with expansion:
12957 true
12958
12959 PartTracker.tests.cpp:<line number>: PASSED:
12960 REQUIRE( s1b.isOpen() == false )
12961 with expansion:
12962 false == false
12963
12964 PartTracker.tests.cpp:<line number>: PASSED:
12965 REQUIRE( s2b.isOpen() )
12966 with expansion:
12967 true
12968
12969 PartTracker.tests.cpp:<line number>: PASSED:
12970 REQUIRE( ctx.completedCycle() == false )
12971 with expansion:
12972 false == false
12973
12974 -------------------------------------------------------------------------------
12975 Tracker
12976 successfully close one section, then find another
12977 Re-enter - skips S1 and enters S2
12978 fail S2
12979 -------------------------------------------------------------------------------
12980 PartTracker.tests.cpp:<line number>
12981 ...............................................................................
12982
12983 PartTracker.tests.cpp:<line number>: PASSED:
12984 REQUIRE( ctx.completedCycle() )
12985 with expansion:
12986 true
12987
12988 PartTracker.tests.cpp:<line number>: PASSED:
12989 REQUIRE( s2b.isComplete() )
12990 with expansion:
12991 true
12992
12993 PartTracker.tests.cpp:<line number>: PASSED:
12994 REQUIRE( s2b.isSuccessfullyCompleted() == false )
12995 with expansion:
12996 false == false
12997
12998 PartTracker.tests.cpp:<line number>: PASSED:
12999 REQUIRE( testCase2.isSuccessfullyCompleted() == false )
13000 with expansion:
13001 false == false
13002
13003 PartTracker.tests.cpp:<line number>: PASSED:
13004 REQUIRE( testCase3.isOpen() )
13005 with expansion:
13006 true
13007
13008 PartTracker.tests.cpp:<line number>: PASSED:
13009 REQUIRE( s1c.isOpen() == false )
13010 with expansion:
13011 false == false
13012
13013 PartTracker.tests.cpp:<line number>: PASSED:
13014 REQUIRE( s2c.isOpen() == false )
13015 with expansion:
13016 false == false
13017
13018 PartTracker.tests.cpp:<line number>: PASSED:
13019 REQUIRE( testCase3.isSuccessfullyCompleted() )
13020 with expansion:
13021 true
13022
13023 -------------------------------------------------------------------------------
13024 Tracker
13025 -------------------------------------------------------------------------------
13026 PartTracker.tests.cpp:<line number>
13027 ...............................................................................
13028
13029 PartTracker.tests.cpp:<line number>: PASSED:
13030 REQUIRE( testCase.isOpen() )
13031 with expansion:
13032 true
13033
13034 PartTracker.tests.cpp:<line number>: PASSED:
13035 REQUIRE( s1.isOpen() )
13036 with expansion:
13037 true
13038
13039 -------------------------------------------------------------------------------
13040 Tracker
13041 open a nested section
13042 -------------------------------------------------------------------------------
13043 PartTracker.tests.cpp:<line number>
13044 ...............................................................................
13045
13046 PartTracker.tests.cpp:<line number>: PASSED:
13047 REQUIRE( s2.isOpen() )
13048 with expansion:
13049 true
13050
13051 PartTracker.tests.cpp:<line number>: PASSED:
13052 REQUIRE( s2.isComplete() )
13053 with expansion:
13054 true
13055
13056 PartTracker.tests.cpp:<line number>: PASSED:
13057 REQUIRE( s1.isComplete() == false )
13058 with expansion:
13059 false == false
13060
13061 PartTracker.tests.cpp:<line number>: PASSED:
13062 REQUIRE( s1.isComplete() )
13063 with expansion:
13064 true
13065
13066 PartTracker.tests.cpp:<line number>: PASSED:
13067 REQUIRE( testCase.isComplete() == false )
13068 with expansion:
13069 false == false
13070
13071 PartTracker.tests.cpp:<line number>: PASSED:
13072 REQUIRE( testCase.isComplete() )
13073 with expansion:
13074 true
13075
13076 -------------------------------------------------------------------------------
13077 Trim strings
13078 -------------------------------------------------------------------------------
13079 StringManip.tests.cpp:<line number>
13080 ...............................................................................
13081
13082 StringManip.tests.cpp:<line number>: PASSED:
13083 REQUIRE( trim(std::string(no_whitespace)) == no_whitespace )
13084 with expansion:
13085 "There is no extra whitespace here"
13086 ==
13087 "There is no extra whitespace here"
13088
13089 StringManip.tests.cpp:<line number>: PASSED:
13090 REQUIRE( trim(std::string(leading_whitespace)) == no_whitespace )
13091 with expansion:
13092 "There is no extra whitespace here"
13093 ==
13094 "There is no extra whitespace here"
13095
13096 StringManip.tests.cpp:<line number>: PASSED:
13097 REQUIRE( trim(std::string(trailing_whitespace)) == no_whitespace )
13098 with expansion:
13099 "There is no extra whitespace here"
13100 ==
13101 "There is no extra whitespace here"
13102
13103 StringManip.tests.cpp:<line number>: PASSED:
13104 REQUIRE( trim(std::string(whitespace_at_both_ends)) == no_whitespace )
13105 with expansion:
13106 "There is no extra whitespace here"
13107 ==
13108 "There is no extra whitespace here"
13109
13110 StringManip.tests.cpp:<line number>: PASSED:
13111 REQUIRE( trim(StringRef(no_whitespace)) == StringRef(no_whitespace) )
13112 with expansion:
13113 There is no extra whitespace here
13114 ==
13115 There is no extra whitespace here
13116
13117 StringManip.tests.cpp:<line number>: PASSED:
13118 REQUIRE( trim(StringRef(leading_whitespace)) == StringRef(no_whitespace) )
13119 with expansion:
13120 There is no extra whitespace here
13121 ==
13122 There is no extra whitespace here
13123
13124 StringManip.tests.cpp:<line number>: PASSED:
13125 REQUIRE( trim(StringRef(trailing_whitespace)) == StringRef(no_whitespace) )
13126 with expansion:
13127 There is no extra whitespace here
13128 ==
13129 There is no extra whitespace here
13130
13131 StringManip.tests.cpp:<line number>: PASSED:
13132 REQUIRE( trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace) )
13133 with expansion:
13134 There is no extra whitespace here
13135 ==
13136 There is no extra whitespace here
13137
13138 -------------------------------------------------------------------------------
13139 Type conversions of RangeEquals and similar
13140 Container conversions
13141 Two equal containers of different container types
13142 -------------------------------------------------------------------------------
13143 MatchersRanges.tests.cpp:<line number>
13144 ...............................................................................
13145
13146 MatchersRanges.tests.cpp:<line number>: PASSED:
13147 CHECK_THAT( array_int_a, RangeEquals( c_array ) )
13148 with expansion:
13149 { 1, 2, 3 } elements are { 1, 2, 3 }
13150
13151 MatchersRanges.tests.cpp:<line number>: PASSED:
13152 CHECK_THAT( array_int_a, UnorderedRangeEquals( c_array ) )
13153 with expansion:
13154 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
13155
13156 -------------------------------------------------------------------------------
13157 Type conversions of RangeEquals and similar
13158 Container conversions
13159 Two equal containers of different container types (differ in array N)
13160 -------------------------------------------------------------------------------
13161 MatchersRanges.tests.cpp:<line number>
13162 ...............................................................................
13163
13164 MatchersRanges.tests.cpp:<line number>: PASSED:
13165 CHECK_THAT( array_int_3, !RangeEquals( array_int_4 ) )
13166 with expansion:
13167 { 1, 2, 3 } not elements are { 1, 2, 3, 4 }
13168
13169 MatchersRanges.tests.cpp:<line number>: PASSED:
13170 CHECK_THAT( array_int_3, !UnorderedRangeEquals( array_int_4 ) )
13171 with expansion:
13172 { 1, 2, 3 } not unordered elements are { 1, 2, 3, 4 }
13173
13174 -------------------------------------------------------------------------------
13175 Type conversions of RangeEquals and similar
13176 Container conversions
13177 Two equal containers of different container types and value types
13178 -------------------------------------------------------------------------------
13179 MatchersRanges.tests.cpp:<line number>
13180 ...............................................................................
13181
13182 MatchersRanges.tests.cpp:<line number>: PASSED:
13183 CHECK_THAT( array_int_a, RangeEquals( vector_char_a ) )
13184 with expansion:
13185 { 1, 2, 3 } elements are { 1, 2, 3 }
13186
13187 MatchersRanges.tests.cpp:<line number>: PASSED:
13188 CHECK_THAT( array_int_a, UnorderedRangeEquals( vector_char_a ) )
13189 with expansion:
13190 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
13191
13192 -------------------------------------------------------------------------------
13193 Type conversions of RangeEquals and similar
13194 Container conversions
13195 Two equal containers, one random access, one not
13196 -------------------------------------------------------------------------------
13197 MatchersRanges.tests.cpp:<line number>
13198 ...............................................................................
13199
13200 MatchersRanges.tests.cpp:<line number>: PASSED:
13201 with message:
13202 ContainerIsRandomAccess( array_int_a ) != ContainerIsRandomAccess(
13203 list_char_a )
13204
13205 MatchersRanges.tests.cpp:<line number>: PASSED:
13206 CHECK_THAT( array_int_a, RangeEquals( list_char_a ) )
13207 with expansion:
13208 { 1, 2, 3 } elements are { 1, 2, 3 }
13209
13210 MatchersRanges.tests.cpp:<line number>: PASSED:
13211 CHECK_THAT( array_int_a, UnorderedRangeEquals( list_char_a ) )
13212 with expansion:
13213 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
13214
13215 -------------------------------------------------------------------------------
13216 Type conversions of RangeEquals and similar
13217 Value type
13218 Two equal containers of different value types
13219 -------------------------------------------------------------------------------
13220 MatchersRanges.tests.cpp:<line number>
13221 ...............................................................................
13222
13223 MatchersRanges.tests.cpp:<line number>: PASSED:
13224 CHECK_THAT( vector_int_a, RangeEquals( vector_char_a ) )
13225 with expansion:
13226 { 1, 2, 3 } elements are { 1, 2, 3 }
13227
13228 MatchersRanges.tests.cpp:<line number>: PASSED:
13229 CHECK_THAT( vector_int_a, UnorderedRangeEquals( vector_char_a ) )
13230 with expansion:
13231 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
13232
13233 -------------------------------------------------------------------------------
13234 Type conversions of RangeEquals and similar
13235 Value type
13236 Two non-equal containers of different value types
13237 -------------------------------------------------------------------------------
13238 MatchersRanges.tests.cpp:<line number>
13239 ...............................................................................
13240
13241 MatchersRanges.tests.cpp:<line number>: PASSED:
13242 CHECK_THAT( vector_int_a, !RangeEquals( vector_char_b ) )
13243 with expansion:
13244 { 1, 2, 3 } not elements are { 1, 2, 2 }
13245
13246 MatchersRanges.tests.cpp:<line number>: PASSED:
13247 CHECK_THAT( vector_int_a, !UnorderedRangeEquals( vector_char_b ) )
13248 with expansion:
13249 { 1, 2, 3 } not unordered elements are { 1, 2, 2 }
13250
13251 -------------------------------------------------------------------------------
13252 Type conversions of RangeEquals and similar
13253 Ranges with begin that needs ADL
13254 -------------------------------------------------------------------------------
13255 MatchersRanges.tests.cpp:<line number>
13256 ...............................................................................
13257
13258 MatchersRanges.tests.cpp:<line number>: PASSED:
13259 REQUIRE_THAT( a, !RangeEquals( b ) )
13260 with expansion:
13261 { 1, 2, 3 } not elements are { 3, 2, 1 }
13262
13263 MatchersRanges.tests.cpp:<line number>: PASSED:
13264 REQUIRE_THAT( a, UnorderedRangeEquals( b ) )
13265 with expansion:
13266 { 1, 2, 3 } unordered elements are { 3, 2, 1 }
13267
13268 -------------------------------------------------------------------------------
13269 Type conversions of RangeEquals and similar
13270 Custom predicate
13271 Two equal non-empty containers (close enough)
13272 -------------------------------------------------------------------------------
13273 MatchersRanges.tests.cpp:<line number>
13274 ...............................................................................
13275
13276 MatchersRanges.tests.cpp:<line number>: PASSED:
13277 CHECK_THAT( vector_a, RangeEquals( array_a_plus_1, close_enough ) )
13278 with expansion:
13279 { 1, 2, 3 } elements are { 2, 3, 4 }
13280
13281 MatchersRanges.tests.cpp:<line number>: PASSED:
13282 CHECK_THAT( vector_a, UnorderedRangeEquals( array_a_plus_1, close_enough ) )
13283 with expansion:
13284 { 1, 2, 3 } unordered elements are { 2, 3, 4 }
13285
13286 -------------------------------------------------------------------------------
13287 Unexpected exceptions can be translated
13288 -------------------------------------------------------------------------------
13289 Exception.tests.cpp:<line number>
13290 ...............................................................................
13291
13292 Exception.tests.cpp:<line number>: FAILED:
13293 due to unexpected exception with message:
13294 3.14
13295
13296 -------------------------------------------------------------------------------
13297 Upcasting special member functions
13298 Move constructor
13299 -------------------------------------------------------------------------------
13300 UniquePtr.tests.cpp:<line number>
13301 ...............................................................................
13302
13303 UniquePtr.tests.cpp:<line number>: PASSED:
13304 REQUIRE( bptr->i == 3 )
13305 with expansion:
13306 3 == 3
13307
13308 -------------------------------------------------------------------------------
13309 Upcasting special member functions
13310 move assignment
13311 -------------------------------------------------------------------------------
13312 UniquePtr.tests.cpp:<line number>
13313 ...............................................................................
13314
13315 UniquePtr.tests.cpp:<line number>: PASSED:
13316 REQUIRE( bptr->i == 3 )
13317 with expansion:
13318 3 == 3
13319
13320 -------------------------------------------------------------------------------
13321 Usage of AllMatch range matcher
13322 Basic usage
13323 -------------------------------------------------------------------------------
13324 MatchersRanges.tests.cpp:<line number>
13325 ...............................................................................
13326
13327 MatchersRanges.tests.cpp:<line number>: PASSED:
13328 REQUIRE_THAT( data, AllMatch(SizeIs(5)) )
13329 with expansion:
13330 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13331 }, { 1, 0, 0, -1, 5 } } all match has size == 5
13332
13333 MatchersRanges.tests.cpp:<line number>: PASSED:
13334 REQUIRE_THAT( data, !AllMatch(Contains(0) && Contains(1)) )
13335 with expansion:
13336 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13337 }, { 1, 0, 0, -1, 5 } } not all match ( contains element 0 and contains
13338 element 1 )
13339
13340 -------------------------------------------------------------------------------
13341 Usage of AllMatch range matcher
13342 Type requires ADL found begin and end
13343 -------------------------------------------------------------------------------
13344 MatchersRanges.tests.cpp:<line number>
13345 ...............................................................................
13346
13347 MatchersRanges.tests.cpp:<line number>: PASSED:
13348 REQUIRE_THAT( needs_adl, AllMatch( Predicate<int>( []( int elem ) { return elem < 6; } ) ) )
13349 with expansion:
13350 { 1, 2, 3, 4, 5 } all match matches undescribed predicate
13351
13352 -------------------------------------------------------------------------------
13353 Usage of AllMatch range matcher
13354 Shortcircuiting
13355 All are read
13356 -------------------------------------------------------------------------------
13357 MatchersRanges.tests.cpp:<line number>
13358 ...............................................................................
13359
13360 MatchersRanges.tests.cpp:<line number>: PASSED:
13361 REQUIRE_THAT( mocked, allMatch )
13362 with expansion:
13363 { 1, 2, 3, 4, 5 } all match matches undescribed predicate
13364
13365 MatchersRanges.tests.cpp:<line number>: PASSED:
13366 REQUIRE( mocked.m_derefed[0] )
13367 with expansion:
13368 true
13369
13370 MatchersRanges.tests.cpp:<line number>: PASSED:
13371 REQUIRE( mocked.m_derefed[1] )
13372 with expansion:
13373 true
13374
13375 MatchersRanges.tests.cpp:<line number>: PASSED:
13376 REQUIRE( mocked.m_derefed[2] )
13377 with expansion:
13378 true
13379
13380 MatchersRanges.tests.cpp:<line number>: PASSED:
13381 REQUIRE( mocked.m_derefed[3] )
13382 with expansion:
13383 true
13384
13385 MatchersRanges.tests.cpp:<line number>: PASSED:
13386 REQUIRE( mocked.m_derefed[4] )
13387 with expansion:
13388 true
13389
13390 -------------------------------------------------------------------------------
13391 Usage of AllMatch range matcher
13392 Shortcircuiting
13393 Short-circuited
13394 -------------------------------------------------------------------------------
13395 MatchersRanges.tests.cpp:<line number>
13396 ...............................................................................
13397
13398 MatchersRanges.tests.cpp:<line number>: PASSED:
13399 REQUIRE_THAT( mocked, !allMatch )
13400 with expansion:
13401 { 1, 2, 3, 4, 5 } not all match matches undescribed predicate
13402
13403 MatchersRanges.tests.cpp:<line number>: PASSED:
13404 REQUIRE( mocked.m_derefed[0] )
13405 with expansion:
13406 true
13407
13408 MatchersRanges.tests.cpp:<line number>: PASSED:
13409 REQUIRE( mocked.m_derefed[1] )
13410 with expansion:
13411 true
13412
13413 MatchersRanges.tests.cpp:<line number>: PASSED:
13414 REQUIRE( mocked.m_derefed[2] )
13415 with expansion:
13416 true
13417
13418 MatchersRanges.tests.cpp:<line number>: PASSED:
13419 REQUIRE_FALSE( mocked.m_derefed[3] )
13420 with expansion:
13421 !false
13422
13423 MatchersRanges.tests.cpp:<line number>: PASSED:
13424 REQUIRE_FALSE( mocked.m_derefed[4] )
13425 with expansion:
13426 !false
13427
13428 -------------------------------------------------------------------------------
13429 Usage of AllTrue range matcher
13430 Basic usage
13431 All true evaluates to true
13432 -------------------------------------------------------------------------------
13433 MatchersRanges.tests.cpp:<line number>
13434 ...............................................................................
13435
13436 MatchersRanges.tests.cpp:<line number>: PASSED:
13437 REQUIRE_THAT( data, AllTrue() )
13438 with expansion:
13439 { true, true, true, true, true } contains only true
13440
13441 -------------------------------------------------------------------------------
13442 Usage of AllTrue range matcher
13443 Basic usage
13444 Empty evaluates to true
13445 -------------------------------------------------------------------------------
13446 MatchersRanges.tests.cpp:<line number>
13447 ...............................................................................
13448
13449 MatchersRanges.tests.cpp:<line number>: PASSED:
13450 REQUIRE_THAT( data, AllTrue() )
13451 with expansion:
13452 { } contains only true
13453
13454 -------------------------------------------------------------------------------
13455 Usage of AllTrue range matcher
13456 Basic usage
13457 One false evaluates to false
13458 -------------------------------------------------------------------------------
13459 MatchersRanges.tests.cpp:<line number>
13460 ...............................................................................
13461
13462 MatchersRanges.tests.cpp:<line number>: PASSED:
13463 REQUIRE_THAT( data, !AllTrue() )
13464 with expansion:
13465 { true, true, false, true, true } not contains only true
13466
13467 -------------------------------------------------------------------------------
13468 Usage of AllTrue range matcher
13469 Basic usage
13470 All false evaluates to false
13471 -------------------------------------------------------------------------------
13472 MatchersRanges.tests.cpp:<line number>
13473 ...............................................................................
13474
13475 MatchersRanges.tests.cpp:<line number>: PASSED:
13476 REQUIRE_THAT( data, !AllTrue() )
13477 with expansion:
13478 { false, false, false, false, false } not contains only true
13479
13480 -------------------------------------------------------------------------------
13481 Usage of AllTrue range matcher
13482 Contained type is convertible to bool
13483 All true evaluates to true
13484 -------------------------------------------------------------------------------
13485 MatchersRanges.tests.cpp:<line number>
13486 ...............................................................................
13487
13488 MatchersRanges.tests.cpp:<line number>: PASSED:
13489 REQUIRE_THAT( data, AllTrue() )
13490 with expansion:
13491 { true, true, true, true, true } contains only true
13492
13493 -------------------------------------------------------------------------------
13494 Usage of AllTrue range matcher
13495 Contained type is convertible to bool
13496 One false evaluates to false
13497 -------------------------------------------------------------------------------
13498 MatchersRanges.tests.cpp:<line number>
13499 ...............................................................................
13500
13501 MatchersRanges.tests.cpp:<line number>: PASSED:
13502 REQUIRE_THAT( data, !AllTrue() )
13503 with expansion:
13504 { true, true, false, true, true } not contains only true
13505
13506 -------------------------------------------------------------------------------
13507 Usage of AllTrue range matcher
13508 Contained type is convertible to bool
13509 All false evaluates to false
13510 -------------------------------------------------------------------------------
13511 MatchersRanges.tests.cpp:<line number>
13512 ...............................................................................
13513
13514 MatchersRanges.tests.cpp:<line number>: PASSED:
13515 REQUIRE_THAT( data, !AllTrue() )
13516 with expansion:
13517 { false, false, false, false, false } not contains only true
13518
13519 -------------------------------------------------------------------------------
13520 Usage of AllTrue range matcher
13521 Shortcircuiting
13522 All are read
13523 -------------------------------------------------------------------------------
13524 MatchersRanges.tests.cpp:<line number>
13525 ...............................................................................
13526
13527 MatchersRanges.tests.cpp:<line number>: PASSED:
13528 REQUIRE_THAT( mocked, AllTrue() )
13529 with expansion:
13530 { true, true, true, true, true } contains only true
13531
13532 MatchersRanges.tests.cpp:<line number>: PASSED:
13533 REQUIRE( mocked.m_derefed[0] )
13534 with expansion:
13535 true
13536
13537 MatchersRanges.tests.cpp:<line number>: PASSED:
13538 REQUIRE( mocked.m_derefed[1] )
13539 with expansion:
13540 true
13541
13542 MatchersRanges.tests.cpp:<line number>: PASSED:
13543 REQUIRE( mocked.m_derefed[2] )
13544 with expansion:
13545 true
13546
13547 MatchersRanges.tests.cpp:<line number>: PASSED:
13548 REQUIRE( mocked.m_derefed[3] )
13549 with expansion:
13550 true
13551
13552 MatchersRanges.tests.cpp:<line number>: PASSED:
13553 REQUIRE( mocked.m_derefed[4] )
13554 with expansion:
13555 true
13556
13557 -------------------------------------------------------------------------------
13558 Usage of AllTrue range matcher
13559 Shortcircuiting
13560 Short-circuited
13561 -------------------------------------------------------------------------------
13562 MatchersRanges.tests.cpp:<line number>
13563 ...............................................................................
13564
13565 MatchersRanges.tests.cpp:<line number>: PASSED:
13566 REQUIRE_THAT( mocked, !AllTrue() )
13567 with expansion:
13568 { true, true, false, true, true } not contains only true
13569
13570 MatchersRanges.tests.cpp:<line number>: PASSED:
13571 REQUIRE( mocked.m_derefed[0] )
13572 with expansion:
13573 true
13574
13575 MatchersRanges.tests.cpp:<line number>: PASSED:
13576 REQUIRE( mocked.m_derefed[1] )
13577 with expansion:
13578 true
13579
13580 MatchersRanges.tests.cpp:<line number>: PASSED:
13581 REQUIRE( mocked.m_derefed[2] )
13582 with expansion:
13583 true
13584
13585 MatchersRanges.tests.cpp:<line number>: PASSED:
13586 REQUIRE_FALSE( mocked.m_derefed[3] )
13587 with expansion:
13588 !false
13589
13590 MatchersRanges.tests.cpp:<line number>: PASSED:
13591 REQUIRE_FALSE( mocked.m_derefed[4] )
13592 with expansion:
13593 !false
13594
13595 -------------------------------------------------------------------------------
13596 Usage of AnyMatch range matcher
13597 Basic usage
13598 -------------------------------------------------------------------------------
13599 MatchersRanges.tests.cpp:<line number>
13600 ...............................................................................
13601
13602 MatchersRanges.tests.cpp:<line number>: PASSED:
13603 REQUIRE_THAT( data, AnyMatch(SizeIs(5)) )
13604 with expansion:
13605 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13606 }, { 1, 0, 0, -1, 5 } } any match has size == 5
13607
13608 MatchersRanges.tests.cpp:<line number>: PASSED:
13609 REQUIRE_THAT( data, !AnyMatch(Contains(0) && Contains(10)) )
13610 with expansion:
13611 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13612 }, { 1, 0, 0, -1, 5 } } not any match ( contains element 0 and contains
13613 element 10 )
13614
13615 -------------------------------------------------------------------------------
13616 Usage of AnyMatch range matcher
13617 Type requires ADL found begin and end
13618 -------------------------------------------------------------------------------
13619 MatchersRanges.tests.cpp:<line number>
13620 ...............................................................................
13621
13622 MatchersRanges.tests.cpp:<line number>: PASSED:
13623 REQUIRE_THAT( needs_adl, AnyMatch( Predicate<int>( []( int elem ) { return elem < 3; } ) ) )
13624 with expansion:
13625 { 1, 2, 3, 4, 5 } any match matches undescribed predicate
13626
13627 -------------------------------------------------------------------------------
13628 Usage of AnyMatch range matcher
13629 Shortcircuiting
13630 All are read
13631 -------------------------------------------------------------------------------
13632 MatchersRanges.tests.cpp:<line number>
13633 ...............................................................................
13634
13635 MatchersRanges.tests.cpp:<line number>: PASSED:
13636 REQUIRE_THAT( mocked, !anyMatch )
13637 with expansion:
13638 { 1, 2, 3, 4, 5 } not any match matches undescribed predicate
13639
13640 MatchersRanges.tests.cpp:<line number>: PASSED:
13641 REQUIRE( mocked.m_derefed[0] )
13642 with expansion:
13643 true
13644
13645 MatchersRanges.tests.cpp:<line number>: PASSED:
13646 REQUIRE( mocked.m_derefed[1] )
13647 with expansion:
13648 true
13649
13650 MatchersRanges.tests.cpp:<line number>: PASSED:
13651 REQUIRE( mocked.m_derefed[2] )
13652 with expansion:
13653 true
13654
13655 MatchersRanges.tests.cpp:<line number>: PASSED:
13656 REQUIRE( mocked.m_derefed[3] )
13657 with expansion:
13658 true
13659
13660 MatchersRanges.tests.cpp:<line number>: PASSED:
13661 REQUIRE( mocked.m_derefed[4] )
13662 with expansion:
13663 true
13664
13665 -------------------------------------------------------------------------------
13666 Usage of AnyMatch range matcher
13667 Shortcircuiting
13668 Short-circuited
13669 -------------------------------------------------------------------------------
13670 MatchersRanges.tests.cpp:<line number>
13671 ...............................................................................
13672
13673 MatchersRanges.tests.cpp:<line number>: PASSED:
13674 REQUIRE_THAT( mocked, anyMatch )
13675 with expansion:
13676 { 1, 2, 3, 4, 5 } any match matches undescribed predicate
13677
13678 MatchersRanges.tests.cpp:<line number>: PASSED:
13679 REQUIRE( mocked.m_derefed[0] )
13680 with expansion:
13681 true
13682
13683 MatchersRanges.tests.cpp:<line number>: PASSED:
13684 REQUIRE_FALSE( mocked.m_derefed[1] )
13685 with expansion:
13686 !false
13687
13688 MatchersRanges.tests.cpp:<line number>: PASSED:
13689 REQUIRE_FALSE( mocked.m_derefed[2] )
13690 with expansion:
13691 !false
13692
13693 MatchersRanges.tests.cpp:<line number>: PASSED:
13694 REQUIRE_FALSE( mocked.m_derefed[3] )
13695 with expansion:
13696 !false
13697
13698 MatchersRanges.tests.cpp:<line number>: PASSED:
13699 REQUIRE_FALSE( mocked.m_derefed[4] )
13700 with expansion:
13701 !false
13702
13703 -------------------------------------------------------------------------------
13704 Usage of AnyTrue range matcher
13705 Basic usage
13706 All true evaluates to true
13707 -------------------------------------------------------------------------------
13708 MatchersRanges.tests.cpp:<line number>
13709 ...............................................................................
13710
13711 MatchersRanges.tests.cpp:<line number>: PASSED:
13712 REQUIRE_THAT( data, AnyTrue() )
13713 with expansion:
13714 { true, true, true, true, true } contains at least one true
13715
13716 -------------------------------------------------------------------------------
13717 Usage of AnyTrue range matcher
13718 Basic usage
13719 Empty evaluates to false
13720 -------------------------------------------------------------------------------
13721 MatchersRanges.tests.cpp:<line number>
13722 ...............................................................................
13723
13724 MatchersRanges.tests.cpp:<line number>: PASSED:
13725 REQUIRE_THAT( data, !AnyTrue() )
13726 with expansion:
13727 { } not contains at least one true
13728
13729 -------------------------------------------------------------------------------
13730 Usage of AnyTrue range matcher
13731 Basic usage
13732 One true evaluates to true
13733 -------------------------------------------------------------------------------
13734 MatchersRanges.tests.cpp:<line number>
13735 ...............................................................................
13736
13737 MatchersRanges.tests.cpp:<line number>: PASSED:
13738 REQUIRE_THAT( data, AnyTrue() )
13739 with expansion:
13740 { false, false, true, false, false } contains at least one true
13741
13742 -------------------------------------------------------------------------------
13743 Usage of AnyTrue range matcher
13744 Basic usage
13745 All false evaluates to false
13746 -------------------------------------------------------------------------------
13747 MatchersRanges.tests.cpp:<line number>
13748 ...............................................................................
13749
13750 MatchersRanges.tests.cpp:<line number>: PASSED:
13751 REQUIRE_THAT( data, !AnyTrue() )
13752 with expansion:
13753 { false, false, false, false, false } not contains at least one true
13754
13755 -------------------------------------------------------------------------------
13756 Usage of AnyTrue range matcher
13757 Contained type is convertible to bool
13758 All true evaluates to true
13759 -------------------------------------------------------------------------------
13760 MatchersRanges.tests.cpp:<line number>
13761 ...............................................................................
13762
13763 MatchersRanges.tests.cpp:<line number>: PASSED:
13764 REQUIRE_THAT( data, AnyTrue() )
13765 with expansion:
13766 { true, true, true, true, true } contains at least one true
13767
13768 -------------------------------------------------------------------------------
13769 Usage of AnyTrue range matcher
13770 Contained type is convertible to bool
13771 One true evaluates to true
13772 -------------------------------------------------------------------------------
13773 MatchersRanges.tests.cpp:<line number>
13774 ...............................................................................
13775
13776 MatchersRanges.tests.cpp:<line number>: PASSED:
13777 REQUIRE_THAT( data, AnyTrue() )
13778 with expansion:
13779 { false, false, true, false, false } contains at least one true
13780
13781 -------------------------------------------------------------------------------
13782 Usage of AnyTrue range matcher
13783 Contained type is convertible to bool
13784 All false evaluates to false
13785 -------------------------------------------------------------------------------
13786 MatchersRanges.tests.cpp:<line number>
13787 ...............................................................................
13788
13789 MatchersRanges.tests.cpp:<line number>: PASSED:
13790 REQUIRE_THAT( data, !AnyTrue() )
13791 with expansion:
13792 { false, false, false, false, false } not contains at least one true
13793
13794 -------------------------------------------------------------------------------
13795 Usage of AnyTrue range matcher
13796 Shortcircuiting
13797 All are read
13798 -------------------------------------------------------------------------------
13799 MatchersRanges.tests.cpp:<line number>
13800 ...............................................................................
13801
13802 MatchersRanges.tests.cpp:<line number>: PASSED:
13803 REQUIRE_THAT( mocked, AnyTrue() )
13804 with expansion:
13805 { false, false, false, false, true } contains at least one true
13806
13807 MatchersRanges.tests.cpp:<line number>: PASSED:
13808 REQUIRE( mocked.m_derefed[0] )
13809 with expansion:
13810 true
13811
13812 MatchersRanges.tests.cpp:<line number>: PASSED:
13813 REQUIRE( mocked.m_derefed[1] )
13814 with expansion:
13815 true
13816
13817 MatchersRanges.tests.cpp:<line number>: PASSED:
13818 REQUIRE( mocked.m_derefed[2] )
13819 with expansion:
13820 true
13821
13822 MatchersRanges.tests.cpp:<line number>: PASSED:
13823 REQUIRE( mocked.m_derefed[3] )
13824 with expansion:
13825 true
13826
13827 MatchersRanges.tests.cpp:<line number>: PASSED:
13828 REQUIRE( mocked.m_derefed[4] )
13829 with expansion:
13830 true
13831
13832 -------------------------------------------------------------------------------
13833 Usage of AnyTrue range matcher
13834 Shortcircuiting
13835 Short-circuited
13836 -------------------------------------------------------------------------------
13837 MatchersRanges.tests.cpp:<line number>
13838 ...............................................................................
13839
13840 MatchersRanges.tests.cpp:<line number>: PASSED:
13841 REQUIRE_THAT( mocked, AnyTrue() )
13842 with expansion:
13843 { false, false, true, true, true } contains at least one true
13844
13845 MatchersRanges.tests.cpp:<line number>: PASSED:
13846 REQUIRE( mocked.m_derefed[0] )
13847 with expansion:
13848 true
13849
13850 MatchersRanges.tests.cpp:<line number>: PASSED:
13851 REQUIRE( mocked.m_derefed[1] )
13852 with expansion:
13853 true
13854
13855 MatchersRanges.tests.cpp:<line number>: PASSED:
13856 REQUIRE( mocked.m_derefed[2] )
13857 with expansion:
13858 true
13859
13860 MatchersRanges.tests.cpp:<line number>: PASSED:
13861 REQUIRE_FALSE( mocked.m_derefed[3] )
13862 with expansion:
13863 !false
13864
13865 MatchersRanges.tests.cpp:<line number>: PASSED:
13866 REQUIRE_FALSE( mocked.m_derefed[4] )
13867 with expansion:
13868 !false
13869
13870 -------------------------------------------------------------------------------
13871 Usage of NoneMatch range matcher
13872 Basic usage
13873 -------------------------------------------------------------------------------
13874 MatchersRanges.tests.cpp:<line number>
13875 ...............................................................................
13876
13877 MatchersRanges.tests.cpp:<line number>: PASSED:
13878 REQUIRE_THAT( data, NoneMatch(SizeIs(6)) )
13879 with expansion:
13880 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13881 }, { 1, 0, 0, -1, 5 } } none match has size == 6
13882
13883 MatchersRanges.tests.cpp:<line number>: PASSED:
13884 REQUIRE_THAT( data, !NoneMatch(Contains(0) && Contains(1)) )
13885 with expansion:
13886 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13887 }, { 1, 0, 0, -1, 5 } } not none match ( contains element 0 and contains
13888 element 1 )
13889
13890 -------------------------------------------------------------------------------
13891 Usage of NoneMatch range matcher
13892 Type requires ADL found begin and end
13893 -------------------------------------------------------------------------------
13894 MatchersRanges.tests.cpp:<line number>
13895 ...............................................................................
13896
13897 MatchersRanges.tests.cpp:<line number>: PASSED:
13898 REQUIRE_THAT( needs_adl, NoneMatch( Predicate<int>( []( int elem ) { return elem > 6; } ) ) )
13899 with expansion:
13900 { 1, 2, 3, 4, 5 } none match matches undescribed predicate
13901
13902 -------------------------------------------------------------------------------
13903 Usage of NoneMatch range matcher
13904 Shortcircuiting
13905 All are read
13906 -------------------------------------------------------------------------------
13907 MatchersRanges.tests.cpp:<line number>
13908 ...............................................................................
13909
13910 MatchersRanges.tests.cpp:<line number>: PASSED:
13911 REQUIRE_THAT( mocked, noneMatch )
13912 with expansion:
13913 { 1, 2, 3, 4, 5 } none match matches undescribed predicate
13914
13915 MatchersRanges.tests.cpp:<line number>: PASSED:
13916 REQUIRE( mocked.m_derefed[0] )
13917 with expansion:
13918 true
13919
13920 MatchersRanges.tests.cpp:<line number>: PASSED:
13921 REQUIRE( mocked.m_derefed[1] )
13922 with expansion:
13923 true
13924
13925 MatchersRanges.tests.cpp:<line number>: PASSED:
13926 REQUIRE( mocked.m_derefed[2] )
13927 with expansion:
13928 true
13929
13930 MatchersRanges.tests.cpp:<line number>: PASSED:
13931 REQUIRE( mocked.m_derefed[3] )
13932 with expansion:
13933 true
13934
13935 MatchersRanges.tests.cpp:<line number>: PASSED:
13936 REQUIRE( mocked.m_derefed[4] )
13937 with expansion:
13938 true
13939
13940 -------------------------------------------------------------------------------
13941 Usage of NoneMatch range matcher
13942 Shortcircuiting
13943 Short-circuited
13944 -------------------------------------------------------------------------------
13945 MatchersRanges.tests.cpp:<line number>
13946 ...............................................................................
13947
13948 MatchersRanges.tests.cpp:<line number>: PASSED:
13949 REQUIRE_THAT( mocked, !noneMatch )
13950 with expansion:
13951 { 1, 2, 3, 4, 5 } not none match matches undescribed predicate
13952
13953 MatchersRanges.tests.cpp:<line number>: PASSED:
13954 REQUIRE( mocked.m_derefed[0] )
13955 with expansion:
13956 true
13957
13958 MatchersRanges.tests.cpp:<line number>: PASSED:
13959 REQUIRE_FALSE( mocked.m_derefed[1] )
13960 with expansion:
13961 !false
13962
13963 MatchersRanges.tests.cpp:<line number>: PASSED:
13964 REQUIRE_FALSE( mocked.m_derefed[2] )
13965 with expansion:
13966 !false
13967
13968 MatchersRanges.tests.cpp:<line number>: PASSED:
13969 REQUIRE_FALSE( mocked.m_derefed[3] )
13970 with expansion:
13971 !false
13972
13973 MatchersRanges.tests.cpp:<line number>: PASSED:
13974 REQUIRE_FALSE( mocked.m_derefed[4] )
13975 with expansion:
13976 !false
13977
13978 -------------------------------------------------------------------------------
13979 Usage of NoneTrue range matcher
13980 Basic usage
13981 All true evaluates to false
13982 -------------------------------------------------------------------------------
13983 MatchersRanges.tests.cpp:<line number>
13984 ...............................................................................
13985
13986 MatchersRanges.tests.cpp:<line number>: PASSED:
13987 REQUIRE_THAT( data, !NoneTrue() )
13988 with expansion:
13989 { true, true, true, true, true } not contains no true
13990
13991 -------------------------------------------------------------------------------
13992 Usage of NoneTrue range matcher
13993 Basic usage
13994 Empty evaluates to true
13995 -------------------------------------------------------------------------------
13996 MatchersRanges.tests.cpp:<line number>
13997 ...............................................................................
13998
13999 MatchersRanges.tests.cpp:<line number>: PASSED:
14000 REQUIRE_THAT( data, NoneTrue() )
14001 with expansion:
14002 { } contains no true
14003
14004 -------------------------------------------------------------------------------
14005 Usage of NoneTrue range matcher
14006 Basic usage
14007 One true evaluates to false
14008 -------------------------------------------------------------------------------
14009 MatchersRanges.tests.cpp:<line number>
14010 ...............................................................................
14011
14012 MatchersRanges.tests.cpp:<line number>: PASSED:
14013 REQUIRE_THAT( data, !NoneTrue() )
14014 with expansion:
14015 { false, false, true, false, false } not contains no true
14016
14017 -------------------------------------------------------------------------------
14018 Usage of NoneTrue range matcher
14019 Basic usage
14020 All false evaluates to true
14021 -------------------------------------------------------------------------------
14022 MatchersRanges.tests.cpp:<line number>
14023 ...............................................................................
14024
14025 MatchersRanges.tests.cpp:<line number>: PASSED:
14026 REQUIRE_THAT( data, NoneTrue() )
14027 with expansion:
14028 { false, false, false, false, false } contains no true
14029
14030 -------------------------------------------------------------------------------
14031 Usage of NoneTrue range matcher
14032 Contained type is convertible to bool
14033 All true evaluates to false
14034 -------------------------------------------------------------------------------
14035 MatchersRanges.tests.cpp:<line number>
14036 ...............................................................................
14037
14038 MatchersRanges.tests.cpp:<line number>: PASSED:
14039 REQUIRE_THAT( data, !NoneTrue() )
14040 with expansion:
14041 { true, true, true, true, true } not contains no true
14042
14043 -------------------------------------------------------------------------------
14044 Usage of NoneTrue range matcher
14045 Contained type is convertible to bool
14046 One true evaluates to false
14047 -------------------------------------------------------------------------------
14048 MatchersRanges.tests.cpp:<line number>
14049 ...............................................................................
14050
14051 MatchersRanges.tests.cpp:<line number>: PASSED:
14052 REQUIRE_THAT( data, !NoneTrue() )
14053 with expansion:
14054 { false, false, true, false, false } not contains no true
14055
14056 -------------------------------------------------------------------------------
14057 Usage of NoneTrue range matcher
14058 Contained type is convertible to bool
14059 All false evaluates to true
14060 -------------------------------------------------------------------------------
14061 MatchersRanges.tests.cpp:<line number>
14062 ...............................................................................
14063
14064 MatchersRanges.tests.cpp:<line number>: PASSED:
14065 REQUIRE_THAT( data, NoneTrue() )
14066 with expansion:
14067 { false, false, false, false, false } contains no true
14068
14069 -------------------------------------------------------------------------------
14070 Usage of NoneTrue range matcher
14071 Shortcircuiting
14072 All are read
14073 -------------------------------------------------------------------------------
14074 MatchersRanges.tests.cpp:<line number>
14075 ...............................................................................
14076
14077 MatchersRanges.tests.cpp:<line number>: PASSED:
14078 REQUIRE_THAT( mocked, NoneTrue() )
14079 with expansion:
14080 { false, false, false, false, false } contains no true
14081
14082 MatchersRanges.tests.cpp:<line number>: PASSED:
14083 REQUIRE( mocked.m_derefed[0] )
14084 with expansion:
14085 true
14086
14087 MatchersRanges.tests.cpp:<line number>: PASSED:
14088 REQUIRE( mocked.m_derefed[1] )
14089 with expansion:
14090 true
14091
14092 MatchersRanges.tests.cpp:<line number>: PASSED:
14093 REQUIRE( mocked.m_derefed[2] )
14094 with expansion:
14095 true
14096
14097 MatchersRanges.tests.cpp:<line number>: PASSED:
14098 REQUIRE( mocked.m_derefed[3] )
14099 with expansion:
14100 true
14101
14102 MatchersRanges.tests.cpp:<line number>: PASSED:
14103 REQUIRE( mocked.m_derefed[4] )
14104 with expansion:
14105 true
14106
14107 -------------------------------------------------------------------------------
14108 Usage of NoneTrue range matcher
14109 Shortcircuiting
14110 Short-circuited
14111 -------------------------------------------------------------------------------
14112 MatchersRanges.tests.cpp:<line number>
14113 ...............................................................................
14114
14115 MatchersRanges.tests.cpp:<line number>: PASSED:
14116 REQUIRE_THAT( mocked, !NoneTrue() )
14117 with expansion:
14118 { false, false, true, true, true } not contains no true
14119
14120 MatchersRanges.tests.cpp:<line number>: PASSED:
14121 REQUIRE( mocked.m_derefed[0] )
14122 with expansion:
14123 true
14124
14125 MatchersRanges.tests.cpp:<line number>: PASSED:
14126 REQUIRE( mocked.m_derefed[1] )
14127 with expansion:
14128 true
14129
14130 MatchersRanges.tests.cpp:<line number>: PASSED:
14131 REQUIRE( mocked.m_derefed[2] )
14132 with expansion:
14133 true
14134
14135 MatchersRanges.tests.cpp:<line number>: PASSED:
14136 REQUIRE_FALSE( mocked.m_derefed[3] )
14137 with expansion:
14138 !false
14139
14140 MatchersRanges.tests.cpp:<line number>: PASSED:
14141 REQUIRE_FALSE( mocked.m_derefed[4] )
14142 with expansion:
14143 !false
14144
14145 -------------------------------------------------------------------------------
14146 Usage of RangeEquals range matcher
14147 Basic usage
14148 Empty container matches empty container
14149 -------------------------------------------------------------------------------
14150 MatchersRanges.tests.cpp:<line number>
14151 ...............................................................................
14152
14153 MatchersRanges.tests.cpp:<line number>: PASSED:
14154 CHECK_THAT( empty_vector, RangeEquals( empty_vector ) )
14155 with expansion:
14156 { } elements are { }
14157
14158 -------------------------------------------------------------------------------
14159 Usage of RangeEquals range matcher
14160 Basic usage
14161 Empty container does not match non-empty container
14162 -------------------------------------------------------------------------------
14163 MatchersRanges.tests.cpp:<line number>
14164 ...............................................................................
14165
14166 MatchersRanges.tests.cpp:<line number>: PASSED:
14167 CHECK_THAT( empty_vector, !RangeEquals( non_empty_vector ) )
14168 with expansion:
14169 { } not elements are { 1 }
14170
14171 MatchersRanges.tests.cpp:<line number>: PASSED:
14172 CHECK_THAT( non_empty_vector, !RangeEquals( empty_vector ) )
14173 with expansion:
14174 { 1 } not elements are { }
14175
14176 -------------------------------------------------------------------------------
14177 Usage of RangeEquals range matcher
14178 Basic usage
14179 Two equal 1-length non-empty containers
14180 -------------------------------------------------------------------------------
14181 MatchersRanges.tests.cpp:<line number>
14182 ...............................................................................
14183
14184 MatchersRanges.tests.cpp:<line number>: PASSED:
14185 CHECK_THAT( non_empty_array, RangeEquals( non_empty_array ) )
14186 with expansion:
14187 { 1 } elements are { 1 }
14188
14189 -------------------------------------------------------------------------------
14190 Usage of RangeEquals range matcher
14191 Basic usage
14192 Two equal-sized, equal, non-empty containers
14193 -------------------------------------------------------------------------------
14194 MatchersRanges.tests.cpp:<line number>
14195 ...............................................................................
14196
14197 MatchersRanges.tests.cpp:<line number>: PASSED:
14198 CHECK_THAT( array_a, RangeEquals( array_a ) )
14199 with expansion:
14200 { 1, 2, 3 } elements are { 1, 2, 3 }
14201
14202 -------------------------------------------------------------------------------
14203 Usage of RangeEquals range matcher
14204 Basic usage
14205 Two equal-sized, non-equal, non-empty containers
14206 -------------------------------------------------------------------------------
14207 MatchersRanges.tests.cpp:<line number>
14208 ...............................................................................
14209
14210 MatchersRanges.tests.cpp:<line number>: PASSED:
14211 CHECK_THAT( array_a, !RangeEquals( array_b ) )
14212 with expansion:
14213 { 1, 2, 3 } not elements are { 2, 2, 3 }
14214
14215 MatchersRanges.tests.cpp:<line number>: PASSED:
14216 CHECK_THAT( array_a, !RangeEquals( array_c ) )
14217 with expansion:
14218 { 1, 2, 3 } not elements are { 1, 2, 2 }
14219
14220 -------------------------------------------------------------------------------
14221 Usage of RangeEquals range matcher
14222 Basic usage
14223 Two non-equal-sized, non-empty containers (with same first elements)
14224 -------------------------------------------------------------------------------
14225 MatchersRanges.tests.cpp:<line number>
14226 ...............................................................................
14227
14228 MatchersRanges.tests.cpp:<line number>: PASSED:
14229 CHECK_THAT( vector_a, !RangeEquals( vector_b ) )
14230 with expansion:
14231 { 1, 2, 3 } not elements are { 1, 2, 3, 4 }
14232
14233 -------------------------------------------------------------------------------
14234 Usage of RangeEquals range matcher
14235 Custom predicate
14236 Two equal non-empty containers (close enough)
14237 -------------------------------------------------------------------------------
14238 MatchersRanges.tests.cpp:<line number>
14239 ...............................................................................
14240
14241 MatchersRanges.tests.cpp:<line number>: PASSED:
14242 CHECK_THAT( vector_a, RangeEquals( vector_a_plus_1, close_enough ) )
14243 with expansion:
14244 { 1, 2, 3 } elements are { 2, 3, 4 }
14245
14246 -------------------------------------------------------------------------------
14247 Usage of RangeEquals range matcher
14248 Custom predicate
14249 Two non-equal non-empty containers (close enough)
14250 -------------------------------------------------------------------------------
14251 MatchersRanges.tests.cpp:<line number>
14252 ...............................................................................
14253
14254 MatchersRanges.tests.cpp:<line number>: PASSED:
14255 CHECK_THAT( vector_a, !RangeEquals( vector_b, close_enough ) )
14256 with expansion:
14257 { 1, 2, 3 } not elements are { 3, 3, 4 }
14258
14259 -------------------------------------------------------------------------------
14260 Usage of RangeEquals range matcher
14261 Ranges that need ADL begin/end
14262 -------------------------------------------------------------------------------
14263 MatchersRanges.tests.cpp:<line number>
14264 ...............................................................................
14265
14266 MatchersRanges.tests.cpp:<line number>: PASSED:
14267 REQUIRE_THAT( needs_adl1, RangeEquals( needs_adl2 ) )
14268 with expansion:
14269 { 1, 2, 3, 4, 5 } elements are { 1, 2, 3, 4, 5 }
14270
14271 MatchersRanges.tests.cpp:<line number>: PASSED:
14272 REQUIRE_THAT( needs_adl1, RangeEquals( needs_adl3, []( int l, int r ) { return l + 1 == r; } ) )
14273 with expansion:
14274 { 1, 2, 3, 4, 5 } elements are { 2, 3, 4, 5, 6 }
14275
14276 -------------------------------------------------------------------------------
14277 Usage of RangeEquals range matcher
14278 Check short-circuiting behaviour
14279 Check short-circuits on failure
14280 -------------------------------------------------------------------------------
14281 MatchersRanges.tests.cpp:<line number>
14282 ...............................................................................
14283
14284 MatchersRanges.tests.cpp:<line number>: PASSED:
14285 REQUIRE_THAT( mocked1, !RangeEquals( arr ) )
14286 with expansion:
14287 { 1, 2, 3, 4 } not elements are { 1, 2, 4, 4 }
14288
14289 MatchersRanges.tests.cpp:<line number>: PASSED:
14290 REQUIRE( mocked1.m_derefed[0] )
14291 with expansion:
14292 true
14293
14294 MatchersRanges.tests.cpp:<line number>: PASSED:
14295 REQUIRE( mocked1.m_derefed[1] )
14296 with expansion:
14297 true
14298
14299 MatchersRanges.tests.cpp:<line number>: PASSED:
14300 REQUIRE( mocked1.m_derefed[2] )
14301 with expansion:
14302 true
14303
14304 MatchersRanges.tests.cpp:<line number>: PASSED:
14305 REQUIRE_FALSE( mocked1.m_derefed[3] )
14306 with expansion:
14307 !false
14308
14309 -------------------------------------------------------------------------------
14310 Usage of RangeEquals range matcher
14311 Check short-circuiting behaviour
14312 All elements are checked on success
14313 -------------------------------------------------------------------------------
14314 MatchersRanges.tests.cpp:<line number>
14315 ...............................................................................
14316
14317 MatchersRanges.tests.cpp:<line number>: PASSED:
14318 REQUIRE_THAT( mocked1, RangeEquals( arr ) )
14319 with expansion:
14320 { 1, 2, 3, 4 } elements are { 1, 2, 3, 4 }
14321
14322 MatchersRanges.tests.cpp:<line number>: PASSED:
14323 REQUIRE( mocked1.m_derefed[0] )
14324 with expansion:
14325 true
14326
14327 MatchersRanges.tests.cpp:<line number>: PASSED:
14328 REQUIRE( mocked1.m_derefed[1] )
14329 with expansion:
14330 true
14331
14332 MatchersRanges.tests.cpp:<line number>: PASSED:
14333 REQUIRE( mocked1.m_derefed[2] )
14334 with expansion:
14335 true
14336
14337 MatchersRanges.tests.cpp:<line number>: PASSED:
14338 REQUIRE( mocked1.m_derefed[3] )
14339 with expansion:
14340 true
14341
14342 -------------------------------------------------------------------------------
14343 Usage of UnorderedRangeEquals range matcher
14344 Basic usage
14345 Empty container matches empty container
14346 -------------------------------------------------------------------------------
14347 MatchersRanges.tests.cpp:<line number>
14348 ...............................................................................
14349
14350 MatchersRanges.tests.cpp:<line number>: PASSED:
14351 CHECK_THAT( empty_vector, UnorderedRangeEquals( empty_vector ) )
14352 with expansion:
14353 { } unordered elements are { }
14354
14355 -------------------------------------------------------------------------------
14356 Usage of UnorderedRangeEquals range matcher
14357 Basic usage
14358 Empty container does not match non-empty container
14359 -------------------------------------------------------------------------------
14360 MatchersRanges.tests.cpp:<line number>
14361 ...............................................................................
14362
14363 MatchersRanges.tests.cpp:<line number>: PASSED:
14364 CHECK_THAT( empty_vector, !UnorderedRangeEquals( non_empty_vector ) )
14365 with expansion:
14366 { } not unordered elements are { 1 }
14367
14368 MatchersRanges.tests.cpp:<line number>: PASSED:
14369 CHECK_THAT( non_empty_vector, !UnorderedRangeEquals( empty_vector ) )
14370 with expansion:
14371 { 1 } not unordered elements are { }
14372
14373 -------------------------------------------------------------------------------
14374 Usage of UnorderedRangeEquals range matcher
14375 Basic usage
14376 Two equal 1-length non-empty containers
14377 -------------------------------------------------------------------------------
14378 MatchersRanges.tests.cpp:<line number>
14379 ...............................................................................
14380
14381 MatchersRanges.tests.cpp:<line number>: PASSED:
14382 CHECK_THAT( non_empty_array, UnorderedRangeEquals( non_empty_array ) )
14383 with expansion:
14384 { 1 } unordered elements are { 1 }
14385
14386 -------------------------------------------------------------------------------
14387 Usage of UnorderedRangeEquals range matcher
14388 Basic usage
14389 Two equal-sized, equal, non-empty containers
14390 -------------------------------------------------------------------------------
14391 MatchersRanges.tests.cpp:<line number>
14392 ...............................................................................
14393
14394 MatchersRanges.tests.cpp:<line number>: PASSED:
14395 CHECK_THAT( array_a, UnorderedRangeEquals( array_a ) )
14396 with expansion:
14397 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
14398
14399 -------------------------------------------------------------------------------
14400 Usage of UnorderedRangeEquals range matcher
14401 Basic usage
14402 Two equal-sized, non-equal, non-empty containers
14403 -------------------------------------------------------------------------------
14404 MatchersRanges.tests.cpp:<line number>
14405 ...............................................................................
14406
14407 MatchersRanges.tests.cpp:<line number>: PASSED:
14408 CHECK_THAT( array_a, !UnorderedRangeEquals( array_b ) )
14409 with expansion:
14410 { 1, 2, 3 } not unordered elements are { 2, 2, 3 }
14411
14412 -------------------------------------------------------------------------------
14413 Usage of UnorderedRangeEquals range matcher
14414 Basic usage
14415 Two non-equal-sized, non-empty containers
14416 -------------------------------------------------------------------------------
14417 MatchersRanges.tests.cpp:<line number>
14418 ...............................................................................
14419
14420 MatchersRanges.tests.cpp:<line number>: PASSED:
14421 CHECK_THAT( vector_a, !UnorderedRangeEquals( vector_b ) )
14422 with expansion:
14423 { 1, 2, 3 } not unordered elements are { 1, 2, 3, 4 }
14424
14425 -------------------------------------------------------------------------------
14426 Usage of UnorderedRangeEquals range matcher
14427 Custom predicate
14428 Two equal non-empty containers (close enough)
14429 -------------------------------------------------------------------------------
14430 MatchersRanges.tests.cpp:<line number>
14431 ...............................................................................
14432
14433 MatchersRanges.tests.cpp:<line number>: PASSED:
14434 CHECK_THAT( vector_a, UnorderedRangeEquals( vector_a_plus_1, close_enough ) )
14435 with expansion:
14436 { 1, 10, 20 } unordered elements are { 11, 21, 2 }
14437
14438 -------------------------------------------------------------------------------
14439 Usage of UnorderedRangeEquals range matcher
14440 Custom predicate
14441 Two non-equal non-empty containers (close enough)
14442 -------------------------------------------------------------------------------
14443 MatchersRanges.tests.cpp:<line number>
14444 ...............................................................................
14445
14446 MatchersRanges.tests.cpp:<line number>: PASSED:
14447 CHECK_THAT( vector_a, !UnorderedRangeEquals( vector_b, close_enough ) )
14448 with expansion:
14449 { 1, 10, 21 } not unordered elements are { 11, 21, 3 }
14450
14451 -------------------------------------------------------------------------------
14452 Usage of UnorderedRangeEquals range matcher
14453 Ranges that need ADL begin/end
14454 -------------------------------------------------------------------------------
14455 MatchersRanges.tests.cpp:<line number>
14456 ...............................................................................
14457
14458 MatchersRanges.tests.cpp:<line number>: PASSED:
14459 REQUIRE_THAT( needs_adl1, UnorderedRangeEquals( needs_adl2 ) )
14460 with expansion:
14461 { 1, 2, 3, 4, 5 } unordered elements are { 1, 2, 3, 4, 5 }
14462
14463 -------------------------------------------------------------------------------
14464 Usage of the SizeIs range matcher
14465 Some with stdlib containers
14466 -------------------------------------------------------------------------------
14467 MatchersRanges.tests.cpp:<line number>
14468 ...............................................................................
14469
14470 MatchersRanges.tests.cpp:<line number>: PASSED:
14471 REQUIRE_THAT( empty_vec, SizeIs(0) )
14472 with expansion:
14473 { } has size == 0
14474
14475 MatchersRanges.tests.cpp:<line number>: PASSED:
14476 REQUIRE_THAT( empty_vec, !SizeIs(2) )
14477 with expansion:
14478 { } not has size == 2
14479
14480 MatchersRanges.tests.cpp:<line number>: PASSED:
14481 REQUIRE_THAT( empty_vec, SizeIs(Lt(2)) )
14482 with expansion:
14483 { } size matches is less than 2
14484
14485 MatchersRanges.tests.cpp:<line number>: PASSED:
14486 REQUIRE_THAT( arr, SizeIs(2) )
14487 with expansion:
14488 { 0, 0 } has size == 2
14489
14490 MatchersRanges.tests.cpp:<line number>: PASSED:
14491 REQUIRE_THAT( arr, SizeIs( Lt(3)) )
14492 with expansion:
14493 { 0, 0 } size matches is less than 3
14494
14495 MatchersRanges.tests.cpp:<line number>: PASSED:
14496 REQUIRE_THAT( arr, !SizeIs(!Lt(3)) )
14497 with expansion:
14498 { 0, 0 } not size matches not is less than 3
14499
14500 MatchersRanges.tests.cpp:<line number>: PASSED:
14501 REQUIRE_THAT( map, SizeIs(3) )
14502 with expansion:
14503 { {?}, {?}, {?} } has size == 3
14504
14505 -------------------------------------------------------------------------------
14506 Usage of the SizeIs range matcher
14507 Type requires ADL found size free function
14508 -------------------------------------------------------------------------------
14509 MatchersRanges.tests.cpp:<line number>
14510 ...............................................................................
14511
14512 MatchersRanges.tests.cpp:<line number>: PASSED:
14513 REQUIRE_THAT( unrelated::ADL_size{}, SizeIs(12) )
14514 with expansion:
14515 {?} has size == 12
14516
14517 -------------------------------------------------------------------------------
14518 Usage of the SizeIs range matcher
14519 Type has size member
14520 -------------------------------------------------------------------------------
14521 MatchersRanges.tests.cpp:<line number>
14522 ...............................................................................
14523
14524 MatchersRanges.tests.cpp:<line number>: PASSED:
14525 REQUIRE_THAT( has_size{}, SizeIs(13) )
14526 with expansion:
14527 {?} has size == 13
14528
14529 -------------------------------------------------------------------------------
14530 Use a custom approx
14531 -------------------------------------------------------------------------------
14532 Approx.tests.cpp:<line number>
14533 ...............................................................................
14534
14535 Approx.tests.cpp:<line number>: PASSED:
14536 REQUIRE( d == approx( 1.23 ) )
14537 with expansion:
14538 1.23 == Approx( 1.23 )
14539
14540 Approx.tests.cpp:<line number>: PASSED:
14541 REQUIRE( d == approx( 1.22 ) )
14542 with expansion:
14543 1.23 == Approx( 1.22 )
14544
14545 Approx.tests.cpp:<line number>: PASSED:
14546 REQUIRE( d == approx( 1.24 ) )
14547 with expansion:
14548 1.23 == Approx( 1.24 )
14549
14550 Approx.tests.cpp:<line number>: PASSED:
14551 REQUIRE( d != approx( 1.25 ) )
14552 with expansion:
14553 1.23 != Approx( 1.25 )
14554
14555 Approx.tests.cpp:<line number>: PASSED:
14556 REQUIRE( approx( d ) == 1.23 )
14557 with expansion:
14558 Approx( 1.23 ) == 1.23
14559
14560 Approx.tests.cpp:<line number>: PASSED:
14561 REQUIRE( approx( d ) == 1.22 )
14562 with expansion:
14563 Approx( 1.23 ) == 1.22
14564
14565 Approx.tests.cpp:<line number>: PASSED:
14566 REQUIRE( approx( d ) == 1.24 )
14567 with expansion:
14568 Approx( 1.23 ) == 1.24
14569
14570 Approx.tests.cpp:<line number>: PASSED:
14571 REQUIRE( approx( d ) != 1.25 )
14572 with expansion:
14573 Approx( 1.23 ) != 1.25
14574
14575 -------------------------------------------------------------------------------
14576 Variadic macros
14577 Section with one argument
14578 -------------------------------------------------------------------------------
14579 VariadicMacros.tests.cpp:<line number>
14580 ...............................................................................
14581
14582 VariadicMacros.tests.cpp:<line number>: PASSED:
14583 with message:
14584 no assertions
14585
14586 -------------------------------------------------------------------------------
14587 Vector Approx matcher
14588 Empty vector is roughly equal to an empty vector
14589 -------------------------------------------------------------------------------
14590 Matchers.tests.cpp:<line number>
14591 ...............................................................................
14592
14593 Matchers.tests.cpp:<line number>: PASSED:
14594 REQUIRE_THAT( empty, Approx( empty ) )
14595 with expansion:
14596 { } is approx: { }
14597
14598 -------------------------------------------------------------------------------
14599 Vector Approx matcher
14600 Vectors with elements
14601 A vector is approx equal to itself
14602 -------------------------------------------------------------------------------
14603 Matchers.tests.cpp:<line number>
14604 ...............................................................................
14605
14606 Matchers.tests.cpp:<line number>: PASSED:
14607 REQUIRE_THAT( v1, Approx( v1 ) )
14608 with expansion:
14609 { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
14610
14611 Matchers.tests.cpp:<line number>: PASSED:
14612 REQUIRE_THAT( v1, Approx<double>( { 1., 2., 3. } ) )
14613 with expansion:
14614 { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
14615
14616 -------------------------------------------------------------------------------
14617 Vector Approx matcher
14618 Vectors with elements
14619 Different length
14620 -------------------------------------------------------------------------------
14621 Matchers.tests.cpp:<line number>
14622 ...............................................................................
14623
14624 Matchers.tests.cpp:<line number>: PASSED:
14625 REQUIRE_THAT( v1, !Approx( temp ) )
14626 with expansion:
14627 { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
14628
14629 -------------------------------------------------------------------------------
14630 Vector Approx matcher
14631 Vectors with elements
14632 Same length, different elements
14633 -------------------------------------------------------------------------------
14634 Matchers.tests.cpp:<line number>
14635 ...............................................................................
14636
14637 Matchers.tests.cpp:<line number>: PASSED:
14638 REQUIRE_THAT( v1, !Approx( v2 ) )
14639 with expansion:
14640 { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
14641
14642 Matchers.tests.cpp:<line number>: PASSED:
14643 REQUIRE_THAT( v1, Approx( v2 ).margin( 0.5 ) )
14644 with expansion:
14645 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
14646
14647 Matchers.tests.cpp:<line number>: PASSED:
14648 REQUIRE_THAT( v1, Approx( v2 ).epsilon( 0.5 ) )
14649 with expansion:
14650 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
14651
14652 Matchers.tests.cpp:<line number>: PASSED:
14653 REQUIRE_THAT( v1, Approx( v2 ).epsilon( 0.1 ).scale( 500 ) )
14654 with expansion:
14655 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
14656
14657 -------------------------------------------------------------------------------
14658 Vector Approx matcher -- failing
14659 Empty and non empty vectors are not approx equal
14660 -------------------------------------------------------------------------------
14661 Matchers.tests.cpp:<line number>
14662 ...............................................................................
14663
14664 Matchers.tests.cpp:<line number>: FAILED:
14665 CHECK_THAT( empty, Approx( t1 ) )
14666 with expansion:
14667 { } is approx: { 1.0, 2.0 }
14668
14669 -------------------------------------------------------------------------------
14670 Vector Approx matcher -- failing
14671 Just different vectors
14672 -------------------------------------------------------------------------------
14673 Matchers.tests.cpp:<line number>
14674 ...............................................................................
14675
14676 Matchers.tests.cpp:<line number>: FAILED:
14677 CHECK_THAT( v1, Approx( v2 ) )
14678 with expansion:
14679 { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
14680
14681 -------------------------------------------------------------------------------
14682 Vector matchers
14683 Contains (element)
14684 -------------------------------------------------------------------------------
14685 Matchers.tests.cpp:<line number>
14686 ...............................................................................
14687
14688 Matchers.tests.cpp:<line number>: PASSED:
14689 CHECK_THAT( v, VectorContains( 1 ) )
14690 with expansion:
14691 { 1, 2, 3 } Contains: 1
14692
14693 Matchers.tests.cpp:<line number>: PASSED:
14694 CHECK_THAT( v, VectorContains( 2 ) )
14695 with expansion:
14696 { 1, 2, 3 } Contains: 2
14697
14698 Matchers.tests.cpp:<line number>: PASSED:
14699 CHECK_THAT( v5, ( VectorContains<int, CustomAllocator<int>>( 2 ) ) )
14700 with expansion:
14701 { 1, 2, 3 } Contains: 2
14702
14703 -------------------------------------------------------------------------------
14704 Vector matchers
14705 Contains (vector)
14706 -------------------------------------------------------------------------------
14707 Matchers.tests.cpp:<line number>
14708 ...............................................................................
14709
14710 Matchers.tests.cpp:<line number>: PASSED:
14711 CHECK_THAT( v, Contains( v2 ) )
14712 with expansion:
14713 { 1, 2, 3 } Contains: { 1, 2 }
14714
14715 Matchers.tests.cpp:<line number>: PASSED:
14716 CHECK_THAT( v, Contains<int>( { 1, 2 } ) )
14717 with expansion:
14718 { 1, 2, 3 } Contains: { 1, 2 }
14719
14720 Matchers.tests.cpp:<line number>: PASSED:
14721 CHECK_THAT( v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
14722 with expansion:
14723 { 1, 2, 3 } Contains: { 1, 2 }
14724
14725 Matchers.tests.cpp:<line number>: PASSED:
14726 CHECK_THAT( v, Contains( v2 ) )
14727 with expansion:
14728 { 1, 2, 3 } Contains: { 1, 2, 3 }
14729
14730 Matchers.tests.cpp:<line number>: PASSED:
14731 CHECK_THAT( v, Contains( empty ) )
14732 with expansion:
14733 { 1, 2, 3 } Contains: { }
14734
14735 Matchers.tests.cpp:<line number>: PASSED:
14736 CHECK_THAT( empty, Contains( empty ) )
14737 with expansion:
14738 { } Contains: { }
14739
14740 Matchers.tests.cpp:<line number>: PASSED:
14741 CHECK_THAT( v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
14742 with expansion:
14743 { 1, 2, 3 } Contains: { 1, 2, 3 }
14744
14745 Matchers.tests.cpp:<line number>: PASSED:
14746 CHECK_THAT( v5, Contains( v6 ) )
14747 with expansion:
14748 { 1, 2, 3 } Contains: { 1, 2 }
14749
14750 -------------------------------------------------------------------------------
14751 Vector matchers
14752 Contains (element), composed
14753 -------------------------------------------------------------------------------
14754 Matchers.tests.cpp:<line number>
14755 ...............................................................................
14756
14757 Matchers.tests.cpp:<line number>: PASSED:
14758 CHECK_THAT( v, VectorContains( 1 ) && VectorContains( 2 ) )
14759 with expansion:
14760 { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
14761
14762 -------------------------------------------------------------------------------
14763 Vector matchers
14764 Equals
14765 -------------------------------------------------------------------------------
14766 Matchers.tests.cpp:<line number>
14767 ...............................................................................
14768
14769 Matchers.tests.cpp:<line number>: PASSED:
14770 CHECK_THAT( v, Equals( v ) )
14771 with expansion:
14772 { 1, 2, 3 } Equals: { 1, 2, 3 }
14773
14774 Matchers.tests.cpp:<line number>: PASSED:
14775 CHECK_THAT( empty, Equals( empty ) )
14776 with expansion:
14777 { } Equals: { }
14778
14779 Matchers.tests.cpp:<line number>: PASSED:
14780 CHECK_THAT( v, Equals<int>( { 1, 2, 3 } ) )
14781 with expansion:
14782 { 1, 2, 3 } Equals: { 1, 2, 3 }
14783
14784 Matchers.tests.cpp:<line number>: PASSED:
14785 CHECK_THAT( v, Equals( v2 ) )
14786 with expansion:
14787 { 1, 2, 3 } Equals: { 1, 2, 3 }
14788
14789 Matchers.tests.cpp:<line number>: PASSED:
14790 CHECK_THAT( v5, ( Equals<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
14791 with expansion:
14792 { 1, 2, 3 } Equals: { 1, 2, 3 }
14793
14794 Matchers.tests.cpp:<line number>: PASSED:
14795 CHECK_THAT( v5, Equals( v6 ) )
14796 with expansion:
14797 { 1, 2, 3 } Equals: { 1, 2, 3 }
14798
14799 -------------------------------------------------------------------------------
14800 Vector matchers
14801 UnorderedEquals
14802 -------------------------------------------------------------------------------
14803 Matchers.tests.cpp:<line number>
14804 ...............................................................................
14805
14806 Matchers.tests.cpp:<line number>: PASSED:
14807 CHECK_THAT( v, UnorderedEquals( v ) )
14808 with expansion:
14809 { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
14810
14811 Matchers.tests.cpp:<line number>: PASSED:
14812 CHECK_THAT( v, UnorderedEquals<int>( { 3, 2, 1 } ) )
14813 with expansion:
14814 { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
14815
14816 Matchers.tests.cpp:<line number>: PASSED:
14817 CHECK_THAT( empty, UnorderedEquals( empty ) )
14818 with expansion:
14819 { } UnorderedEquals: { }
14820
14821 Matchers.tests.cpp:<line number>: PASSED:
14822 REQUIRE_THAT( permuted, UnorderedEquals( v ) )
14823 with expansion:
14824 { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
14825
14826 Matchers.tests.cpp:<line number>: PASSED:
14827 REQUIRE_THAT( permuted, UnorderedEquals( v ) )
14828 with expansion:
14829 { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
14830
14831 Matchers.tests.cpp:<line number>: PASSED:
14832 CHECK_THAT( v5, ( UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>( permuted ) ) )
14833 with expansion:
14834 { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
14835
14836 Matchers.tests.cpp:<line number>: PASSED:
14837 CHECK_THAT( v5_permuted, UnorderedEquals( v5 ) )
14838 with expansion:
14839 { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
14840
14841 -------------------------------------------------------------------------------
14842 Vector matchers that fail
14843 Contains (element)
14844 -------------------------------------------------------------------------------
14845 Matchers.tests.cpp:<line number>
14846 ...............................................................................
14847
14848 Matchers.tests.cpp:<line number>: FAILED:
14849 CHECK_THAT( v, VectorContains( -1 ) )
14850 with expansion:
14851 { 1, 2, 3 } Contains: -1
14852
14853 Matchers.tests.cpp:<line number>: FAILED:
14854 CHECK_THAT( empty, VectorContains( 1 ) )
14855 with expansion:
14856 { } Contains: 1
14857
14858 -------------------------------------------------------------------------------
14859 Vector matchers that fail
14860 Contains (vector)
14861 -------------------------------------------------------------------------------
14862 Matchers.tests.cpp:<line number>
14863 ...............................................................................
14864
14865 Matchers.tests.cpp:<line number>: FAILED:
14866 CHECK_THAT( empty, Contains( v ) )
14867 with expansion:
14868 { } Contains: { 1, 2, 3 }
14869
14870 Matchers.tests.cpp:<line number>: FAILED:
14871 CHECK_THAT( v, Contains( v2 ) )
14872 with expansion:
14873 { 1, 2, 3 } Contains: { 1, 2, 4 }
14874
14875 -------------------------------------------------------------------------------
14876 Vector matchers that fail
14877 Equals
14878 -------------------------------------------------------------------------------
14879 Matchers.tests.cpp:<line number>
14880 ...............................................................................
14881
14882 Matchers.tests.cpp:<line number>: FAILED:
14883 CHECK_THAT( v, Equals( v2 ) )
14884 with expansion:
14885 { 1, 2, 3 } Equals: { 1, 2 }
14886
14887 Matchers.tests.cpp:<line number>: FAILED:
14888 CHECK_THAT( v2, Equals( v ) )
14889 with expansion:
14890 { 1, 2 } Equals: { 1, 2, 3 }
14891
14892 Matchers.tests.cpp:<line number>: FAILED:
14893 CHECK_THAT( empty, Equals( v ) )
14894 with expansion:
14895 { } Equals: { 1, 2, 3 }
14896
14897 Matchers.tests.cpp:<line number>: FAILED:
14898 CHECK_THAT( v, Equals( empty ) )
14899 with expansion:
14900 { 1, 2, 3 } Equals: { }
14901
14902 -------------------------------------------------------------------------------
14903 Vector matchers that fail
14904 UnorderedEquals
14905 -------------------------------------------------------------------------------
14906 Matchers.tests.cpp:<line number>
14907 ...............................................................................
14908
14909 Matchers.tests.cpp:<line number>: FAILED:
14910 CHECK_THAT( v, UnorderedEquals( empty ) )
14911 with expansion:
14912 { 1, 2, 3 } UnorderedEquals: { }
14913
14914 Matchers.tests.cpp:<line number>: FAILED:
14915 CHECK_THAT( empty, UnorderedEquals( v ) )
14916 with expansion:
14917 { } UnorderedEquals: { 1, 2, 3 }
14918
14919 Matchers.tests.cpp:<line number>: FAILED:
14920 CHECK_THAT( permuted, UnorderedEquals( v ) )
14921 with expansion:
14922 { 1, 3 } UnorderedEquals: { 1, 2, 3 }
14923
14924 Matchers.tests.cpp:<line number>: FAILED:
14925 CHECK_THAT( permuted, UnorderedEquals( v ) )
14926 with expansion:
14927 { 3, 1 } UnorderedEquals: { 1, 2, 3 }
14928
14929 -------------------------------------------------------------------------------
14930 When checked exceptions are thrown they can be expected or unexpected
14931 -------------------------------------------------------------------------------
14932 Exception.tests.cpp:<line number>
14933 ...............................................................................
14934
14935 Exception.tests.cpp:<line number>: PASSED:
14936 REQUIRE_THROWS_AS( thisThrows(), std::domain_error )
14937
14938 Exception.tests.cpp:<line number>: PASSED:
14939 REQUIRE_NOTHROW( thisDoesntThrow() )
14940
14941 Exception.tests.cpp:<line number>: PASSED:
14942 REQUIRE_THROWS( thisThrows() )
14943
14944 -------------------------------------------------------------------------------
14945 When unchecked exceptions are thrown directly they are always failures
14946 -------------------------------------------------------------------------------
14947 Exception.tests.cpp:<line number>
14948 ...............................................................................
14949
14950 Exception.tests.cpp:<line number>: FAILED:
14951 due to unexpected exception with message:
14952 unexpected exception
14953
14954 -------------------------------------------------------------------------------
14955 When unchecked exceptions are thrown during a CHECK the test should continue
14956 -------------------------------------------------------------------------------
14957 Exception.tests.cpp:<line number>
14958 ...............................................................................
14959
14960 Exception.tests.cpp:<line number>: FAILED:
14961 CHECK( thisThrows() == 0 )
14962 due to unexpected exception with message:
14963 expected exception
14964
14965 -------------------------------------------------------------------------------
14966 When unchecked exceptions are thrown during a REQUIRE the test should abort
14967 fail
14968 -------------------------------------------------------------------------------
14969 Exception.tests.cpp:<line number>
14970 ...............................................................................
14971
14972 Exception.tests.cpp:<line number>: FAILED:
14973 REQUIRE( thisThrows() == 0 )
14974 due to unexpected exception with message:
14975 expected exception
14976
14977 -------------------------------------------------------------------------------
14978 When unchecked exceptions are thrown from functions they are always failures
14979 -------------------------------------------------------------------------------
14980 Exception.tests.cpp:<line number>
14981 ...............................................................................
14982
14983 Exception.tests.cpp:<line number>: FAILED:
14984 CHECK( thisThrows() == 0 )
14985 due to unexpected exception with message:
14986 expected exception
14987
14988 -------------------------------------------------------------------------------
14989 When unchecked exceptions are thrown from sections they are always failures
14990 section name
14991 -------------------------------------------------------------------------------
14992 Exception.tests.cpp:<line number>
14993 ...............................................................................
14994
14995 Exception.tests.cpp:<line number>: FAILED:
14996 due to unexpected exception with message:
14997 unexpected exception
14998
14999 -------------------------------------------------------------------------------
15000 When unchecked exceptions are thrown, but caught, they do not affect the test
15001 -------------------------------------------------------------------------------
15002 Exception.tests.cpp:<line number>
15003 ...............................................................................
15004
15005
15006 No assertions in test case 'When unchecked exceptions are thrown, but caught, they do not affect the test'
15007
15008 -------------------------------------------------------------------------------
15009 X/level/0/a
15010 -------------------------------------------------------------------------------
15011 Tricky.tests.cpp:<line number>
15012 ...............................................................................
15013
15014 Tricky.tests.cpp:<line number>: PASSED:
15015
15016 -------------------------------------------------------------------------------
15017 X/level/0/b
15018 -------------------------------------------------------------------------------
15019 Tricky.tests.cpp:<line number>
15020 ...............................................................................
15021
15022 Tricky.tests.cpp:<line number>: PASSED:
15023
15024 -------------------------------------------------------------------------------
15025 X/level/1/a
15026 -------------------------------------------------------------------------------
15027 Tricky.tests.cpp:<line number>
15028 ...............................................................................
15029
15030 Tricky.tests.cpp:<line number>: PASSED:
15031
15032 -------------------------------------------------------------------------------
15033 X/level/1/b
15034 -------------------------------------------------------------------------------
15035 Tricky.tests.cpp:<line number>
15036 ...............................................................................
15037
15038 Tricky.tests.cpp:<line number>: PASSED:
15039
15040 -------------------------------------------------------------------------------
15041 XmlEncode
15042 normal string
15043 -------------------------------------------------------------------------------
15044 Xml.tests.cpp:<line number>
15045 ...............................................................................
15046
15047 Xml.tests.cpp:<line number>: PASSED:
15048 REQUIRE( encode( "normal string" ) == "normal string" )
15049 with expansion:
15050 "normal string" == "normal string"
15051
15052 -------------------------------------------------------------------------------
15053 XmlEncode
15054 empty string
15055 -------------------------------------------------------------------------------
15056 Xml.tests.cpp:<line number>
15057 ...............................................................................
15058
15059 Xml.tests.cpp:<line number>: PASSED:
15060 REQUIRE( encode( "" ) == "" )
15061 with expansion:
15062 "" == ""
15063
15064 -------------------------------------------------------------------------------
15065 XmlEncode
15066 string with ampersand
15067 -------------------------------------------------------------------------------
15068 Xml.tests.cpp:<line number>
15069 ...............................................................................
15070
15071 Xml.tests.cpp:<line number>: PASSED:
15072 REQUIRE( encode( "smith & jones" ) == "smith &amp; jones" )
15073 with expansion:
15074 "smith &amp; jones" == "smith &amp; jones"
15075
15076 -------------------------------------------------------------------------------
15077 XmlEncode
15078 string with less-than
15079 -------------------------------------------------------------------------------
15080 Xml.tests.cpp:<line number>
15081 ...............................................................................
15082
15083 Xml.tests.cpp:<line number>: PASSED:
15084 REQUIRE( encode( "smith < jones" ) == "smith &lt; jones" )
15085 with expansion:
15086 "smith &lt; jones" == "smith &lt; jones"
15087
15088 -------------------------------------------------------------------------------
15089 XmlEncode
15090 string with greater-than
15091 -------------------------------------------------------------------------------
15092 Xml.tests.cpp:<line number>
15093 ...............................................................................
15094
15095 Xml.tests.cpp:<line number>: PASSED:
15096 REQUIRE( encode( "smith > jones" ) == "smith > jones" )
15097 with expansion:
15098 "smith > jones" == "smith > jones"
15099
15100 Xml.tests.cpp:<line number>: PASSED:
15101 REQUIRE( encode( "smith ]]> jones" ) == "smith ]]&gt; jones" )
15102 with expansion:
15103 "smith ]]&gt; jones"
15104 ==
15105 "smith ]]&gt; jones"
15106
15107 -------------------------------------------------------------------------------
15108 XmlEncode
15109 string with quotes
15110 -------------------------------------------------------------------------------
15111 Xml.tests.cpp:<line number>
15112 ...............................................................................
15113
15114 Xml.tests.cpp:<line number>: PASSED:
15115 REQUIRE( encode( stringWithQuotes ) == stringWithQuotes )
15116 with expansion:
15117 "don't "quote" me on that"
15118 ==
15119 "don't "quote" me on that"
15120
15121 Xml.tests.cpp:<line number>: PASSED:
15122 REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" )
15123 with expansion:
15124 "don't &quot;quote&quot; me on that"
15125 ==
15126 "don't &quot;quote&quot; me on that"
15127
15128 -------------------------------------------------------------------------------
15129 XmlEncode
15130 string with control char (1)
15131 -------------------------------------------------------------------------------
15132 Xml.tests.cpp:<line number>
15133 ...............................................................................
15134
15135 Xml.tests.cpp:<line number>: PASSED:
15136 REQUIRE( encode( "[\x01]" ) == "[\\x01]" )
15137 with expansion:
15138 "[\x01]" == "[\x01]"
15139
15140 -------------------------------------------------------------------------------
15141 XmlEncode
15142 string with control char (x7F)
15143 -------------------------------------------------------------------------------
15144 Xml.tests.cpp:<line number>
15145 ...............................................................................
15146
15147 Xml.tests.cpp:<line number>: PASSED:
15148 REQUIRE( encode( "[\x7F]" ) == "[\\x7F]" )
15149 with expansion:
15150 "[\x7F]" == "[\x7F]"
15151
15152 -------------------------------------------------------------------------------
15153 XmlWriter writes boolean attributes as true/false
15154 -------------------------------------------------------------------------------
15155 Xml.tests.cpp:<line number>
15156 ...............................................................................
15157
15158 Xml.tests.cpp:<line number>: PASSED:
15159 REQUIRE_THAT( stream.str(), ContainsSubstring(R"(attr1="true")") && ContainsSubstring(R"(attr2="false")") )
15160 with expansion:
15161 "<?xml version="1.0" encoding="UTF-8"?>
15162 <Element1 attr1="true" attr2="false"/>
15163 " ( contains: "attr1="true"" and contains: "attr2="false"" )
15164
15165 -------------------------------------------------------------------------------
15166 a succeeding test can still be skipped
15167 -------------------------------------------------------------------------------
15168 Skip.tests.cpp:<line number>
15169 ...............................................................................
15170
15171 Skip.tests.cpp:<line number>: PASSED:
15172
15173 Skip.tests.cpp:<line number>: SKIPPED:
15174
15175 -------------------------------------------------------------------------------
15176 analyse no analysis
15177 -------------------------------------------------------------------------------
15178 InternalBenchmark.tests.cpp:<line number>
15179 ...............................................................................
15180
15181 InternalBenchmark.tests.cpp:<line number>: PASSED:
15182 CHECK( analysis.mean.point.count() == 23 )
15183 with expansion:
15184 23.0 == 23
15185
15186 InternalBenchmark.tests.cpp:<line number>: PASSED:
15187 CHECK( analysis.mean.lower_bound.count() == 23 )
15188 with expansion:
15189 23.0 == 23
15190
15191 InternalBenchmark.tests.cpp:<line number>: PASSED:
15192 CHECK( analysis.mean.upper_bound.count() == 23 )
15193 with expansion:
15194 23.0 == 23
15195
15196 InternalBenchmark.tests.cpp:<line number>: PASSED:
15197 CHECK( analysis.standard_deviation.point.count() == 0 )
15198 with expansion:
15199 0.0 == 0
15200
15201 InternalBenchmark.tests.cpp:<line number>: PASSED:
15202 CHECK( analysis.standard_deviation.lower_bound.count() == 0 )
15203 with expansion:
15204 0.0 == 0
15205
15206 InternalBenchmark.tests.cpp:<line number>: PASSED:
15207 CHECK( analysis.standard_deviation.upper_bound.count() == 0 )
15208 with expansion:
15209 0.0 == 0
15210
15211 InternalBenchmark.tests.cpp:<line number>: PASSED:
15212 CHECK( analysis.outliers.total() == 0 )
15213 with expansion:
15214 0 == 0
15215
15216 InternalBenchmark.tests.cpp:<line number>: PASSED:
15217 CHECK( analysis.outliers.low_mild == 0 )
15218 with expansion:
15219 0 == 0
15220
15221 InternalBenchmark.tests.cpp:<line number>: PASSED:
15222 CHECK( analysis.outliers.low_severe == 0 )
15223 with expansion:
15224 0 == 0
15225
15226 InternalBenchmark.tests.cpp:<line number>: PASSED:
15227 CHECK( analysis.outliers.high_mild == 0 )
15228 with expansion:
15229 0 == 0
15230
15231 InternalBenchmark.tests.cpp:<line number>: PASSED:
15232 CHECK( analysis.outliers.high_severe == 0 )
15233 with expansion:
15234 0 == 0
15235
15236 InternalBenchmark.tests.cpp:<line number>: PASSED:
15237 CHECK( analysis.outliers.samples_seen == 0 )
15238 with expansion:
15239 0 == 0
15240
15241 InternalBenchmark.tests.cpp:<line number>: PASSED:
15242 CHECK( analysis.outlier_variance == 0 )
15243 with expansion:
15244 0.0 == 0
15245
15246 -------------------------------------------------------------------------------
15247 array<int, N> -> toString
15248 -------------------------------------------------------------------------------
15249 ToStringVector.tests.cpp:<line number>
15250 ...............................................................................
15251
15252 ToStringVector.tests.cpp:<line number>: PASSED:
15253 REQUIRE( Catch::Detail::stringify( empty ) == "{ }" )
15254 with expansion:
15255 "{ }" == "{ }"
15256
15257 ToStringVector.tests.cpp:<line number>: PASSED:
15258 REQUIRE( Catch::Detail::stringify( oneValue ) == "{ 42 }" )
15259 with expansion:
15260 "{ 42 }" == "{ 42 }"
15261
15262 ToStringVector.tests.cpp:<line number>: PASSED:
15263 REQUIRE( Catch::Detail::stringify( twoValues ) == "{ 42, 250 }" )
15264 with expansion:
15265 "{ 42, 250 }" == "{ 42, 250 }"
15266
15267 -------------------------------------------------------------------------------
15268 benchmark function call
15269 without chronometer
15270 -------------------------------------------------------------------------------
15271 InternalBenchmark.tests.cpp:<line number>
15272 ...............................................................................
15273
15274 InternalBenchmark.tests.cpp:<line number>: PASSED:
15275 CHECK( model.started == 1 )
15276 with expansion:
15277 1 == 1
15278
15279 InternalBenchmark.tests.cpp:<line number>: PASSED:
15280 CHECK( model.finished == 0 )
15281 with expansion:
15282 0 == 0
15283
15284 InternalBenchmark.tests.cpp:<line number>: PASSED:
15285 CHECK( model.started == 1 )
15286 with expansion:
15287 1 == 1
15288
15289 InternalBenchmark.tests.cpp:<line number>: PASSED:
15290 CHECK( model.finished == 1 )
15291 with expansion:
15292 1 == 1
15293
15294 InternalBenchmark.tests.cpp:<line number>: PASSED:
15295 CHECK( called == 1 )
15296 with expansion:
15297 1 == 1
15298
15299 -------------------------------------------------------------------------------
15300 benchmark function call
15301 with chronometer
15302 -------------------------------------------------------------------------------
15303 InternalBenchmark.tests.cpp:<line number>
15304 ...............................................................................
15305
15306 InternalBenchmark.tests.cpp:<line number>: PASSED:
15307 CHECK( model.started == 0 )
15308 with expansion:
15309 0 == 0
15310
15311 InternalBenchmark.tests.cpp:<line number>: PASSED:
15312 CHECK( model.finished == 0 )
15313 with expansion:
15314 0 == 0
15315
15316 InternalBenchmark.tests.cpp:<line number>: PASSED:
15317 CHECK( model.started == 0 )
15318 with expansion:
15319 0 == 0
15320
15321 InternalBenchmark.tests.cpp:<line number>: PASSED:
15322 CHECK( model.finished == 0 )
15323 with expansion:
15324 0 == 0
15325
15326 InternalBenchmark.tests.cpp:<line number>: PASSED:
15327 CHECK( called == 1 )
15328 with expansion:
15329 1 == 1
15330
15331 -------------------------------------------------------------------------------
15332 boolean member
15333 -------------------------------------------------------------------------------
15334 Tricky.tests.cpp:<line number>
15335 ...............................................................................
15336
15337 Tricky.tests.cpp:<line number>: PASSED:
15338 REQUIRE( obj.prop != 0 )
15339 with expansion:
15340 0x<hex digits> != 0
15341
15342 -------------------------------------------------------------------------------
15343 checkedElse
15344 -------------------------------------------------------------------------------
15345 Misc.tests.cpp:<line number>
15346 ...............................................................................
15347
15348 Misc.tests.cpp:<line number>: PASSED:
15349 CHECKED_ELSE( flag )
15350 with expansion:
15351 true
15352
15353 Misc.tests.cpp:<line number>: PASSED:
15354 REQUIRE( testCheckedElse( true ) )
15355 with expansion:
15356 true
15357
15358 -------------------------------------------------------------------------------
15359 checkedElse, failing
15360 -------------------------------------------------------------------------------
15361 Misc.tests.cpp:<line number>
15362 ...............................................................................
15363
15364 Misc.tests.cpp:<line number>: FAILED - but was ok:
15365 CHECKED_ELSE( flag )
15366 with expansion:
15367 false
15368
15369 Misc.tests.cpp:<line number>: FAILED:
15370 REQUIRE( testCheckedElse( false ) )
15371 with expansion:
15372 false
15373
15374 -------------------------------------------------------------------------------
15375 checkedIf
15376 -------------------------------------------------------------------------------
15377 Misc.tests.cpp:<line number>
15378 ...............................................................................
15379
15380 Misc.tests.cpp:<line number>: PASSED:
15381 CHECKED_IF( flag )
15382 with expansion:
15383 true
15384
15385 Misc.tests.cpp:<line number>: PASSED:
15386 REQUIRE( testCheckedIf( true ) )
15387 with expansion:
15388 true
15389
15390 -------------------------------------------------------------------------------
15391 checkedIf, failing
15392 -------------------------------------------------------------------------------
15393 Misc.tests.cpp:<line number>
15394 ...............................................................................
15395
15396 Misc.tests.cpp:<line number>: FAILED - but was ok:
15397 CHECKED_IF( flag )
15398 with expansion:
15399 false
15400
15401 Misc.tests.cpp:<line number>: FAILED:
15402 REQUIRE( testCheckedIf( false ) )
15403 with expansion:
15404 false
15405
15406 -------------------------------------------------------------------------------
15407 classify_outliers
15408 none
15409 -------------------------------------------------------------------------------
15410 InternalBenchmark.tests.cpp:<line number>
15411 ...............................................................................
15412
15413 InternalBenchmark.tests.cpp:<line number>: PASSED:
15414 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15415 with expansion:
15416 6 == 6
15417
15418 InternalBenchmark.tests.cpp:<line number>: PASSED:
15419 REQUIRE( o.low_severe == los )
15420 with expansion:
15421 0 == 0
15422
15423 InternalBenchmark.tests.cpp:<line number>: PASSED:
15424 REQUIRE( o.low_mild == lom )
15425 with expansion:
15426 0 == 0
15427
15428 InternalBenchmark.tests.cpp:<line number>: PASSED:
15429 REQUIRE( o.high_mild == him )
15430 with expansion:
15431 0 == 0
15432
15433 InternalBenchmark.tests.cpp:<line number>: PASSED:
15434 REQUIRE( o.high_severe == his )
15435 with expansion:
15436 0 == 0
15437
15438 InternalBenchmark.tests.cpp:<line number>: PASSED:
15439 REQUIRE( o.total() == los + lom + him + his )
15440 with expansion:
15441 0 == 0
15442
15443 -------------------------------------------------------------------------------
15444 classify_outliers
15445 low severe
15446 -------------------------------------------------------------------------------
15447 InternalBenchmark.tests.cpp:<line number>
15448 ...............................................................................
15449
15450 InternalBenchmark.tests.cpp:<line number>: PASSED:
15451 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15452 with expansion:
15453 6 == 6
15454
15455 InternalBenchmark.tests.cpp:<line number>: PASSED:
15456 REQUIRE( o.low_severe == los )
15457 with expansion:
15458 1 == 1
15459
15460 InternalBenchmark.tests.cpp:<line number>: PASSED:
15461 REQUIRE( o.low_mild == lom )
15462 with expansion:
15463 0 == 0
15464
15465 InternalBenchmark.tests.cpp:<line number>: PASSED:
15466 REQUIRE( o.high_mild == him )
15467 with expansion:
15468 0 == 0
15469
15470 InternalBenchmark.tests.cpp:<line number>: PASSED:
15471 REQUIRE( o.high_severe == his )
15472 with expansion:
15473 0 == 0
15474
15475 InternalBenchmark.tests.cpp:<line number>: PASSED:
15476 REQUIRE( o.total() == los + lom + him + his )
15477 with expansion:
15478 1 == 1
15479
15480 -------------------------------------------------------------------------------
15481 classify_outliers
15482 low mild
15483 -------------------------------------------------------------------------------
15484 InternalBenchmark.tests.cpp:<line number>
15485 ...............................................................................
15486
15487 InternalBenchmark.tests.cpp:<line number>: PASSED:
15488 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15489 with expansion:
15490 6 == 6
15491
15492 InternalBenchmark.tests.cpp:<line number>: PASSED:
15493 REQUIRE( o.low_severe == los )
15494 with expansion:
15495 0 == 0
15496
15497 InternalBenchmark.tests.cpp:<line number>: PASSED:
15498 REQUIRE( o.low_mild == lom )
15499 with expansion:
15500 1 == 1
15501
15502 InternalBenchmark.tests.cpp:<line number>: PASSED:
15503 REQUIRE( o.high_mild == him )
15504 with expansion:
15505 0 == 0
15506
15507 InternalBenchmark.tests.cpp:<line number>: PASSED:
15508 REQUIRE( o.high_severe == his )
15509 with expansion:
15510 0 == 0
15511
15512 InternalBenchmark.tests.cpp:<line number>: PASSED:
15513 REQUIRE( o.total() == los + lom + him + his )
15514 with expansion:
15515 1 == 1
15516
15517 -------------------------------------------------------------------------------
15518 classify_outliers
15519 high mild
15520 -------------------------------------------------------------------------------
15521 InternalBenchmark.tests.cpp:<line number>
15522 ...............................................................................
15523
15524 InternalBenchmark.tests.cpp:<line number>: PASSED:
15525 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15526 with expansion:
15527 6 == 6
15528
15529 InternalBenchmark.tests.cpp:<line number>: PASSED:
15530 REQUIRE( o.low_severe == los )
15531 with expansion:
15532 0 == 0
15533
15534 InternalBenchmark.tests.cpp:<line number>: PASSED:
15535 REQUIRE( o.low_mild == lom )
15536 with expansion:
15537 0 == 0
15538
15539 InternalBenchmark.tests.cpp:<line number>: PASSED:
15540 REQUIRE( o.high_mild == him )
15541 with expansion:
15542 1 == 1
15543
15544 InternalBenchmark.tests.cpp:<line number>: PASSED:
15545 REQUIRE( o.high_severe == his )
15546 with expansion:
15547 0 == 0
15548
15549 InternalBenchmark.tests.cpp:<line number>: PASSED:
15550 REQUIRE( o.total() == los + lom + him + his )
15551 with expansion:
15552 1 == 1
15553
15554 -------------------------------------------------------------------------------
15555 classify_outliers
15556 high severe
15557 -------------------------------------------------------------------------------
15558 InternalBenchmark.tests.cpp:<line number>
15559 ...............................................................................
15560
15561 InternalBenchmark.tests.cpp:<line number>: PASSED:
15562 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15563 with expansion:
15564 6 == 6
15565
15566 InternalBenchmark.tests.cpp:<line number>: PASSED:
15567 REQUIRE( o.low_severe == los )
15568 with expansion:
15569 0 == 0
15570
15571 InternalBenchmark.tests.cpp:<line number>: PASSED:
15572 REQUIRE( o.low_mild == lom )
15573 with expansion:
15574 0 == 0
15575
15576 InternalBenchmark.tests.cpp:<line number>: PASSED:
15577 REQUIRE( o.high_mild == him )
15578 with expansion:
15579 0 == 0
15580
15581 InternalBenchmark.tests.cpp:<line number>: PASSED:
15582 REQUIRE( o.high_severe == his )
15583 with expansion:
15584 1 == 1
15585
15586 InternalBenchmark.tests.cpp:<line number>: PASSED:
15587 REQUIRE( o.total() == los + lom + him + his )
15588 with expansion:
15589 1 == 1
15590
15591 -------------------------------------------------------------------------------
15592 classify_outliers
15593 mixed
15594 -------------------------------------------------------------------------------
15595 InternalBenchmark.tests.cpp:<line number>
15596 ...............................................................................
15597
15598 InternalBenchmark.tests.cpp:<line number>: PASSED:
15599 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15600 with expansion:
15601 6 == 6
15602
15603 InternalBenchmark.tests.cpp:<line number>: PASSED:
15604 REQUIRE( o.low_severe == los )
15605 with expansion:
15606 1 == 1
15607
15608 InternalBenchmark.tests.cpp:<line number>: PASSED:
15609 REQUIRE( o.low_mild == lom )
15610 with expansion:
15611 0 == 0
15612
15613 InternalBenchmark.tests.cpp:<line number>: PASSED:
15614 REQUIRE( o.high_mild == him )
15615 with expansion:
15616 1 == 1
15617
15618 InternalBenchmark.tests.cpp:<line number>: PASSED:
15619 REQUIRE( o.high_severe == his )
15620 with expansion:
15621 0 == 0
15622
15623 InternalBenchmark.tests.cpp:<line number>: PASSED:
15624 REQUIRE( o.total() == los + lom + him + his )
15625 with expansion:
15626 2 == 2
15627
15628 -------------------------------------------------------------------------------
15629 comparisons between const int variables
15630 -------------------------------------------------------------------------------
15631 Condition.tests.cpp:<line number>
15632 ...............................................................................
15633
15634 Condition.tests.cpp:<line number>: PASSED:
15635 REQUIRE( unsigned_char_var == 1 )
15636 with expansion:
15637 1 == 1
15638
15639 Condition.tests.cpp:<line number>: PASSED:
15640 REQUIRE( unsigned_short_var == 1 )
15641 with expansion:
15642 1 == 1
15643
15644 Condition.tests.cpp:<line number>: PASSED:
15645 REQUIRE( unsigned_int_var == 1 )
15646 with expansion:
15647 1 == 1
15648
15649 Condition.tests.cpp:<line number>: PASSED:
15650 REQUIRE( unsigned_long_var == 1 )
15651 with expansion:
15652 1 == 1
15653
15654 -------------------------------------------------------------------------------
15655 comparisons between int variables
15656 -------------------------------------------------------------------------------
15657 Condition.tests.cpp:<line number>
15658 ...............................................................................
15659
15660 Condition.tests.cpp:<line number>: PASSED:
15661 REQUIRE( long_var == unsigned_char_var )
15662 with expansion:
15663 1 == 1
15664
15665 Condition.tests.cpp:<line number>: PASSED:
15666 REQUIRE( long_var == unsigned_short_var )
15667 with expansion:
15668 1 == 1
15669
15670 Condition.tests.cpp:<line number>: PASSED:
15671 REQUIRE( long_var == unsigned_int_var )
15672 with expansion:
15673 1 == 1
15674
15675 Condition.tests.cpp:<line number>: PASSED:
15676 REQUIRE( long_var == unsigned_long_var )
15677 with expansion:
15678 1 == 1
15679
15680 -------------------------------------------------------------------------------
15681 convertToBits
15682 -------------------------------------------------------------------------------
15683 FloatingPoint.tests.cpp:<line number>
15684 ...............................................................................
15685
15686 FloatingPoint.tests.cpp:<line number>: PASSED:
15687 CHECK( convertToBits( 0.f ) == 0 )
15688 with expansion:
15689 0 == 0
15690
15691 FloatingPoint.tests.cpp:<line number>: PASSED:
15692 CHECK( convertToBits( -0.f ) == ( 1ULL << 31 ) )
15693 with expansion:
15694 2147483648 (0x<hex digits>)
15695 ==
15696 2147483648 (0x<hex digits>)
15697
15698 FloatingPoint.tests.cpp:<line number>: PASSED:
15699 CHECK( convertToBits( 0. ) == 0 )
15700 with expansion:
15701 0 == 0
15702
15703 FloatingPoint.tests.cpp:<line number>: PASSED:
15704 CHECK( convertToBits( -0. ) == ( 1ULL << 63 ) )
15705 with expansion:
15706 9223372036854775808 (0x<hex digits>)
15707 ==
15708 9223372036854775808 (0x<hex digits>)
15709
15710 FloatingPoint.tests.cpp:<line number>: PASSED:
15711 CHECK( convertToBits( std::numeric_limits<float>::denorm_min() ) == 1 )
15712 with expansion:
15713 1 == 1
15714
15715 FloatingPoint.tests.cpp:<line number>: PASSED:
15716 CHECK( convertToBits( std::numeric_limits<double>::denorm_min() ) == 1 )
15717 with expansion:
15718 1 == 1
15719
15720 -------------------------------------------------------------------------------
15721 dynamic skipping works with generators
15722 -------------------------------------------------------------------------------
15723 Skip.tests.cpp:<line number>
15724 ...............................................................................
15725
15726 Skip.tests.cpp:<line number>: SKIPPED:
15727 explicitly with message:
15728 skipping because answer = 41
15729
15730 -------------------------------------------------------------------------------
15731 dynamic skipping works with generators
15732 -------------------------------------------------------------------------------
15733 Skip.tests.cpp:<line number>
15734 ...............................................................................
15735
15736 Skip.tests.cpp:<line number>: PASSED:
15737
15738 -------------------------------------------------------------------------------
15739 dynamic skipping works with generators
15740 -------------------------------------------------------------------------------
15741 Skip.tests.cpp:<line number>
15742 ...............................................................................
15743
15744 Skip.tests.cpp:<line number>: SKIPPED:
15745 explicitly with message:
15746 skipping because answer = 43
15747
15748 -------------------------------------------------------------------------------
15749 empty tags are not allowed
15750 -------------------------------------------------------------------------------
15751 Tag.tests.cpp:<line number>
15752 ...............................................................................
15753
15754 Tag.tests.cpp:<line number>: PASSED:
15755 REQUIRE_THROWS( Catch::TestCaseInfo("", { "test with an empty tag", "[]" }, dummySourceLineInfo) )
15756
15757 -------------------------------------------------------------------------------
15758 erfc_inv
15759 -------------------------------------------------------------------------------
15760 InternalBenchmark.tests.cpp:<line number>
15761 ...............................................................................
15762
15763 InternalBenchmark.tests.cpp:<line number>: PASSED:
15764 CHECK( erfc_inv(1.103560) == Approx(-0.09203687623843015) )
15765 with expansion:
15766 -0.0920368762 == Approx( -0.0920368762 )
15767
15768 InternalBenchmark.tests.cpp:<line number>: PASSED:
15769 CHECK( erfc_inv(1.067400) == Approx(-0.05980291115763361) )
15770 with expansion:
15771 -0.0598029112 == Approx( -0.0598029112 )
15772
15773 InternalBenchmark.tests.cpp:<line number>: PASSED:
15774 CHECK( erfc_inv(0.050000) == Approx(1.38590382434967796) )
15775 with expansion:
15776 1.3859038243 == Approx( 1.3859038243 )
15777
15778 -------------------------------------------------------------------------------
15779 estimate_clock_resolution
15780 -------------------------------------------------------------------------------
15781 InternalBenchmark.tests.cpp:<line number>
15782 ...............................................................................
15783
15784 InternalBenchmark.tests.cpp:<line number>: PASSED:
15785 REQUIRE( res.mean.count() == rate )
15786 with expansion:
15787 2000.0 == 2000 (0x<hex digits>)
15788
15789 InternalBenchmark.tests.cpp:<line number>: PASSED:
15790 REQUIRE( res.outliers.total() == 0 )
15791 with expansion:
15792 0 == 0
15793
15794 -------------------------------------------------------------------------------
15795 even more nested SECTION tests
15796 c
15797 d (leaf)
15798 -------------------------------------------------------------------------------
15799 Misc.tests.cpp:<line number>
15800 ...............................................................................
15801
15802 Misc.tests.cpp:<line number>: PASSED:
15803
15804 -------------------------------------------------------------------------------
15805 even more nested SECTION tests
15806 c
15807 e (leaf)
15808 -------------------------------------------------------------------------------
15809 Misc.tests.cpp:<line number>
15810 ...............................................................................
15811
15812 Misc.tests.cpp:<line number>: PASSED:
15813
15814 -------------------------------------------------------------------------------
15815 even more nested SECTION tests
15816 f (leaf)
15817 -------------------------------------------------------------------------------
15818 Misc.tests.cpp:<line number>
15819 ...............................................................................
15820
15821 Misc.tests.cpp:<line number>: PASSED:
15822
15823 -------------------------------------------------------------------------------
15824 failed assertions before SKIP cause test case to fail
15825 -------------------------------------------------------------------------------
15826 Skip.tests.cpp:<line number>
15827 ...............................................................................
15828
15829 Skip.tests.cpp:<line number>: FAILED:
15830 CHECK( 3 == 4 )
15831
15832 Skip.tests.cpp:<line number>: SKIPPED:
15833
15834 -------------------------------------------------------------------------------
15835 failing for some generator values causes entire test case to fail
15836 -------------------------------------------------------------------------------
15837 Skip.tests.cpp:<line number>
15838 ...............................................................................
15839
15840 Skip.tests.cpp:<line number>: FAILED:
15841
15842 -------------------------------------------------------------------------------
15843 failing for some generator values causes entire test case to fail
15844 -------------------------------------------------------------------------------
15845 Skip.tests.cpp:<line number>
15846 ...............................................................................
15847
15848 Skip.tests.cpp:<line number>: SKIPPED:
15849
15850 -------------------------------------------------------------------------------
15851 failing for some generator values causes entire test case to fail
15852 -------------------------------------------------------------------------------
15853 Skip.tests.cpp:<line number>
15854 ...............................................................................
15855
15856 Skip.tests.cpp:<line number>: FAILED:
15857
15858 -------------------------------------------------------------------------------
15859 failing for some generator values causes entire test case to fail
15860 -------------------------------------------------------------------------------
15861 Skip.tests.cpp:<line number>
15862 ...............................................................................
15863
15864 Skip.tests.cpp:<line number>: SKIPPED:
15865
15866 -------------------------------------------------------------------------------
15867 failing in some unskipped sections causes entire test case to fail
15868 skipped
15869 -------------------------------------------------------------------------------
15870 Skip.tests.cpp:<line number>
15871 ...............................................................................
15872
15873 Skip.tests.cpp:<line number>: SKIPPED:
15874
15875 -------------------------------------------------------------------------------
15876 failing in some unskipped sections causes entire test case to fail
15877 not skipped
15878 -------------------------------------------------------------------------------
15879 Skip.tests.cpp:<line number>
15880 ...............................................................................
15881
15882 Skip.tests.cpp:<line number>: FAILED:
15883
15884 -------------------------------------------------------------------------------
15885 first tag
15886 -------------------------------------------------------------------------------
15887 Misc.tests.cpp:<line number>
15888 ...............................................................................
15889
15890
15891 No assertions in test case 'first tag'
15892
15893 -------------------------------------------------------------------------------
15894 has printf
15895 -------------------------------------------------------------------------------
15896 Tricky.tests.cpp:<line number>
15897 ...............................................................................
15898
15899
15900 No assertions in test case 'has printf'
15901
15902 -------------------------------------------------------------------------------
15903 is_unary_function
15904 -------------------------------------------------------------------------------
15905 Clara.tests.cpp:<line number>
15906 ...............................................................................
15907
15908 Clara.tests.cpp:<line number>: PASSED:
15909 with message:
15910 Catch::Clara::Detail::is_unary_function<decltype(unary1)>::value
15911
15912 Clara.tests.cpp:<line number>: PASSED:
15913 with message:
15914 Catch::Clara::Detail::is_unary_function<decltype(unary2)>::value
15915
15916 Clara.tests.cpp:<line number>: PASSED:
15917 with message:
15918 Catch::Clara::Detail::is_unary_function<decltype(unary3)>::value
15919
15920 Clara.tests.cpp:<line number>: PASSED:
15921 with message:
15922 Catch::Clara::Detail::is_unary_function<decltype(unary4)>::value
15923
15924 Clara.tests.cpp:<line number>: PASSED:
15925 with message:
15926 Catch::Clara::Detail::is_unary_function<decltype(unary5)>::value
15927
15928 Clara.tests.cpp:<line number>: PASSED:
15929 with message:
15930 Catch::Clara::Detail::is_unary_function<decltype(unary6)>::value
15931
15932 Clara.tests.cpp:<line number>: PASSED:
15933 with message:
15934 !(Catch::Clara::Detail::is_unary_function<decltype(binary1)>::value)
15935
15936 Clara.tests.cpp:<line number>: PASSED:
15937 with message:
15938 !(Catch::Clara::Detail::is_unary_function<decltype(binary2)>::value)
15939
15940 Clara.tests.cpp:<line number>: PASSED:
15941 with message:
15942 !(Catch::Clara::Detail::is_unary_function<decltype(nullary1)>::value)
15943
15944 Clara.tests.cpp:<line number>: PASSED:
15945 with message:
15946 !(Catch::Clara::Detail::is_unary_function<decltype(nullary2)>::value)
15947
15948 Clara.tests.cpp:<line number>: PASSED:
15949 with message:
15950 !(Catch::Clara::Detail::is_unary_function<int>::value)
15951
15952 Clara.tests.cpp:<line number>: PASSED:
15953 with message:
15954 !(Catch::Clara::Detail::is_unary_function<std::string const&>::value)
15955
15956 -------------------------------------------------------------------------------
15957 just failure
15958 -------------------------------------------------------------------------------
15959 Message.tests.cpp:<line number>
15960 ...............................................................................
15961
15962 Message.tests.cpp:<line number>: FAILED:
15963 explicitly with message:
15964 Previous info should not be seen
15965
15966 -------------------------------------------------------------------------------
15967 just failure after unscoped info
15968 -------------------------------------------------------------------------------
15969 Message.tests.cpp:<line number>
15970 ...............................................................................
15971
15972 Message.tests.cpp:<line number>: FAILED:
15973 explicitly with message:
15974 previous unscoped info SHOULD not be seen
15975
15976 -------------------------------------------------------------------------------
15977 just info
15978 -------------------------------------------------------------------------------
15979 Message.tests.cpp:<line number>
15980 ...............................................................................
15981
15982
15983 No assertions in test case 'just info'
15984
15985 -------------------------------------------------------------------------------
15986 just unscoped info
15987 -------------------------------------------------------------------------------
15988 Message.tests.cpp:<line number>
15989 ...............................................................................
15990
15991
15992 No assertions in test case 'just unscoped info'
15993
15994 -------------------------------------------------------------------------------
15995 long long
15996 -------------------------------------------------------------------------------
15997 Misc.tests.cpp:<line number>
15998 ...............................................................................
15999
16000 Misc.tests.cpp:<line number>: PASSED:
16001 REQUIRE( l == std::numeric_limits<long long>::max() )
16002 with expansion:
16003 9223372036854775807 (0x<hex digits>)
16004 ==
16005 9223372036854775807 (0x<hex digits>)
16006
16007 -------------------------------------------------------------------------------
16008 looped SECTION tests
16009 b is currently: 0
16010 -------------------------------------------------------------------------------
16011 Misc.tests.cpp:<line number>
16012 ...............................................................................
16013
16014 Misc.tests.cpp:<line number>: FAILED:
16015 CHECK( b > a )
16016 with expansion:
16017 0 > 1
16018
16019 -------------------------------------------------------------------------------
16020 looped SECTION tests
16021 b is currently: 1
16022 -------------------------------------------------------------------------------
16023 Misc.tests.cpp:<line number>
16024 ...............................................................................
16025
16026 Misc.tests.cpp:<line number>: FAILED:
16027 CHECK( b > a )
16028 with expansion:
16029 1 > 1
16030
16031 -------------------------------------------------------------------------------
16032 looped SECTION tests
16033 b is currently: 2
16034 -------------------------------------------------------------------------------
16035 Misc.tests.cpp:<line number>
16036 ...............................................................................
16037
16038 Misc.tests.cpp:<line number>: PASSED:
16039 CHECK( b > a )
16040 with expansion:
16041 2 > 1
16042
16043 -------------------------------------------------------------------------------
16044 looped SECTION tests
16045 b is currently: 3
16046 -------------------------------------------------------------------------------
16047 Misc.tests.cpp:<line number>
16048 ...............................................................................
16049
16050 Misc.tests.cpp:<line number>: PASSED:
16051 CHECK( b > a )
16052 with expansion:
16053 3 > 1
16054
16055 -------------------------------------------------------------------------------
16056 looped SECTION tests
16057 b is currently: 4
16058 -------------------------------------------------------------------------------
16059 Misc.tests.cpp:<line number>
16060 ...............................................................................
16061
16062 Misc.tests.cpp:<line number>: PASSED:
16063 CHECK( b > a )
16064 with expansion:
16065 4 > 1
16066
16067 -------------------------------------------------------------------------------
16068 looped SECTION tests
16069 b is currently: 5
16070 -------------------------------------------------------------------------------
16071 Misc.tests.cpp:<line number>
16072 ...............................................................................
16073
16074 Misc.tests.cpp:<line number>: PASSED:
16075 CHECK( b > a )
16076 with expansion:
16077 5 > 1
16078
16079 -------------------------------------------------------------------------------
16080 looped SECTION tests
16081 b is currently: 6
16082 -------------------------------------------------------------------------------
16083 Misc.tests.cpp:<line number>
16084 ...............................................................................
16085
16086 Misc.tests.cpp:<line number>: PASSED:
16087 CHECK( b > a )
16088 with expansion:
16089 6 > 1
16090
16091 -------------------------------------------------------------------------------
16092 looped SECTION tests
16093 b is currently: 7
16094 -------------------------------------------------------------------------------
16095 Misc.tests.cpp:<line number>
16096 ...............................................................................
16097
16098 Misc.tests.cpp:<line number>: PASSED:
16099 CHECK( b > a )
16100 with expansion:
16101 7 > 1
16102
16103 -------------------------------------------------------------------------------
16104 looped SECTION tests
16105 b is currently: 8
16106 -------------------------------------------------------------------------------
16107 Misc.tests.cpp:<line number>
16108 ...............................................................................
16109
16110 Misc.tests.cpp:<line number>: PASSED:
16111 CHECK( b > a )
16112 with expansion:
16113 8 > 1
16114
16115 -------------------------------------------------------------------------------
16116 looped SECTION tests
16117 b is currently: 9
16118 -------------------------------------------------------------------------------
16119 Misc.tests.cpp:<line number>
16120 ...............................................................................
16121
16122 Misc.tests.cpp:<line number>: PASSED:
16123 CHECK( b > a )
16124 with expansion:
16125 9 > 1
16126
16127 -------------------------------------------------------------------------------
16128 looped tests
16129 -------------------------------------------------------------------------------
16130 Misc.tests.cpp:<line number>
16131 ...............................................................................
16132
16133 Misc.tests.cpp:<line number>: FAILED:
16134 CHECK( ( fib[i] % 2 ) == 0 )
16135 with expansion:
16136 1 == 0
16137 with message:
16138 Testing if fib[0] (1) is even
16139
16140 Misc.tests.cpp:<line number>: FAILED:
16141 CHECK( ( fib[i] % 2 ) == 0 )
16142 with expansion:
16143 1 == 0
16144 with message:
16145 Testing if fib[1] (1) is even
16146
16147 Misc.tests.cpp:<line number>: PASSED:
16148 CHECK( ( fib[i] % 2 ) == 0 )
16149 with expansion:
16150 0 == 0
16151 with message:
16152 Testing if fib[2] (2) is even
16153
16154 Misc.tests.cpp:<line number>: FAILED:
16155 CHECK( ( fib[i] % 2 ) == 0 )
16156 with expansion:
16157 1 == 0
16158 with message:
16159 Testing if fib[3] (3) is even
16160
16161 Misc.tests.cpp:<line number>: FAILED:
16162 CHECK( ( fib[i] % 2 ) == 0 )
16163 with expansion:
16164 1 == 0
16165 with message:
16166 Testing if fib[4] (5) is even
16167
16168 Misc.tests.cpp:<line number>: PASSED:
16169 CHECK( ( fib[i] % 2 ) == 0 )
16170 with expansion:
16171 0 == 0
16172 with message:
16173 Testing if fib[5] (8) is even
16174
16175 Misc.tests.cpp:<line number>: FAILED:
16176 CHECK( ( fib[i] % 2 ) == 0 )
16177 with expansion:
16178 1 == 0
16179 with message:
16180 Testing if fib[6] (13) is even
16181
16182 Misc.tests.cpp:<line number>: FAILED:
16183 CHECK( ( fib[i] % 2 ) == 0 )
16184 with expansion:
16185 1 == 0
16186 with message:
16187 Testing if fib[7] (21) is even
16188
16189 -------------------------------------------------------------------------------
16190 makeStream recognizes %debug stream name
16191 -------------------------------------------------------------------------------
16192 Stream.tests.cpp:<line number>
16193 ...............................................................................
16194
16195 Stream.tests.cpp:<line number>: PASSED:
16196 REQUIRE_NOTHROW( Catch::makeStream( "%debug" ) )
16197
16198 -------------------------------------------------------------------------------
16199 make_unique reimplementation
16200 From lvalue copies
16201 -------------------------------------------------------------------------------
16202 UniquePtr.tests.cpp:<line number>
16203 ...............................................................................
16204
16205 UniquePtr.tests.cpp:<line number>: PASSED:
16206 REQUIRE_FALSE( lval.has_moved )
16207 with expansion:
16208 !false
16209
16210 -------------------------------------------------------------------------------
16211 make_unique reimplementation
16212 From rvalue moves
16213 -------------------------------------------------------------------------------
16214 UniquePtr.tests.cpp:<line number>
16215 ...............................................................................
16216
16217 UniquePtr.tests.cpp:<line number>: PASSED:
16218 REQUIRE( rval.has_moved )
16219 with expansion:
16220 true
16221
16222 -------------------------------------------------------------------------------
16223 make_unique reimplementation
16224 Variadic constructor
16225 -------------------------------------------------------------------------------
16226 UniquePtr.tests.cpp:<line number>
16227 ...............................................................................
16228
16229 UniquePtr.tests.cpp:<line number>: PASSED:
16230 REQUIRE( *ptr == std::tuple<int, double, int>{1, 2., 3} )
16231 with expansion:
16232 {?} == {?}
16233
16234 -------------------------------------------------------------------------------
16235 mean
16236 -------------------------------------------------------------------------------
16237 InternalBenchmark.tests.cpp:<line number>
16238 ...............................................................................
16239
16240 InternalBenchmark.tests.cpp:<line number>: PASSED:
16241 REQUIRE( m == 19. )
16242 with expansion:
16243 19.0 == 19.0
16244
16245 -------------------------------------------------------------------------------
16246 measure
16247 -------------------------------------------------------------------------------
16248 InternalBenchmark.tests.cpp:<line number>
16249 ...............................................................................
16250
16251 InternalBenchmark.tests.cpp:<line number>: PASSED:
16252 CHECK( x == 17 )
16253 with expansion:
16254 17 == 17
16255
16256 InternalBenchmark.tests.cpp:<line number>: PASSED:
16257 CHECK( x == 23 )
16258 with expansion:
16259 23 == 23
16260
16261 InternalBenchmark.tests.cpp:<line number>: PASSED:
16262 CHECK( r.elapsed.count() == 42 )
16263 with expansion:
16264 42 == 42
16265
16266 InternalBenchmark.tests.cpp:<line number>: PASSED:
16267 CHECK( r.result == 23 )
16268 with expansion:
16269 23 == 23
16270
16271 InternalBenchmark.tests.cpp:<line number>: PASSED:
16272 CHECK( r.iterations == 1 )
16273 with expansion:
16274 1 == 1
16275
16276 InternalBenchmark.tests.cpp:<line number>: PASSED:
16277 CHECK( s.elapsed.count() == 69 )
16278 with expansion:
16279 69 == 69
16280
16281 InternalBenchmark.tests.cpp:<line number>: PASSED:
16282 CHECK( s.result == 17 )
16283 with expansion:
16284 17 == 17
16285
16286 InternalBenchmark.tests.cpp:<line number>: PASSED:
16287 CHECK( s.iterations == 1 )
16288 with expansion:
16289 1 == 1
16290
16291 -------------------------------------------------------------------------------
16292 mix info, unscoped info and warning
16293 -------------------------------------------------------------------------------
16294 Message.tests.cpp:<line number>
16295 ...............................................................................
16296
16297 Message.tests.cpp:<line number>: warning:
16298 info
16299 unscoped info
16300 and warn may mix
16301
16302 Message.tests.cpp:<line number>: warning:
16303 info
16304 unscoped info
16305 they are not cleared after warnings
16306
16307
16308 No assertions in test case 'mix info, unscoped info and warning'
16309
16310 -------------------------------------------------------------------------------
16311 more nested SECTION tests
16312 doesn't equal
16313 equal
16314 -------------------------------------------------------------------------------
16315 Misc.tests.cpp:<line number>
16316 ...............................................................................
16317
16318 Misc.tests.cpp:<line number>: FAILED:
16319 REQUIRE( a == b )
16320 with expansion:
16321 1 == 2
16322
16323 -------------------------------------------------------------------------------
16324 more nested SECTION tests
16325 doesn't equal
16326 not equal
16327 -------------------------------------------------------------------------------
16328 Misc.tests.cpp:<line number>
16329 ...............................................................................
16330
16331 Misc.tests.cpp:<line number>: PASSED:
16332 REQUIRE( a != b )
16333 with expansion:
16334 1 != 2
16335
16336 -------------------------------------------------------------------------------
16337 more nested SECTION tests
16338 doesn't equal
16339 less than
16340 -------------------------------------------------------------------------------
16341 Misc.tests.cpp:<line number>
16342 ...............................................................................
16343
16344 Misc.tests.cpp:<line number>: PASSED:
16345 REQUIRE( a < b )
16346 with expansion:
16347 1 < 2
16348
16349 -------------------------------------------------------------------------------
16350 nested SECTION tests
16351 doesn't equal
16352 -------------------------------------------------------------------------------
16353 Misc.tests.cpp:<line number>
16354 ...............................................................................
16355
16356 Misc.tests.cpp:<line number>: PASSED:
16357 REQUIRE( a != b )
16358 with expansion:
16359 1 != 2
16360
16361 Misc.tests.cpp:<line number>: PASSED:
16362 REQUIRE( b != a )
16363 with expansion:
16364 2 != 1
16365
16366 -------------------------------------------------------------------------------
16367 nested SECTION tests
16368 doesn't equal
16369 not equal
16370 -------------------------------------------------------------------------------
16371 Misc.tests.cpp:<line number>
16372 ...............................................................................
16373
16374 Misc.tests.cpp:<line number>: PASSED:
16375 REQUIRE( a != b )
16376 with expansion:
16377 1 != 2
16378
16379 -------------------------------------------------------------------------------
16380 nested sections can be skipped dynamically at runtime
16381 A
16382 -------------------------------------------------------------------------------
16383 Skip.tests.cpp:<line number>
16384 ...............................................................................
16385
16386
16387 No assertions in section 'A'
16388
16389 -------------------------------------------------------------------------------
16390 nested sections can be skipped dynamically at runtime
16391 B
16392 B1
16393 -------------------------------------------------------------------------------
16394 Skip.tests.cpp:<line number>
16395 ...............................................................................
16396
16397
16398 No assertions in section 'B1'
16399
16400 -------------------------------------------------------------------------------
16401 nested sections can be skipped dynamically at runtime
16402 B
16403 B2
16404 -------------------------------------------------------------------------------
16405 Skip.tests.cpp:<line number>
16406 ...............................................................................
16407
16408 Skip.tests.cpp:<line number>: SKIPPED:
16409
16410 -------------------------------------------------------------------------------
16411 non streamable - with conv. op
16412 -------------------------------------------------------------------------------
16413 Tricky.tests.cpp:<line number>
16414 ...............................................................................
16415
16416 Tricky.tests.cpp:<line number>: PASSED:
16417 REQUIRE( s == "7" )
16418 with expansion:
16419 "7" == "7"
16420
16421 -------------------------------------------------------------------------------
16422 non-copyable objects
16423 -------------------------------------------------------------------------------
16424 Tricky.tests.cpp:<line number>
16425 ...............................................................................
16426
16427 Tricky.tests.cpp:<line number>: PASSED:
16428 CHECK( ti == typeid(int) )
16429 with expansion:
16430 {?} == {?}
16431
16432 -------------------------------------------------------------------------------
16433 normal_cdf
16434 -------------------------------------------------------------------------------
16435 InternalBenchmark.tests.cpp:<line number>
16436 ...............................................................................
16437
16438 InternalBenchmark.tests.cpp:<line number>: PASSED:
16439 CHECK( normal_cdf(0.000000) == Approx(0.50000000000000000) )
16440 with expansion:
16441 0.5 == Approx( 0.5 )
16442
16443 InternalBenchmark.tests.cpp:<line number>: PASSED:
16444 CHECK( normal_cdf(1.000000) == Approx(0.84134474606854293) )
16445 with expansion:
16446 0.8413447461 == Approx( 0.8413447461 )
16447
16448 InternalBenchmark.tests.cpp:<line number>: PASSED:
16449 CHECK( normal_cdf(-1.000000) == Approx(0.15865525393145705) )
16450 with expansion:
16451 0.1586552539 == Approx( 0.1586552539 )
16452
16453 InternalBenchmark.tests.cpp:<line number>: PASSED:
16454 CHECK( normal_cdf(2.809729) == Approx(0.99752083845315409) )
16455 with expansion:
16456 0.9975208385 == Approx( 0.9975208385 )
16457
16458 InternalBenchmark.tests.cpp:<line number>: PASSED:
16459 CHECK( normal_cdf(-1.352570) == Approx(0.08809652095066035) )
16460 with expansion:
16461 0.088096521 == Approx( 0.088096521 )
16462
16463 -------------------------------------------------------------------------------
16464 normal_quantile
16465 -------------------------------------------------------------------------------
16466 InternalBenchmark.tests.cpp:<line number>
16467 ...............................................................................
16468
16469 InternalBenchmark.tests.cpp:<line number>: PASSED:
16470 CHECK( normal_quantile(0.551780) == Approx(0.13015979861484198) )
16471 with expansion:
16472 0.1301597986 == Approx( 0.1301597986 )
16473
16474 InternalBenchmark.tests.cpp:<line number>: PASSED:
16475 CHECK( normal_quantile(0.533700) == Approx(0.08457408802851875) )
16476 with expansion:
16477 0.084574088 == Approx( 0.084574088 )
16478
16479 InternalBenchmark.tests.cpp:<line number>: PASSED:
16480 CHECK( normal_quantile(0.025000) == Approx(-1.95996398454005449) )
16481 with expansion:
16482 -1.9599639845 == Approx( -1.9599639845 )
16483
16484 -------------------------------------------------------------------------------
16485 not allowed
16486 -------------------------------------------------------------------------------
16487 Misc.tests.cpp:<line number>
16488 ...............................................................................
16489
16490 Misc.tests.cpp:<line number>: PASSED:
16491
16492 -------------------------------------------------------------------------------
16493 not prints unscoped info from previous failures
16494 -------------------------------------------------------------------------------
16495 Message.tests.cpp:<line number>
16496 ...............................................................................
16497
16498 Message.tests.cpp:<line number>: PASSED:
16499 REQUIRE( true )
16500 with message:
16501 this MAY be seen only for the FIRST assertion IF info is printed for passing
16502 assertions
16503
16504 Message.tests.cpp:<line number>: PASSED:
16505 REQUIRE( true )
16506 with message:
16507 this MAY be seen only for the SECOND assertion IF info is printed for passing
16508 assertions
16509
16510 Message.tests.cpp:<line number>: FAILED:
16511 REQUIRE( false )
16512 with message:
16513 this SHOULD be seen
16514
16515 -------------------------------------------------------------------------------
16516 null strings
16517 -------------------------------------------------------------------------------
16518 Misc.tests.cpp:<line number>
16519 ...............................................................................
16520
16521 Misc.tests.cpp:<line number>: PASSED:
16522 REQUIRE( makeString( false ) != static_cast<char*>(0) )
16523 with expansion:
16524 "valid string" != {null string}
16525
16526 Misc.tests.cpp:<line number>: PASSED:
16527 REQUIRE( makeString( true ) == static_cast<char*>(0) )
16528 with expansion:
16529 {null string} == {null string}
16530
16531 -------------------------------------------------------------------------------
16532 null_ptr
16533 -------------------------------------------------------------------------------
16534 Tricky.tests.cpp:<line number>
16535 ...............................................................................
16536
16537 Tricky.tests.cpp:<line number>: PASSED:
16538 REQUIRE( ptr.get() == 0 )
16539 with expansion:
16540 0 == 0
16541
16542 -------------------------------------------------------------------------------
16543 pair<pair<int,const char *,pair<std::string,int> > -> toString
16544 -------------------------------------------------------------------------------
16545 ToStringPair.tests.cpp:<line number>
16546 ...............................................................................
16547
16548 ToStringPair.tests.cpp:<line number>: PASSED:
16549 REQUIRE( ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" )
16550 with expansion:
16551 "{ { 42, "Arthur" }, { "Ford", 24 } }"
16552 ==
16553 "{ { 42, "Arthur" }, { "Ford", 24 } }"
16554
16555 -------------------------------------------------------------------------------
16556 parseEnums
16557 No enums
16558 -------------------------------------------------------------------------------
16559 ToString.tests.cpp:<line number>
16560 ...............................................................................
16561
16562 ToString.tests.cpp:<line number>: PASSED:
16563 CHECK_THAT( parseEnums( "" ), Equals( std::vector<Catch::StringRef>{} ) )
16564 with expansion:
16565 { } Equals: { }
16566
16567 -------------------------------------------------------------------------------
16568 parseEnums
16569 One enum value
16570 -------------------------------------------------------------------------------
16571 ToString.tests.cpp:<line number>
16572 ...............................................................................
16573
16574 ToString.tests.cpp:<line number>: PASSED:
16575 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
16576 with expansion:
16577 { Value1 } Equals: { Value1 }
16578
16579 ToString.tests.cpp:<line number>: PASSED:
16580 CHECK_THAT( parseEnums( "Value1" ), Equals( std::vector<Catch::StringRef>{"Value1"} ) )
16581 with expansion:
16582 { Value1 } Equals: { Value1 }
16583
16584 ToString.tests.cpp:<line number>: PASSED:
16585 CHECK_THAT( parseEnums( "EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
16586 with expansion:
16587 { Value1 } Equals: { Value1 }
16588
16589 -------------------------------------------------------------------------------
16590 parseEnums
16591 Multiple enum values
16592 -------------------------------------------------------------------------------
16593 ToString.tests.cpp:<line number>
16594 ...............................................................................
16595
16596 ToString.tests.cpp:<line number>: PASSED:
16597 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2"} ) )
16598 with expansion:
16599 { Value1, Value2 } Equals: { Value1, Value2 }
16600
16601 ToString.tests.cpp:<line number>: PASSED:
16602 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
16603 with expansion:
16604 { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
16605
16606 ToString.tests.cpp:<line number>: PASSED:
16607 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
16608 with expansion:
16609 { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
16610
16611 -------------------------------------------------------------------------------
16612 pointer to class
16613 -------------------------------------------------------------------------------
16614 Tricky.tests.cpp:<line number>
16615 ...............................................................................
16616
16617 Tricky.tests.cpp:<line number>: PASSED:
16618 REQUIRE( p == 0 )
16619 with expansion:
16620 0 == 0
16621
16622 -------------------------------------------------------------------------------
16623 print unscoped info if passing unscoped info is printed
16624 -------------------------------------------------------------------------------
16625 Message.tests.cpp:<line number>
16626 ...............................................................................
16627
16628 Message.tests.cpp:<line number>: PASSED:
16629 REQUIRE( true )
16630 with message:
16631 this MAY be seen IF info is printed for passing assertions
16632
16633 -------------------------------------------------------------------------------
16634 prints unscoped info on failure
16635 -------------------------------------------------------------------------------
16636 Message.tests.cpp:<line number>
16637 ...............................................................................
16638
16639 Message.tests.cpp:<line number>: FAILED:
16640 REQUIRE( false )
16641 with messages:
16642 this SHOULD be seen
16643 this SHOULD also be seen
16644
16645 -------------------------------------------------------------------------------
16646 prints unscoped info only for the first assertion
16647 -------------------------------------------------------------------------------
16648 Message.tests.cpp:<line number>
16649 ...............................................................................
16650
16651 Message.tests.cpp:<line number>: FAILED:
16652 CHECK( false )
16653 with message:
16654 this SHOULD be seen only ONCE
16655
16656 Message.tests.cpp:<line number>: PASSED:
16657 CHECK( true )
16658
16659 Message.tests.cpp:<line number>: PASSED:
16660 CHECK( true )
16661 with message:
16662 this MAY also be seen only ONCE IF info is printed for passing assertions
16663
16664 Message.tests.cpp:<line number>: PASSED:
16665 CHECK( true )
16666
16667 -------------------------------------------------------------------------------
16668 random SECTION tests
16669 doesn't equal
16670 -------------------------------------------------------------------------------
16671 Misc.tests.cpp:<line number>
16672 ...............................................................................
16673
16674 Misc.tests.cpp:<line number>: PASSED:
16675 REQUIRE( a != b )
16676 with expansion:
16677 1 != 2
16678
16679 Misc.tests.cpp:<line number>: PASSED:
16680 REQUIRE( b != a )
16681 with expansion:
16682 2 != 1
16683
16684 -------------------------------------------------------------------------------
16685 random SECTION tests
16686 not equal
16687 -------------------------------------------------------------------------------
16688 Misc.tests.cpp:<line number>
16689 ...............................................................................
16690
16691 Misc.tests.cpp:<line number>: PASSED:
16692 REQUIRE( a != b )
16693 with expansion:
16694 1 != 2
16695
16696 -------------------------------------------------------------------------------
16697 replaceInPlace
16698 replace single char
16699 -------------------------------------------------------------------------------
16700 StringManip.tests.cpp:<line number>
16701 ...............................................................................
16702
16703 StringManip.tests.cpp:<line number>: PASSED:
16704 CHECK( Catch::replaceInPlace(letters, "b", "z") )
16705 with expansion:
16706 true
16707
16708 StringManip.tests.cpp:<line number>: PASSED:
16709 CHECK( letters == "azcdefcg" )
16710 with expansion:
16711 "azcdefcg" == "azcdefcg"
16712
16713 -------------------------------------------------------------------------------
16714 replaceInPlace
16715 replace two chars
16716 -------------------------------------------------------------------------------
16717 StringManip.tests.cpp:<line number>
16718 ...............................................................................
16719
16720 StringManip.tests.cpp:<line number>: PASSED:
16721 CHECK( Catch::replaceInPlace(letters, "c", "z") )
16722 with expansion:
16723 true
16724
16725 StringManip.tests.cpp:<line number>: PASSED:
16726 CHECK( letters == "abzdefzg" )
16727 with expansion:
16728 "abzdefzg" == "abzdefzg"
16729
16730 -------------------------------------------------------------------------------
16731 replaceInPlace
16732 replace first char
16733 -------------------------------------------------------------------------------
16734 StringManip.tests.cpp:<line number>
16735 ...............................................................................
16736
16737 StringManip.tests.cpp:<line number>: PASSED:
16738 CHECK( Catch::replaceInPlace(letters, "a", "z") )
16739 with expansion:
16740 true
16741
16742 StringManip.tests.cpp:<line number>: PASSED:
16743 CHECK( letters == "zbcdefcg" )
16744 with expansion:
16745 "zbcdefcg" == "zbcdefcg"
16746
16747 -------------------------------------------------------------------------------
16748 replaceInPlace
16749 replace last char
16750 -------------------------------------------------------------------------------
16751 StringManip.tests.cpp:<line number>
16752 ...............................................................................
16753
16754 StringManip.tests.cpp:<line number>: PASSED:
16755 CHECK( Catch::replaceInPlace(letters, "g", "z") )
16756 with expansion:
16757 true
16758
16759 StringManip.tests.cpp:<line number>: PASSED:
16760 CHECK( letters == "abcdefcz" )
16761 with expansion:
16762 "abcdefcz" == "abcdefcz"
16763
16764 -------------------------------------------------------------------------------
16765 replaceInPlace
16766 replace all chars
16767 -------------------------------------------------------------------------------
16768 StringManip.tests.cpp:<line number>
16769 ...............................................................................
16770
16771 StringManip.tests.cpp:<line number>: PASSED:
16772 CHECK( Catch::replaceInPlace(letters, letters, "replaced") )
16773 with expansion:
16774 true
16775
16776 StringManip.tests.cpp:<line number>: PASSED:
16777 CHECK( letters == "replaced" )
16778 with expansion:
16779 "replaced" == "replaced"
16780
16781 -------------------------------------------------------------------------------
16782 replaceInPlace
16783 replace no chars
16784 -------------------------------------------------------------------------------
16785 StringManip.tests.cpp:<line number>
16786 ...............................................................................
16787
16788 StringManip.tests.cpp:<line number>: PASSED:
16789 CHECK_FALSE( Catch::replaceInPlace(letters, "x", "z") )
16790 with expansion:
16791 !false
16792
16793 StringManip.tests.cpp:<line number>: PASSED:
16794 CHECK( letters == letters )
16795 with expansion:
16796 "abcdefcg" == "abcdefcg"
16797
16798 -------------------------------------------------------------------------------
16799 replaceInPlace
16800 escape '
16801 -------------------------------------------------------------------------------
16802 StringManip.tests.cpp:<line number>
16803 ...............................................................................
16804
16805 StringManip.tests.cpp:<line number>: PASSED:
16806 CHECK( Catch::replaceInPlace(s, "'", "|'") )
16807 with expansion:
16808 true
16809
16810 StringManip.tests.cpp:<line number>: PASSED:
16811 CHECK( s == "didn|'t" )
16812 with expansion:
16813 "didn|'t" == "didn|'t"
16814
16815 -------------------------------------------------------------------------------
16816 request an unknown %-starting stream fails
16817 -------------------------------------------------------------------------------
16818 Stream.tests.cpp:<line number>
16819 ...............................................................................
16820
16821 Stream.tests.cpp:<line number>: PASSED:
16822 REQUIRE_THROWS( Catch::makeStream( "%somestream" ) )
16823
16824 -------------------------------------------------------------------------------
16825 resolution
16826 -------------------------------------------------------------------------------
16827 InternalBenchmark.tests.cpp:<line number>
16828 ...............................................................................
16829
16830 InternalBenchmark.tests.cpp:<line number>: PASSED:
16831 REQUIRE( res.size() == count )
16832 with expansion:
16833 10 == 10
16834
16835 InternalBenchmark.tests.cpp:<line number>: PASSED:
16836 REQUIRE( res[i] == rate )
16837 with expansion:
16838 1000.0 == 1000 (0x<hex digits>)
16839
16840 InternalBenchmark.tests.cpp:<line number>: PASSED:
16841 REQUIRE( res[i] == rate )
16842 with expansion:
16843 1000.0 == 1000 (0x<hex digits>)
16844
16845 InternalBenchmark.tests.cpp:<line number>: PASSED:
16846 REQUIRE( res[i] == rate )
16847 with expansion:
16848 1000.0 == 1000 (0x<hex digits>)
16849
16850 InternalBenchmark.tests.cpp:<line number>: PASSED:
16851 REQUIRE( res[i] == rate )
16852 with expansion:
16853 1000.0 == 1000 (0x<hex digits>)
16854
16855 InternalBenchmark.tests.cpp:<line number>: PASSED:
16856 REQUIRE( res[i] == rate )
16857 with expansion:
16858 1000.0 == 1000 (0x<hex digits>)
16859
16860 InternalBenchmark.tests.cpp:<line number>: PASSED:
16861 REQUIRE( res[i] == rate )
16862 with expansion:
16863 1000.0 == 1000 (0x<hex digits>)
16864
16865 InternalBenchmark.tests.cpp:<line number>: PASSED:
16866 REQUIRE( res[i] == rate )
16867 with expansion:
16868 1000.0 == 1000 (0x<hex digits>)
16869
16870 InternalBenchmark.tests.cpp:<line number>: PASSED:
16871 REQUIRE( res[i] == rate )
16872 with expansion:
16873 1000.0 == 1000 (0x<hex digits>)
16874
16875 InternalBenchmark.tests.cpp:<line number>: PASSED:
16876 REQUIRE( res[i] == rate )
16877 with expansion:
16878 1000.0 == 1000 (0x<hex digits>)
16879
16880 -------------------------------------------------------------------------------
16881 run_for_at_least, chronometer
16882 -------------------------------------------------------------------------------
16883 InternalBenchmark.tests.cpp:<line number>
16884 ...............................................................................
16885
16886 InternalBenchmark.tests.cpp:<line number>: PASSED:
16887 CHECK( meter.runs() >= old_runs )
16888 with expansion:
16889 1 >= 1
16890
16891 InternalBenchmark.tests.cpp:<line number>: PASSED:
16892 CHECK( meter.runs() >= old_runs )
16893 with expansion:
16894 2 >= 1
16895
16896 InternalBenchmark.tests.cpp:<line number>: PASSED:
16897 CHECK( meter.runs() >= old_runs )
16898 with expansion:
16899 4 >= 2
16900
16901 InternalBenchmark.tests.cpp:<line number>: PASSED:
16902 CHECK( meter.runs() >= old_runs )
16903 with expansion:
16904 8 >= 4
16905
16906 InternalBenchmark.tests.cpp:<line number>: PASSED:
16907 CHECK( meter.runs() >= old_runs )
16908 with expansion:
16909 16 >= 8
16910
16911 InternalBenchmark.tests.cpp:<line number>: PASSED:
16912 CHECK( meter.runs() >= old_runs )
16913 with expansion:
16914 32 >= 16
16915
16916 InternalBenchmark.tests.cpp:<line number>: PASSED:
16917 CHECK( meter.runs() >= old_runs )
16918 with expansion:
16919 64 >= 32
16920
16921 InternalBenchmark.tests.cpp:<line number>: PASSED:
16922 CHECK( meter.runs() >= old_runs )
16923 with expansion:
16924 128 >= 64
16925
16926 InternalBenchmark.tests.cpp:<line number>: PASSED:
16927 REQUIRE( Timing.elapsed >= time )
16928 with expansion:
16929 128 ns >= 100 ns
16930
16931 InternalBenchmark.tests.cpp:<line number>: PASSED:
16932 REQUIRE( Timing.result == Timing.iterations + 17 )
16933 with expansion:
16934 145 == 145
16935
16936 InternalBenchmark.tests.cpp:<line number>: PASSED:
16937 REQUIRE( Timing.iterations >= time.count() )
16938 with expansion:
16939 128 >= 100
16940
16941 -------------------------------------------------------------------------------
16942 run_for_at_least, int
16943 -------------------------------------------------------------------------------
16944 InternalBenchmark.tests.cpp:<line number>
16945 ...............................................................................
16946
16947 InternalBenchmark.tests.cpp:<line number>: PASSED:
16948 CHECK( x >= old_x )
16949 with expansion:
16950 1 >= 1
16951
16952 InternalBenchmark.tests.cpp:<line number>: PASSED:
16953 CHECK( x >= old_x )
16954 with expansion:
16955 2 >= 1
16956
16957 InternalBenchmark.tests.cpp:<line number>: PASSED:
16958 CHECK( x >= old_x )
16959 with expansion:
16960 4 >= 2
16961
16962 InternalBenchmark.tests.cpp:<line number>: PASSED:
16963 CHECK( x >= old_x )
16964 with expansion:
16965 8 >= 4
16966
16967 InternalBenchmark.tests.cpp:<line number>: PASSED:
16968 CHECK( x >= old_x )
16969 with expansion:
16970 16 >= 8
16971
16972 InternalBenchmark.tests.cpp:<line number>: PASSED:
16973 CHECK( x >= old_x )
16974 with expansion:
16975 32 >= 16
16976
16977 InternalBenchmark.tests.cpp:<line number>: PASSED:
16978 CHECK( x >= old_x )
16979 with expansion:
16980 64 >= 32
16981
16982 InternalBenchmark.tests.cpp:<line number>: PASSED:
16983 CHECK( x >= old_x )
16984 with expansion:
16985 128 >= 64
16986
16987 InternalBenchmark.tests.cpp:<line number>: PASSED:
16988 REQUIRE( Timing.elapsed >= time )
16989 with expansion:
16990 128 ns >= 100 ns
16991
16992 InternalBenchmark.tests.cpp:<line number>: PASSED:
16993 REQUIRE( Timing.result == Timing.iterations + 17 )
16994 with expansion:
16995 145 == 145
16996
16997 InternalBenchmark.tests.cpp:<line number>: PASSED:
16998 REQUIRE( Timing.iterations >= time.count() )
16999 with expansion:
17000 128 >= 100
17001
17002 -------------------------------------------------------------------------------
17003 second tag
17004 -------------------------------------------------------------------------------
17005 Misc.tests.cpp:<line number>
17006 ...............................................................................
17007
17008
17009 No assertions in test case 'second tag'
17010
17011 -------------------------------------------------------------------------------
17012 sections can be skipped dynamically at runtime
17013 not skipped
17014 -------------------------------------------------------------------------------
17015 Skip.tests.cpp:<line number>
17016 ...............................................................................
17017
17018 Skip.tests.cpp:<line number>: PASSED:
17019
17020 -------------------------------------------------------------------------------
17021 sections can be skipped dynamically at runtime
17022 skipped
17023 -------------------------------------------------------------------------------
17024 Skip.tests.cpp:<line number>
17025 ...............................................................................
17026
17027 Skip.tests.cpp:<line number>: SKIPPED:
17028
17029 -------------------------------------------------------------------------------
17030 sections can be skipped dynamically at runtime
17031 also not skipped
17032 -------------------------------------------------------------------------------
17033 Skip.tests.cpp:<line number>
17034 ...............................................................................
17035
17036 Skip.tests.cpp:<line number>: PASSED:
17037
17038 -------------------------------------------------------------------------------
17039 send a single char to INFO
17040 -------------------------------------------------------------------------------
17041 Misc.tests.cpp:<line number>
17042 ...............................................................................
17043
17044 Misc.tests.cpp:<line number>: FAILED:
17045 REQUIRE( false )
17046 with message:
17047 3
17048
17049 -------------------------------------------------------------------------------
17050 sends information to INFO
17051 -------------------------------------------------------------------------------
17052 Message.tests.cpp:<line number>
17053 ...............................................................................
17054
17055 Message.tests.cpp:<line number>: FAILED:
17056 REQUIRE( false )
17057 with messages:
17058 hi
17059 i := 7
17060
17061 -------------------------------------------------------------------------------
17062 shortened hide tags are split apart
17063 -------------------------------------------------------------------------------
17064 Tag.tests.cpp:<line number>
17065 ...............................................................................
17066
17067 Tag.tests.cpp:<line number>: PASSED:
17068 REQUIRE_THAT( testcase.tags, VectorContains( Tag( "magic-tag" ) ) && VectorContains( Tag( "."_catch_sr ) ) )
17069 with expansion:
17070 { {?}, {?} } ( Contains: {?} and Contains: {?} )
17071
17072 -------------------------------------------------------------------------------
17073 skipped tests can optionally provide a reason
17074 -------------------------------------------------------------------------------
17075 Skip.tests.cpp:<line number>
17076 ...............................................................................
17077
17078 Skip.tests.cpp:<line number>: SKIPPED:
17079 explicitly with message:
17080 skipping because answer = 43
17081
17082 -------------------------------------------------------------------------------
17083 splitString
17084 -------------------------------------------------------------------------------
17085 StringManip.tests.cpp:<line number>
17086 ...............................................................................
17087
17088 StringManip.tests.cpp:<line number>: PASSED:
17089 CHECK_THAT( splitStringRef("", ','), Equals(std::vector<StringRef>()) )
17090 with expansion:
17091 { } Equals: { }
17092
17093 StringManip.tests.cpp:<line number>: PASSED:
17094 CHECK_THAT( splitStringRef("abc", ','), Equals(std::vector<StringRef>{"abc"}) )
17095 with expansion:
17096 { abc } Equals: { abc }
17097
17098 StringManip.tests.cpp:<line number>: PASSED:
17099 CHECK_THAT( splitStringRef("abc,def", ','), Equals(std::vector<StringRef>{"abc", "def"}) )
17100 with expansion:
17101 { abc, def } Equals: { abc, def }
17102
17103 -------------------------------------------------------------------------------
17104 stacks unscoped info in loops
17105 -------------------------------------------------------------------------------
17106 Message.tests.cpp:<line number>
17107 ...............................................................................
17108
17109 Message.tests.cpp:<line number>: FAILED:
17110 CHECK( false )
17111 with messages:
17112 Count 1 to 3...
17113 1
17114 2
17115 3
17116
17117 Message.tests.cpp:<line number>: FAILED:
17118 CHECK( false )
17119 with messages:
17120 Count 4 to 6...
17121 4
17122 5
17123 6
17124
17125 -------------------------------------------------------------------------------
17126 startsWith
17127 -------------------------------------------------------------------------------
17128 StringManip.tests.cpp:<line number>
17129 ...............................................................................
17130
17131 StringManip.tests.cpp:<line number>: PASSED:
17132 CHECK_FALSE( startsWith("", 'c') )
17133 with expansion:
17134 !false
17135
17136 StringManip.tests.cpp:<line number>: PASSED:
17137 CHECK( startsWith(std::string("abc"), 'a') )
17138 with expansion:
17139 true
17140
17141 StringManip.tests.cpp:<line number>: PASSED:
17142 CHECK( startsWith("def"_catch_sr, 'd') )
17143 with expansion:
17144 true
17145
17146 -------------------------------------------------------------------------------
17147 std::map is convertible string
17148 empty
17149 -------------------------------------------------------------------------------
17150 ToStringGeneral.tests.cpp:<line number>
17151 ...............................................................................
17152
17153 ToStringGeneral.tests.cpp:<line number>: PASSED:
17154 REQUIRE( Catch::Detail::stringify( emptyMap ) == "{ }" )
17155 with expansion:
17156 "{ }" == "{ }"
17157
17158 -------------------------------------------------------------------------------
17159 std::map is convertible string
17160 single item
17161 -------------------------------------------------------------------------------
17162 ToStringGeneral.tests.cpp:<line number>
17163 ...............................................................................
17164
17165 ToStringGeneral.tests.cpp:<line number>: PASSED:
17166 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" )
17167 with expansion:
17168 "{ { "one", 1 } }" == "{ { "one", 1 } }"
17169
17170 -------------------------------------------------------------------------------
17171 std::map is convertible string
17172 several items
17173 -------------------------------------------------------------------------------
17174 ToStringGeneral.tests.cpp:<line number>
17175 ...............................................................................
17176
17177 ToStringGeneral.tests.cpp:<line number>: PASSED:
17178 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" )
17179 with expansion:
17180 "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
17181 ==
17182 "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
17183
17184 -------------------------------------------------------------------------------
17185 std::pair<int,const std::string> -> toString
17186 -------------------------------------------------------------------------------
17187 ToStringPair.tests.cpp:<line number>
17188 ...............................................................................
17189
17190 ToStringPair.tests.cpp:<line number>: PASSED:
17191 REQUIRE( ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" )
17192 with expansion:
17193 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
17194
17195 -------------------------------------------------------------------------------
17196 std::pair<int,std::string> -> toString
17197 -------------------------------------------------------------------------------
17198 ToStringPair.tests.cpp:<line number>
17199 ...............................................................................
17200
17201 ToStringPair.tests.cpp:<line number>: PASSED:
17202 REQUIRE( ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" )
17203 with expansion:
17204 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
17205
17206 -------------------------------------------------------------------------------
17207 std::set is convertible string
17208 empty
17209 -------------------------------------------------------------------------------
17210 ToStringGeneral.tests.cpp:<line number>
17211 ...............................................................................
17212
17213 ToStringGeneral.tests.cpp:<line number>: PASSED:
17214 REQUIRE( Catch::Detail::stringify( emptySet ) == "{ }" )
17215 with expansion:
17216 "{ }" == "{ }"
17217
17218 -------------------------------------------------------------------------------
17219 std::set is convertible string
17220 single item
17221 -------------------------------------------------------------------------------
17222 ToStringGeneral.tests.cpp:<line number>
17223 ...............................................................................
17224
17225 ToStringGeneral.tests.cpp:<line number>: PASSED:
17226 REQUIRE( Catch::Detail::stringify( set ) == "{ \"one\" }" )
17227 with expansion:
17228 "{ "one" }" == "{ "one" }"
17229
17230 -------------------------------------------------------------------------------
17231 std::set is convertible string
17232 several items
17233 -------------------------------------------------------------------------------
17234 ToStringGeneral.tests.cpp:<line number>
17235 ...............................................................................
17236
17237 ToStringGeneral.tests.cpp:<line number>: PASSED:
17238 REQUIRE( Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" )
17239 with expansion:
17240 "{ "abc", "def", "ghi" }"
17241 ==
17242 "{ "abc", "def", "ghi" }"
17243
17244 -------------------------------------------------------------------------------
17245 std::vector<std::pair<std::string,int> > -> toString
17246 -------------------------------------------------------------------------------
17247 ToStringPair.tests.cpp:<line number>
17248 ...............................................................................
17249
17250 ToStringPair.tests.cpp:<line number>: PASSED:
17251 REQUIRE( ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" )
17252 with expansion:
17253 "{ { "green", 55 } }"
17254 ==
17255 "{ { "green", 55 } }"
17256
17257 -------------------------------------------------------------------------------
17258 stdout and stderr streams have %-starting name
17259 -------------------------------------------------------------------------------
17260 Stream.tests.cpp:<line number>
17261 ...............................................................................
17262
17263 Stream.tests.cpp:<line number>: PASSED:
17264 REQUIRE( Catch::makeStream( "%stderr" )->isConsole() )
17265 with expansion:
17266 true
17267
17268 Stream.tests.cpp:<line number>: PASSED:
17269 REQUIRE( Catch::makeStream( "%stdout" )->isConsole() )
17270 with expansion:
17271 true
17272
17273 -------------------------------------------------------------------------------
17274 stringify ranges
17275 -------------------------------------------------------------------------------
17276 ToStringWhich.tests.cpp:<line number>
17277 ...............................................................................
17278
17279 ToStringWhich.tests.cpp:<line number>: PASSED:
17280 REQUIRE( ::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)" )
17281 with expansion:
17282 "op<<(streamable_range)"
17283 ==
17284 "op<<(streamable_range)"
17285
17286 ToStringWhich.tests.cpp:<line number>: PASSED:
17287 REQUIRE( ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)" )
17288 with expansion:
17289 "stringmaker(streamable_range)"
17290 ==
17291 "stringmaker(streamable_range)"
17292
17293 ToStringWhich.tests.cpp:<line number>: PASSED:
17294 REQUIRE( ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }" )
17295 with expansion:
17296 "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
17297
17298 ToStringWhich.tests.cpp:<line number>: PASSED:
17299 REQUIRE( ::Catch::Detail::stringify(disabled_range{}) == "{?}" )
17300 with expansion:
17301 "{?}" == "{?}"
17302
17303 -------------------------------------------------------------------------------
17304 stringify( has_maker )
17305 -------------------------------------------------------------------------------
17306 ToStringWhich.tests.cpp:<line number>
17307 ...............................................................................
17308
17309 ToStringWhich.tests.cpp:<line number>: PASSED:
17310 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" )
17311 with expansion:
17312 "StringMaker<has_maker>"
17313 ==
17314 "StringMaker<has_maker>"
17315
17316 -------------------------------------------------------------------------------
17317 stringify( has_maker_and_operator )
17318 -------------------------------------------------------------------------------
17319 ToStringWhich.tests.cpp:<line number>
17320 ...............................................................................
17321
17322 ToStringWhich.tests.cpp:<line number>: PASSED:
17323 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" )
17324 with expansion:
17325 "StringMaker<has_maker_and_operator>"
17326 ==
17327 "StringMaker<has_maker_and_operator>"
17328
17329 -------------------------------------------------------------------------------
17330 stringify( has_neither )
17331 -------------------------------------------------------------------------------
17332 ToStringWhich.tests.cpp:<line number>
17333 ...............................................................................
17334
17335 ToStringWhich.tests.cpp:<line number>: PASSED:
17336 REQUIRE( ::Catch::Detail::stringify(item) == "{?}" )
17337 with expansion:
17338 "{?}" == "{?}"
17339
17340 -------------------------------------------------------------------------------
17341 stringify( has_operator )
17342 -------------------------------------------------------------------------------
17343 ToStringWhich.tests.cpp:<line number>
17344 ...............................................................................
17345
17346 ToStringWhich.tests.cpp:<line number>: PASSED:
17347 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" )
17348 with expansion:
17349 "operator<<( has_operator )"
17350 ==
17351 "operator<<( has_operator )"
17352
17353 -------------------------------------------------------------------------------
17354 stringify( has_template_operator )
17355 -------------------------------------------------------------------------------
17356 ToStringWhich.tests.cpp:<line number>
17357 ...............................................................................
17358
17359 ToStringWhich.tests.cpp:<line number>: PASSED:
17360 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" )
17361 with expansion:
17362 "operator<<( has_template_operator )"
17363 ==
17364 "operator<<( has_template_operator )"
17365
17366 -------------------------------------------------------------------------------
17367 stringify( vectors<has_maker> )
17368 -------------------------------------------------------------------------------
17369 ToStringWhich.tests.cpp:<line number>
17370 ...............................................................................
17371
17372 ToStringWhich.tests.cpp:<line number>: PASSED:
17373 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" )
17374 with expansion:
17375 "{ StringMaker<has_maker> }"
17376 ==
17377 "{ StringMaker<has_maker> }"
17378
17379 -------------------------------------------------------------------------------
17380 stringify( vectors<has_maker_and_operator> )
17381 -------------------------------------------------------------------------------
17382 ToStringWhich.tests.cpp:<line number>
17383 ...............................................................................
17384
17385 ToStringWhich.tests.cpp:<line number>: PASSED:
17386 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" )
17387 with expansion:
17388 "{ StringMaker<has_maker_and_operator> }"
17389 ==
17390 "{ StringMaker<has_maker_and_operator> }"
17391
17392 -------------------------------------------------------------------------------
17393 stringify( vectors<has_operator> )
17394 -------------------------------------------------------------------------------
17395 ToStringWhich.tests.cpp:<line number>
17396 ...............................................................................
17397
17398 ToStringWhich.tests.cpp:<line number>: PASSED:
17399 REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" )
17400 with expansion:
17401 "{ operator<<( has_operator ) }"
17402 ==
17403 "{ operator<<( has_operator ) }"
17404
17405 -------------------------------------------------------------------------------
17406 strlen3
17407 -------------------------------------------------------------------------------
17408 Generators.tests.cpp:<line number>
17409 ...............................................................................
17410
17411 Generators.tests.cpp:<line number>: PASSED:
17412 REQUIRE( data.str.size() == data.len )
17413 with expansion:
17414 3 == 3
17415
17416 -------------------------------------------------------------------------------
17417 strlen3
17418 -------------------------------------------------------------------------------
17419 Generators.tests.cpp:<line number>
17420 ...............................................................................
17421
17422 Generators.tests.cpp:<line number>: PASSED:
17423 REQUIRE( data.str.size() == data.len )
17424 with expansion:
17425 3 == 3
17426
17427 -------------------------------------------------------------------------------
17428 strlen3
17429 -------------------------------------------------------------------------------
17430 Generators.tests.cpp:<line number>
17431 ...............................................................................
17432
17433 Generators.tests.cpp:<line number>: PASSED:
17434 REQUIRE( data.str.size() == data.len )
17435 with expansion:
17436 5 == 5
17437
17438 -------------------------------------------------------------------------------
17439 strlen3
17440 -------------------------------------------------------------------------------
17441 Generators.tests.cpp:<line number>
17442 ...............................................................................
17443
17444 Generators.tests.cpp:<line number>: PASSED:
17445 REQUIRE( data.str.size() == data.len )
17446 with expansion:
17447 4 == 4
17448
17449 -------------------------------------------------------------------------------
17450 tables
17451 -------------------------------------------------------------------------------
17452 Generators.tests.cpp:<line number>
17453 ...............................................................................
17454
17455 Generators.tests.cpp:<line number>: PASSED:
17456 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
17457 with expansion:
17458 5 == 5
17459
17460 -------------------------------------------------------------------------------
17461 tables
17462 -------------------------------------------------------------------------------
17463 Generators.tests.cpp:<line number>
17464 ...............................................................................
17465
17466 Generators.tests.cpp:<line number>: PASSED:
17467 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
17468 with expansion:
17469 6 == 6
17470
17471 -------------------------------------------------------------------------------
17472 tables
17473 -------------------------------------------------------------------------------
17474 Generators.tests.cpp:<line number>
17475 ...............................................................................
17476
17477 Generators.tests.cpp:<line number>: PASSED:
17478 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
17479 with expansion:
17480 5 == 5
17481
17482 -------------------------------------------------------------------------------
17483 tables
17484 -------------------------------------------------------------------------------
17485 Generators.tests.cpp:<line number>
17486 ...............................................................................
17487
17488 Generators.tests.cpp:<line number>: PASSED:
17489 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
17490 with expansion:
17491 6 == 6
17492
17493 -------------------------------------------------------------------------------
17494 tags with dots in later positions are not parsed as hidden
17495 -------------------------------------------------------------------------------
17496 Tag.tests.cpp:<line number>
17497 ...............................................................................
17498
17499 Tag.tests.cpp:<line number>: PASSED:
17500 REQUIRE( testcase.tags.size() == 1 )
17501 with expansion:
17502 1 == 1
17503
17504 Tag.tests.cpp:<line number>: PASSED:
17505 REQUIRE( testcase.tags[0].original == "magic.tag"_catch_sr )
17506 with expansion:
17507 magic.tag == magic.tag
17508
17509 -------------------------------------------------------------------------------
17510 tests can be skipped dynamically at runtime
17511 -------------------------------------------------------------------------------
17512 Skip.tests.cpp:<line number>
17513 ...............................................................................
17514
17515 Skip.tests.cpp:<line number>: SKIPPED:
17516
17517 -------------------------------------------------------------------------------
17518 thrown std::strings are translated
17519 -------------------------------------------------------------------------------
17520 Exception.tests.cpp:<line number>
17521 ...............................................................................
17522
17523 Exception.tests.cpp:<line number>: FAILED:
17524 due to unexpected exception with message:
17525 Why would you throw a std::string?
17526
17527 -------------------------------------------------------------------------------
17528 toString on const wchar_t const pointer returns the string contents
17529 -------------------------------------------------------------------------------
17530 Misc.tests.cpp:<line number>
17531 ...............................................................................
17532
17533 Misc.tests.cpp:<line number>: PASSED:
17534 CHECK( result == "\"wide load\"" )
17535 with expansion:
17536 ""wide load"" == ""wide load""
17537
17538 -------------------------------------------------------------------------------
17539 toString on const wchar_t pointer returns the string contents
17540 -------------------------------------------------------------------------------
17541 Misc.tests.cpp:<line number>
17542 ...............................................................................
17543
17544 Misc.tests.cpp:<line number>: PASSED:
17545 CHECK( result == "\"wide load\"" )
17546 with expansion:
17547 ""wide load"" == ""wide load""
17548
17549 -------------------------------------------------------------------------------
17550 toString on wchar_t const pointer returns the string contents
17551 -------------------------------------------------------------------------------
17552 Misc.tests.cpp:<line number>
17553 ...............................................................................
17554
17555 Misc.tests.cpp:<line number>: PASSED:
17556 CHECK( result == "\"wide load\"" )
17557 with expansion:
17558 ""wide load"" == ""wide load""
17559
17560 -------------------------------------------------------------------------------
17561 toString on wchar_t returns the string contents
17562 -------------------------------------------------------------------------------
17563 Misc.tests.cpp:<line number>
17564 ...............................................................................
17565
17566 Misc.tests.cpp:<line number>: PASSED:
17567 CHECK( result == "\"wide load\"" )
17568 with expansion:
17569 ""wide load"" == ""wide load""
17570
17571 -------------------------------------------------------------------------------
17572 toString(enum class w/operator<<)
17573 -------------------------------------------------------------------------------
17574 EnumToString.tests.cpp:<line number>
17575 ...............................................................................
17576
17577 EnumToString.tests.cpp:<line number>: PASSED:
17578 CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" )
17579 with expansion:
17580 "E2/V0" == "E2/V0"
17581
17582 EnumToString.tests.cpp:<line number>: PASSED:
17583 CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" )
17584 with expansion:
17585 "E2/V1" == "E2/V1"
17586
17587 EnumToString.tests.cpp:<line number>: PASSED:
17588 CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" )
17589 with expansion:
17590 "Unknown enum value 10"
17591 ==
17592 "Unknown enum value 10"
17593
17594 -------------------------------------------------------------------------------
17595 toString(enum class)
17596 -------------------------------------------------------------------------------
17597 EnumToString.tests.cpp:<line number>
17598 ...............................................................................
17599
17600 EnumToString.tests.cpp:<line number>: PASSED:
17601 CHECK( ::Catch::Detail::stringify(e0) == "0" )
17602 with expansion:
17603 "0" == "0"
17604
17605 EnumToString.tests.cpp:<line number>: PASSED:
17606 CHECK( ::Catch::Detail::stringify(e1) == "1" )
17607 with expansion:
17608 "1" == "1"
17609
17610 -------------------------------------------------------------------------------
17611 toString(enum w/operator<<)
17612 -------------------------------------------------------------------------------
17613 EnumToString.tests.cpp:<line number>
17614 ...............................................................................
17615
17616 EnumToString.tests.cpp:<line number>: PASSED:
17617 CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" )
17618 with expansion:
17619 "E2{0}" == "E2{0}"
17620
17621 EnumToString.tests.cpp:<line number>: PASSED:
17622 CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" )
17623 with expansion:
17624 "E2{1}" == "E2{1}"
17625
17626 -------------------------------------------------------------------------------
17627 toString(enum)
17628 -------------------------------------------------------------------------------
17629 EnumToString.tests.cpp:<line number>
17630 ...............................................................................
17631
17632 EnumToString.tests.cpp:<line number>: PASSED:
17633 CHECK( ::Catch::Detail::stringify(e0) == "0" )
17634 with expansion:
17635 "0" == "0"
17636
17637 EnumToString.tests.cpp:<line number>: PASSED:
17638 CHECK( ::Catch::Detail::stringify(e1) == "1" )
17639 with expansion:
17640 "1" == "1"
17641
17642 -------------------------------------------------------------------------------
17643 tuple<>
17644 -------------------------------------------------------------------------------
17645 ToStringTuple.tests.cpp:<line number>
17646 ...............................................................................
17647
17648 ToStringTuple.tests.cpp:<line number>: PASSED:
17649 CHECK( "{ }" == ::Catch::Detail::stringify(type{}) )
17650 with expansion:
17651 "{ }" == "{ }"
17652
17653 ToStringTuple.tests.cpp:<line number>: PASSED:
17654 CHECK( "{ }" == ::Catch::Detail::stringify(value) )
17655 with expansion:
17656 "{ }" == "{ }"
17657
17658 -------------------------------------------------------------------------------
17659 tuple<float,int>
17660 -------------------------------------------------------------------------------
17661 ToStringTuple.tests.cpp:<line number>
17662 ...............................................................................
17663
17664 ToStringTuple.tests.cpp:<line number>: PASSED:
17665 CHECK( "1.2f" == ::Catch::Detail::stringify(float(1.2)) )
17666 with expansion:
17667 "1.2f" == "1.2f"
17668
17669 ToStringTuple.tests.cpp:<line number>: PASSED:
17670 CHECK( "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) )
17671 with expansion:
17672 "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
17673
17674 -------------------------------------------------------------------------------
17675 tuple<int>
17676 -------------------------------------------------------------------------------
17677 ToStringTuple.tests.cpp:<line number>
17678 ...............................................................................
17679
17680 ToStringTuple.tests.cpp:<line number>: PASSED:
17681 CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) )
17682 with expansion:
17683 "{ 0 }" == "{ 0 }"
17684
17685 -------------------------------------------------------------------------------
17686 tuple<string,string>
17687 -------------------------------------------------------------------------------
17688 ToStringTuple.tests.cpp:<line number>
17689 ...............................................................................
17690
17691 ToStringTuple.tests.cpp:<line number>: PASSED:
17692 CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) )
17693 with expansion:
17694 "{ "hello", "world" }"
17695 ==
17696 "{ "hello", "world" }"
17697
17698 -------------------------------------------------------------------------------
17699 tuple<tuple<int>,tuple<>,float>
17700 -------------------------------------------------------------------------------
17701 ToStringTuple.tests.cpp:<line number>
17702 ...............................................................................
17703
17704 ToStringTuple.tests.cpp:<line number>: PASSED:
17705 CHECK( "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) )
17706 with expansion:
17707 "{ { 42 }, { }, 1.2f }"
17708 ==
17709 "{ { 42 }, { }, 1.2f }"
17710
17711 -------------------------------------------------------------------------------
17712 uniform samples
17713 -------------------------------------------------------------------------------
17714 InternalBenchmark.tests.cpp:<line number>
17715 ...............................................................................
17716
17717 InternalBenchmark.tests.cpp:<line number>: PASSED:
17718 CHECK( e.point == 23 )
17719 with expansion:
17720 23.0 == 23
17721
17722 InternalBenchmark.tests.cpp:<line number>: PASSED:
17723 CHECK( e.upper_bound == 23 )
17724 with expansion:
17725 23.0 == 23
17726
17727 InternalBenchmark.tests.cpp:<line number>: PASSED:
17728 CHECK( e.lower_bound == 23 )
17729 with expansion:
17730 23.0 == 23
17731
17732 InternalBenchmark.tests.cpp:<line number>: PASSED:
17733 CHECK( e.confidence_interval == 0.95 )
17734 with expansion:
17735 0.95 == 0.95
17736
17737 -------------------------------------------------------------------------------
17738 unique_ptr reimplementation: basic functionality
17739 Default constructed unique_ptr is empty
17740 -------------------------------------------------------------------------------
17741 UniquePtr.tests.cpp:<line number>
17742 ...............................................................................
17743
17744 UniquePtr.tests.cpp:<line number>: PASSED:
17745 REQUIRE_FALSE( ptr )
17746 with expansion:
17747 !{?}
17748
17749 UniquePtr.tests.cpp:<line number>: PASSED:
17750 REQUIRE( ptr.get() == 0 )
17751 with expansion:
17752 0 == 0
17753
17754 -------------------------------------------------------------------------------
17755 unique_ptr reimplementation: basic functionality
17756 Take ownership of allocation
17757 -------------------------------------------------------------------------------
17758 UniquePtr.tests.cpp:<line number>
17759 ...............................................................................
17760
17761 UniquePtr.tests.cpp:<line number>: PASSED:
17762 REQUIRE( ptr )
17763 with expansion:
17764 {?}
17765
17766 UniquePtr.tests.cpp:<line number>: PASSED:
17767 REQUIRE( *ptr == 0 )
17768 with expansion:
17769 0 == 0
17770
17771 UniquePtr.tests.cpp:<line number>: PASSED:
17772 REQUIRE( ptr.get() == naked_ptr )
17773 with expansion:
17774 0x<hex digits> == 0x<hex digits>
17775
17776 -------------------------------------------------------------------------------
17777 unique_ptr reimplementation: basic functionality
17778 Take ownership of allocation
17779 Plain reset deallocates
17780 -------------------------------------------------------------------------------
17781 UniquePtr.tests.cpp:<line number>
17782 ...............................................................................
17783
17784 UniquePtr.tests.cpp:<line number>: PASSED:
17785 REQUIRE_FALSE( ptr )
17786 with expansion:
17787 !{?}
17788
17789 UniquePtr.tests.cpp:<line number>: PASSED:
17790 REQUIRE( ptr.get() == 0 )
17791 with expansion:
17792 0 == 0
17793
17794 -------------------------------------------------------------------------------
17795 unique_ptr reimplementation: basic functionality
17796 Take ownership of allocation
17797 -------------------------------------------------------------------------------
17798 UniquePtr.tests.cpp:<line number>
17799 ...............................................................................
17800
17801 UniquePtr.tests.cpp:<line number>: PASSED:
17802 REQUIRE( ptr )
17803 with expansion:
17804 {?}
17805
17806 UniquePtr.tests.cpp:<line number>: PASSED:
17807 REQUIRE( *ptr == 0 )
17808 with expansion:
17809 0 == 0
17810
17811 UniquePtr.tests.cpp:<line number>: PASSED:
17812 REQUIRE( ptr.get() == naked_ptr )
17813 with expansion:
17814 0x<hex digits> == 0x<hex digits>
17815
17816 -------------------------------------------------------------------------------
17817 unique_ptr reimplementation: basic functionality
17818 Take ownership of allocation
17819 Reset replaces ownership
17820 -------------------------------------------------------------------------------
17821 UniquePtr.tests.cpp:<line number>
17822 ...............................................................................
17823
17824 UniquePtr.tests.cpp:<line number>: PASSED:
17825 REQUIRE( ptr )
17826 with expansion:
17827 {?}
17828
17829 UniquePtr.tests.cpp:<line number>: PASSED:
17830 REQUIRE( ptr.get() != 0 )
17831 with expansion:
17832 0x<hex digits> != 0
17833
17834 UniquePtr.tests.cpp:<line number>: PASSED:
17835 REQUIRE( *ptr == 2 )
17836 with expansion:
17837 2 == 2
17838
17839 -------------------------------------------------------------------------------
17840 unique_ptr reimplementation: basic functionality
17841 Release releases ownership
17842 -------------------------------------------------------------------------------
17843 UniquePtr.tests.cpp:<line number>
17844 ...............................................................................
17845
17846 UniquePtr.tests.cpp:<line number>: PASSED:
17847 CHECK_FALSE( ptr )
17848 with expansion:
17849 !{?}
17850
17851 UniquePtr.tests.cpp:<line number>: PASSED:
17852 CHECK( ptr.get() == 0 )
17853 with expansion:
17854 0 == 0
17855
17856 -------------------------------------------------------------------------------
17857 unique_ptr reimplementation: basic functionality
17858 Move constructor
17859 -------------------------------------------------------------------------------
17860 UniquePtr.tests.cpp:<line number>
17861 ...............................................................................
17862
17863 UniquePtr.tests.cpp:<line number>: PASSED:
17864 REQUIRE_FALSE( ptr1 )
17865 with expansion:
17866 !{?}
17867
17868 UniquePtr.tests.cpp:<line number>: PASSED:
17869 REQUIRE( ptr2 )
17870 with expansion:
17871 {?}
17872
17873 UniquePtr.tests.cpp:<line number>: PASSED:
17874 REQUIRE( *ptr2 == 1 )
17875 with expansion:
17876 1 == 1
17877
17878 -------------------------------------------------------------------------------
17879 unique_ptr reimplementation: basic functionality
17880 Move assignment
17881 -------------------------------------------------------------------------------
17882 UniquePtr.tests.cpp:<line number>
17883 ...............................................................................
17884
17885 UniquePtr.tests.cpp:<line number>: PASSED:
17886 REQUIRE_FALSE( ptr2 )
17887 with expansion:
17888 !{?}
17889
17890 UniquePtr.tests.cpp:<line number>: PASSED:
17891 REQUIRE( ptr1 )
17892 with expansion:
17893 {?}
17894
17895 UniquePtr.tests.cpp:<line number>: PASSED:
17896 REQUIRE( *ptr1 == 2 )
17897 with expansion:
17898 2 == 2
17899
17900 -------------------------------------------------------------------------------
17901 unique_ptr reimplementation: basic functionality
17902 free swap
17903 -------------------------------------------------------------------------------
17904 UniquePtr.tests.cpp:<line number>
17905 ...............................................................................
17906
17907 UniquePtr.tests.cpp:<line number>: PASSED:
17908 REQUIRE( *ptr1 == 2 )
17909 with expansion:
17910 2 == 2
17911
17912 UniquePtr.tests.cpp:<line number>: PASSED:
17913 REQUIRE( *ptr2 == 1 )
17914 with expansion:
17915 1 == 1
17916
17917 -------------------------------------------------------------------------------
17918 vec<vec<string,alloc>> -> toString
17919 -------------------------------------------------------------------------------
17920 ToStringVector.tests.cpp:<line number>
17921 ...............................................................................
17922
17923 ToStringVector.tests.cpp:<line number>: PASSED:
17924 REQUIRE( ::Catch::Detail::stringify(v) == "{ }" )
17925 with expansion:
17926 "{ }" == "{ }"
17927
17928 ToStringVector.tests.cpp:<line number>: PASSED:
17929 REQUIRE( ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" )
17930 with expansion:
17931 "{ { "hello" }, { "world" } }"
17932 ==
17933 "{ { "hello" }, { "world" } }"
17934
17935 -------------------------------------------------------------------------------
17936 vector<bool> -> toString
17937 -------------------------------------------------------------------------------
17938 ToStringVector.tests.cpp:<line number>
17939 ...............................................................................
17940
17941 ToStringVector.tests.cpp:<line number>: PASSED:
17942 REQUIRE( ::Catch::Detail::stringify(bools) == "{ }" )
17943 with expansion:
17944 "{ }" == "{ }"
17945
17946 ToStringVector.tests.cpp:<line number>: PASSED:
17947 REQUIRE( ::Catch::Detail::stringify(bools) == "{ true }" )
17948 with expansion:
17949 "{ true }" == "{ true }"
17950
17951 ToStringVector.tests.cpp:<line number>: PASSED:
17952 REQUIRE( ::Catch::Detail::stringify(bools) == "{ true, false }" )
17953 with expansion:
17954 "{ true, false }" == "{ true, false }"
17955
17956 -------------------------------------------------------------------------------
17957 vector<int,allocator> -> toString
17958 -------------------------------------------------------------------------------
17959 ToStringVector.tests.cpp:<line number>
17960 ...............................................................................
17961
17962 ToStringVector.tests.cpp:<line number>: PASSED:
17963 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
17964 with expansion:
17965 "{ }" == "{ }"
17966
17967 ToStringVector.tests.cpp:<line number>: PASSED:
17968 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
17969 with expansion:
17970 "{ 42 }" == "{ 42 }"
17971
17972 ToStringVector.tests.cpp:<line number>: PASSED:
17973 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
17974 with expansion:
17975 "{ 42, 250 }" == "{ 42, 250 }"
17976
17977 -------------------------------------------------------------------------------
17978 vector<int> -> toString
17979 -------------------------------------------------------------------------------
17980 ToStringVector.tests.cpp:<line number>
17981 ...............................................................................
17982
17983 ToStringVector.tests.cpp:<line number>: PASSED:
17984 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
17985 with expansion:
17986 "{ }" == "{ }"
17987
17988 ToStringVector.tests.cpp:<line number>: PASSED:
17989 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
17990 with expansion:
17991 "{ 42 }" == "{ 42 }"
17992
17993 ToStringVector.tests.cpp:<line number>: PASSED:
17994 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
17995 with expansion:
17996 "{ 42, 250 }" == "{ 42, 250 }"
17997
17998 -------------------------------------------------------------------------------
17999 vector<string> -> toString
18000 -------------------------------------------------------------------------------
18001 ToStringVector.tests.cpp:<line number>
18002 ...............................................................................
18003
18004 ToStringVector.tests.cpp:<line number>: PASSED:
18005 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
18006 with expansion:
18007 "{ }" == "{ }"
18008
18009 ToStringVector.tests.cpp:<line number>: PASSED:
18010 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" )
18011 with expansion:
18012 "{ "hello" }" == "{ "hello" }"
18013
18014 ToStringVector.tests.cpp:<line number>: PASSED:
18015 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" )
18016 with expansion:
18017 "{ "hello", "world" }"
18018 ==
18019 "{ "hello", "world" }"
18020
18021 -------------------------------------------------------------------------------
18022 vectors can be sized and resized
18023 -------------------------------------------------------------------------------
18024 Misc.tests.cpp:<line number>
18025 ...............................................................................
18026
18027 Misc.tests.cpp:<line number>: PASSED:
18028 REQUIRE( v.size() == 5 )
18029 with expansion:
18030 5 == 5
18031
18032 Misc.tests.cpp:<line number>: PASSED:
18033 REQUIRE( v.capacity() >= 5 )
18034 with expansion:
18035 5 >= 5
18036
18037 -------------------------------------------------------------------------------
18038 vectors can be sized and resized
18039 resizing bigger changes size and capacity
18040 -------------------------------------------------------------------------------
18041 Misc.tests.cpp:<line number>
18042 ...............................................................................
18043
18044 Misc.tests.cpp:<line number>: PASSED:
18045 REQUIRE( v.size() == 10 )
18046 with expansion:
18047 10 == 10
18048
18049 Misc.tests.cpp:<line number>: PASSED:
18050 REQUIRE( v.capacity() >= 10 )
18051 with expansion:
18052 10 >= 10
18053
18054 -------------------------------------------------------------------------------
18055 vectors can be sized and resized
18056 -------------------------------------------------------------------------------
18057 Misc.tests.cpp:<line number>
18058 ...............................................................................
18059
18060 Misc.tests.cpp:<line number>: PASSED:
18061 REQUIRE( v.size() == 5 )
18062 with expansion:
18063 5 == 5
18064
18065 Misc.tests.cpp:<line number>: PASSED:
18066 REQUIRE( v.capacity() >= 5 )
18067 with expansion:
18068 5 >= 5
18069
18070 -------------------------------------------------------------------------------
18071 vectors can be sized and resized
18072 resizing smaller changes size but not capacity
18073 -------------------------------------------------------------------------------
18074 Misc.tests.cpp:<line number>
18075 ...............................................................................
18076
18077 Misc.tests.cpp:<line number>: PASSED:
18078 REQUIRE( v.size() == 0 )
18079 with expansion:
18080 0 == 0
18081
18082 Misc.tests.cpp:<line number>: PASSED:
18083 REQUIRE( v.capacity() >= 5 )
18084 with expansion:
18085 5 >= 5
18086
18087 -------------------------------------------------------------------------------
18088 vectors can be sized and resized
18089 resizing smaller changes size but not capacity
18090 We can use the 'swap trick' to reset the capacity
18091 -------------------------------------------------------------------------------
18092 Misc.tests.cpp:<line number>
18093 ...............................................................................
18094
18095 Misc.tests.cpp:<line number>: PASSED:
18096 REQUIRE( v.capacity() == 0 )
18097 with expansion:
18098 0 == 0
18099
18100 -------------------------------------------------------------------------------
18101 vectors can be sized and resized
18102 -------------------------------------------------------------------------------
18103 Misc.tests.cpp:<line number>
18104 ...............................................................................
18105
18106 Misc.tests.cpp:<line number>: PASSED:
18107 REQUIRE( v.size() == 5 )
18108 with expansion:
18109 5 == 5
18110
18111 Misc.tests.cpp:<line number>: PASSED:
18112 REQUIRE( v.capacity() >= 5 )
18113 with expansion:
18114 5 >= 5
18115
18116 -------------------------------------------------------------------------------
18117 vectors can be sized and resized
18118 reserving bigger changes capacity but not size
18119 -------------------------------------------------------------------------------
18120 Misc.tests.cpp:<line number>
18121 ...............................................................................
18122
18123 Misc.tests.cpp:<line number>: PASSED:
18124 REQUIRE( v.size() == 5 )
18125 with expansion:
18126 5 == 5
18127
18128 Misc.tests.cpp:<line number>: PASSED:
18129 REQUIRE( v.capacity() >= 10 )
18130 with expansion:
18131 10 >= 10
18132
18133 -------------------------------------------------------------------------------
18134 vectors can be sized and resized
18135 -------------------------------------------------------------------------------
18136 Misc.tests.cpp:<line number>
18137 ...............................................................................
18138
18139 Misc.tests.cpp:<line number>: PASSED:
18140 REQUIRE( v.size() == 5 )
18141 with expansion:
18142 5 == 5
18143
18144 Misc.tests.cpp:<line number>: PASSED:
18145 REQUIRE( v.capacity() >= 5 )
18146 with expansion:
18147 5 >= 5
18148
18149 -------------------------------------------------------------------------------
18150 vectors can be sized and resized
18151 reserving smaller does not change size or capacity
18152 -------------------------------------------------------------------------------
18153 Misc.tests.cpp:<line number>
18154 ...............................................................................
18155
18156 Misc.tests.cpp:<line number>: PASSED:
18157 REQUIRE( v.size() == 5 )
18158 with expansion:
18159 5 == 5
18160
18161 Misc.tests.cpp:<line number>: PASSED:
18162 REQUIRE( v.capacity() >= 5 )
18163 with expansion:
18164 5 >= 5
18165
18166 -------------------------------------------------------------------------------
18167 warmup
18168 -------------------------------------------------------------------------------
18169 InternalBenchmark.tests.cpp:<line number>
18170 ...............................................................................
18171
18172 InternalBenchmark.tests.cpp:<line number>: PASSED:
18173 REQUIRE( (iterations * rate) > Catch::Benchmark::Detail::warmup_time.count() )
18174 with expansion:
18175 160000000 (0x<hex digits>) > 100
18176
18177 InternalBenchmark.tests.cpp:<line number>: PASSED:
18178 REQUIRE( (end - start) > Catch::Benchmark::Detail::warmup_time )
18179 with expansion:
18180 310016000 ns > 100 ms
18181
18182 -------------------------------------------------------------------------------
18183 weighted_average_quantile
18184 -------------------------------------------------------------------------------
18185 InternalBenchmark.tests.cpp:<line number>
18186 ...............................................................................
18187
18188 InternalBenchmark.tests.cpp:<line number>: PASSED:
18189 REQUIRE( q1 == 14.5 )
18190 with expansion:
18191 14.5 == 14.5
18192
18193 InternalBenchmark.tests.cpp:<line number>: PASSED:
18194 REQUIRE( med == 18. )
18195 with expansion:
18196 18.0 == 18.0
18197
18198 InternalBenchmark.tests.cpp:<line number>: PASSED:
18199 REQUIRE( q3 == 23. )
18200 with expansion:
18201 23.0 == 23.0
18202
18203 -------------------------------------------------------------------------------
18204 xmlentitycheck
18205 embedded xml: <test>it should be possible to embed xml characters, such as <,
18206 " or &, or even whole <xml>documents</xml> within an attribute
18207 </test>
18208 -------------------------------------------------------------------------------
18209 Misc.tests.cpp:<line number>
18210 ...............................................................................
18211
18212 Misc.tests.cpp:<line number>: PASSED:
18213
18214 -------------------------------------------------------------------------------
18215 xmlentitycheck
18216 encoded chars: these should all be encoded: &&&"""<<<&"<<&"
18217 -------------------------------------------------------------------------------
18218 Misc.tests.cpp:<line number>
18219 ...............................................................................
18220
18221 Misc.tests.cpp:<line number>: PASSED:
18222
18223 ===============================================================================
18224 test cases: 409 | 308 passed | 84 failed | 6 skipped | 11 failed as expected
18225 assertions: 2225 | 2048 passed | 145 failed | 32 failed as expected
18226