Debian Codegraph @

3rdparty/catch2/tests/SelfTest/Baselines/console.sw.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 This would not be caught previously
144 Nor would this
145 -------------------------------------------------------------------------------
146 #1514: stderr/stdout is not captured in tests aborted by an exception
147 -------------------------------------------------------------------------------
148 Tricky.tests.cpp:<line number>
149 ...............................................................................
150
151 Tricky.tests.cpp:<line number>: FAILED:
152 explicitly with message:
153 1514
154
155 -------------------------------------------------------------------------------
156 #1548
157 -------------------------------------------------------------------------------
158 Compilation.tests.cpp:<line number>
159 ...............................................................................
160
161 Compilation.tests.cpp:<line number>: PASSED:
162 REQUIRE( std::is_same<TypeList<int>, TypeList<int>>::value )
163 with expansion:
164 true
165
166 -------------------------------------------------------------------------------
167 #1905 -- test spec parser properly clears internal state between compound tests
168 -------------------------------------------------------------------------------
169 TestSpec.tests.cpp:<line number>
170 ...............................................................................
171
172 TestSpec.tests.cpp:<line number>: PASSED:
173 REQUIRE( spec.matches(*fakeTestCase("spec . char")) )
174 with expansion:
175 true
176
177 TestSpec.tests.cpp:<line number>: PASSED:
178 REQUIRE( spec.matches(*fakeTestCase("spec , char")) )
179 with expansion:
180 true
181
182 TestSpec.tests.cpp:<line number>: PASSED:
183 REQUIRE_FALSE( spec.matches(*fakeTestCase(R"(spec \, char)")) )
184 with expansion:
185 !false
186
187 -------------------------------------------------------------------------------
188 #1912 -- test spec parser handles escaping
189 Various parentheses
190 -------------------------------------------------------------------------------
191 TestSpec.tests.cpp:<line number>
192 ...............................................................................
193
194 TestSpec.tests.cpp:<line number>: PASSED:
195 REQUIRE( spec.matches(*fakeTestCase(R"(spec {a} char)")) )
196 with expansion:
197 true
198
199 TestSpec.tests.cpp:<line number>: PASSED:
200 REQUIRE( spec.matches(*fakeTestCase(R"(spec [a] char)")) )
201 with expansion:
202 true
203
204 TestSpec.tests.cpp:<line number>: PASSED:
205 REQUIRE_FALSE( spec.matches(*fakeTestCase("differs but has similar tag", "[a]")) )
206 with expansion:
207 !false
208
209 -------------------------------------------------------------------------------
210 #1912 -- test spec parser handles escaping
211 backslash in test name
212 -------------------------------------------------------------------------------
213 TestSpec.tests.cpp:<line number>
214 ...............................................................................
215
216 TestSpec.tests.cpp:<line number>: PASSED:
217 REQUIRE( spec.matches(*fakeTestCase(R"(spec \ char)")) )
218 with expansion:
219 true
220
221 -------------------------------------------------------------------------------
222 #1913 - GENERATE inside a for loop should not keep recreating the generator
223 -------------------------------------------------------------------------------
224 Generators.tests.cpp:<line number>
225 ...............................................................................
226
227 Generators.tests.cpp:<line number>: PASSED:
228 REQUIRE( counter < 7 )
229 with expansion:
230 3 < 7
231
232 -------------------------------------------------------------------------------
233 #1913 - GENERATE inside a for loop should not keep recreating the generator
234 -------------------------------------------------------------------------------
235 Generators.tests.cpp:<line number>
236 ...............................................................................
237
238 Generators.tests.cpp:<line number>: PASSED:
239 REQUIRE( counter < 7 )
240 with expansion:
241 6 < 7
242
243 -------------------------------------------------------------------------------
244 #1913 - GENERATEs can share a line
245 -------------------------------------------------------------------------------
246 Generators.tests.cpp:<line number>
247 ...............................................................................
248
249 Generators.tests.cpp:<line number>: PASSED:
250 REQUIRE( i != j )
251 with expansion:
252 1 != 3
253
254 -------------------------------------------------------------------------------
255 #1913 - GENERATEs can share a line
256 -------------------------------------------------------------------------------
257 Generators.tests.cpp:<line number>
258 ...............................................................................
259
260 Generators.tests.cpp:<line number>: PASSED:
261 REQUIRE( i != j )
262 with expansion:
263 1 != 4
264
265 -------------------------------------------------------------------------------
266 #1913 - GENERATEs can share a line
267 -------------------------------------------------------------------------------
268 Generators.tests.cpp:<line number>
269 ...............................................................................
270
271 Generators.tests.cpp:<line number>: PASSED:
272 REQUIRE( i != j )
273 with expansion:
274 2 != 3
275
276 -------------------------------------------------------------------------------
277 #1913 - GENERATEs can share a line
278 -------------------------------------------------------------------------------
279 Generators.tests.cpp:<line number>
280 ...............................................................................
281
282 Generators.tests.cpp:<line number>: PASSED:
283 REQUIRE( i != j )
284 with expansion:
285 2 != 4
286
287 -------------------------------------------------------------------------------
288 #1938 - GENERATE after a section
289 A
290 -------------------------------------------------------------------------------
291 PartTracker.tests.cpp:<line number>
292 ...............................................................................
293
294 PartTracker.tests.cpp:<line number>: PASSED:
295 with message:
296 A
297
298 -------------------------------------------------------------------------------
299 #1938 - GENERATE after a section
300 B
301 -------------------------------------------------------------------------------
302 PartTracker.tests.cpp:<line number>
303 ...............................................................................
304
305 PartTracker.tests.cpp:<line number>: PASSED:
306 REQUIRE( m )
307 with expansion:
308 1
309
310 -------------------------------------------------------------------------------
311 #1938 - GENERATE after a section
312 B
313 -------------------------------------------------------------------------------
314 PartTracker.tests.cpp:<line number>
315 ...............................................................................
316
317 PartTracker.tests.cpp:<line number>: PASSED:
318 REQUIRE( m )
319 with expansion:
320 2
321
322 -------------------------------------------------------------------------------
323 #1938 - GENERATE after a section
324 B
325 -------------------------------------------------------------------------------
326 PartTracker.tests.cpp:<line number>
327 ...............................................................................
328
329 PartTracker.tests.cpp:<line number>: PASSED:
330 REQUIRE( m )
331 with expansion:
332 3
333
334 -------------------------------------------------------------------------------
335 #1938 - Section followed by flat generate
336 A
337 -------------------------------------------------------------------------------
338 PartTracker.tests.cpp:<line number>
339 ...............................................................................
340
341 PartTracker.tests.cpp:<line number>: PASSED:
342 REQUIRE( 1 )
343
344 -------------------------------------------------------------------------------
345 #1938 - Section followed by flat generate
346 -------------------------------------------------------------------------------
347 PartTracker.tests.cpp:<line number>
348 ...............................................................................
349
350 PartTracker.tests.cpp:<line number>: PASSED:
351 REQUIRE( m )
352 with expansion:
353 2
354
355 -------------------------------------------------------------------------------
356 #1938 - Section followed by flat generate
357 -------------------------------------------------------------------------------
358 PartTracker.tests.cpp:<line number>
359 ...............................................................................
360
361 PartTracker.tests.cpp:<line number>: PASSED:
362 REQUIRE( m )
363 with expansion:
364 3
365
366 -------------------------------------------------------------------------------
367 #1938 - flat generate
368 -------------------------------------------------------------------------------
369 PartTracker.tests.cpp:<line number>
370 ...............................................................................
371
372 PartTracker.tests.cpp:<line number>: PASSED:
373 REQUIRE( m )
374 with expansion:
375 1
376
377 -------------------------------------------------------------------------------
378 #1938 - flat generate
379 -------------------------------------------------------------------------------
380 PartTracker.tests.cpp:<line number>
381 ...............................................................................
382
383 PartTracker.tests.cpp:<line number>: PASSED:
384 REQUIRE( m )
385 with expansion:
386 2
387
388 -------------------------------------------------------------------------------
389 #1938 - flat generate
390 -------------------------------------------------------------------------------
391 PartTracker.tests.cpp:<line number>
392 ...............................................................................
393
394 PartTracker.tests.cpp:<line number>: PASSED:
395 REQUIRE( m )
396 with expansion:
397 3
398
399 -------------------------------------------------------------------------------
400 #1938 - mixed sections and generates
401 A
402 -------------------------------------------------------------------------------
403 PartTracker.tests.cpp:<line number>
404 ...............................................................................
405
406 PartTracker.tests.cpp:<line number>: PASSED:
407 with message:
408 A
409
410 -------------------------------------------------------------------------------
411 #1938 - mixed sections and generates
412 -------------------------------------------------------------------------------
413 PartTracker.tests.cpp:<line number>
414 ...............................................................................
415
416 PartTracker.tests.cpp:<line number>: PASSED:
417 with messages:
418 i := 1
419 j := 3
420 k := 5
421
422 -------------------------------------------------------------------------------
423 #1938 - mixed sections and generates
424 B
425 -------------------------------------------------------------------------------
426 PartTracker.tests.cpp:<line number>
427 ...............................................................................
428
429 PartTracker.tests.cpp:<line number>: PASSED:
430 with message:
431 B
432
433 -------------------------------------------------------------------------------
434 #1938 - mixed sections and generates
435 -------------------------------------------------------------------------------
436 PartTracker.tests.cpp:<line number>
437 ...............................................................................
438
439 PartTracker.tests.cpp:<line number>: PASSED:
440 with messages:
441 i := 1
442 j := 3
443 k := 6
444
445 -------------------------------------------------------------------------------
446 #1938 - mixed sections and generates
447 B
448 -------------------------------------------------------------------------------
449 PartTracker.tests.cpp:<line number>
450 ...............................................................................
451
452 PartTracker.tests.cpp:<line number>: PASSED:
453 with message:
454 B
455
456 -------------------------------------------------------------------------------
457 #1938 - mixed sections and generates
458 -------------------------------------------------------------------------------
459 PartTracker.tests.cpp:<line number>
460 ...............................................................................
461
462 PartTracker.tests.cpp:<line number>: PASSED:
463 with messages:
464 i := 1
465 j := 4
466 k := 5
467
468 -------------------------------------------------------------------------------
469 #1938 - mixed sections and generates
470 -------------------------------------------------------------------------------
471 PartTracker.tests.cpp:<line number>
472 ...............................................................................
473
474 PartTracker.tests.cpp:<line number>: PASSED:
475 with messages:
476 i := 1
477 j := 4
478 k := 6
479
480 -------------------------------------------------------------------------------
481 #1938 - mixed sections and generates
482 A
483 -------------------------------------------------------------------------------
484 PartTracker.tests.cpp:<line number>
485 ...............................................................................
486
487 PartTracker.tests.cpp:<line number>: PASSED:
488 with message:
489 A
490
491 -------------------------------------------------------------------------------
492 #1938 - mixed sections and generates
493 -------------------------------------------------------------------------------
494 PartTracker.tests.cpp:<line number>
495 ...............................................................................
496
497 PartTracker.tests.cpp:<line number>: PASSED:
498 with messages:
499 i := 2
500 j := 3
501 k := 5
502
503 -------------------------------------------------------------------------------
504 #1938 - mixed sections and generates
505 B
506 -------------------------------------------------------------------------------
507 PartTracker.tests.cpp:<line number>
508 ...............................................................................
509
510 PartTracker.tests.cpp:<line number>: PASSED:
511 with message:
512 B
513
514 -------------------------------------------------------------------------------
515 #1938 - mixed sections and generates
516 -------------------------------------------------------------------------------
517 PartTracker.tests.cpp:<line number>
518 ...............................................................................
519
520 PartTracker.tests.cpp:<line number>: PASSED:
521 with messages:
522 i := 2
523 j := 3
524 k := 6
525
526 -------------------------------------------------------------------------------
527 #1938 - mixed sections and generates
528 B
529 -------------------------------------------------------------------------------
530 PartTracker.tests.cpp:<line number>
531 ...............................................................................
532
533 PartTracker.tests.cpp:<line number>: PASSED:
534 with message:
535 B
536
537 -------------------------------------------------------------------------------
538 #1938 - mixed sections and generates
539 -------------------------------------------------------------------------------
540 PartTracker.tests.cpp:<line number>
541 ...............................................................................
542
543 PartTracker.tests.cpp:<line number>: PASSED:
544 with messages:
545 i := 2
546 j := 4
547 k := 5
548
549 -------------------------------------------------------------------------------
550 #1938 - mixed sections and generates
551 -------------------------------------------------------------------------------
552 PartTracker.tests.cpp:<line number>
553 ...............................................................................
554
555 PartTracker.tests.cpp:<line number>: PASSED:
556 with messages:
557 i := 2
558 j := 4
559 k := 6
560
561 -------------------------------------------------------------------------------
562 #1938 - nested generate
563 -------------------------------------------------------------------------------
564 PartTracker.tests.cpp:<line number>
565 ...............................................................................
566
567 PartTracker.tests.cpp:<line number>: PASSED:
568 REQUIRE( m )
569 with expansion:
570 1
571
572 PartTracker.tests.cpp:<line number>: PASSED:
573 REQUIRE( n )
574 with expansion:
575 1
576
577 -------------------------------------------------------------------------------
578 #1938 - nested generate
579 -------------------------------------------------------------------------------
580 PartTracker.tests.cpp:<line number>
581 ...............................................................................
582
583 PartTracker.tests.cpp:<line number>: PASSED:
584 REQUIRE( m )
585 with expansion:
586 1
587
588 PartTracker.tests.cpp:<line number>: PASSED:
589 REQUIRE( n )
590 with expansion:
591 2
592
593 -------------------------------------------------------------------------------
594 #1938 - nested generate
595 -------------------------------------------------------------------------------
596 PartTracker.tests.cpp:<line number>
597 ...............................................................................
598
599 PartTracker.tests.cpp:<line number>: PASSED:
600 REQUIRE( m )
601 with expansion:
602 1
603
604 PartTracker.tests.cpp:<line number>: PASSED:
605 REQUIRE( n )
606 with expansion:
607 3
608
609 -------------------------------------------------------------------------------
610 #1938 - nested generate
611 -------------------------------------------------------------------------------
612 PartTracker.tests.cpp:<line number>
613 ...............................................................................
614
615 PartTracker.tests.cpp:<line number>: PASSED:
616 REQUIRE( m )
617 with expansion:
618 2
619
620 PartTracker.tests.cpp:<line number>: PASSED:
621 REQUIRE( n )
622 with expansion:
623 1
624
625 -------------------------------------------------------------------------------
626 #1938 - nested generate
627 -------------------------------------------------------------------------------
628 PartTracker.tests.cpp:<line number>
629 ...............................................................................
630
631 PartTracker.tests.cpp:<line number>: PASSED:
632 REQUIRE( m )
633 with expansion:
634 2
635
636 PartTracker.tests.cpp:<line number>: PASSED:
637 REQUIRE( n )
638 with expansion:
639 2
640
641 -------------------------------------------------------------------------------
642 #1938 - nested generate
643 -------------------------------------------------------------------------------
644 PartTracker.tests.cpp:<line number>
645 ...............................................................................
646
647 PartTracker.tests.cpp:<line number>: PASSED:
648 REQUIRE( m )
649 with expansion:
650 2
651
652 PartTracker.tests.cpp:<line number>: PASSED:
653 REQUIRE( n )
654 with expansion:
655 3
656
657 -------------------------------------------------------------------------------
658 #1938 - nested generate
659 -------------------------------------------------------------------------------
660 PartTracker.tests.cpp:<line number>
661 ...............................................................................
662
663 PartTracker.tests.cpp:<line number>: PASSED:
664 REQUIRE( m )
665 with expansion:
666 3
667
668 PartTracker.tests.cpp:<line number>: PASSED:
669 REQUIRE( n )
670 with expansion:
671 1
672
673 -------------------------------------------------------------------------------
674 #1938 - nested generate
675 -------------------------------------------------------------------------------
676 PartTracker.tests.cpp:<line number>
677 ...............................................................................
678
679 PartTracker.tests.cpp:<line number>: PASSED:
680 REQUIRE( m )
681 with expansion:
682 3
683
684 PartTracker.tests.cpp:<line number>: PASSED:
685 REQUIRE( n )
686 with expansion:
687 2
688
689 -------------------------------------------------------------------------------
690 #1938 - nested generate
691 -------------------------------------------------------------------------------
692 PartTracker.tests.cpp:<line number>
693 ...............................................................................
694
695 PartTracker.tests.cpp:<line number>: PASSED:
696 REQUIRE( m )
697 with expansion:
698 3
699
700 PartTracker.tests.cpp:<line number>: PASSED:
701 REQUIRE( n )
702 with expansion:
703 3
704
705 -------------------------------------------------------------------------------
706 #1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
707 -------------------------------------------------------------------------------
708 Misc.tests.cpp:<line number>
709 ...............................................................................
710
711 Misc.tests.cpp:<line number>: PASSED:
712
713 -------------------------------------------------------------------------------
714 #1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0
715 -------------------------------------------------------------------------------
716 Misc.tests.cpp:<line number>
717 ...............................................................................
718
719 Misc.tests.cpp:<line number>: PASSED:
720
721 -------------------------------------------------------------------------------
722 #1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0
723 -------------------------------------------------------------------------------
724 Misc.tests.cpp:<line number>
725 ...............................................................................
726
727 Misc.tests.cpp:<line number>: PASSED:
728
729 -------------------------------------------------------------------------------
730 #2152 - ULP checks between differently signed values were wrong - double
731 -------------------------------------------------------------------------------
732 Matchers.tests.cpp:<line number>
733 ...............................................................................
734
735 Matchers.tests.cpp:<line number>: PASSED:
736 CHECK_THAT( smallest_non_zero, WithinULP( -smallest_non_zero, 2 ) )
737 with expansion:
738 0.0 is within 2 ULPs of -4.9406564584124654e-324 ([-1.4821969375237396e-323,
739 4.9406564584124654e-324])
740
741 Matchers.tests.cpp:<line number>: PASSED:
742 CHECK_THAT( smallest_non_zero, !WithinULP( -smallest_non_zero, 1 ) )
743 with expansion:
744 0.0 not is within 1 ULPs of -4.9406564584124654e-324 ([-9.8813129168249309e-
745 324, -0.0000000000000000e+00])
746
747 -------------------------------------------------------------------------------
748 #2152 - ULP checks between differently signed values were wrong - float
749 -------------------------------------------------------------------------------
750 Matchers.tests.cpp:<line number>
751 ...............................................................................
752
753 Matchers.tests.cpp:<line number>: PASSED:
754 CHECK_THAT( smallest_non_zero, WithinULP( -smallest_non_zero, 2 ) )
755 with expansion:
756 0.0f is within 2 ULPs of -1.40129846e-45f ([-4.20389539e-45, 1.40129846e-45])
757
758 Matchers.tests.cpp:<line number>: PASSED:
759 CHECK_THAT( smallest_non_zero, !WithinULP( -smallest_non_zero, 1 ) )
760 with expansion:
761 0.0f not is within 1 ULPs of -1.40129846e-45f ([-2.80259693e-45, -0.
762 00000000e+00])
763
764 -------------------------------------------------------------------------------
765 #2615 - Throwing in constructor generator fails test case but does not abort
766 -------------------------------------------------------------------------------
767 Generators.tests.cpp:<line number>
768 ...............................................................................
769
770 Generators.tests.cpp:<line number>: FAILED:
771 due to unexpected exception with message:
772 failure to init
773
774 -------------------------------------------------------------------------------
775 #748 - captures with unexpected exceptions
776 outside assertions
777 -------------------------------------------------------------------------------
778 Exception.tests.cpp:<line number>
779 ...............................................................................
780
781 Exception.tests.cpp:<line number>: FAILED:
782 due to unexpected exception with messages:
783 answer := 42
784 expected exception
785
786 -------------------------------------------------------------------------------
787 #748 - captures with unexpected exceptions
788 inside REQUIRE_NOTHROW
789 -------------------------------------------------------------------------------
790 Exception.tests.cpp:<line number>
791 ...............................................................................
792
793 Exception.tests.cpp:<line number>: FAILED:
794 REQUIRE_NOTHROW( thisThrows() )
795 due to unexpected exception with messages:
796 answer := 42
797 expected exception
798
799 -------------------------------------------------------------------------------
800 #748 - captures with unexpected exceptions
801 inside REQUIRE_THROWS
802 -------------------------------------------------------------------------------
803 Exception.tests.cpp:<line number>
804 ...............................................................................
805
806 Exception.tests.cpp:<line number>: PASSED:
807 REQUIRE_THROWS( thisThrows() )
808 with message:
809 answer := 42
810
811 -------------------------------------------------------------------------------
812 #809
813 -------------------------------------------------------------------------------
814 Compilation.tests.cpp:<line number>
815 ...............................................................................
816
817 Compilation.tests.cpp:<line number>: PASSED:
818 REQUIRE( 42 == f )
819 with expansion:
820 42 == {?}
821
822 -------------------------------------------------------------------------------
823 #833
824 -------------------------------------------------------------------------------
825 Compilation.tests.cpp:<line number>
826 ...............................................................................
827
828 Compilation.tests.cpp:<line number>: PASSED:
829 REQUIRE( a == t )
830 with expansion:
831 3 == 3
832
833 Compilation.tests.cpp:<line number>: PASSED:
834 CHECK( a == t )
835 with expansion:
836 3 == 3
837
838 Compilation.tests.cpp:<line number>: PASSED:
839 REQUIRE_THROWS( throws_int(true) )
840
841 Compilation.tests.cpp:<line number>: PASSED:
842 CHECK_THROWS_AS( throws_int(true), int )
843
844 Compilation.tests.cpp:<line number>: PASSED:
845 REQUIRE_NOTHROW( throws_int(false) )
846
847 Compilation.tests.cpp:<line number>: PASSED:
848 REQUIRE_THAT( "aaa", Catch::Matchers::EndsWith("aaa") )
849 with expansion:
850 "aaa" ends with: "aaa"
851
852 Compilation.tests.cpp:<line number>: PASSED:
853 REQUIRE( templated_tests<int>(3) )
854 with expansion:
855 true
856
857 -------------------------------------------------------------------------------
858 #835 -- errno should not be touched by Catch2
859 -------------------------------------------------------------------------------
860 Misc.tests.cpp:<line number>
861 ...............................................................................
862
863 Misc.tests.cpp:<line number>: FAILED:
864 CHECK( f() == 0 )
865 with expansion:
866 1 == 0
867
868 Misc.tests.cpp:<line number>: PASSED:
869 REQUIRE( errno_after == 1 )
870 with expansion:
871 1 == 1
872
873 -------------------------------------------------------------------------------
874 #872
875 -------------------------------------------------------------------------------
876 Compilation.tests.cpp:<line number>
877 ...............................................................................
878
879 Compilation.tests.cpp:<line number>: PASSED:
880 REQUIRE( x == 4 )
881 with expansion:
882 {?} == 4
883 with message:
884 dummy := 0
885
886 -------------------------------------------------------------------------------
887 #961 -- Dynamically created sections should all be reported
888 Looped section 0
889 -------------------------------------------------------------------------------
890 Misc.tests.cpp:<line number>
891 ...............................................................................
892
893 Misc.tests.cpp:<line number>: PASSED:
894 with message:
895 Everything is OK
896
897 -------------------------------------------------------------------------------
898 #961 -- Dynamically created sections should all be reported
899 Looped section 1
900 -------------------------------------------------------------------------------
901 Misc.tests.cpp:<line number>
902 ...............................................................................
903
904 Misc.tests.cpp:<line number>: PASSED:
905 with message:
906 Everything is OK
907
908 -------------------------------------------------------------------------------
909 #961 -- Dynamically created sections should all be reported
910 Looped section 2
911 -------------------------------------------------------------------------------
912 Misc.tests.cpp:<line number>
913 ...............................................................................
914
915 Misc.tests.cpp:<line number>: PASSED:
916 with message:
917 Everything is OK
918
919 -------------------------------------------------------------------------------
920 #961 -- Dynamically created sections should all be reported
921 Looped section 3
922 -------------------------------------------------------------------------------
923 Misc.tests.cpp:<line number>
924 ...............................................................................
925
926 Misc.tests.cpp:<line number>: PASSED:
927 with message:
928 Everything is OK
929
930 -------------------------------------------------------------------------------
931 #961 -- Dynamically created sections should all be reported
932 Looped section 4
933 -------------------------------------------------------------------------------
934 Misc.tests.cpp:<line number>
935 ...............................................................................
936
937 Misc.tests.cpp:<line number>: PASSED:
938 with message:
939 Everything is OK
940
941 -------------------------------------------------------------------------------
942 'Not' checks that should fail
943 -------------------------------------------------------------------------------
944 Condition.tests.cpp:<line number>
945 ...............................................................................
946
947 Condition.tests.cpp:<line number>: FAILED:
948 CHECK( false != false )
949
950 Condition.tests.cpp:<line number>: FAILED:
951 CHECK( true != true )
952
953 Condition.tests.cpp:<line number>: FAILED:
954 CHECK( !true )
955 with expansion:
956 false
957
958 Condition.tests.cpp:<line number>: FAILED:
959 CHECK_FALSE( true )
960 with expansion:
961 !true
962
963 Condition.tests.cpp:<line number>: FAILED:
964 CHECK( !trueValue )
965 with expansion:
966 false
967
968 Condition.tests.cpp:<line number>: FAILED:
969 CHECK_FALSE( trueValue )
970 with expansion:
971 !true
972
973 Condition.tests.cpp:<line number>: FAILED:
974 CHECK( !(1 == 1) )
975 with expansion:
976 false
977
978 Condition.tests.cpp:<line number>: FAILED:
979 CHECK_FALSE( 1 == 1 )
980
981 -------------------------------------------------------------------------------
982 'Not' checks that should succeed
983 -------------------------------------------------------------------------------
984 Condition.tests.cpp:<line number>
985 ...............................................................................
986
987 Condition.tests.cpp:<line number>: PASSED:
988 REQUIRE( false == false )
989
990 Condition.tests.cpp:<line number>: PASSED:
991 REQUIRE( true == true )
992
993 Condition.tests.cpp:<line number>: PASSED:
994 REQUIRE( !false )
995 with expansion:
996 true
997
998 Condition.tests.cpp:<line number>: PASSED:
999 REQUIRE_FALSE( false )
1000 with expansion:
1001 !false
1002
1003 Condition.tests.cpp:<line number>: PASSED:
1004 REQUIRE( !falseValue )
1005 with expansion:
1006 true
1007
1008 Condition.tests.cpp:<line number>: PASSED:
1009 REQUIRE_FALSE( falseValue )
1010 with expansion:
1011 !false
1012
1013 Condition.tests.cpp:<line number>: PASSED:
1014 REQUIRE( !(1 == 2) )
1015 with expansion:
1016 true
1017
1018 Condition.tests.cpp:<line number>: PASSED:
1019 REQUIRE_FALSE( 1 == 2 )
1020
1021 -------------------------------------------------------------------------------
1022 (unimplemented) static bools can be evaluated
1023 compare to true
1024 -------------------------------------------------------------------------------
1025 Tricky.tests.cpp:<line number>
1026 ...............................................................................
1027
1028 Tricky.tests.cpp:<line number>: PASSED:
1029 REQUIRE( is_true<true>::value == true )
1030 with expansion:
1031 true == true
1032
1033 Tricky.tests.cpp:<line number>: PASSED:
1034 REQUIRE( true == is_true<true>::value )
1035 with expansion:
1036 true == true
1037
1038 -------------------------------------------------------------------------------
1039 (unimplemented) static bools can be evaluated
1040 compare to false
1041 -------------------------------------------------------------------------------
1042 Tricky.tests.cpp:<line number>
1043 ...............................................................................
1044
1045 Tricky.tests.cpp:<line number>: PASSED:
1046 REQUIRE( is_true<false>::value == false )
1047 with expansion:
1048 false == false
1049
1050 Tricky.tests.cpp:<line number>: PASSED:
1051 REQUIRE( false == is_true<false>::value )
1052 with expansion:
1053 false == false
1054
1055 -------------------------------------------------------------------------------
1056 (unimplemented) static bools can be evaluated
1057 negation
1058 -------------------------------------------------------------------------------
1059 Tricky.tests.cpp:<line number>
1060 ...............................................................................
1061
1062 Tricky.tests.cpp:<line number>: PASSED:
1063 REQUIRE( !is_true<false>::value )
1064 with expansion:
1065 true
1066
1067 -------------------------------------------------------------------------------
1068 (unimplemented) static bools can be evaluated
1069 double negation
1070 -------------------------------------------------------------------------------
1071 Tricky.tests.cpp:<line number>
1072 ...............................................................................
1073
1074 Tricky.tests.cpp:<line number>: PASSED:
1075 REQUIRE( !!is_true<true>::value )
1076 with expansion:
1077 true
1078
1079 -------------------------------------------------------------------------------
1080 (unimplemented) static bools can be evaluated
1081 direct
1082 -------------------------------------------------------------------------------
1083 Tricky.tests.cpp:<line number>
1084 ...............................................................................
1085
1086 Tricky.tests.cpp:<line number>: PASSED:
1087 REQUIRE( is_true<true>::value )
1088 with expansion:
1089 true
1090
1091 Tricky.tests.cpp:<line number>: PASSED:
1092 REQUIRE_FALSE( is_true<false>::value )
1093 with expansion:
1094 !false
1095
1096 -------------------------------------------------------------------------------
1097 3x3x3 ints
1098 -------------------------------------------------------------------------------
1099 Generators.tests.cpp:<line number>
1100 ...............................................................................
1101
1102 Generators.tests.cpp:<line number>: PASSED:
1103 CHECK( x < y )
1104 with expansion:
1105 1 < 4
1106
1107 Generators.tests.cpp:<line number>: PASSED:
1108 CHECK( y < z )
1109 with expansion:
1110 4 < 7
1111
1112 Generators.tests.cpp:<line number>: PASSED:
1113 REQUIRE( x < z )
1114 with expansion:
1115 1 < 7
1116
1117 -------------------------------------------------------------------------------
1118 3x3x3 ints
1119 -------------------------------------------------------------------------------
1120 Generators.tests.cpp:<line number>
1121 ...............................................................................
1122
1123 Generators.tests.cpp:<line number>: PASSED:
1124 CHECK( x < y )
1125 with expansion:
1126 1 < 4
1127
1128 Generators.tests.cpp:<line number>: PASSED:
1129 CHECK( y < z )
1130 with expansion:
1131 4 < 8
1132
1133 Generators.tests.cpp:<line number>: PASSED:
1134 REQUIRE( x < z )
1135 with expansion:
1136 1 < 8
1137
1138 -------------------------------------------------------------------------------
1139 3x3x3 ints
1140 -------------------------------------------------------------------------------
1141 Generators.tests.cpp:<line number>
1142 ...............................................................................
1143
1144 Generators.tests.cpp:<line number>: PASSED:
1145 CHECK( x < y )
1146 with expansion:
1147 1 < 4
1148
1149 Generators.tests.cpp:<line number>: PASSED:
1150 CHECK( y < z )
1151 with expansion:
1152 4 < 9
1153
1154 Generators.tests.cpp:<line number>: PASSED:
1155 REQUIRE( x < z )
1156 with expansion:
1157 1 < 9
1158
1159 -------------------------------------------------------------------------------
1160 3x3x3 ints
1161 -------------------------------------------------------------------------------
1162 Generators.tests.cpp:<line number>
1163 ...............................................................................
1164
1165 Generators.tests.cpp:<line number>: PASSED:
1166 CHECK( x < y )
1167 with expansion:
1168 1 < 5
1169
1170 Generators.tests.cpp:<line number>: PASSED:
1171 CHECK( y < z )
1172 with expansion:
1173 5 < 7
1174
1175 Generators.tests.cpp:<line number>: PASSED:
1176 REQUIRE( x < z )
1177 with expansion:
1178 1 < 7
1179
1180 -------------------------------------------------------------------------------
1181 3x3x3 ints
1182 -------------------------------------------------------------------------------
1183 Generators.tests.cpp:<line number>
1184 ...............................................................................
1185
1186 Generators.tests.cpp:<line number>: PASSED:
1187 CHECK( x < y )
1188 with expansion:
1189 1 < 5
1190
1191 Generators.tests.cpp:<line number>: PASSED:
1192 CHECK( y < z )
1193 with expansion:
1194 5 < 8
1195
1196 Generators.tests.cpp:<line number>: PASSED:
1197 REQUIRE( x < z )
1198 with expansion:
1199 1 < 8
1200
1201 -------------------------------------------------------------------------------
1202 3x3x3 ints
1203 -------------------------------------------------------------------------------
1204 Generators.tests.cpp:<line number>
1205 ...............................................................................
1206
1207 Generators.tests.cpp:<line number>: PASSED:
1208 CHECK( x < y )
1209 with expansion:
1210 1 < 5
1211
1212 Generators.tests.cpp:<line number>: PASSED:
1213 CHECK( y < z )
1214 with expansion:
1215 5 < 9
1216
1217 Generators.tests.cpp:<line number>: PASSED:
1218 REQUIRE( x < z )
1219 with expansion:
1220 1 < 9
1221
1222 -------------------------------------------------------------------------------
1223 3x3x3 ints
1224 -------------------------------------------------------------------------------
1225 Generators.tests.cpp:<line number>
1226 ...............................................................................
1227
1228 Generators.tests.cpp:<line number>: PASSED:
1229 CHECK( x < y )
1230 with expansion:
1231 1 < 6
1232
1233 Generators.tests.cpp:<line number>: PASSED:
1234 CHECK( y < z )
1235 with expansion:
1236 6 < 7
1237
1238 Generators.tests.cpp:<line number>: PASSED:
1239 REQUIRE( x < z )
1240 with expansion:
1241 1 < 7
1242
1243 -------------------------------------------------------------------------------
1244 3x3x3 ints
1245 -------------------------------------------------------------------------------
1246 Generators.tests.cpp:<line number>
1247 ...............................................................................
1248
1249 Generators.tests.cpp:<line number>: PASSED:
1250 CHECK( x < y )
1251 with expansion:
1252 1 < 6
1253
1254 Generators.tests.cpp:<line number>: PASSED:
1255 CHECK( y < z )
1256 with expansion:
1257 6 < 8
1258
1259 Generators.tests.cpp:<line number>: PASSED:
1260 REQUIRE( x < z )
1261 with expansion:
1262 1 < 8
1263
1264 -------------------------------------------------------------------------------
1265 3x3x3 ints
1266 -------------------------------------------------------------------------------
1267 Generators.tests.cpp:<line number>
1268 ...............................................................................
1269
1270 Generators.tests.cpp:<line number>: PASSED:
1271 CHECK( x < y )
1272 with expansion:
1273 1 < 6
1274
1275 Generators.tests.cpp:<line number>: PASSED:
1276 CHECK( y < z )
1277 with expansion:
1278 6 < 9
1279
1280 Generators.tests.cpp:<line number>: PASSED:
1281 REQUIRE( x < z )
1282 with expansion:
1283 1 < 9
1284
1285 -------------------------------------------------------------------------------
1286 3x3x3 ints
1287 -------------------------------------------------------------------------------
1288 Generators.tests.cpp:<line number>
1289 ...............................................................................
1290
1291 Generators.tests.cpp:<line number>: PASSED:
1292 CHECK( x < y )
1293 with expansion:
1294 2 < 4
1295
1296 Generators.tests.cpp:<line number>: PASSED:
1297 CHECK( y < z )
1298 with expansion:
1299 4 < 7
1300
1301 Generators.tests.cpp:<line number>: PASSED:
1302 REQUIRE( x < z )
1303 with expansion:
1304 2 < 7
1305
1306 -------------------------------------------------------------------------------
1307 3x3x3 ints
1308 -------------------------------------------------------------------------------
1309 Generators.tests.cpp:<line number>
1310 ...............................................................................
1311
1312 Generators.tests.cpp:<line number>: PASSED:
1313 CHECK( x < y )
1314 with expansion:
1315 2 < 4
1316
1317 Generators.tests.cpp:<line number>: PASSED:
1318 CHECK( y < z )
1319 with expansion:
1320 4 < 8
1321
1322 Generators.tests.cpp:<line number>: PASSED:
1323 REQUIRE( x < z )
1324 with expansion:
1325 2 < 8
1326
1327 -------------------------------------------------------------------------------
1328 3x3x3 ints
1329 -------------------------------------------------------------------------------
1330 Generators.tests.cpp:<line number>
1331 ...............................................................................
1332
1333 Generators.tests.cpp:<line number>: PASSED:
1334 CHECK( x < y )
1335 with expansion:
1336 2 < 4
1337
1338 Generators.tests.cpp:<line number>: PASSED:
1339 CHECK( y < z )
1340 with expansion:
1341 4 < 9
1342
1343 Generators.tests.cpp:<line number>: PASSED:
1344 REQUIRE( x < z )
1345 with expansion:
1346 2 < 9
1347
1348 -------------------------------------------------------------------------------
1349 3x3x3 ints
1350 -------------------------------------------------------------------------------
1351 Generators.tests.cpp:<line number>
1352 ...............................................................................
1353
1354 Generators.tests.cpp:<line number>: PASSED:
1355 CHECK( x < y )
1356 with expansion:
1357 2 < 5
1358
1359 Generators.tests.cpp:<line number>: PASSED:
1360 CHECK( y < z )
1361 with expansion:
1362 5 < 7
1363
1364 Generators.tests.cpp:<line number>: PASSED:
1365 REQUIRE( x < z )
1366 with expansion:
1367 2 < 7
1368
1369 -------------------------------------------------------------------------------
1370 3x3x3 ints
1371 -------------------------------------------------------------------------------
1372 Generators.tests.cpp:<line number>
1373 ...............................................................................
1374
1375 Generators.tests.cpp:<line number>: PASSED:
1376 CHECK( x < y )
1377 with expansion:
1378 2 < 5
1379
1380 Generators.tests.cpp:<line number>: PASSED:
1381 CHECK( y < z )
1382 with expansion:
1383 5 < 8
1384
1385 Generators.tests.cpp:<line number>: PASSED:
1386 REQUIRE( x < z )
1387 with expansion:
1388 2 < 8
1389
1390 -------------------------------------------------------------------------------
1391 3x3x3 ints
1392 -------------------------------------------------------------------------------
1393 Generators.tests.cpp:<line number>
1394 ...............................................................................
1395
1396 Generators.tests.cpp:<line number>: PASSED:
1397 CHECK( x < y )
1398 with expansion:
1399 2 < 5
1400
1401 Generators.tests.cpp:<line number>: PASSED:
1402 CHECK( y < z )
1403 with expansion:
1404 5 < 9
1405
1406 Generators.tests.cpp:<line number>: PASSED:
1407 REQUIRE( x < z )
1408 with expansion:
1409 2 < 9
1410
1411 -------------------------------------------------------------------------------
1412 3x3x3 ints
1413 -------------------------------------------------------------------------------
1414 Generators.tests.cpp:<line number>
1415 ...............................................................................
1416
1417 Generators.tests.cpp:<line number>: PASSED:
1418 CHECK( x < y )
1419 with expansion:
1420 2 < 6
1421
1422 Generators.tests.cpp:<line number>: PASSED:
1423 CHECK( y < z )
1424 with expansion:
1425 6 < 7
1426
1427 Generators.tests.cpp:<line number>: PASSED:
1428 REQUIRE( x < z )
1429 with expansion:
1430 2 < 7
1431
1432 -------------------------------------------------------------------------------
1433 3x3x3 ints
1434 -------------------------------------------------------------------------------
1435 Generators.tests.cpp:<line number>
1436 ...............................................................................
1437
1438 Generators.tests.cpp:<line number>: PASSED:
1439 CHECK( x < y )
1440 with expansion:
1441 2 < 6
1442
1443 Generators.tests.cpp:<line number>: PASSED:
1444 CHECK( y < z )
1445 with expansion:
1446 6 < 8
1447
1448 Generators.tests.cpp:<line number>: PASSED:
1449 REQUIRE( x < z )
1450 with expansion:
1451 2 < 8
1452
1453 -------------------------------------------------------------------------------
1454 3x3x3 ints
1455 -------------------------------------------------------------------------------
1456 Generators.tests.cpp:<line number>
1457 ...............................................................................
1458
1459 Generators.tests.cpp:<line number>: PASSED:
1460 CHECK( x < y )
1461 with expansion:
1462 2 < 6
1463
1464 Generators.tests.cpp:<line number>: PASSED:
1465 CHECK( y < z )
1466 with expansion:
1467 6 < 9
1468
1469 Generators.tests.cpp:<line number>: PASSED:
1470 REQUIRE( x < z )
1471 with expansion:
1472 2 < 9
1473
1474 -------------------------------------------------------------------------------
1475 3x3x3 ints
1476 -------------------------------------------------------------------------------
1477 Generators.tests.cpp:<line number>
1478 ...............................................................................
1479
1480 Generators.tests.cpp:<line number>: PASSED:
1481 CHECK( x < y )
1482 with expansion:
1483 3 < 4
1484
1485 Generators.tests.cpp:<line number>: PASSED:
1486 CHECK( y < z )
1487 with expansion:
1488 4 < 7
1489
1490 Generators.tests.cpp:<line number>: PASSED:
1491 REQUIRE( x < z )
1492 with expansion:
1493 3 < 7
1494
1495 -------------------------------------------------------------------------------
1496 3x3x3 ints
1497 -------------------------------------------------------------------------------
1498 Generators.tests.cpp:<line number>
1499 ...............................................................................
1500
1501 Generators.tests.cpp:<line number>: PASSED:
1502 CHECK( x < y )
1503 with expansion:
1504 3 < 4
1505
1506 Generators.tests.cpp:<line number>: PASSED:
1507 CHECK( y < z )
1508 with expansion:
1509 4 < 8
1510
1511 Generators.tests.cpp:<line number>: PASSED:
1512 REQUIRE( x < z )
1513 with expansion:
1514 3 < 8
1515
1516 -------------------------------------------------------------------------------
1517 3x3x3 ints
1518 -------------------------------------------------------------------------------
1519 Generators.tests.cpp:<line number>
1520 ...............................................................................
1521
1522 Generators.tests.cpp:<line number>: PASSED:
1523 CHECK( x < y )
1524 with expansion:
1525 3 < 4
1526
1527 Generators.tests.cpp:<line number>: PASSED:
1528 CHECK( y < z )
1529 with expansion:
1530 4 < 9
1531
1532 Generators.tests.cpp:<line number>: PASSED:
1533 REQUIRE( x < z )
1534 with expansion:
1535 3 < 9
1536
1537 -------------------------------------------------------------------------------
1538 3x3x3 ints
1539 -------------------------------------------------------------------------------
1540 Generators.tests.cpp:<line number>
1541 ...............................................................................
1542
1543 Generators.tests.cpp:<line number>: PASSED:
1544 CHECK( x < y )
1545 with expansion:
1546 3 < 5
1547
1548 Generators.tests.cpp:<line number>: PASSED:
1549 CHECK( y < z )
1550 with expansion:
1551 5 < 7
1552
1553 Generators.tests.cpp:<line number>: PASSED:
1554 REQUIRE( x < z )
1555 with expansion:
1556 3 < 7
1557
1558 -------------------------------------------------------------------------------
1559 3x3x3 ints
1560 -------------------------------------------------------------------------------
1561 Generators.tests.cpp:<line number>
1562 ...............................................................................
1563
1564 Generators.tests.cpp:<line number>: PASSED:
1565 CHECK( x < y )
1566 with expansion:
1567 3 < 5
1568
1569 Generators.tests.cpp:<line number>: PASSED:
1570 CHECK( y < z )
1571 with expansion:
1572 5 < 8
1573
1574 Generators.tests.cpp:<line number>: PASSED:
1575 REQUIRE( x < z )
1576 with expansion:
1577 3 < 8
1578
1579 -------------------------------------------------------------------------------
1580 3x3x3 ints
1581 -------------------------------------------------------------------------------
1582 Generators.tests.cpp:<line number>
1583 ...............................................................................
1584
1585 Generators.tests.cpp:<line number>: PASSED:
1586 CHECK( x < y )
1587 with expansion:
1588 3 < 5
1589
1590 Generators.tests.cpp:<line number>: PASSED:
1591 CHECK( y < z )
1592 with expansion:
1593 5 < 9
1594
1595 Generators.tests.cpp:<line number>: PASSED:
1596 REQUIRE( x < z )
1597 with expansion:
1598 3 < 9
1599
1600 -------------------------------------------------------------------------------
1601 3x3x3 ints
1602 -------------------------------------------------------------------------------
1603 Generators.tests.cpp:<line number>
1604 ...............................................................................
1605
1606 Generators.tests.cpp:<line number>: PASSED:
1607 CHECK( x < y )
1608 with expansion:
1609 3 < 6
1610
1611 Generators.tests.cpp:<line number>: PASSED:
1612 CHECK( y < z )
1613 with expansion:
1614 6 < 7
1615
1616 Generators.tests.cpp:<line number>: PASSED:
1617 REQUIRE( x < z )
1618 with expansion:
1619 3 < 7
1620
1621 -------------------------------------------------------------------------------
1622 3x3x3 ints
1623 -------------------------------------------------------------------------------
1624 Generators.tests.cpp:<line number>
1625 ...............................................................................
1626
1627 Generators.tests.cpp:<line number>: PASSED:
1628 CHECK( x < y )
1629 with expansion:
1630 3 < 6
1631
1632 Generators.tests.cpp:<line number>: PASSED:
1633 CHECK( y < z )
1634 with expansion:
1635 6 < 8
1636
1637 Generators.tests.cpp:<line number>: PASSED:
1638 REQUIRE( x < z )
1639 with expansion:
1640 3 < 8
1641
1642 -------------------------------------------------------------------------------
1643 3x3x3 ints
1644 -------------------------------------------------------------------------------
1645 Generators.tests.cpp:<line number>
1646 ...............................................................................
1647
1648 Generators.tests.cpp:<line number>: PASSED:
1649 CHECK( x < y )
1650 with expansion:
1651 3 < 6
1652
1653 Generators.tests.cpp:<line number>: PASSED:
1654 CHECK( y < z )
1655 with expansion:
1656 6 < 9
1657
1658 Generators.tests.cpp:<line number>: PASSED:
1659 REQUIRE( x < z )
1660 with expansion:
1661 3 < 9
1662
1663 -------------------------------------------------------------------------------
1664 A METHOD_AS_TEST_CASE based test run that fails
1665 -------------------------------------------------------------------------------
1666 Class.tests.cpp:<line number>
1667 ...............................................................................
1668
1669 Class.tests.cpp:<line number>: FAILED:
1670 REQUIRE( s == "world" )
1671 with expansion:
1672 "hello" == "world"
1673
1674 -------------------------------------------------------------------------------
1675 A METHOD_AS_TEST_CASE based test run that succeeds
1676 -------------------------------------------------------------------------------
1677 Class.tests.cpp:<line number>
1678 ...............................................................................
1679
1680 Class.tests.cpp:<line number>: PASSED:
1681 REQUIRE( s == "hello" )
1682 with expansion:
1683 "hello" == "hello"
1684
1685 -------------------------------------------------------------------------------
1686 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
1687 <float>
1688 -------------------------------------------------------------------------------
1689 Class.tests.cpp:<line number>
1690 ...............................................................................
1691
1692 Class.tests.cpp:<line number>: FAILED:
1693 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1694 with expansion:
1695 0 == 1
1696
1697 -------------------------------------------------------------------------------
1698 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
1699 <int>
1700 -------------------------------------------------------------------------------
1701 Class.tests.cpp:<line number>
1702 ...............................................................................
1703
1704 Class.tests.cpp:<line number>: FAILED:
1705 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1706 with expansion:
1707 0 == 1
1708
1709 -------------------------------------------------------------------------------
1710 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
1711 <float>
1712 -------------------------------------------------------------------------------
1713 Class.tests.cpp:<line number>
1714 ...............................................................................
1715
1716 Class.tests.cpp:<line number>: FAILED:
1717 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1718 with expansion:
1719 0 == 1
1720
1721 -------------------------------------------------------------------------------
1722 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
1723 <int>
1724 -------------------------------------------------------------------------------
1725 Class.tests.cpp:<line number>
1726 ...............................................................................
1727
1728 Class.tests.cpp:<line number>: FAILED:
1729 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1730 with expansion:
1731 0 == 1
1732
1733 -------------------------------------------------------------------------------
1734 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
1735 <float>
1736 -------------------------------------------------------------------------------
1737 Class.tests.cpp:<line number>
1738 ...............................................................................
1739
1740 Class.tests.cpp:<line number>: PASSED:
1741 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1742 with expansion:
1743 0 == 0
1744
1745 -------------------------------------------------------------------------------
1746 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
1747 <int>
1748 -------------------------------------------------------------------------------
1749 Class.tests.cpp:<line number>
1750 ...............................................................................
1751
1752 Class.tests.cpp:<line number>: PASSED:
1753 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1754 with expansion:
1755 0 == 0
1756
1757 -------------------------------------------------------------------------------
1758 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
1759 <float>
1760 -------------------------------------------------------------------------------
1761 Class.tests.cpp:<line number>
1762 ...............................................................................
1763
1764 Class.tests.cpp:<line number>: PASSED:
1765 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1766 with expansion:
1767 0 == 0
1768
1769 -------------------------------------------------------------------------------
1770 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
1771 <int>
1772 -------------------------------------------------------------------------------
1773 Class.tests.cpp:<line number>
1774 ...............................................................................
1775
1776 Class.tests.cpp:<line number>: PASSED:
1777 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1778 with expansion:
1779 0 == 0
1780
1781 -------------------------------------------------------------------------------
1782 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
1783 Template_Foo_2<float, 6>
1784 -------------------------------------------------------------------------------
1785 Class.tests.cpp:<line number>
1786 ...............................................................................
1787
1788 Class.tests.cpp:<line number>: FAILED:
1789 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1790 with expansion:
1791 6 < 2
1792
1793 -------------------------------------------------------------------------------
1794 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
1795 Template_Foo_2<int, 2>
1796 -------------------------------------------------------------------------------
1797 Class.tests.cpp:<line number>
1798 ...............................................................................
1799
1800 Class.tests.cpp:<line number>: FAILED:
1801 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1802 with expansion:
1803 2 < 2
1804
1805 -------------------------------------------------------------------------------
1806 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
1807 <float, 6>
1808 -------------------------------------------------------------------------------
1809 Class.tests.cpp:<line number>
1810 ...............................................................................
1811
1812 Class.tests.cpp:<line number>: FAILED:
1813 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1814 with expansion:
1815 6 < 2
1816
1817 -------------------------------------------------------------------------------
1818 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
1819 <int, 2>
1820 -------------------------------------------------------------------------------
1821 Class.tests.cpp:<line number>
1822 ...............................................................................
1823
1824 Class.tests.cpp:<line number>: FAILED:
1825 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1826 with expansion:
1827 2 < 2
1828
1829 -------------------------------------------------------------------------------
1830 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
1831 Template_Foo_2<float,6>
1832 -------------------------------------------------------------------------------
1833 Class.tests.cpp:<line number>
1834 ...............................................................................
1835
1836 Class.tests.cpp:<line number>: PASSED:
1837 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1838 with expansion:
1839 6 >= 2
1840
1841 -------------------------------------------------------------------------------
1842 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
1843 Template_Foo_2<int,2>
1844 -------------------------------------------------------------------------------
1845 Class.tests.cpp:<line number>
1846 ...............................................................................
1847
1848 Class.tests.cpp:<line number>: PASSED:
1849 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1850 with expansion:
1851 2 >= 2
1852
1853 -------------------------------------------------------------------------------
1854 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
1855 array<float,6>
1856 -------------------------------------------------------------------------------
1857 Class.tests.cpp:<line number>
1858 ...............................................................................
1859
1860 Class.tests.cpp:<line number>: PASSED:
1861 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1862 with expansion:
1863 6 >= 2
1864
1865 -------------------------------------------------------------------------------
1866 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
1867 array<int,2>
1868 -------------------------------------------------------------------------------
1869 Class.tests.cpp:<line number>
1870 ...............................................................................
1871
1872 Class.tests.cpp:<line number>: PASSED:
1873 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1874 with expansion:
1875 2 >= 2
1876
1877 -------------------------------------------------------------------------------
1878 A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
1879 -------------------------------------------------------------------------------
1880 Class.tests.cpp:<line number>
1881 ...............................................................................
1882
1883 Class.tests.cpp:<line number>: FAILED:
1884 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1885 with expansion:
1886 1.0 == 2
1887
1888 -------------------------------------------------------------------------------
1889 A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
1890 -------------------------------------------------------------------------------
1891 Class.tests.cpp:<line number>
1892 ...............................................................................
1893
1894 Class.tests.cpp:<line number>: FAILED:
1895 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1896 with expansion:
1897 1.0f == 2
1898
1899 -------------------------------------------------------------------------------
1900 A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
1901 -------------------------------------------------------------------------------
1902 Class.tests.cpp:<line number>
1903 ...............................................................................
1904
1905 Class.tests.cpp:<line number>: FAILED:
1906 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1907 with expansion:
1908 1 == 2
1909
1910 -------------------------------------------------------------------------------
1911 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double
1912 -------------------------------------------------------------------------------
1913 Class.tests.cpp:<line number>
1914 ...............................................................................
1915
1916 Class.tests.cpp:<line number>: PASSED:
1917 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1918 with expansion:
1919 1.0 == 1
1920
1921 -------------------------------------------------------------------------------
1922 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float
1923 -------------------------------------------------------------------------------
1924 Class.tests.cpp:<line number>
1925 ...............................................................................
1926
1927 Class.tests.cpp:<line number>: PASSED:
1928 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1929 with expansion:
1930 1.0f == 1
1931
1932 -------------------------------------------------------------------------------
1933 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int
1934 -------------------------------------------------------------------------------
1935 Class.tests.cpp:<line number>
1936 ...............................................................................
1937
1938 Class.tests.cpp:<line number>: PASSED:
1939 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1940 with expansion:
1941 1 == 1
1942
1943 -------------------------------------------------------------------------------
1944 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
1945 -------------------------------------------------------------------------------
1946 Class.tests.cpp:<line number>
1947 ...............................................................................
1948
1949 Class.tests.cpp:<line number>: FAILED:
1950 REQUIRE( Nttp_Fixture<V>::value == 0 )
1951 with expansion:
1952 1 == 0
1953
1954 -------------------------------------------------------------------------------
1955 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
1956 -------------------------------------------------------------------------------
1957 Class.tests.cpp:<line number>
1958 ...............................................................................
1959
1960 Class.tests.cpp:<line number>: FAILED:
1961 REQUIRE( Nttp_Fixture<V>::value == 0 )
1962 with expansion:
1963 3 == 0
1964
1965 -------------------------------------------------------------------------------
1966 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
1967 -------------------------------------------------------------------------------
1968 Class.tests.cpp:<line number>
1969 ...............................................................................
1970
1971 Class.tests.cpp:<line number>: FAILED:
1972 REQUIRE( Nttp_Fixture<V>::value == 0 )
1973 with expansion:
1974 6 == 0
1975
1976 -------------------------------------------------------------------------------
1977 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1
1978 -------------------------------------------------------------------------------
1979 Class.tests.cpp:<line number>
1980 ...............................................................................
1981
1982 Class.tests.cpp:<line number>: PASSED:
1983 REQUIRE( Nttp_Fixture<V>::value > 0 )
1984 with expansion:
1985 1 > 0
1986
1987 -------------------------------------------------------------------------------
1988 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3
1989 -------------------------------------------------------------------------------
1990 Class.tests.cpp:<line number>
1991 ...............................................................................
1992
1993 Class.tests.cpp:<line number>: PASSED:
1994 REQUIRE( Nttp_Fixture<V>::value > 0 )
1995 with expansion:
1996 3 > 0
1997
1998 -------------------------------------------------------------------------------
1999 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6
2000 -------------------------------------------------------------------------------
2001 Class.tests.cpp:<line number>
2002 ...............................................................................
2003
2004 Class.tests.cpp:<line number>: PASSED:
2005 REQUIRE( Nttp_Fixture<V>::value > 0 )
2006 with expansion:
2007 6 > 0
2008
2009 -------------------------------------------------------------------------------
2010 A TEST_CASE_METHOD based test run that fails
2011 -------------------------------------------------------------------------------
2012 Class.tests.cpp:<line number>
2013 ...............................................................................
2014
2015 Class.tests.cpp:<line number>: FAILED:
2016 REQUIRE( m_a == 2 )
2017 with expansion:
2018 1 == 2
2019
2020 -------------------------------------------------------------------------------
2021 A TEST_CASE_METHOD based test run that succeeds
2022 -------------------------------------------------------------------------------
2023 Class.tests.cpp:<line number>
2024 ...............................................................................
2025
2026 Class.tests.cpp:<line number>: PASSED:
2027 REQUIRE( m_a == 1 )
2028 with expansion:
2029 1 == 1
2030
2031 -------------------------------------------------------------------------------
2032 A Template product test case - Foo<float>
2033 -------------------------------------------------------------------------------
2034 Misc.tests.cpp:<line number>
2035 ...............................................................................
2036
2037 Misc.tests.cpp:<line number>: PASSED:
2038 REQUIRE( x.size() == 0 )
2039 with expansion:
2040 0 == 0
2041
2042 -------------------------------------------------------------------------------
2043 A Template product test case - Foo<int>
2044 -------------------------------------------------------------------------------
2045 Misc.tests.cpp:<line number>
2046 ...............................................................................
2047
2048 Misc.tests.cpp:<line number>: PASSED:
2049 REQUIRE( x.size() == 0 )
2050 with expansion:
2051 0 == 0
2052
2053 -------------------------------------------------------------------------------
2054 A Template product test case - std::vector<float>
2055 -------------------------------------------------------------------------------
2056 Misc.tests.cpp:<line number>
2057 ...............................................................................
2058
2059 Misc.tests.cpp:<line number>: PASSED:
2060 REQUIRE( x.size() == 0 )
2061 with expansion:
2062 0 == 0
2063
2064 -------------------------------------------------------------------------------
2065 A Template product test case - std::vector<int>
2066 -------------------------------------------------------------------------------
2067 Misc.tests.cpp:<line number>
2068 ...............................................................................
2069
2070 Misc.tests.cpp:<line number>: PASSED:
2071 REQUIRE( x.size() == 0 )
2072 with expansion:
2073 0 == 0
2074
2075 -------------------------------------------------------------------------------
2076 A Template product test case with array signature - Bar<float, 42>
2077 -------------------------------------------------------------------------------
2078 Misc.tests.cpp:<line number>
2079 ...............................................................................
2080
2081 Misc.tests.cpp:<line number>: PASSED:
2082 REQUIRE( x.size() > 0 )
2083 with expansion:
2084 42 > 0
2085
2086 -------------------------------------------------------------------------------
2087 A Template product test case with array signature - Bar<int, 9>
2088 -------------------------------------------------------------------------------
2089 Misc.tests.cpp:<line number>
2090 ...............................................................................
2091
2092 Misc.tests.cpp:<line number>: PASSED:
2093 REQUIRE( x.size() > 0 )
2094 with expansion:
2095 9 > 0
2096
2097 -------------------------------------------------------------------------------
2098 A Template product test case with array signature - std::array<float, 42>
2099 -------------------------------------------------------------------------------
2100 Misc.tests.cpp:<line number>
2101 ...............................................................................
2102
2103 Misc.tests.cpp:<line number>: PASSED:
2104 REQUIRE( x.size() > 0 )
2105 with expansion:
2106 42 > 0
2107
2108 -------------------------------------------------------------------------------
2109 A Template product test case with array signature - std::array<int, 9>
2110 -------------------------------------------------------------------------------
2111 Misc.tests.cpp:<line number>
2112 ...............................................................................
2113
2114 Misc.tests.cpp:<line number>: PASSED:
2115 REQUIRE( x.size() > 0 )
2116 with expansion:
2117 9 > 0
2118
2119 -------------------------------------------------------------------------------
2120 A comparison that uses literals instead of the normal constructor
2121 -------------------------------------------------------------------------------
2122 Approx.tests.cpp:<line number>
2123 ...............................................................................
2124
2125 Approx.tests.cpp:<line number>: PASSED:
2126 REQUIRE( d == 1.23_a )
2127 with expansion:
2128 1.23 == Approx( 1.23 )
2129
2130 Approx.tests.cpp:<line number>: PASSED:
2131 REQUIRE( d != 1.22_a )
2132 with expansion:
2133 1.23 != Approx( 1.22 )
2134
2135 Approx.tests.cpp:<line number>: PASSED:
2136 REQUIRE( -d == -1.23_a )
2137 with expansion:
2138 -1.23 == Approx( -1.23 )
2139
2140 Approx.tests.cpp:<line number>: PASSED:
2141 REQUIRE( d == 1.2_a .epsilon(.1) )
2142 with expansion:
2143 1.23 == Approx( 1.2 )
2144
2145 Approx.tests.cpp:<line number>: PASSED:
2146 REQUIRE( d != 1.2_a .epsilon(.001) )
2147 with expansion:
2148 1.23 != Approx( 1.2 )
2149
2150 Approx.tests.cpp:<line number>: PASSED:
2151 REQUIRE( d == 1_a .epsilon(.3) )
2152 with expansion:
2153 1.23 == Approx( 1.0 )
2154
2155 -------------------------------------------------------------------------------
2156 A couple of nested sections followed by a failure
2157 Outer
2158 Inner
2159 -------------------------------------------------------------------------------
2160 Misc.tests.cpp:<line number>
2161 ...............................................................................
2162
2163 Misc.tests.cpp:<line number>: PASSED:
2164 with message:
2165 that's not flying - that's failing in style
2166
2167 -------------------------------------------------------------------------------
2168 A couple of nested sections followed by a failure
2169 -------------------------------------------------------------------------------
2170 Misc.tests.cpp:<line number>
2171 ...............................................................................
2172
2173 Misc.tests.cpp:<line number>: FAILED:
2174 explicitly with message:
2175 to infinity and beyond
2176
2177 -------------------------------------------------------------------------------
2178 A failing expression with a non streamable type is still captured
2179 -------------------------------------------------------------------------------
2180 Tricky.tests.cpp:<line number>
2181 ...............................................................................
2182
2183 Tricky.tests.cpp:<line number>: FAILED:
2184 CHECK( &o1 == &o2 )
2185 with expansion:
2186 0x<hex digits> == 0x<hex digits>
2187
2188 Tricky.tests.cpp:<line number>: FAILED:
2189 CHECK( o1 == o2 )
2190 with expansion:
2191 {?} == {?}
2192
2193 -------------------------------------------------------------------------------
2194 Absolute margin
2195 -------------------------------------------------------------------------------
2196 Approx.tests.cpp:<line number>
2197 ...............................................................................
2198
2199 Approx.tests.cpp:<line number>: PASSED:
2200 REQUIRE( 104.0 != Approx(100.0) )
2201 with expansion:
2202 104.0 != Approx( 100.0 )
2203
2204 Approx.tests.cpp:<line number>: PASSED:
2205 REQUIRE( 104.0 == Approx(100.0).margin(5) )
2206 with expansion:
2207 104.0 == Approx( 100.0 )
2208
2209 Approx.tests.cpp:<line number>: PASSED:
2210 REQUIRE( 104.0 == Approx(100.0).margin(4) )
2211 with expansion:
2212 104.0 == Approx( 100.0 )
2213
2214 Approx.tests.cpp:<line number>: PASSED:
2215 REQUIRE( 104.0 != Approx(100.0).margin(3) )
2216 with expansion:
2217 104.0 != Approx( 100.0 )
2218
2219 Approx.tests.cpp:<line number>: PASSED:
2220 REQUIRE( 100.3 != Approx(100.0) )
2221 with expansion:
2222 100.3 != Approx( 100.0 )
2223
2224 Approx.tests.cpp:<line number>: PASSED:
2225 REQUIRE( 100.3 == Approx(100.0).margin(0.5) )
2226 with expansion:
2227 100.3 == Approx( 100.0 )
2228
2229 -------------------------------------------------------------------------------
2230 An empty test with no assertions
2231 -------------------------------------------------------------------------------
2232 Misc.tests.cpp:<line number>
2233 ...............................................................................
2234
2235
2236 No assertions in test case 'An empty test with no assertions'
2237
2238 -------------------------------------------------------------------------------
2239 An expression with side-effects should only be evaluated once
2240 -------------------------------------------------------------------------------
2241 Tricky.tests.cpp:<line number>
2242 ...............................................................................
2243
2244 Tricky.tests.cpp:<line number>: PASSED:
2245 REQUIRE( i++ == 7 )
2246 with expansion:
2247 7 == 7
2248
2249 Tricky.tests.cpp:<line number>: PASSED:
2250 REQUIRE( i++ == 8 )
2251 with expansion:
2252 8 == 8
2253
2254 -------------------------------------------------------------------------------
2255 An unchecked exception reports the line of the last assertion
2256 -------------------------------------------------------------------------------
2257 Exception.tests.cpp:<line number>
2258 ...............................................................................
2259
2260 Exception.tests.cpp:<line number>: PASSED:
2261 CHECK( 1 == 1 )
2262
2263 Exception.tests.cpp:<line number>: FAILED:
2264 {Unknown expression after the reported line}
2265 due to unexpected exception with message:
2266 unexpected exception
2267
2268 -------------------------------------------------------------------------------
2269 Anonymous test case 1
2270 -------------------------------------------------------------------------------
2271 VariadicMacros.tests.cpp:<line number>
2272 ...............................................................................
2273
2274 VariadicMacros.tests.cpp:<line number>: PASSED:
2275 with message:
2276 anonymous test case
2277
2278 -------------------------------------------------------------------------------
2279 Approx setters validate their arguments
2280 -------------------------------------------------------------------------------
2281 Approx.tests.cpp:<line number>
2282 ...............................................................................
2283
2284 Approx.tests.cpp:<line number>: PASSED:
2285 REQUIRE_NOTHROW( Approx(0).margin(0) )
2286
2287 Approx.tests.cpp:<line number>: PASSED:
2288 REQUIRE_NOTHROW( Approx(0).margin(1234656) )
2289
2290 Approx.tests.cpp:<line number>: PASSED:
2291 REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error )
2292
2293 Approx.tests.cpp:<line number>: PASSED:
2294 REQUIRE_NOTHROW( Approx(0).epsilon(0) )
2295
2296 Approx.tests.cpp:<line number>: PASSED:
2297 REQUIRE_NOTHROW( Approx(0).epsilon(1) )
2298
2299 Approx.tests.cpp:<line number>: PASSED:
2300 REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error )
2301
2302 Approx.tests.cpp:<line number>: PASSED:
2303 REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error )
2304
2305 -------------------------------------------------------------------------------
2306 Approx with exactly-representable margin
2307 -------------------------------------------------------------------------------
2308 Approx.tests.cpp:<line number>
2309 ...............................................................................
2310
2311 Approx.tests.cpp:<line number>: PASSED:
2312 CHECK( 0.25f == Approx(0.0f).margin(0.25f) )
2313 with expansion:
2314 0.25f == Approx( 0.0 )
2315
2316 Approx.tests.cpp:<line number>: PASSED:
2317 CHECK( 0.0f == Approx(0.25f).margin(0.25f) )
2318 with expansion:
2319 0.0f == Approx( 0.25 )
2320
2321 Approx.tests.cpp:<line number>: PASSED:
2322 CHECK( 0.5f == Approx(0.25f).margin(0.25f) )
2323 with expansion:
2324 0.5f == Approx( 0.25 )
2325
2326 Approx.tests.cpp:<line number>: PASSED:
2327 CHECK( 245.0f == Approx(245.25f).margin(0.25f) )
2328 with expansion:
2329 245.0f == Approx( 245.25 )
2330
2331 Approx.tests.cpp:<line number>: PASSED:
2332 CHECK( 245.5f == Approx(245.25f).margin(0.25f) )
2333 with expansion:
2334 245.5f == Approx( 245.25 )
2335
2336 -------------------------------------------------------------------------------
2337 Approximate PI
2338 -------------------------------------------------------------------------------
2339 Approx.tests.cpp:<line number>
2340 ...............................................................................
2341
2342 Approx.tests.cpp:<line number>: PASSED:
2343 REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) )
2344 with expansion:
2345 3.1428571429 == Approx( 3.141 )
2346
2347 Approx.tests.cpp:<line number>: PASSED:
2348 REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) )
2349 with expansion:
2350 3.1428571429 != Approx( 3.141 )
2351
2352 -------------------------------------------------------------------------------
2353 Approximate comparisons with different epsilons
2354 -------------------------------------------------------------------------------
2355 Approx.tests.cpp:<line number>
2356 ...............................................................................
2357
2358 Approx.tests.cpp:<line number>: PASSED:
2359 REQUIRE( d != Approx( 1.231 ) )
2360 with expansion:
2361 1.23 != Approx( 1.231 )
2362
2363 Approx.tests.cpp:<line number>: PASSED:
2364 REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) )
2365 with expansion:
2366 1.23 == Approx( 1.231 )
2367
2368 -------------------------------------------------------------------------------
2369 Approximate comparisons with floats
2370 -------------------------------------------------------------------------------
2371 Approx.tests.cpp:<line number>
2372 ...............................................................................
2373
2374 Approx.tests.cpp:<line number>: PASSED:
2375 REQUIRE( 1.23f == Approx( 1.23f ) )
2376 with expansion:
2377 1.23f == Approx( 1.2300000191 )
2378
2379 Approx.tests.cpp:<line number>: PASSED:
2380 REQUIRE( 0.0f == Approx( 0.0f ) )
2381 with expansion:
2382 0.0f == Approx( 0.0 )
2383
2384 -------------------------------------------------------------------------------
2385 Approximate comparisons with ints
2386 -------------------------------------------------------------------------------
2387 Approx.tests.cpp:<line number>
2388 ...............................................................................
2389
2390 Approx.tests.cpp:<line number>: PASSED:
2391 REQUIRE( 1 == Approx( 1 ) )
2392 with expansion:
2393 1 == Approx( 1.0 )
2394
2395 Approx.tests.cpp:<line number>: PASSED:
2396 REQUIRE( 0 == Approx( 0 ) )
2397 with expansion:
2398 0 == Approx( 0.0 )
2399
2400 -------------------------------------------------------------------------------
2401 Approximate comparisons with mixed numeric types
2402 -------------------------------------------------------------------------------
2403 Approx.tests.cpp:<line number>
2404 ...............................................................................
2405
2406 Approx.tests.cpp:<line number>: PASSED:
2407 REQUIRE( 1.0f == Approx( 1 ) )
2408 with expansion:
2409 1.0f == Approx( 1.0 )
2410
2411 Approx.tests.cpp:<line number>: PASSED:
2412 REQUIRE( 0 == Approx( dZero) )
2413 with expansion:
2414 0 == Approx( 0.0 )
2415
2416 Approx.tests.cpp:<line number>: PASSED:
2417 REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) )
2418 with expansion:
2419 0 == Approx( 0.00001 )
2420
2421 Approx.tests.cpp:<line number>: PASSED:
2422 REQUIRE( 1.234f == Approx( dMedium ) )
2423 with expansion:
2424 1.234f == Approx( 1.234 )
2425
2426 Approx.tests.cpp:<line number>: PASSED:
2427 REQUIRE( dMedium == Approx( 1.234f ) )
2428 with expansion:
2429 1.234 == Approx( 1.2339999676 )
2430
2431 -------------------------------------------------------------------------------
2432 Arbitrary predicate matcher
2433 Function pointer
2434 -------------------------------------------------------------------------------
2435 Matchers.tests.cpp:<line number>
2436 ...............................................................................
2437
2438 Matchers.tests.cpp:<line number>: PASSED:
2439 REQUIRE_THAT( 1, Predicate<int>( alwaysTrue, "always true" ) )
2440 with expansion:
2441 1 matches predicate: "always true"
2442
2443 Matchers.tests.cpp:<line number>: PASSED:
2444 REQUIRE_THAT( 1, !Predicate<int>( alwaysFalse, "always false" ) )
2445 with expansion:
2446 1 not matches predicate: "always false"
2447
2448 -------------------------------------------------------------------------------
2449 Arbitrary predicate matcher
2450 Lambdas + different type
2451 -------------------------------------------------------------------------------
2452 Matchers.tests.cpp:<line number>
2453 ...............................................................................
2454
2455 Matchers.tests.cpp:<line number>: PASSED:
2456 REQUIRE_THAT( "Hello olleH", Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); }, "First and last character should be equal" ) )
2457 with expansion:
2458 "Hello olleH" matches predicate: "First and last character should be equal"
2459
2460 Matchers.tests.cpp:<line number>: PASSED:
2461 REQUIRE_THAT( "This wouldn't pass", !Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); } ) )
2462 with expansion:
2463 "This wouldn't pass" not matches undescribed predicate
2464
2465 -------------------------------------------------------------------------------
2466 Assertion macros support bit operators and bool conversions
2467 -------------------------------------------------------------------------------
2468 Compilation.tests.cpp:<line number>
2469 ...............................................................................
2470
2471 Compilation.tests.cpp:<line number>: PASSED:
2472 REQUIRE( lhs | rhs )
2473 with expansion:
2474 Val: 1 | Val: 2
2475
2476 Compilation.tests.cpp:<line number>: PASSED:
2477 REQUIRE_FALSE( lhs & rhs )
2478 with expansion:
2479 !(Val: 1 & Val: 2)
2480
2481 Compilation.tests.cpp:<line number>: PASSED:
2482 REQUIRE( HasBitOperators{ 1 } & HasBitOperators{ 1 } )
2483 with expansion:
2484 Val: 1 & Val: 1
2485
2486 Compilation.tests.cpp:<line number>: PASSED:
2487 REQUIRE( lhs ^ rhs )
2488 with expansion:
2489 Val: 1 ^ Val: 2
2490
2491 Compilation.tests.cpp:<line number>: PASSED:
2492 REQUIRE_FALSE( lhs ^ lhs )
2493 with expansion:
2494 !(Val: 1 ^ Val: 1)
2495
2496 -------------------------------------------------------------------------------
2497 Assertions then sections
2498 -------------------------------------------------------------------------------
2499 Tricky.tests.cpp:<line number>
2500 ...............................................................................
2501
2502 Tricky.tests.cpp:<line number>: PASSED:
2503 REQUIRE( true )
2504
2505 -------------------------------------------------------------------------------
2506 Assertions then sections
2507 A section
2508 -------------------------------------------------------------------------------
2509 Tricky.tests.cpp:<line number>
2510 ...............................................................................
2511
2512 Tricky.tests.cpp:<line number>: PASSED:
2513 REQUIRE( true )
2514
2515 -------------------------------------------------------------------------------
2516 Assertions then sections
2517 A section
2518 Another section
2519 -------------------------------------------------------------------------------
2520 Tricky.tests.cpp:<line number>
2521 ...............................................................................
2522
2523 Tricky.tests.cpp:<line number>: PASSED:
2524 REQUIRE( true )
2525
2526 -------------------------------------------------------------------------------
2527 Assertions then sections
2528 -------------------------------------------------------------------------------
2529 Tricky.tests.cpp:<line number>
2530 ...............................................................................
2531
2532 Tricky.tests.cpp:<line number>: PASSED:
2533 REQUIRE( true )
2534
2535 -------------------------------------------------------------------------------
2536 Assertions then sections
2537 A section
2538 -------------------------------------------------------------------------------
2539 Tricky.tests.cpp:<line number>
2540 ...............................................................................
2541
2542 Tricky.tests.cpp:<line number>: PASSED:
2543 REQUIRE( true )
2544
2545 -------------------------------------------------------------------------------
2546 Assertions then sections
2547 A section
2548 Another other section
2549 -------------------------------------------------------------------------------
2550 Tricky.tests.cpp:<line number>
2551 ...............................................................................
2552
2553 Tricky.tests.cpp:<line number>: PASSED:
2554 REQUIRE( true )
2555
2556 -------------------------------------------------------------------------------
2557 Basic use of the Contains range matcher
2558 Different argument ranges, same element type, default comparison
2559 -------------------------------------------------------------------------------
2560 MatchersRanges.tests.cpp:<line number>
2561 ...............................................................................
2562
2563 MatchersRanges.tests.cpp:<line number>: PASSED:
2564 REQUIRE_THAT( a, Contains(1) )
2565 with expansion:
2566 { 1, 2, 3 } contains element 1
2567
2568 MatchersRanges.tests.cpp:<line number>: PASSED:
2569 REQUIRE_THAT( b, Contains(1) )
2570 with expansion:
2571 { 0, 1, 2 } contains element 1
2572
2573 MatchersRanges.tests.cpp:<line number>: PASSED:
2574 REQUIRE_THAT( c, !Contains(1) )
2575 with expansion:
2576 { 4, 5, 6 } not contains element 1
2577
2578 -------------------------------------------------------------------------------
2579 Basic use of the Contains range matcher
2580 Different argument ranges, same element type, custom comparison
2581 -------------------------------------------------------------------------------
2582 MatchersRanges.tests.cpp:<line number>
2583 ...............................................................................
2584
2585 MatchersRanges.tests.cpp:<line number>: PASSED:
2586 REQUIRE_THAT( a, Contains(0, close_enough) )
2587 with expansion:
2588 { 1, 2, 3 } contains element 0
2589
2590 MatchersRanges.tests.cpp:<line number>: PASSED:
2591 REQUIRE_THAT( b, Contains(0, close_enough) )
2592 with expansion:
2593 { 0, 1, 2 } contains element 0
2594
2595 MatchersRanges.tests.cpp:<line number>: PASSED:
2596 REQUIRE_THAT( c, !Contains(0, close_enough) )
2597 with expansion:
2598 { 4, 5, 6 } not contains element 0
2599
2600 -------------------------------------------------------------------------------
2601 Basic use of the Contains range matcher
2602 Different element type, custom comparisons
2603 -------------------------------------------------------------------------------
2604 MatchersRanges.tests.cpp:<line number>
2605 ...............................................................................
2606
2607 MatchersRanges.tests.cpp:<line number>: PASSED:
2608 REQUIRE_THAT( a, Contains(4, [](auto&& lhs, size_t sz) { return lhs.size() == sz; }) )
2609 with expansion:
2610 { "abc", "abcd", "abcde" } contains element 4
2611
2612 -------------------------------------------------------------------------------
2613 Basic use of the Contains range matcher
2614 Can handle type that requires ADL-found free function begin and end
2615 -------------------------------------------------------------------------------
2616 MatchersRanges.tests.cpp:<line number>
2617 ...............................................................................
2618
2619 MatchersRanges.tests.cpp:<line number>: PASSED:
2620 REQUIRE_THAT( in, Contains(1) )
2621 with expansion:
2622 { 1, 2, 3, 4, 5 } contains element 1
2623
2624 MatchersRanges.tests.cpp:<line number>: PASSED:
2625 REQUIRE_THAT( in, !Contains(8) )
2626 with expansion:
2627 { 1, 2, 3, 4, 5 } not contains element 8
2628
2629 -------------------------------------------------------------------------------
2630 Basic use of the Contains range matcher
2631 Initialization with move only types
2632 -------------------------------------------------------------------------------
2633 MatchersRanges.tests.cpp:<line number>
2634 ...............................................................................
2635
2636 MatchersRanges.tests.cpp:<line number>: PASSED:
2637 REQUIRE_THAT( in, Contains(MoveOnlyTestElement{ 2 }) )
2638 with expansion:
2639 { 1, 2, 3 } contains element 2
2640
2641 MatchersRanges.tests.cpp:<line number>: PASSED:
2642 REQUIRE_THAT( in, !Contains(MoveOnlyTestElement{ 9 }) )
2643 with expansion:
2644 { 1, 2, 3 } not contains element 9
2645
2646 -------------------------------------------------------------------------------
2647 Basic use of the Contains range matcher
2648 Matching using matcher
2649 -------------------------------------------------------------------------------
2650 MatchersRanges.tests.cpp:<line number>
2651 ...............................................................................
2652
2653 MatchersRanges.tests.cpp:<line number>: PASSED:
2654 REQUIRE_THAT( in, Contains(Catch::Matchers::WithinAbs(0.5, 0.5)) )
2655 with expansion:
2656 { 1.0, 2.0, 3.0, 0.0 } contains element matching is within 0.5 of 0.5
2657
2658 -------------------------------------------------------------------------------
2659 Basic use of the Empty range matcher
2660 Simple, std-provided containers
2661 -------------------------------------------------------------------------------
2662 MatchersRanges.tests.cpp:<line number>
2663 ...............................................................................
2664
2665 MatchersRanges.tests.cpp:<line number>: PASSED:
2666 REQUIRE_THAT( empty_array, IsEmpty() )
2667 with expansion:
2668 { } is empty
2669
2670 MatchersRanges.tests.cpp:<line number>: PASSED:
2671 REQUIRE_THAT( non_empty_array, !IsEmpty() )
2672 with expansion:
2673 { 0.0 } not is empty
2674
2675 MatchersRanges.tests.cpp:<line number>: PASSED:
2676 REQUIRE_THAT( empty_vec, IsEmpty() )
2677 with expansion:
2678 { } is empty
2679
2680 MatchersRanges.tests.cpp:<line number>: PASSED:
2681 REQUIRE_THAT( non_empty_vec, !IsEmpty() )
2682 with expansion:
2683 { 'a', 'b', 'c' } not is empty
2684
2685 MatchersRanges.tests.cpp:<line number>: PASSED:
2686 REQUIRE_THAT( inner_lists_are_empty, !IsEmpty() )
2687 with expansion:
2688 { { } } not is empty
2689
2690 MatchersRanges.tests.cpp:<line number>: PASSED:
2691 REQUIRE_THAT( inner_lists_are_empty.front(), IsEmpty() )
2692 with expansion:
2693 { } is empty
2694
2695 -------------------------------------------------------------------------------
2696 Basic use of the Empty range matcher
2697 Type with empty
2698 -------------------------------------------------------------------------------
2699 MatchersRanges.tests.cpp:<line number>
2700 ...............................................................................
2701
2702 MatchersRanges.tests.cpp:<line number>: PASSED:
2703 REQUIRE_THAT( has_empty{}, !IsEmpty() )
2704 with expansion:
2705 {?} not is empty
2706
2707 -------------------------------------------------------------------------------
2708 Basic use of the Empty range matcher
2709 Type requires ADL found empty free function
2710 -------------------------------------------------------------------------------
2711 MatchersRanges.tests.cpp:<line number>
2712 ...............................................................................
2713
2714 MatchersRanges.tests.cpp:<line number>: PASSED:
2715 REQUIRE_THAT( unrelated::ADL_empty{}, IsEmpty() )
2716 with expansion:
2717 {?} is empty
2718
2719 -------------------------------------------------------------------------------
2720 CAPTURE can deal with complex expressions
2721 -------------------------------------------------------------------------------
2722 Message.tests.cpp:<line number>
2723 ...............................................................................
2724
2725 Message.tests.cpp:<line number>: PASSED:
2726 with messages:
2727 a := 1
2728 b := 2
2729 c := 3
2730 a + b := 3
2731 a+b := 3
2732 c > b := true
2733 a == 1 := true
2734
2735 -------------------------------------------------------------------------------
2736 CAPTURE can deal with complex expressions involving commas
2737 -------------------------------------------------------------------------------
2738 Message.tests.cpp:<line number>
2739 ...............................................................................
2740
2741 Message.tests.cpp:<line number>: PASSED:
2742 with messages:
2743 std::vector<int>{1, 2, 3}[0, 1, 2] := 3
2744 std::vector<int>{1, 2, 3}[(0, 1)] := 2
2745 std::vector<int>{1, 2, 3}[0] := 1
2746 (helper_1436<int, int>{12, -12}) := { 12, -12 }
2747 (helper_1436<int, int>(-12, 12)) := { -12, 12 }
2748 (1, 2) := 2
2749 (2, 3) := 3
2750
2751 -------------------------------------------------------------------------------
2752 CAPTURE parses string and character constants
2753 -------------------------------------------------------------------------------
2754 Message.tests.cpp:<line number>
2755 ...............................................................................
2756
2757 Message.tests.cpp:<line number>: PASSED:
2758 with messages:
2759 ("comma, in string", "escaped, \", ") := "escaped, ", "
2760 "single quote in string,'," := "single quote in string,',"
2761 "some escapes, \\,\\\\" := "some escapes, \,\\"
2762 "some, ), unmatched, } prenheses {[<" := "some, ), unmatched, } prenheses {[
2763 <"
2764 '"' := '"'
2765 '\'' := '''
2766 ',' := ','
2767 '}' := '}'
2768 ')' := ')'
2769 '(' := '('
2770 '{' := '{'
2771
2772 -------------------------------------------------------------------------------
2773 Capture and info messages
2774 Capture should stringify like assertions
2775 -------------------------------------------------------------------------------
2776 ToStringGeneral.tests.cpp:<line number>
2777 ...............................................................................
2778
2779 ToStringGeneral.tests.cpp:<line number>: PASSED:
2780 REQUIRE( true )
2781 with message:
2782 i := 2
2783
2784 -------------------------------------------------------------------------------
2785 Capture and info messages
2786 Info should NOT stringify the way assertions do
2787 -------------------------------------------------------------------------------
2788 ToStringGeneral.tests.cpp:<line number>
2789 ...............................................................................
2790
2791 ToStringGeneral.tests.cpp:<line number>: PASSED:
2792 REQUIRE( true )
2793 with message:
2794 3
2795
2796 -------------------------------------------------------------------------------
2797 CaseInsensitiveEqualsTo is case insensitive
2798 Degenerate cases
2799 -------------------------------------------------------------------------------
2800 Details.tests.cpp:<line number>
2801 ...............................................................................
2802
2803 Details.tests.cpp:<line number>: PASSED:
2804 REQUIRE( eq( "", "" ) )
2805 with expansion:
2806 true
2807
2808 Details.tests.cpp:<line number>: PASSED:
2809 REQUIRE_FALSE( eq( "", "a" ) )
2810 with expansion:
2811 !false
2812
2813 -------------------------------------------------------------------------------
2814 CaseInsensitiveEqualsTo is case insensitive
2815 Plain comparisons
2816 -------------------------------------------------------------------------------
2817 Details.tests.cpp:<line number>
2818 ...............................................................................
2819
2820 Details.tests.cpp:<line number>: PASSED:
2821 REQUIRE( eq( "a", "a" ) )
2822 with expansion:
2823 true
2824
2825 Details.tests.cpp:<line number>: PASSED:
2826 REQUIRE( eq( "a", "A" ) )
2827 with expansion:
2828 true
2829
2830 Details.tests.cpp:<line number>: PASSED:
2831 REQUIRE( eq( "A", "a" ) )
2832 with expansion:
2833 true
2834
2835 Details.tests.cpp:<line number>: PASSED:
2836 REQUIRE( eq( "A", "A" ) )
2837 with expansion:
2838 true
2839
2840 Details.tests.cpp:<line number>: PASSED:
2841 REQUIRE_FALSE( eq( "a", "b" ) )
2842 with expansion:
2843 !false
2844
2845 Details.tests.cpp:<line number>: PASSED:
2846 REQUIRE_FALSE( eq( "a", "B" ) )
2847 with expansion:
2848 !false
2849
2850 -------------------------------------------------------------------------------
2851 CaseInsensitiveLess is case insensitive
2852 Degenerate cases
2853 -------------------------------------------------------------------------------
2854 Details.tests.cpp:<line number>
2855 ...............................................................................
2856
2857 Details.tests.cpp:<line number>: PASSED:
2858 REQUIRE( lt( "", "a" ) )
2859 with expansion:
2860 true
2861
2862 Details.tests.cpp:<line number>: PASSED:
2863 REQUIRE_FALSE( lt( "a", "a" ) )
2864 with expansion:
2865 !false
2866
2867 Details.tests.cpp:<line number>: PASSED:
2868 REQUIRE_FALSE( lt( "", "" ) )
2869 with expansion:
2870 !false
2871
2872 -------------------------------------------------------------------------------
2873 CaseInsensitiveLess is case insensitive
2874 Plain comparisons
2875 -------------------------------------------------------------------------------
2876 Details.tests.cpp:<line number>
2877 ...............................................................................
2878
2879 Details.tests.cpp:<line number>: PASSED:
2880 REQUIRE( lt( "a", "b" ) )
2881 with expansion:
2882 true
2883
2884 Details.tests.cpp:<line number>: PASSED:
2885 REQUIRE( lt( "a", "B" ) )
2886 with expansion:
2887 true
2888
2889 Details.tests.cpp:<line number>: PASSED:
2890 REQUIRE( lt( "A", "b" ) )
2891 with expansion:
2892 true
2893
2894 Details.tests.cpp:<line number>: PASSED:
2895 REQUIRE( lt( "A", "B" ) )
2896 with expansion:
2897 true
2898
2899 -------------------------------------------------------------------------------
2900 Character pretty printing
2901 Specifically escaped
2902 -------------------------------------------------------------------------------
2903 ToStringGeneral.tests.cpp:<line number>
2904 ...............................................................................
2905
2906 ToStringGeneral.tests.cpp:<line number>: PASSED:
2907 CHECK( tab == '\t' )
2908 with expansion:
2909 '\t' == '\t'
2910
2911 ToStringGeneral.tests.cpp:<line number>: PASSED:
2912 CHECK( newline == '\n' )
2913 with expansion:
2914 '\n' == '\n'
2915
2916 ToStringGeneral.tests.cpp:<line number>: PASSED:
2917 CHECK( carr_return == '\r' )
2918 with expansion:
2919 '\r' == '\r'
2920
2921 ToStringGeneral.tests.cpp:<line number>: PASSED:
2922 CHECK( form_feed == '\f' )
2923 with expansion:
2924 '\f' == '\f'
2925
2926 -------------------------------------------------------------------------------
2927 Character pretty printing
2928 General chars
2929 -------------------------------------------------------------------------------
2930 ToStringGeneral.tests.cpp:<line number>
2931 ...............................................................................
2932
2933 ToStringGeneral.tests.cpp:<line number>: PASSED:
2934 CHECK( space == ' ' )
2935 with expansion:
2936 ' ' == ' '
2937
2938 ToStringGeneral.tests.cpp:<line number>: PASSED:
2939 REQUIRE( c == chars[i] )
2940 with expansion:
2941 'a' == 'a'
2942
2943 ToStringGeneral.tests.cpp:<line number>: PASSED:
2944 REQUIRE( c == chars[i] )
2945 with expansion:
2946 'z' == 'z'
2947
2948 ToStringGeneral.tests.cpp:<line number>: PASSED:
2949 REQUIRE( c == chars[i] )
2950 with expansion:
2951 'A' == 'A'
2952
2953 ToStringGeneral.tests.cpp:<line number>: PASSED:
2954 REQUIRE( c == chars[i] )
2955 with expansion:
2956 'Z' == 'Z'
2957
2958 -------------------------------------------------------------------------------
2959 Character pretty printing
2960 Low ASCII
2961 -------------------------------------------------------------------------------
2962 ToStringGeneral.tests.cpp:<line number>
2963 ...............................................................................
2964
2965 ToStringGeneral.tests.cpp:<line number>: PASSED:
2966 CHECK( null_terminator == '\0' )
2967 with expansion:
2968 0 == 0
2969
2970 ToStringGeneral.tests.cpp:<line number>: PASSED:
2971 REQUIRE( c == i )
2972 with expansion:
2973 2 == 2
2974
2975 ToStringGeneral.tests.cpp:<line number>: PASSED:
2976 REQUIRE( c == i )
2977 with expansion:
2978 3 == 3
2979
2980 ToStringGeneral.tests.cpp:<line number>: PASSED:
2981 REQUIRE( c == i )
2982 with expansion:
2983 4 == 4
2984
2985 ToStringGeneral.tests.cpp:<line number>: PASSED:
2986 REQUIRE( c == i )
2987 with expansion:
2988 5 == 5
2989
2990 -------------------------------------------------------------------------------
2991 Clara::Arg supports single-arg parse the way Opt does
2992 -------------------------------------------------------------------------------
2993 Clara.tests.cpp:<line number>
2994 ...............................................................................
2995
2996 Clara.tests.cpp:<line number>: PASSED:
2997 CHECK( name.empty() )
2998 with expansion:
2999 true
3000
3001 Clara.tests.cpp:<line number>: PASSED:
3002 REQUIRE( name == "foo" )
3003 with expansion:
3004 "foo" == "foo"
3005
3006 -------------------------------------------------------------------------------
3007 Clara::Opt supports accept-many lambdas
3008 Parsing fails on multiple options without accept_many
3009 -------------------------------------------------------------------------------
3010 Clara.tests.cpp:<line number>
3011 ...............................................................................
3012
3013 Clara.tests.cpp:<line number>: PASSED:
3014 CHECK_FALSE( parse_result )
3015 with expansion:
3016 !{?}
3017
3018 -------------------------------------------------------------------------------
3019 Clara::Opt supports accept-many lambdas
3020 Parsing succeeds on multiple options with accept_many
3021 -------------------------------------------------------------------------------
3022 Clara.tests.cpp:<line number>
3023 ...............................................................................
3024
3025 Clara.tests.cpp:<line number>: PASSED:
3026 CHECK( parse_result )
3027 with expansion:
3028 {?}
3029
3030 Clara.tests.cpp:<line number>: PASSED:
3031 CHECK( res == std::vector<std::string>{ "aaa", "bbb" } )
3032 with expansion:
3033 { "aaa", "bbb" } == { "aaa", "bbb" }
3034
3035 -------------------------------------------------------------------------------
3036 ColourGuard behaviour
3037 ColourGuard is disengaged by default
3038 -------------------------------------------------------------------------------
3039 ColourImpl.tests.cpp:<line number>
3040 ...............................................................................
3041
3042 ColourImpl.tests.cpp:<line number>: PASSED:
3043 REQUIRE( streamWrapper.str().empty() )
3044 with expansion:
3045 true
3046
3047 -------------------------------------------------------------------------------
3048 ColourGuard behaviour
3049 ColourGuard is engaged by op<<
3050 -------------------------------------------------------------------------------
3051 ColourImpl.tests.cpp:<line number>
3052 ...............................................................................
3053
3054 ColourImpl.tests.cpp:<line number>: PASSED:
3055 REQUIRE( streamWrapper.str() == "1\nUsing code: 2\n2\nUsing code: 0\n3\n" )
3056 with expansion:
3057 "1
3058 Using code: 2
3059 2
3060 Using code: 0
3061 3
3062 "
3063 ==
3064 "1
3065 Using code: 2
3066 2
3067 Using code: 0
3068 3
3069 "
3070
3071 -------------------------------------------------------------------------------
3072 ColourGuard behaviour
3073 ColourGuard can be engaged explicitly
3074 -------------------------------------------------------------------------------
3075 ColourImpl.tests.cpp:<line number>
3076 ...............................................................................
3077
3078 ColourImpl.tests.cpp:<line number>: PASSED:
3079 REQUIRE( streamWrapper.str() == "Using code: 2\nA\nB\nUsing code: 0\nC\n" )
3080 with expansion:
3081 "Using code: 2
3082 A
3083 B
3084 Using code: 0
3085 C
3086 "
3087 ==
3088 "Using code: 2
3089 A
3090 B
3091 Using code: 0
3092 C
3093 "
3094
3095 -------------------------------------------------------------------------------
3096 Combining MatchAllOfGeneric does not nest
3097 -------------------------------------------------------------------------------
3098 Matchers.tests.cpp:<line number>
3099 ...............................................................................
3100
3101 Matchers.tests.cpp:<line number>: PASSED:
3102 with message:
3103 std::is_same< decltype( ( MatcherA() && MatcherB() ) && MatcherC() ), Catch::
3104 Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3105
3106 Matchers.tests.cpp:<line number>: PASSED:
3107 REQUIRE_THAT( 1, ( MatcherA() && MatcherB() ) && MatcherC() )
3108 with expansion:
3109 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3110 1 )
3111
3112 Matchers.tests.cpp:<line number>: PASSED:
3113 with message:
3114 std::is_same< decltype( MatcherA() && ( MatcherB() && MatcherC() ) ), Catch::
3115 Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3116
3117 Matchers.tests.cpp:<line number>: PASSED:
3118 REQUIRE_THAT( 1, MatcherA() && ( MatcherB() && MatcherC() ) )
3119 with expansion:
3120 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3121 1 )
3122
3123 Matchers.tests.cpp:<line number>: PASSED:
3124 with message:
3125 std::is_same< decltype( ( MatcherA() && MatcherB() ) && ( MatcherC() &&
3126 MatcherD() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA,
3127 MatcherB, MatcherC, MatcherD>>:: value
3128
3129 Matchers.tests.cpp:<line number>: PASSED:
3130 REQUIRE_THAT( 1, ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) )
3131 with expansion:
3132 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3133 1 and equals: true )
3134
3135 -------------------------------------------------------------------------------
3136 Combining MatchAnyOfGeneric does not nest
3137 -------------------------------------------------------------------------------
3138 Matchers.tests.cpp:<line number>
3139 ...............................................................................
3140
3141 Matchers.tests.cpp:<line number>: PASSED:
3142 with message:
3143 std::is_same< decltype( ( MatcherA() || MatcherB() ) || MatcherC() ), Catch::
3144 Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3145
3146 Matchers.tests.cpp:<line number>: PASSED:
3147 REQUIRE_THAT( 1, ( MatcherA() || MatcherB() ) || MatcherC() )
3148 with expansion:
3149 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3150 )
3151
3152 Matchers.tests.cpp:<line number>: PASSED:
3153 with message:
3154 std::is_same< decltype( MatcherA() || ( MatcherB() || MatcherC() ) ), Catch::
3155 Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3156
3157 Matchers.tests.cpp:<line number>: PASSED:
3158 REQUIRE_THAT( 1, MatcherA() || ( MatcherB() || MatcherC() ) )
3159 with expansion:
3160 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3161 )
3162
3163 Matchers.tests.cpp:<line number>: PASSED:
3164 with message:
3165 std::is_same< decltype( ( MatcherA() || MatcherB() ) || ( MatcherC() ||
3166 MatcherD() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA,
3167 MatcherB, MatcherC, MatcherD>>:: value
3168
3169 Matchers.tests.cpp:<line number>: PASSED:
3170 REQUIRE_THAT( 1, ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) )
3171 with expansion:
3172 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3173 or equals: true )
3174
3175 -------------------------------------------------------------------------------
3176 Combining MatchNotOfGeneric does not nest
3177 -------------------------------------------------------------------------------
3178 Matchers.tests.cpp:<line number>
3179 ...............................................................................
3180
3181 Matchers.tests.cpp:<line number>: PASSED:
3182 with message:
3183 std::is_same< decltype( !MatcherA() ), Catch::Matchers::Detail::
3184 MatchNotOfGeneric<MatcherA>>::value
3185
3186 Matchers.tests.cpp:<line number>: PASSED:
3187 REQUIRE_THAT( 0, !MatcherA() )
3188 with expansion:
3189 0 not equals: (int) 1 or (string) "1"
3190
3191 Matchers.tests.cpp:<line number>: PASSED:
3192 with message:
3193 std::is_same<decltype( !!MatcherA() ), MatcherA const&>::value
3194
3195 Matchers.tests.cpp:<line number>: PASSED:
3196 REQUIRE_THAT( 1, !!MatcherA() )
3197 with expansion:
3198 1 equals: (int) 1 or (string) "1"
3199
3200 Matchers.tests.cpp:<line number>: PASSED:
3201 with message:
3202 std::is_same< decltype( !!!MatcherA() ), Catch::Matchers::Detail::
3203 MatchNotOfGeneric<MatcherA>>::value
3204
3205 Matchers.tests.cpp:<line number>: PASSED:
3206 REQUIRE_THAT( 0, !!!MatcherA() )
3207 with expansion:
3208 0 not equals: (int) 1 or (string) "1"
3209
3210 Matchers.tests.cpp:<line number>: PASSED:
3211 with message:
3212 std::is_same<decltype( !!!!MatcherA() ), MatcherA const&>::value
3213
3214 Matchers.tests.cpp:<line number>: PASSED:
3215 REQUIRE_THAT( 1, !!!!MatcherA() )
3216 with expansion:
3217 1 equals: (int) 1 or (string) "1"
3218
3219 -------------------------------------------------------------------------------
3220 Combining concrete matchers does not use templated matchers
3221 -------------------------------------------------------------------------------
3222 Matchers.tests.cpp:<line number>
3223 ...............................................................................
3224
3225 Matchers.tests.cpp:<line number>: PASSED:
3226 with message:
3227 std::is_same<decltype( StartsWith( "foo" ) || ( StartsWith( "bar" ) &&
3228 EndsWith( "bar" ) && !EndsWith( "foo" ) ) ), Catch::Matchers::Detail::
3229 MatchAnyOf<std::string>>::value
3230
3231 -------------------------------------------------------------------------------
3232 Combining only templated matchers
3233 -------------------------------------------------------------------------------
3234 Matchers.tests.cpp:<line number>
3235 ...............................................................................
3236
3237 Matchers.tests.cpp:<line number>: PASSED:
3238 with message:
3239 std::is_same<decltype( MatcherA() || MatcherB() ), Catch::Matchers::Detail::
3240 MatchAnyOfGeneric<MatcherA, MatcherB>>::value
3241
3242 Matchers.tests.cpp:<line number>: PASSED:
3243 REQUIRE_THAT( 1, MatcherA() || MatcherB() )
3244 with expansion:
3245 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 )
3246
3247 Matchers.tests.cpp:<line number>: PASSED:
3248 with message:
3249 std::is_same<decltype( MatcherA() && MatcherB() ), Catch::Matchers::Detail::
3250 MatchAllOfGeneric<MatcherA, MatcherB>>::value
3251
3252 Matchers.tests.cpp:<line number>: PASSED:
3253 REQUIRE_THAT( 1, MatcherA() && MatcherB() )
3254 with expansion:
3255 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 )
3256
3257 Matchers.tests.cpp:<line number>: PASSED:
3258 with message:
3259 std::is_same< decltype( MatcherA() || !MatcherB() ), Catch::Matchers::Detail:
3260 :MatchAnyOfGeneric< MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric
3261 <MatcherB>>>::value
3262
3263 Matchers.tests.cpp:<line number>: PASSED:
3264 REQUIRE_THAT( 1, MatcherA() || !MatcherB() )
3265 with expansion:
3266 1 ( equals: (int) 1 or (string) "1" or not equals: (long long) 1 )
3267
3268 -------------------------------------------------------------------------------
3269 Combining templated and concrete matchers
3270 -------------------------------------------------------------------------------
3271 Matchers.tests.cpp:<line number>
3272 ...............................................................................
3273
3274 Matchers.tests.cpp:<line number>: PASSED:
3275 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 ) )
3276 with expansion:
3277 { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5,
3278 3, 1 } )
3279
3280 Matchers.tests.cpp:<line number>: PASSED:
3281 REQUIRE_THAT( str, StartsWith( "foo" ) && EqualsRange( arr ) && EndsWith( "bar" ) )
3282 with expansion:
3283 "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' }
3284 and ends with: "bar" )
3285
3286 Matchers.tests.cpp:<line number>: PASSED:
3287 REQUIRE_THAT( str, StartsWith( "foo" ) && !EqualsRange( bad_arr ) && EndsWith( "bar" ) )
3288 with expansion:
3289 "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r'
3290 } and ends with: "bar" )
3291
3292 Matchers.tests.cpp:<line number>: PASSED:
3293 REQUIRE_THAT( str, EqualsRange( arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) )
3294 with expansion:
3295 "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo"
3296 and ends with: "bar" )
3297
3298 Matchers.tests.cpp:<line number>: PASSED:
3299 REQUIRE_THAT( str, !EqualsRange( bad_arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) )
3300 with expansion:
3301 "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with:
3302 "foo" and ends with: "bar" )
3303
3304 Matchers.tests.cpp:<line number>: PASSED:
3305 REQUIRE_THAT( str, EqualsRange( bad_arr ) || ( StartsWith( "foo" ) && EndsWith( "bar" ) ) )
3306 with expansion:
3307 "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo"
3308 and ends with: "bar" ) )
3309
3310 Matchers.tests.cpp:<line number>: PASSED:
3311 REQUIRE_THAT( str, ( StartsWith( "foo" ) && EndsWith( "bar" ) ) || EqualsRange( bad_arr ) )
3312 with expansion:
3313 "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o',
3314 'f', 'b', 'a', 'r' } )
3315
3316 -------------------------------------------------------------------------------
3317 Combining templated matchers
3318 -------------------------------------------------------------------------------
3319 Matchers.tests.cpp:<line number>
3320 ...............................................................................
3321
3322 Matchers.tests.cpp:<line number>: PASSED:
3323 REQUIRE_THAT( container, EqualsRange( a ) || EqualsRange( b ) || EqualsRange( c ) )
3324 with expansion:
3325 { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6
3326 } )
3327
3328 -------------------------------------------------------------------------------
3329 Commas in various macros are allowed
3330 -------------------------------------------------------------------------------
3331 Tricky.tests.cpp:<line number>
3332 ...............................................................................
3333
3334 Tricky.tests.cpp:<line number>: PASSED:
3335 REQUIRE_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
3336
3337 Tricky.tests.cpp:<line number>: PASSED:
3338 CHECK_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
3339
3340 Tricky.tests.cpp:<line number>: PASSED:
3341 REQUIRE_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
3342
3343 Tricky.tests.cpp:<line number>: PASSED:
3344 CHECK_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
3345
3346 Tricky.tests.cpp:<line number>: PASSED:
3347 REQUIRE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3348 with expansion:
3349 { 1, 2 } == { 1, 2 }
3350
3351 Tricky.tests.cpp:<line number>: PASSED:
3352 CHECK( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3353 with expansion:
3354 { 1, 2 } == { 1, 2 }
3355
3356 Tricky.tests.cpp:<line number>: PASSED:
3357 REQUIRE_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
3358 with expansion:
3359 !({ 1, 2 } == { 1, 2, 3 })
3360
3361 Tricky.tests.cpp:<line number>: PASSED:
3362 CHECK_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
3363 with expansion:
3364 !({ 1, 2 } == { 1, 2, 3 })
3365
3366 Tricky.tests.cpp:<line number>: PASSED:
3367 CHECK_NOFAIL( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3368 with expansion:
3369 { 1, 2 } == { 1, 2 }
3370
3371 Tricky.tests.cpp:<line number>: PASSED:
3372 CHECKED_IF( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3373 with expansion:
3374 { 1, 2 } == { 1, 2 }
3375
3376 Tricky.tests.cpp:<line number>: PASSED:
3377 REQUIRE( true )
3378
3379 Tricky.tests.cpp:<line number>: PASSED:
3380 CHECKED_ELSE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3381 with expansion:
3382 { 1, 2 } == { 1, 2 }
3383
3384 -------------------------------------------------------------------------------
3385 Comparing function pointers
3386 -------------------------------------------------------------------------------
3387 Tricky.tests.cpp:<line number>
3388 ...............................................................................
3389
3390 Tricky.tests.cpp:<line number>: PASSED:
3391 REQUIRE( a )
3392 with expansion:
3393 0x<hex digits>
3394
3395 Tricky.tests.cpp:<line number>: PASSED:
3396 REQUIRE( a == &foo )
3397 with expansion:
3398 0x<hex digits> == 0x<hex digits>
3399
3400 -------------------------------------------------------------------------------
3401 Comparison ops
3402 -------------------------------------------------------------------------------
3403 RandomNumberGeneration.tests.cpp:<line number>
3404 ...............................................................................
3405
3406 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3407 REQUIRE( SimplePcg32{} == SimplePcg32{} )
3408 with expansion:
3409 {?} == {?}
3410
3411 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3412 REQUIRE( SimplePcg32{ 0 } != SimplePcg32{} )
3413 with expansion:
3414 {?} != {?}
3415
3416 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3417 REQUIRE_FALSE( SimplePcg32{ 1 } == SimplePcg32{ 2 } )
3418 with expansion:
3419 !({?} == {?})
3420
3421 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3422 REQUIRE_FALSE( SimplePcg32{ 1 } != SimplePcg32{ 1 } )
3423 with expansion:
3424 !({?} != {?})
3425
3426 -------------------------------------------------------------------------------
3427 Comparison with explicitly convertible types
3428 -------------------------------------------------------------------------------
3429 Approx.tests.cpp:<line number>
3430 ...............................................................................
3431
3432 Approx.tests.cpp:<line number>: PASSED:
3433 REQUIRE( td == Approx(10.0) )
3434 with expansion:
3435 StrongDoubleTypedef(10) == Approx( 10.0 )
3436
3437 Approx.tests.cpp:<line number>: PASSED:
3438 REQUIRE( Approx(10.0) == td )
3439 with expansion:
3440 Approx( 10.0 ) == StrongDoubleTypedef(10)
3441
3442 Approx.tests.cpp:<line number>: PASSED:
3443 REQUIRE( td != Approx(11.0) )
3444 with expansion:
3445 StrongDoubleTypedef(10) != Approx( 11.0 )
3446
3447 Approx.tests.cpp:<line number>: PASSED:
3448 REQUIRE( Approx(11.0) != td )
3449 with expansion:
3450 Approx( 11.0 ) != StrongDoubleTypedef(10)
3451
3452 Approx.tests.cpp:<line number>: PASSED:
3453 REQUIRE( td <= Approx(10.0) )
3454 with expansion:
3455 StrongDoubleTypedef(10) <= Approx( 10.0 )
3456
3457 Approx.tests.cpp:<line number>: PASSED:
3458 REQUIRE( td <= Approx(11.0) )
3459 with expansion:
3460 StrongDoubleTypedef(10) <= Approx( 11.0 )
3461
3462 Approx.tests.cpp:<line number>: PASSED:
3463 REQUIRE( Approx(10.0) <= td )
3464 with expansion:
3465 Approx( 10.0 ) <= StrongDoubleTypedef(10)
3466
3467 Approx.tests.cpp:<line number>: PASSED:
3468 REQUIRE( Approx(9.0) <= td )
3469 with expansion:
3470 Approx( 9.0 ) <= StrongDoubleTypedef(10)
3471
3472 Approx.tests.cpp:<line number>: PASSED:
3473 REQUIRE( td >= Approx(9.0) )
3474 with expansion:
3475 StrongDoubleTypedef(10) >= Approx( 9.0 )
3476
3477 Approx.tests.cpp:<line number>: PASSED:
3478 REQUIRE( td >= Approx(td) )
3479 with expansion:
3480 StrongDoubleTypedef(10) >= Approx( 10.0 )
3481
3482 Approx.tests.cpp:<line number>: PASSED:
3483 REQUIRE( Approx(td) >= td )
3484 with expansion:
3485 Approx( 10.0 ) >= StrongDoubleTypedef(10)
3486
3487 Approx.tests.cpp:<line number>: PASSED:
3488 REQUIRE( Approx(11.0) >= td )
3489 with expansion:
3490 Approx( 11.0 ) >= StrongDoubleTypedef(10)
3491
3492 -------------------------------------------------------------------------------
3493 Comparisons between ints where one side is computed
3494 -------------------------------------------------------------------------------
3495 Condition.tests.cpp:<line number>
3496 ...............................................................................
3497
3498 Condition.tests.cpp:<line number>: PASSED:
3499 CHECK( 54 == 6*9 )
3500 with expansion:
3501 54 == 54
3502
3503 -------------------------------------------------------------------------------
3504 Comparisons between unsigned ints and negative signed ints match c++ standard
3505 behaviour
3506 -------------------------------------------------------------------------------
3507 Condition.tests.cpp:<line number>
3508 ...............................................................................
3509
3510 Condition.tests.cpp:<line number>: PASSED:
3511 CHECK( ( -1 > 2u ) )
3512 with expansion:
3513 true
3514
3515 Condition.tests.cpp:<line number>: PASSED:
3516 CHECK( -1 > 2u )
3517 with expansion:
3518 -1 > 2
3519
3520 Condition.tests.cpp:<line number>: PASSED:
3521 CHECK( ( 2u < -1 ) )
3522 with expansion:
3523 true
3524
3525 Condition.tests.cpp:<line number>: PASSED:
3526 CHECK( 2u < -1 )
3527 with expansion:
3528 2 < -1
3529
3530 Condition.tests.cpp:<line number>: PASSED:
3531 CHECK( ( minInt > 2u ) )
3532 with expansion:
3533 true
3534
3535 Condition.tests.cpp:<line number>: PASSED:
3536 CHECK( minInt > 2u )
3537 with expansion:
3538 -2147483648 > 2
3539
3540 -------------------------------------------------------------------------------
3541 Comparisons with int literals don't warn when mixing signed/ unsigned
3542 -------------------------------------------------------------------------------
3543 Condition.tests.cpp:<line number>
3544 ...............................................................................
3545
3546 Condition.tests.cpp:<line number>: PASSED:
3547 REQUIRE( i == 1 )
3548 with expansion:
3549 1 == 1
3550
3551 Condition.tests.cpp:<line number>: PASSED:
3552 REQUIRE( ui == 2 )
3553 with expansion:
3554 2 == 2
3555
3556 Condition.tests.cpp:<line number>: PASSED:
3557 REQUIRE( l == 3 )
3558 with expansion:
3559 3 == 3
3560
3561 Condition.tests.cpp:<line number>: PASSED:
3562 REQUIRE( ul == 4 )
3563 with expansion:
3564 4 == 4
3565
3566 Condition.tests.cpp:<line number>: PASSED:
3567 REQUIRE( c == 5 )
3568 with expansion:
3569 5 == 5
3570
3571 Condition.tests.cpp:<line number>: PASSED:
3572 REQUIRE( uc == 6 )
3573 with expansion:
3574 6 == 6
3575
3576 Condition.tests.cpp:<line number>: PASSED:
3577 REQUIRE( 1 == i )
3578 with expansion:
3579 1 == 1
3580
3581 Condition.tests.cpp:<line number>: PASSED:
3582 REQUIRE( 2 == ui )
3583 with expansion:
3584 2 == 2
3585
3586 Condition.tests.cpp:<line number>: PASSED:
3587 REQUIRE( 3 == l )
3588 with expansion:
3589 3 == 3
3590
3591 Condition.tests.cpp:<line number>: PASSED:
3592 REQUIRE( 4 == ul )
3593 with expansion:
3594 4 == 4
3595
3596 Condition.tests.cpp:<line number>: PASSED:
3597 REQUIRE( 5 == c )
3598 with expansion:
3599 5 == 5
3600
3601 Condition.tests.cpp:<line number>: PASSED:
3602 REQUIRE( 6 == uc )
3603 with expansion:
3604 6 == 6
3605
3606 Condition.tests.cpp:<line number>: PASSED:
3607 REQUIRE( (std::numeric_limits<uint32_t>::max)() > ul )
3608 with expansion:
3609 4294967295 (0x<hex digits>) > 4
3610
3611 -------------------------------------------------------------------------------
3612 Composed generic matchers shortcircuit
3613 MatchAllOf
3614 -------------------------------------------------------------------------------
3615 Matchers.tests.cpp:<line number>
3616 ...............................................................................
3617
3618 Matchers.tests.cpp:<line number>: PASSED:
3619 CHECK_FALSE( matcher.match( 1 ) )
3620 with expansion:
3621 !false
3622
3623 Matchers.tests.cpp:<line number>: PASSED:
3624 REQUIRE( first.matchCalled )
3625 with expansion:
3626 true
3627
3628 Matchers.tests.cpp:<line number>: PASSED:
3629 REQUIRE( !second.matchCalled )
3630 with expansion:
3631 true
3632
3633 -------------------------------------------------------------------------------
3634 Composed generic matchers shortcircuit
3635 MatchAnyOf
3636 -------------------------------------------------------------------------------
3637 Matchers.tests.cpp:<line number>
3638 ...............................................................................
3639
3640 Matchers.tests.cpp:<line number>: PASSED:
3641 CHECK( matcher.match( 1 ) )
3642 with expansion:
3643 true
3644
3645 Matchers.tests.cpp:<line number>: PASSED:
3646 REQUIRE( first.matchCalled )
3647 with expansion:
3648 true
3649
3650 Matchers.tests.cpp:<line number>: PASSED:
3651 REQUIRE( !second.matchCalled )
3652 with expansion:
3653 true
3654
3655 -------------------------------------------------------------------------------
3656 Composed matchers shortcircuit
3657 MatchAllOf
3658 -------------------------------------------------------------------------------
3659 Matchers.tests.cpp:<line number>
3660 ...............................................................................
3661
3662 Matchers.tests.cpp:<line number>: PASSED:
3663 CHECK_FALSE( matcher.match( 1 ) )
3664 with expansion:
3665 !false
3666
3667 Matchers.tests.cpp:<line number>: PASSED:
3668 REQUIRE( first.matchCalled )
3669 with expansion:
3670 true
3671
3672 Matchers.tests.cpp:<line number>: PASSED:
3673 REQUIRE( !second.matchCalled )
3674 with expansion:
3675 true
3676
3677 -------------------------------------------------------------------------------
3678 Composed matchers shortcircuit
3679 MatchAnyOf
3680 -------------------------------------------------------------------------------
3681 Matchers.tests.cpp:<line number>
3682 ...............................................................................
3683
3684 Matchers.tests.cpp:<line number>: PASSED:
3685 CHECK( matcher.match( 1 ) )
3686 with expansion:
3687 true
3688
3689 Matchers.tests.cpp:<line number>: PASSED:
3690 REQUIRE( first.matchCalled )
3691 with expansion:
3692 true
3693
3694 Matchers.tests.cpp:<line number>: PASSED:
3695 REQUIRE( !second.matchCalled )
3696 with expansion:
3697 true
3698
3699 -------------------------------------------------------------------------------
3700 Contains string matcher
3701 -------------------------------------------------------------------------------
3702 Matchers.tests.cpp:<line number>
3703 ...............................................................................
3704
3705 Matchers.tests.cpp:<line number>: FAILED:
3706 CHECK_THAT( testStringForMatching(), ContainsSubstring( "not there", Catch::CaseSensitive::No ) )
3707 with expansion:
3708 "this string contains 'abc' as a substring" contains: "not there" (case
3709 insensitive)
3710
3711 Matchers.tests.cpp:<line number>: FAILED:
3712 CHECK_THAT( testStringForMatching(), ContainsSubstring( "STRING" ) )
3713 with expansion:
3714 "this string contains 'abc' as a substring" contains: "STRING"
3715
3716 -------------------------------------------------------------------------------
3717 Copy and then generate a range
3718 from var and iterators
3719 -------------------------------------------------------------------------------
3720 Generators.tests.cpp:<line number>
3721 ...............................................................................
3722
3723 Generators.tests.cpp:<line number>: PASSED:
3724 REQUIRE( elem % 2 == 1 )
3725 with expansion:
3726 1 == 1
3727
3728 -------------------------------------------------------------------------------
3729 Copy and then generate a range
3730 from var and iterators
3731 -------------------------------------------------------------------------------
3732 Generators.tests.cpp:<line number>
3733 ...............................................................................
3734
3735 Generators.tests.cpp:<line number>: PASSED:
3736 REQUIRE( elem % 2 == 1 )
3737 with expansion:
3738 1 == 1
3739
3740 -------------------------------------------------------------------------------
3741 Copy and then generate a range
3742 from var and iterators
3743 -------------------------------------------------------------------------------
3744 Generators.tests.cpp:<line number>
3745 ...............................................................................
3746
3747 Generators.tests.cpp:<line number>: PASSED:
3748 REQUIRE( elem % 2 == 1 )
3749 with expansion:
3750 1 == 1
3751
3752 -------------------------------------------------------------------------------
3753 Copy and then generate a range
3754 from var and iterators
3755 -------------------------------------------------------------------------------
3756 Generators.tests.cpp:<line number>
3757 ...............................................................................
3758
3759 Generators.tests.cpp:<line number>: PASSED:
3760 REQUIRE( elem % 2 == 1 )
3761 with expansion:
3762 1 == 1
3763
3764 -------------------------------------------------------------------------------
3765 Copy and then generate a range
3766 from var and iterators
3767 -------------------------------------------------------------------------------
3768 Generators.tests.cpp:<line number>
3769 ...............................................................................
3770
3771 Generators.tests.cpp:<line number>: PASSED:
3772 REQUIRE( elem % 2 == 1 )
3773 with expansion:
3774 1 == 1
3775
3776 -------------------------------------------------------------------------------
3777 Copy and then generate a range
3778 from var and iterators
3779 -------------------------------------------------------------------------------
3780 Generators.tests.cpp:<line number>
3781 ...............................................................................
3782
3783 Generators.tests.cpp:<line number>: PASSED:
3784 REQUIRE( elem % 2 == 1 )
3785 with expansion:
3786 1 == 1
3787
3788 -------------------------------------------------------------------------------
3789 Copy and then generate a range
3790 From a temporary container
3791 -------------------------------------------------------------------------------
3792 Generators.tests.cpp:<line number>
3793 ...............................................................................
3794
3795 Generators.tests.cpp:<line number>: PASSED:
3796 REQUIRE( elem % 2 == 1 )
3797 with expansion:
3798 1 == 1
3799
3800 -------------------------------------------------------------------------------
3801 Copy and then generate a range
3802 From a temporary container
3803 -------------------------------------------------------------------------------
3804 Generators.tests.cpp:<line number>
3805 ...............................................................................
3806
3807 Generators.tests.cpp:<line number>: PASSED:
3808 REQUIRE( elem % 2 == 1 )
3809 with expansion:
3810 1 == 1
3811
3812 -------------------------------------------------------------------------------
3813 Copy and then generate a range
3814 From a temporary container
3815 -------------------------------------------------------------------------------
3816 Generators.tests.cpp:<line number>
3817 ...............................................................................
3818
3819 Generators.tests.cpp:<line number>: PASSED:
3820 REQUIRE( elem % 2 == 1 )
3821 with expansion:
3822 1 == 1
3823
3824 -------------------------------------------------------------------------------
3825 Copy and then generate a range
3826 From a temporary container
3827 -------------------------------------------------------------------------------
3828 Generators.tests.cpp:<line number>
3829 ...............................................................................
3830
3831 Generators.tests.cpp:<line number>: PASSED:
3832 REQUIRE( elem % 2 == 1 )
3833 with expansion:
3834 1 == 1
3835
3836 -------------------------------------------------------------------------------
3837 Copy and then generate a range
3838 From a temporary container
3839 -------------------------------------------------------------------------------
3840 Generators.tests.cpp:<line number>
3841 ...............................................................................
3842
3843 Generators.tests.cpp:<line number>: PASSED:
3844 REQUIRE( elem % 2 == 1 )
3845 with expansion:
3846 1 == 1
3847
3848 -------------------------------------------------------------------------------
3849 Copy and then generate a range
3850 From a temporary container
3851 -------------------------------------------------------------------------------
3852 Generators.tests.cpp:<line number>
3853 ...............................................................................
3854
3855 Generators.tests.cpp:<line number>: PASSED:
3856 REQUIRE( elem % 2 == 1 )
3857 with expansion:
3858 1 == 1
3859
3860 -------------------------------------------------------------------------------
3861 Copy and then generate a range
3862 Final validation
3863 -------------------------------------------------------------------------------
3864 Generators.tests.cpp:<line number>
3865 ...............................................................................
3866
3867 Generators.tests.cpp:<line number>: PASSED:
3868 REQUIRE( call_count == 1 )
3869 with expansion:
3870 1 == 1
3871
3872 Generators.tests.cpp:<line number>: PASSED:
3873 REQUIRE( make_data().size() == test_count )
3874 with expansion:
3875 6 == 6
3876
3877 -------------------------------------------------------------------------------
3878 Cout stream properly declares it writes to stdout
3879 -------------------------------------------------------------------------------
3880 Stream.tests.cpp:<line number>
3881 ...............................................................................
3882
3883 Stream.tests.cpp:<line number>: PASSED:
3884 REQUIRE( Catch::makeStream( "-" )->isConsole() )
3885 with expansion:
3886 true
3887
3888 -------------------------------------------------------------------------------
3889 Custom exceptions can be translated when testing for nothrow
3890 -------------------------------------------------------------------------------
3891 Exception.tests.cpp:<line number>
3892 ...............................................................................
3893
3894 Exception.tests.cpp:<line number>: FAILED:
3895 REQUIRE_NOTHROW( throwCustom() )
3896 due to unexpected exception with message:
3897 custom exception - not std
3898
3899 -------------------------------------------------------------------------------
3900 Custom exceptions can be translated when testing for throwing as something else
3901 -------------------------------------------------------------------------------
3902 Exception.tests.cpp:<line number>
3903 ...............................................................................
3904
3905 Exception.tests.cpp:<line number>: FAILED:
3906 REQUIRE_THROWS_AS( throwCustom(), std::exception )
3907 due to unexpected exception with message:
3908 custom exception - not std
3909
3910 -------------------------------------------------------------------------------
3911 Custom std-exceptions can be custom translated
3912 -------------------------------------------------------------------------------
3913 Exception.tests.cpp:<line number>
3914 ...............................................................................
3915
3916 Exception.tests.cpp:<line number>: FAILED:
3917 due to unexpected exception with message:
3918 custom std exception
3919
3920 -------------------------------------------------------------------------------
3921 Default scale is invisible to comparison
3922 -------------------------------------------------------------------------------
3923 Approx.tests.cpp:<line number>
3924 ...............................................................................
3925
3926 Approx.tests.cpp:<line number>: PASSED:
3927 REQUIRE( 101.000001 != Approx(100).epsilon(0.01) )
3928 with expansion:
3929 101.000001 != Approx( 100.0 )
3930
3931 Approx.tests.cpp:<line number>: PASSED:
3932 REQUIRE( std::pow(10, -5) != Approx(std::pow(10, -7)) )
3933 with expansion:
3934 0.00001 != Approx( 0.0000001 )
3935
3936 -------------------------------------------------------------------------------
3937 Directly creating an EnumInfo
3938 -------------------------------------------------------------------------------
3939 ToString.tests.cpp:<line number>
3940 ...............................................................................
3941
3942 ToString.tests.cpp:<line number>: PASSED:
3943 CHECK( enumInfo->lookup(0) == "Value1" )
3944 with expansion:
3945 Value1 == "Value1"
3946
3947 ToString.tests.cpp:<line number>: PASSED:
3948 CHECK( enumInfo->lookup(1) == "Value2" )
3949 with expansion:
3950 Value2 == "Value2"
3951
3952 ToString.tests.cpp:<line number>: PASSED:
3953 CHECK( enumInfo->lookup(3) == "{** unexpected enum value **}" )
3954 with expansion:
3955 {** unexpected enum value **}
3956 ==
3957 "{** unexpected enum value **}"
3958
3959 -------------------------------------------------------------------------------
3960 Empty generators can SKIP in constructor
3961 -------------------------------------------------------------------------------
3962 Skip.tests.cpp:<line number>
3963 ...............................................................................
3964
3965 Skip.tests.cpp:<line number>: SKIPPED:
3966 explicitly with message:
3967 This generator is empty
3968
3969 -------------------------------------------------------------------------------
3970 Empty stream name opens cout stream
3971 -------------------------------------------------------------------------------
3972 Stream.tests.cpp:<line number>
3973 ...............................................................................
3974
3975 Stream.tests.cpp:<line number>: PASSED:
3976 REQUIRE( Catch::makeStream( "" )->isConsole() )
3977 with expansion:
3978 true
3979
3980 -------------------------------------------------------------------------------
3981 EndsWith string matcher
3982 -------------------------------------------------------------------------------
3983 Matchers.tests.cpp:<line number>
3984 ...............................................................................
3985
3986 Matchers.tests.cpp:<line number>: FAILED:
3987 CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) )
3988 with expansion:
3989 "this string contains 'abc' as a substring" ends with: "Substring"
3990
3991 Matchers.tests.cpp:<line number>: FAILED:
3992 CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) )
3993 with expansion:
3994 "this string contains 'abc' as a substring" ends with: "this" (case
3995 insensitive)
3996
3997 -------------------------------------------------------------------------------
3998 Enums can quickly have stringification enabled using REGISTER_ENUM
3999 -------------------------------------------------------------------------------
4000 EnumToString.tests.cpp:<line number>
4001 ...............................................................................
4002
4003 EnumToString.tests.cpp:<line number>: PASSED:
4004 REQUIRE( stringify( EnumClass3::Value1 ) == "Value1" )
4005 with expansion:
4006 "Value1" == "Value1"
4007
4008 EnumToString.tests.cpp:<line number>: PASSED:
4009 REQUIRE( stringify( EnumClass3::Value2 ) == "Value2" )
4010 with expansion:
4011 "Value2" == "Value2"
4012
4013 EnumToString.tests.cpp:<line number>: PASSED:
4014 REQUIRE( stringify( EnumClass3::Value3 ) == "Value3" )
4015 with expansion:
4016 "Value3" == "Value3"
4017
4018 EnumToString.tests.cpp:<line number>: PASSED:
4019 REQUIRE( stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}" )
4020 with expansion:
4021 "{** unexpected enum value **}"
4022 ==
4023 "{** unexpected enum value **}"
4024
4025 EnumToString.tests.cpp:<line number>: PASSED:
4026 REQUIRE( stringify( ec3 ) == "Value2" )
4027 with expansion:
4028 "Value2" == "Value2"
4029
4030 -------------------------------------------------------------------------------
4031 Enums in namespaces can quickly have stringification enabled using
4032 REGISTER_ENUM
4033 -------------------------------------------------------------------------------
4034 EnumToString.tests.cpp:<line number>
4035 ...............................................................................
4036
4037 EnumToString.tests.cpp:<line number>: PASSED:
4038 REQUIRE( stringify( Bikeshed::Colours::Red ) == "Red" )
4039 with expansion:
4040 "Red" == "Red"
4041
4042 EnumToString.tests.cpp:<line number>: PASSED:
4043 REQUIRE( stringify( Bikeshed::Colours::Blue ) == "Blue" )
4044 with expansion:
4045 "Blue" == "Blue"
4046
4047 -------------------------------------------------------------------------------
4048 Epsilon only applies to Approx's value
4049 -------------------------------------------------------------------------------
4050 Approx.tests.cpp:<line number>
4051 ...............................................................................
4052
4053 Approx.tests.cpp:<line number>: PASSED:
4054 REQUIRE( 101.01 != Approx(100).epsilon(0.01) )
4055 with expansion:
4056 101.01 != Approx( 100.0 )
4057
4058 -------------------------------------------------------------------------------
4059 Equality checks that should fail
4060 -------------------------------------------------------------------------------
4061 Condition.tests.cpp:<line number>
4062 ...............................................................................
4063
4064 Condition.tests.cpp:<line number>: FAILED:
4065 CHECK( data.int_seven == 6 )
4066 with expansion:
4067 7 == 6
4068
4069 Condition.tests.cpp:<line number>: FAILED:
4070 CHECK( data.int_seven == 8 )
4071 with expansion:
4072 7 == 8
4073
4074 Condition.tests.cpp:<line number>: FAILED:
4075 CHECK( data.int_seven == 0 )
4076 with expansion:
4077 7 == 0
4078
4079 Condition.tests.cpp:<line number>: FAILED:
4080 CHECK( data.float_nine_point_one == Approx( 9.11f ) )
4081 with expansion:
4082 9.1f == Approx( 9.1099996567 )
4083
4084 Condition.tests.cpp:<line number>: FAILED:
4085 CHECK( data.float_nine_point_one == Approx( 9.0f ) )
4086 with expansion:
4087 9.1f == Approx( 9.0 )
4088
4089 Condition.tests.cpp:<line number>: FAILED:
4090 CHECK( data.float_nine_point_one == Approx( 1 ) )
4091 with expansion:
4092 9.1f == Approx( 1.0 )
4093
4094 Condition.tests.cpp:<line number>: FAILED:
4095 CHECK( data.float_nine_point_one == Approx( 0 ) )
4096 with expansion:
4097 9.1f == Approx( 0.0 )
4098
4099 Condition.tests.cpp:<line number>: FAILED:
4100 CHECK( data.double_pi == Approx( 3.1415 ) )
4101 with expansion:
4102 3.1415926535 == Approx( 3.1415 )
4103
4104 Condition.tests.cpp:<line number>: FAILED:
4105 CHECK( data.str_hello == "goodbye" )
4106 with expansion:
4107 "hello" == "goodbye"
4108
4109 Condition.tests.cpp:<line number>: FAILED:
4110 CHECK( data.str_hello == "hell" )
4111 with expansion:
4112 "hello" == "hell"
4113
4114 Condition.tests.cpp:<line number>: FAILED:
4115 CHECK( data.str_hello == "hello1" )
4116 with expansion:
4117 "hello" == "hello1"
4118
4119 Condition.tests.cpp:<line number>: FAILED:
4120 CHECK( data.str_hello.size() == 6 )
4121 with expansion:
4122 5 == 6
4123
4124 Condition.tests.cpp:<line number>: FAILED:
4125 CHECK( x == Approx( 1.301 ) )
4126 with expansion:
4127 1.3 == Approx( 1.301 )
4128
4129 -------------------------------------------------------------------------------
4130 Equality checks that should succeed
4131 -------------------------------------------------------------------------------
4132 Condition.tests.cpp:<line number>
4133 ...............................................................................
4134
4135 Condition.tests.cpp:<line number>: PASSED:
4136 REQUIRE( data.int_seven == 7 )
4137 with expansion:
4138 7 == 7
4139
4140 Condition.tests.cpp:<line number>: PASSED:
4141 REQUIRE( data.float_nine_point_one == Approx( 9.1f ) )
4142 with expansion:
4143 9.1f == Approx( 9.1000003815 )
4144
4145 Condition.tests.cpp:<line number>: PASSED:
4146 REQUIRE( data.double_pi == Approx( 3.1415926535 ) )
4147 with expansion:
4148 3.1415926535 == Approx( 3.1415926535 )
4149
4150 Condition.tests.cpp:<line number>: PASSED:
4151 REQUIRE( data.str_hello == "hello" )
4152 with expansion:
4153 "hello" == "hello"
4154
4155 Condition.tests.cpp:<line number>: PASSED:
4156 REQUIRE( "hello" == data.str_hello )
4157 with expansion:
4158 "hello" == "hello"
4159
4160 Condition.tests.cpp:<line number>: PASSED:
4161 REQUIRE( data.str_hello.size() == 5 )
4162 with expansion:
4163 5 == 5
4164
4165 Condition.tests.cpp:<line number>: PASSED:
4166 REQUIRE( x == Approx( 1.3 ) )
4167 with expansion:
4168 1.3 == Approx( 1.3 )
4169
4170 -------------------------------------------------------------------------------
4171 Equals
4172 -------------------------------------------------------------------------------
4173 Matchers.tests.cpp:<line number>
4174 ...............................................................................
4175
4176 Matchers.tests.cpp:<line number>: PASSED:
4177 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) )
4178 with expansion:
4179 "this string contains 'abc' as a substring" equals: "this string contains
4180 'abc' as a substring"
4181
4182 Matchers.tests.cpp:<line number>: PASSED:
4183 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) )
4184 with expansion:
4185 "this string contains 'abc' as a substring" equals: "this string contains
4186 'abc' as a substring" (case insensitive)
4187
4188 -------------------------------------------------------------------------------
4189 Equals string matcher
4190 -------------------------------------------------------------------------------
4191 Matchers.tests.cpp:<line number>
4192 ...............................................................................
4193
4194 Matchers.tests.cpp:<line number>: FAILED:
4195 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) )
4196 with expansion:
4197 "this string contains 'abc' as a substring" equals: "this string contains
4198 'ABC' as a substring"
4199
4200 Matchers.tests.cpp:<line number>: FAILED:
4201 CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) )
4202 with expansion:
4203 "this string contains 'abc' as a substring" equals: "something else" (case
4204 insensitive)
4205
4206 -------------------------------------------------------------------------------
4207 Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
4208 -------------------------------------------------------------------------------
4209 ToStringGeneral.tests.cpp:<line number>
4210 ...............................................................................
4211
4212 ToStringGeneral.tests.cpp:<line number>: PASSED:
4213 REQUIRE( ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" )
4214 with expansion:
4215 "This exception has overridden what() method"
4216 ==
4217 "This exception has overridden what() method"
4218
4219 ToStringGeneral.tests.cpp:<line number>: PASSED:
4220 REQUIRE( ::Catch::Detail::stringify(OperatorException{}) == "OperatorException" )
4221 with expansion:
4222 "OperatorException" == "OperatorException"
4223
4224 ToStringGeneral.tests.cpp:<line number>: PASSED:
4225 REQUIRE( ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" )
4226 with expansion:
4227 "StringMakerException"
4228 ==
4229 "StringMakerException"
4230
4231 -------------------------------------------------------------------------------
4232 Exception matchers that fail
4233 No exception
4234 -------------------------------------------------------------------------------
4235 Matchers.tests.cpp:<line number>
4236 ...............................................................................
4237
4238 Matchers.tests.cpp:<line number>: FAILED:
4239 CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
4240 because no exception was thrown where one was expected:
4241
4242 Matchers.tests.cpp:<line number>: FAILED:
4243 REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
4244 because no exception was thrown where one was expected:
4245
4246 -------------------------------------------------------------------------------
4247 Exception matchers that fail
4248 Type mismatch
4249 -------------------------------------------------------------------------------
4250 Matchers.tests.cpp:<line number>
4251 ...............................................................................
4252
4253 Matchers.tests.cpp:<line number>: FAILED:
4254 CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4255 due to unexpected exception with message:
4256 Unknown exception
4257
4258 Matchers.tests.cpp:<line number>: FAILED:
4259 REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4260 due to unexpected exception with message:
4261 Unknown exception
4262
4263 -------------------------------------------------------------------------------
4264 Exception matchers that fail
4265 Contents are wrong
4266 -------------------------------------------------------------------------------
4267 Matchers.tests.cpp:<line number>
4268 ...............................................................................
4269
4270 Matchers.tests.cpp:<line number>: FAILED:
4271 CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } )
4272 with expansion:
4273 SpecialException::what special exception has value of 1
4274
4275 Matchers.tests.cpp:<line number>: FAILED:
4276 REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } )
4277 with expansion:
4278 SpecialException::what special exception has value of 1
4279
4280 -------------------------------------------------------------------------------
4281 Exception matchers that succeed
4282 -------------------------------------------------------------------------------
4283 Matchers.tests.cpp:<line number>
4284 ...............................................................................
4285
4286 Matchers.tests.cpp:<line number>: PASSED:
4287 CHECK_THROWS_MATCHES( throwsSpecialException( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4288 with expansion:
4289 SpecialException::what special exception has value of 1
4290
4291 Matchers.tests.cpp:<line number>: PASSED:
4292 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, ExceptionMatcher{ 2 } )
4293 with expansion:
4294 SpecialException::what special exception has value of 2
4295
4296 -------------------------------------------------------------------------------
4297 Exception message can be matched
4298 -------------------------------------------------------------------------------
4299 Matchers.tests.cpp:<line number>
4300 ...............................................................................
4301
4302 Matchers.tests.cpp:<line number>: PASSED:
4303 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( StartsWith( "Derived" ) ) )
4304 with expansion:
4305 DerivedException::what matches "starts with: "Derived""
4306
4307 Matchers.tests.cpp:<line number>: PASSED:
4308 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( EndsWith( "::what" ) ) )
4309 with expansion:
4310 DerivedException::what matches "ends with: "::what""
4311
4312 Matchers.tests.cpp:<line number>: PASSED:
4313 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( !StartsWith( "::what" ) ) )
4314 with expansion:
4315 DerivedException::what matches "not starts with: "::what""
4316
4317 Matchers.tests.cpp:<line number>: PASSED:
4318 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, MessageMatches( StartsWith( "Special" ) ) )
4319 with expansion:
4320 SpecialException::what matches "starts with: "Special""
4321
4322 -------------------------------------------------------------------------------
4323 Exception messages can be tested for
4324 exact match
4325 -------------------------------------------------------------------------------
4326 Exception.tests.cpp:<line number>
4327 ...............................................................................
4328
4329 Exception.tests.cpp:<line number>: PASSED:
4330 REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
4331 with expansion:
4332 "expected exception" equals: "expected exception"
4333
4334 -------------------------------------------------------------------------------
4335 Exception messages can be tested for
4336 different case
4337 -------------------------------------------------------------------------------
4338 Exception.tests.cpp:<line number>
4339 ...............................................................................
4340
4341 Exception.tests.cpp:<line number>: PASSED:
4342 REQUIRE_THROWS_WITH( thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) )
4343 with expansion:
4344 "expected exception" equals: "expected exception" (case insensitive)
4345
4346 -------------------------------------------------------------------------------
4347 Exception messages can be tested for
4348 wildcarded
4349 -------------------------------------------------------------------------------
4350 Exception.tests.cpp:<line number>
4351 ...............................................................................
4352
4353 Exception.tests.cpp:<line number>: PASSED:
4354 REQUIRE_THROWS_WITH( thisThrows(), StartsWith( "expected" ) )
4355 with expansion:
4356 "expected exception" starts with: "expected"
4357
4358 Exception.tests.cpp:<line number>: PASSED:
4359 REQUIRE_THROWS_WITH( thisThrows(), EndsWith( "exception" ) )
4360 with expansion:
4361 "expected exception" ends with: "exception"
4362
4363 Exception.tests.cpp:<line number>: PASSED:
4364 REQUIRE_THROWS_WITH( thisThrows(), ContainsSubstring( "except" ) )
4365 with expansion:
4366 "expected exception" contains: "except"
4367
4368 Exception.tests.cpp:<line number>: PASSED:
4369 REQUIRE_THROWS_WITH( thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) )
4370 with expansion:
4371 "expected exception" contains: "except" (case insensitive)
4372
4373 -------------------------------------------------------------------------------
4374 Exceptions matchers
4375 -------------------------------------------------------------------------------
4376 Matchers.tests.cpp:<line number>
4377 ...............................................................................
4378
4379 Matchers.tests.cpp:<line number>: PASSED:
4380 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) )
4381 with expansion:
4382 DerivedException::what exception message matches "DerivedException::what"
4383
4384 Matchers.tests.cpp:<line number>: PASSED:
4385 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) )
4386 with expansion:
4387 DerivedException::what not exception message matches "derivedexception::what"
4388
4389 Matchers.tests.cpp:<line number>: PASSED:
4390 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) )
4391 with expansion:
4392 SpecialException::what not exception message matches "DerivedException::what"
4393
4394 Matchers.tests.cpp:<line number>: PASSED:
4395 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, Message( "SpecialException::what" ) )
4396 with expansion:
4397 SpecialException::what exception message matches "SpecialException::what"
4398
4399 -------------------------------------------------------------------------------
4400 Expected exceptions that don't throw or unexpected exceptions fail the test
4401 -------------------------------------------------------------------------------
4402 Exception.tests.cpp:<line number>
4403 ...............................................................................
4404
4405 Exception.tests.cpp:<line number>: FAILED:
4406 CHECK_THROWS_AS( thisThrows(), std::string )
4407 due to unexpected exception with message:
4408 expected exception
4409
4410 Exception.tests.cpp:<line number>: FAILED:
4411 CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error )
4412 because no exception was thrown where one was expected:
4413
4414 Exception.tests.cpp:<line number>: FAILED:
4415 CHECK_NOTHROW( thisThrows() )
4416 due to unexpected exception with message:
4417 expected exception
4418
4419 -------------------------------------------------------------------------------
4420 FAIL aborts the test
4421 -------------------------------------------------------------------------------
4422 Message.tests.cpp:<line number>
4423 ...............................................................................
4424
4425 Message.tests.cpp:<line number>: FAILED:
4426 explicitly with message:
4427 This is a failure
4428
4429 -------------------------------------------------------------------------------
4430 FAIL does not require an argument
4431 -------------------------------------------------------------------------------
4432 Message.tests.cpp:<line number>
4433 ...............................................................................
4434
4435 Message.tests.cpp:<line number>: FAILED:
4436
4437 -------------------------------------------------------------------------------
4438 FAIL_CHECK does not abort the test
4439 -------------------------------------------------------------------------------
4440 Message.tests.cpp:<line number>
4441 ...............................................................................
4442
4443 Message.tests.cpp:<line number>: FAILED:
4444 explicitly with message:
4445 This is a failure
4446
4447 Message.tests.cpp:<line number>: warning:
4448 This message appears in the output
4449
4450 -------------------------------------------------------------------------------
4451 Factorials are computed
4452 -------------------------------------------------------------------------------
4453 Misc.tests.cpp:<line number>
4454 ...............................................................................
4455
4456 Misc.tests.cpp:<line number>: PASSED:
4457 REQUIRE( Factorial(0) == 1 )
4458 with expansion:
4459 1 == 1
4460
4461 Misc.tests.cpp:<line number>: PASSED:
4462 REQUIRE( Factorial(1) == 1 )
4463 with expansion:
4464 1 == 1
4465
4466 Misc.tests.cpp:<line number>: PASSED:
4467 REQUIRE( Factorial(2) == 2 )
4468 with expansion:
4469 2 == 2
4470
4471 Misc.tests.cpp:<line number>: PASSED:
4472 REQUIRE( Factorial(3) == 6 )
4473 with expansion:
4474 6 == 6
4475
4476 Misc.tests.cpp:<line number>: PASSED:
4477 REQUIRE( Factorial(10) == 3628800 )
4478 with expansion:
4479 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
4480
4481 -------------------------------------------------------------------------------
4482 Filter generator throws exception for empty generator
4483 -------------------------------------------------------------------------------
4484 GeneratorsImpl.tests.cpp:<line number>
4485 ...............................................................................
4486
4487 GeneratorsImpl.tests.cpp:<line number>: PASSED:
4488 REQUIRE_THROWS_AS( filter( []( int ) { return false; }, value( 3 ) ), Catch::GeneratorException )
4489
4490 -------------------------------------------------------------------------------
4491 Floating point matchers: double
4492 Relative
4493 -------------------------------------------------------------------------------
4494 Matchers.tests.cpp:<line number>
4495 ...............................................................................
4496
4497 Matchers.tests.cpp:<line number>: PASSED:
4498 REQUIRE_THAT( 10., WithinRel( 11.1, 0.1 ) )
4499 with expansion:
4500 10.0 and 11.1 are within 10% of each other
4501
4502 Matchers.tests.cpp:<line number>: PASSED:
4503 REQUIRE_THAT( 10., !WithinRel( 11.2, 0.1 ) )
4504 with expansion:
4505 10.0 not and 11.2 are within 10% of each other
4506
4507 Matchers.tests.cpp:<line number>: PASSED:
4508 REQUIRE_THAT( 1., !WithinRel( 0., 0.99 ) )
4509 with expansion:
4510 1.0 not and 0 are within 99% of each other
4511
4512 Matchers.tests.cpp:<line number>: PASSED:
4513 REQUIRE_THAT( -0., WithinRel( 0. ) )
4514 with expansion:
4515 -0.0 and 0 are within 2.22045e-12% of each other
4516
4517 -------------------------------------------------------------------------------
4518 Floating point matchers: double
4519 Relative
4520 Some subnormal values
4521 -------------------------------------------------------------------------------
4522 Matchers.tests.cpp:<line number>
4523 ...............................................................................
4524
4525 Matchers.tests.cpp:<line number>: PASSED:
4526 REQUIRE_THAT( v1, WithinRel( v2 ) )
4527 with expansion:
4528 0.0 and 2.22507e-308 are within 2.22045e-12% of each other
4529
4530 -------------------------------------------------------------------------------
4531 Floating point matchers: double
4532 Margin
4533 -------------------------------------------------------------------------------
4534 Matchers.tests.cpp:<line number>
4535 ...............................................................................
4536
4537 Matchers.tests.cpp:<line number>: PASSED:
4538 REQUIRE_THAT( 1., WithinAbs( 1., 0 ) )
4539 with expansion:
4540 1.0 is within 0.0 of 1.0
4541
4542 Matchers.tests.cpp:<line number>: PASSED:
4543 REQUIRE_THAT( 0., WithinAbs( 1., 1 ) )
4544 with expansion:
4545 0.0 is within 1.0 of 1.0
4546
4547 Matchers.tests.cpp:<line number>: PASSED:
4548 REQUIRE_THAT( 0., !WithinAbs( 1., 0.99 ) )
4549 with expansion:
4550 0.0 not is within 0.99 of 1.0
4551
4552 Matchers.tests.cpp:<line number>: PASSED:
4553 REQUIRE_THAT( 0., !WithinAbs( 1., 0.99 ) )
4554 with expansion:
4555 0.0 not is within 0.99 of 1.0
4556
4557 Matchers.tests.cpp:<line number>: PASSED:
4558 REQUIRE_THAT( 11., !WithinAbs( 10., 0.5 ) )
4559 with expansion:
4560 11.0 not is within 0.5 of 10.0
4561
4562 Matchers.tests.cpp:<line number>: PASSED:
4563 REQUIRE_THAT( 10., !WithinAbs( 11., 0.5 ) )
4564 with expansion:
4565 10.0 not is within 0.5 of 11.0
4566
4567 Matchers.tests.cpp:<line number>: PASSED:
4568 REQUIRE_THAT( -10., WithinAbs( -10., 0.5 ) )
4569 with expansion:
4570 -10.0 is within 0.5 of -10.0
4571
4572 Matchers.tests.cpp:<line number>: PASSED:
4573 REQUIRE_THAT( -10., WithinAbs( -9.6, 0.5 ) )
4574 with expansion:
4575 -10.0 is within 0.5 of -9.6
4576
4577 -------------------------------------------------------------------------------
4578 Floating point matchers: double
4579 ULPs
4580 -------------------------------------------------------------------------------
4581 Matchers.tests.cpp:<line number>
4582 ...............................................................................
4583
4584 Matchers.tests.cpp:<line number>: PASSED:
4585 REQUIRE_THAT( 1., WithinULP( 1., 0 ) )
4586 with expansion:
4587 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
4588 0000000000000000e+00])
4589
4590 Matchers.tests.cpp:<line number>: PASSED:
4591 REQUIRE_THAT( nextafter( 1., 2. ), WithinULP( 1., 1 ) )
4592 with expansion:
4593 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.
4594 0000000000000002e+00])
4595
4596 Matchers.tests.cpp:<line number>: PASSED:
4597 REQUIRE_THAT( 0., WithinULP( nextafter( 0., 1. ), 1 ) )
4598 with expansion:
4599 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.
4600 8813129168249309e-324])
4601
4602 Matchers.tests.cpp:<line number>: PASSED:
4603 REQUIRE_THAT( 1., WithinULP( nextafter( 1., 0. ), 1 ) )
4604 with expansion:
4605 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.
4606 0000000000000000e+00])
4607
4608 Matchers.tests.cpp:<line number>: PASSED:
4609 REQUIRE_THAT( 1., !WithinULP( nextafter( 1., 2. ), 0 ) )
4610 with expansion:
4611 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00,
4612 1.0000000000000002e+00])
4613
4614 Matchers.tests.cpp:<line number>: PASSED:
4615 REQUIRE_THAT( 1., WithinULP( 1., 0 ) )
4616 with expansion:
4617 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
4618 0000000000000000e+00])
4619
4620 Matchers.tests.cpp:<line number>: PASSED:
4621 REQUIRE_THAT( -0., WithinULP( 0., 0 ) )
4622 with expansion:
4623 -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.
4624 0000000000000000e+00])
4625
4626 -------------------------------------------------------------------------------
4627 Floating point matchers: double
4628 Composed
4629 -------------------------------------------------------------------------------
4630 Matchers.tests.cpp:<line number>
4631 ...............................................................................
4632
4633 Matchers.tests.cpp:<line number>: PASSED:
4634 REQUIRE_THAT( 1., WithinAbs( 1., 0.5 ) || WithinULP( 2., 1 ) )
4635 with expansion:
4636 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.
4637 9999999999999998e+00, 2.0000000000000004e+00]) )
4638
4639 Matchers.tests.cpp:<line number>: PASSED:
4640 REQUIRE_THAT( 1., WithinAbs( 2., 0.5 ) || WithinULP( 1., 0 ) )
4641 with expansion:
4642 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.
4643 0000000000000000e+00, 1.0000000000000000e+00]) )
4644
4645 Matchers.tests.cpp:<line number>: PASSED:
4646 REQUIRE_THAT( 0.0001, WithinAbs( 0., 0.001 ) || WithinRel( 0., 0.1 ) )
4647 with expansion:
4648 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
4649
4650 -------------------------------------------------------------------------------
4651 Floating point matchers: double
4652 Constructor validation
4653 -------------------------------------------------------------------------------
4654 Matchers.tests.cpp:<line number>
4655 ...............................................................................
4656
4657 Matchers.tests.cpp:<line number>: PASSED:
4658 REQUIRE_NOTHROW( WithinAbs( 1., 0. ) )
4659
4660 Matchers.tests.cpp:<line number>: PASSED:
4661 REQUIRE_THROWS_AS( WithinAbs( 1., -1. ), std::domain_error )
4662
4663 Matchers.tests.cpp:<line number>: PASSED:
4664 REQUIRE_NOTHROW( WithinULP( 1., 0 ) )
4665
4666 Matchers.tests.cpp:<line number>: PASSED:
4667 REQUIRE_NOTHROW( WithinRel( 1., 0. ) )
4668
4669 Matchers.tests.cpp:<line number>: PASSED:
4670 REQUIRE_THROWS_AS( WithinRel( 1., -0.2 ), std::domain_error )
4671
4672 Matchers.tests.cpp:<line number>: PASSED:
4673 REQUIRE_THROWS_AS( WithinRel( 1., 1. ), std::domain_error )
4674
4675 -------------------------------------------------------------------------------
4676 Floating point matchers: double
4677 IsNaN
4678 -------------------------------------------------------------------------------
4679 Matchers.tests.cpp:<line number>
4680 ...............................................................................
4681
4682 Matchers.tests.cpp:<line number>: PASSED:
4683 REQUIRE_THAT( 1., !IsNaN() )
4684 with expansion:
4685 1.0 not is NaN
4686
4687 -------------------------------------------------------------------------------
4688 Floating point matchers: float
4689 Relative
4690 -------------------------------------------------------------------------------
4691 Matchers.tests.cpp:<line number>
4692 ...............................................................................
4693
4694 Matchers.tests.cpp:<line number>: PASSED:
4695 REQUIRE_THAT( 10.f, WithinRel( 11.1f, 0.1f ) )
4696 with expansion:
4697 10.0f and 11.1 are within 10% of each other
4698
4699 Matchers.tests.cpp:<line number>: PASSED:
4700 REQUIRE_THAT( 10.f, !WithinRel( 11.2f, 0.1f ) )
4701 with expansion:
4702 10.0f not and 11.2 are within 10% of each other
4703
4704 Matchers.tests.cpp:<line number>: PASSED:
4705 REQUIRE_THAT( 1.f, !WithinRel( 0.f, 0.99f ) )
4706 with expansion:
4707 1.0f not and 0 are within 99% of each other
4708
4709 Matchers.tests.cpp:<line number>: PASSED:
4710 REQUIRE_THAT( -0.f, WithinRel( 0.f ) )
4711 with expansion:
4712 -0.0f and 0 are within 0.00119209% of each other
4713
4714 -------------------------------------------------------------------------------
4715 Floating point matchers: float
4716 Relative
4717 Some subnormal values
4718 -------------------------------------------------------------------------------
4719 Matchers.tests.cpp:<line number>
4720 ...............................................................................
4721
4722 Matchers.tests.cpp:<line number>: PASSED:
4723 REQUIRE_THAT( v1, WithinRel( v2 ) )
4724 with expansion:
4725 0.0f and 1.17549e-38 are within 0.00119209% of each other
4726
4727 -------------------------------------------------------------------------------
4728 Floating point matchers: float
4729 Margin
4730 -------------------------------------------------------------------------------
4731 Matchers.tests.cpp:<line number>
4732 ...............................................................................
4733
4734 Matchers.tests.cpp:<line number>: PASSED:
4735 REQUIRE_THAT( 1.f, WithinAbs( 1.f, 0 ) )
4736 with expansion:
4737 1.0f is within 0.0 of 1.0
4738
4739 Matchers.tests.cpp:<line number>: PASSED:
4740 REQUIRE_THAT( 0.f, WithinAbs( 1.f, 1 ) )
4741 with expansion:
4742 0.0f is within 1.0 of 1.0
4743
4744 Matchers.tests.cpp:<line number>: PASSED:
4745 REQUIRE_THAT( 0.f, !WithinAbs( 1.f, 0.99f ) )
4746 with expansion:
4747 0.0f not is within 0.9900000095 of 1.0
4748
4749 Matchers.tests.cpp:<line number>: PASSED:
4750 REQUIRE_THAT( 0.f, !WithinAbs( 1.f, 0.99f ) )
4751 with expansion:
4752 0.0f not is within 0.9900000095 of 1.0
4753
4754 Matchers.tests.cpp:<line number>: PASSED:
4755 REQUIRE_THAT( 0.f, WithinAbs( -0.f, 0 ) )
4756 with expansion:
4757 0.0f is within 0.0 of -0.0
4758
4759 Matchers.tests.cpp:<line number>: PASSED:
4760 REQUIRE_THAT( 11.f, !WithinAbs( 10.f, 0.5f ) )
4761 with expansion:
4762 11.0f not is within 0.5 of 10.0
4763
4764 Matchers.tests.cpp:<line number>: PASSED:
4765 REQUIRE_THAT( 10.f, !WithinAbs( 11.f, 0.5f ) )
4766 with expansion:
4767 10.0f not is within 0.5 of 11.0
4768
4769 Matchers.tests.cpp:<line number>: PASSED:
4770 REQUIRE_THAT( -10.f, WithinAbs( -10.f, 0.5f ) )
4771 with expansion:
4772 -10.0f is within 0.5 of -10.0
4773
4774 Matchers.tests.cpp:<line number>: PASSED:
4775 REQUIRE_THAT( -10.f, WithinAbs( -9.6f, 0.5f ) )
4776 with expansion:
4777 -10.0f is within 0.5 of -9.6000003815
4778
4779 -------------------------------------------------------------------------------
4780 Floating point matchers: float
4781 ULPs
4782 -------------------------------------------------------------------------------
4783 Matchers.tests.cpp:<line number>
4784 ...............................................................................
4785
4786 Matchers.tests.cpp:<line number>: PASSED:
4787 REQUIRE_THAT( 1.f, WithinULP( 1.f, 0 ) )
4788 with expansion:
4789 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
4790
4791 Matchers.tests.cpp:<line number>: PASSED:
4792 REQUIRE_THAT( -1.f, WithinULP( -1.f, 0 ) )
4793 with expansion:
4794 -1.0f is within 0 ULPs of -1.00000000e+00f ([-1.00000000e+00, -1.00000000e+
4795 00])
4796
4797 Matchers.tests.cpp:<line number>: PASSED:
4798 REQUIRE_THAT( nextafter( 1.f, 2.f ), WithinULP( 1.f, 1 ) )
4799 with expansion:
4800 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00])
4801
4802 Matchers.tests.cpp:<line number>: PASSED:
4803 REQUIRE_THAT( 0.f, WithinULP( nextafter( 0.f, 1.f ), 1 ) )
4804 with expansion:
4805 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
4806
4807 Matchers.tests.cpp:<line number>: PASSED:
4808 REQUIRE_THAT( 1.f, WithinULP( nextafter( 1.f, 0.f ), 1 ) )
4809 with expansion:
4810 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
4811
4812 Matchers.tests.cpp:<line number>: PASSED:
4813 REQUIRE_THAT( 1.f, !WithinULP( nextafter( 1.f, 2.f ), 0 ) )
4814 with expansion:
4815 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+
4816 00])
4817
4818 Matchers.tests.cpp:<line number>: PASSED:
4819 REQUIRE_THAT( 1.f, WithinULP( 1.f, 0 ) )
4820 with expansion:
4821 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
4822
4823 Matchers.tests.cpp:<line number>: PASSED:
4824 REQUIRE_THAT( -0.f, WithinULP( 0.f, 0 ) )
4825 with expansion:
4826 -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
4827
4828 -------------------------------------------------------------------------------
4829 Floating point matchers: float
4830 Composed
4831 -------------------------------------------------------------------------------
4832 Matchers.tests.cpp:<line number>
4833 ...............................................................................
4834
4835 Matchers.tests.cpp:<line number>: PASSED:
4836 REQUIRE_THAT( 1.f, WithinAbs( 1.f, 0.5 ) || WithinULP( 1.f, 1 ) )
4837 with expansion:
4838 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.
4839 99999940e-01, 1.00000012e+00]) )
4840
4841 Matchers.tests.cpp:<line number>: PASSED:
4842 REQUIRE_THAT( 1.f, WithinAbs( 2.f, 0.5 ) || WithinULP( 1.f, 0 ) )
4843 with expansion:
4844 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.
4845 00000000e+00, 1.00000000e+00]) )
4846
4847 Matchers.tests.cpp:<line number>: PASSED:
4848 REQUIRE_THAT( 0.0001f, WithinAbs( 0.f, 0.001f ) || WithinRel( 0.f, 0.1f ) )
4849 with expansion:
4850 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
4851
4852 -------------------------------------------------------------------------------
4853 Floating point matchers: float
4854 Constructor validation
4855 -------------------------------------------------------------------------------
4856 Matchers.tests.cpp:<line number>
4857 ...............................................................................
4858
4859 Matchers.tests.cpp:<line number>: PASSED:
4860 REQUIRE_NOTHROW( WithinAbs( 1.f, 0.f ) )
4861
4862 Matchers.tests.cpp:<line number>: PASSED:
4863 REQUIRE_THROWS_AS( WithinAbs( 1.f, -1.f ), std::domain_error )
4864
4865 Matchers.tests.cpp:<line number>: PASSED:
4866 REQUIRE_NOTHROW( WithinULP( 1.f, 0 ) )
4867
4868 Matchers.tests.cpp:<line number>: PASSED:
4869 REQUIRE_THROWS_AS( WithinULP( 1.f, static_cast<uint64_t>( -1 ) ), std::domain_error )
4870
4871 Matchers.tests.cpp:<line number>: PASSED:
4872 REQUIRE_NOTHROW( WithinRel( 1.f, 0.f ) )
4873
4874 Matchers.tests.cpp:<line number>: PASSED:
4875 REQUIRE_THROWS_AS( WithinRel( 1.f, -0.2f ), std::domain_error )
4876
4877 Matchers.tests.cpp:<line number>: PASSED:
4878 REQUIRE_THROWS_AS( WithinRel( 1.f, 1.f ), std::domain_error )
4879
4880 -------------------------------------------------------------------------------
4881 Floating point matchers: float
4882 IsNaN
4883 -------------------------------------------------------------------------------
4884 Matchers.tests.cpp:<line number>
4885 ...............................................................................
4886
4887 Matchers.tests.cpp:<line number>: PASSED:
4888 REQUIRE_THAT( 1., !IsNaN() )
4889 with expansion:
4890 1.0 not is NaN
4891
4892 -------------------------------------------------------------------------------
4893 Generators -- adapters
4894 Filtering by predicate
4895 Basic usage
4896 -------------------------------------------------------------------------------
4897 Generators.tests.cpp:<line number>
4898 ...............................................................................
4899
4900 Generators.tests.cpp:<line number>: PASSED:
4901 REQUIRE( i % 2 == 0 )
4902 with expansion:
4903 0 == 0
4904
4905 -------------------------------------------------------------------------------
4906 Generators -- adapters
4907 Filtering by predicate
4908 Basic usage
4909 -------------------------------------------------------------------------------
4910 Generators.tests.cpp:<line number>
4911 ...............................................................................
4912
4913 Generators.tests.cpp:<line number>: PASSED:
4914 REQUIRE( i % 2 == 0 )
4915 with expansion:
4916 0 == 0
4917
4918 -------------------------------------------------------------------------------
4919 Generators -- adapters
4920 Filtering by predicate
4921 Basic usage
4922 -------------------------------------------------------------------------------
4923 Generators.tests.cpp:<line number>
4924 ...............................................................................
4925
4926 Generators.tests.cpp:<line number>: PASSED:
4927 REQUIRE( i % 2 == 0 )
4928 with expansion:
4929 0 == 0
4930
4931 -------------------------------------------------------------------------------
4932 Generators -- adapters
4933 Filtering by predicate
4934 Throws if there are no matching values
4935 -------------------------------------------------------------------------------
4936 Generators.tests.cpp:<line number>
4937 ...............................................................................
4938
4939 Generators.tests.cpp:<line number>: PASSED:
4940 REQUIRE_THROWS_AS( filter([] (int) {return false; }, value(1)), Catch::GeneratorException )
4941
4942 -------------------------------------------------------------------------------
4943 Generators -- adapters
4944 Shortening a range
4945 -------------------------------------------------------------------------------
4946 Generators.tests.cpp:<line number>
4947 ...............................................................................
4948
4949 Generators.tests.cpp:<line number>: PASSED:
4950 REQUIRE( i < 4 )
4951 with expansion:
4952 1 < 4
4953
4954 -------------------------------------------------------------------------------
4955 Generators -- adapters
4956 Shortening a range
4957 -------------------------------------------------------------------------------
4958 Generators.tests.cpp:<line number>
4959 ...............................................................................
4960
4961 Generators.tests.cpp:<line number>: PASSED:
4962 REQUIRE( i < 4 )
4963 with expansion:
4964 2 < 4
4965
4966 -------------------------------------------------------------------------------
4967 Generators -- adapters
4968 Shortening a range
4969 -------------------------------------------------------------------------------
4970 Generators.tests.cpp:<line number>
4971 ...............................................................................
4972
4973 Generators.tests.cpp:<line number>: PASSED:
4974 REQUIRE( i < 4 )
4975 with expansion:
4976 3 < 4
4977
4978 -------------------------------------------------------------------------------
4979 Generators -- adapters
4980 Transforming elements
4981 Same type
4982 -------------------------------------------------------------------------------
4983 Generators.tests.cpp:<line number>
4984 ...............................................................................
4985
4986 Generators.tests.cpp:<line number>: PASSED:
4987 REQUIRE( i % 2 == 0 )
4988 with expansion:
4989 0 == 0
4990
4991 -------------------------------------------------------------------------------
4992 Generators -- adapters
4993 Transforming elements
4994 Same type
4995 -------------------------------------------------------------------------------
4996 Generators.tests.cpp:<line number>
4997 ...............................................................................
4998
4999 Generators.tests.cpp:<line number>: PASSED:
5000 REQUIRE( i % 2 == 0 )
5001 with expansion:
5002 0 == 0
5003
5004 -------------------------------------------------------------------------------
5005 Generators -- adapters
5006 Transforming elements
5007 Same type
5008 -------------------------------------------------------------------------------
5009 Generators.tests.cpp:<line number>
5010 ...............................................................................
5011
5012 Generators.tests.cpp:<line number>: PASSED:
5013 REQUIRE( i % 2 == 0 )
5014 with expansion:
5015 0 == 0
5016
5017 -------------------------------------------------------------------------------
5018 Generators -- adapters
5019 Transforming elements
5020 Different type
5021 -------------------------------------------------------------------------------
5022 Generators.tests.cpp:<line number>
5023 ...............................................................................
5024
5025 Generators.tests.cpp:<line number>: PASSED:
5026 REQUIRE( i.size() == 1 )
5027 with expansion:
5028 1 == 1
5029
5030 -------------------------------------------------------------------------------
5031 Generators -- adapters
5032 Transforming elements
5033 Different type
5034 -------------------------------------------------------------------------------
5035 Generators.tests.cpp:<line number>
5036 ...............................................................................
5037
5038 Generators.tests.cpp:<line number>: PASSED:
5039 REQUIRE( i.size() == 1 )
5040 with expansion:
5041 1 == 1
5042
5043 -------------------------------------------------------------------------------
5044 Generators -- adapters
5045 Transforming elements
5046 Different type
5047 -------------------------------------------------------------------------------
5048 Generators.tests.cpp:<line number>
5049 ...............................................................................
5050
5051 Generators.tests.cpp:<line number>: PASSED:
5052 REQUIRE( i.size() == 1 )
5053 with expansion:
5054 1 == 1
5055
5056 -------------------------------------------------------------------------------
5057 Generators -- adapters
5058 Transforming elements
5059 Different deduced type
5060 -------------------------------------------------------------------------------
5061 Generators.tests.cpp:<line number>
5062 ...............................................................................
5063
5064 Generators.tests.cpp:<line number>: PASSED:
5065 REQUIRE( i.size() == 1 )
5066 with expansion:
5067 1 == 1
5068
5069 -------------------------------------------------------------------------------
5070 Generators -- adapters
5071 Transforming elements
5072 Different deduced type
5073 -------------------------------------------------------------------------------
5074 Generators.tests.cpp:<line number>
5075 ...............................................................................
5076
5077 Generators.tests.cpp:<line number>: PASSED:
5078 REQUIRE( i.size() == 1 )
5079 with expansion:
5080 1 == 1
5081
5082 -------------------------------------------------------------------------------
5083 Generators -- adapters
5084 Transforming elements
5085 Different deduced type
5086 -------------------------------------------------------------------------------
5087 Generators.tests.cpp:<line number>
5088 ...............................................................................
5089
5090 Generators.tests.cpp:<line number>: PASSED:
5091 REQUIRE( i.size() == 1 )
5092 with expansion:
5093 1 == 1
5094
5095 -------------------------------------------------------------------------------
5096 Generators -- adapters
5097 Repeating a generator
5098 -------------------------------------------------------------------------------
5099 Generators.tests.cpp:<line number>
5100 ...............................................................................
5101
5102 Generators.tests.cpp:<line number>: PASSED:
5103 REQUIRE( j > 0 )
5104 with expansion:
5105 1 > 0
5106
5107 -------------------------------------------------------------------------------
5108 Generators -- adapters
5109 Repeating a generator
5110 -------------------------------------------------------------------------------
5111 Generators.tests.cpp:<line number>
5112 ...............................................................................
5113
5114 Generators.tests.cpp:<line number>: PASSED:
5115 REQUIRE( j > 0 )
5116 with expansion:
5117 2 > 0
5118
5119 -------------------------------------------------------------------------------
5120 Generators -- adapters
5121 Repeating a generator
5122 -------------------------------------------------------------------------------
5123 Generators.tests.cpp:<line number>
5124 ...............................................................................
5125
5126 Generators.tests.cpp:<line number>: PASSED:
5127 REQUIRE( j > 0 )
5128 with expansion:
5129 3 > 0
5130
5131 -------------------------------------------------------------------------------
5132 Generators -- adapters
5133 Repeating a generator
5134 -------------------------------------------------------------------------------
5135 Generators.tests.cpp:<line number>
5136 ...............................................................................
5137
5138 Generators.tests.cpp:<line number>: PASSED:
5139 REQUIRE( j > 0 )
5140 with expansion:
5141 1 > 0
5142
5143 -------------------------------------------------------------------------------
5144 Generators -- adapters
5145 Repeating a generator
5146 -------------------------------------------------------------------------------
5147 Generators.tests.cpp:<line number>
5148 ...............................................................................
5149
5150 Generators.tests.cpp:<line number>: PASSED:
5151 REQUIRE( j > 0 )
5152 with expansion:
5153 2 > 0
5154
5155 -------------------------------------------------------------------------------
5156 Generators -- adapters
5157 Repeating a generator
5158 -------------------------------------------------------------------------------
5159 Generators.tests.cpp:<line number>
5160 ...............................................................................
5161
5162 Generators.tests.cpp:<line number>: PASSED:
5163 REQUIRE( j > 0 )
5164 with expansion:
5165 3 > 0
5166
5167 -------------------------------------------------------------------------------
5168 Generators -- adapters
5169 Chunking a generator into sized pieces
5170 Number of elements in source is divisible by chunk size
5171 -------------------------------------------------------------------------------
5172 Generators.tests.cpp:<line number>
5173 ...............................................................................
5174
5175 Generators.tests.cpp:<line number>: PASSED:
5176 REQUIRE( chunk2.size() == 2 )
5177 with expansion:
5178 2 == 2
5179
5180 Generators.tests.cpp:<line number>: PASSED:
5181 REQUIRE( chunk2.front() == chunk2.back() )
5182 with expansion:
5183 1 == 1
5184
5185 -------------------------------------------------------------------------------
5186 Generators -- adapters
5187 Chunking a generator into sized pieces
5188 Number of elements in source is divisible by chunk size
5189 -------------------------------------------------------------------------------
5190 Generators.tests.cpp:<line number>
5191 ...............................................................................
5192
5193 Generators.tests.cpp:<line number>: PASSED:
5194 REQUIRE( chunk2.size() == 2 )
5195 with expansion:
5196 2 == 2
5197
5198 Generators.tests.cpp:<line number>: PASSED:
5199 REQUIRE( chunk2.front() == chunk2.back() )
5200 with expansion:
5201 2 == 2
5202
5203 -------------------------------------------------------------------------------
5204 Generators -- adapters
5205 Chunking a generator into sized pieces
5206 Number of elements in source is divisible by chunk size
5207 -------------------------------------------------------------------------------
5208 Generators.tests.cpp:<line number>
5209 ...............................................................................
5210
5211 Generators.tests.cpp:<line number>: PASSED:
5212 REQUIRE( chunk2.size() == 2 )
5213 with expansion:
5214 2 == 2
5215
5216 Generators.tests.cpp:<line number>: PASSED:
5217 REQUIRE( chunk2.front() == chunk2.back() )
5218 with expansion:
5219 3 == 3
5220
5221 -------------------------------------------------------------------------------
5222 Generators -- adapters
5223 Chunking a generator into sized pieces
5224 Number of elements in source is not divisible by chunk size
5225 -------------------------------------------------------------------------------
5226 Generators.tests.cpp:<line number>
5227 ...............................................................................
5228
5229 Generators.tests.cpp:<line number>: PASSED:
5230 REQUIRE( chunk2.size() == 2 )
5231 with expansion:
5232 2 == 2
5233
5234 Generators.tests.cpp:<line number>: PASSED:
5235 REQUIRE( chunk2.front() == chunk2.back() )
5236 with expansion:
5237 1 == 1
5238
5239 Generators.tests.cpp:<line number>: PASSED:
5240 REQUIRE( chunk2.front() < 3 )
5241 with expansion:
5242 1 < 3
5243
5244 -------------------------------------------------------------------------------
5245 Generators -- adapters
5246 Chunking a generator into sized pieces
5247 Number of elements in source is not divisible by chunk size
5248 -------------------------------------------------------------------------------
5249 Generators.tests.cpp:<line number>
5250 ...............................................................................
5251
5252 Generators.tests.cpp:<line number>: PASSED:
5253 REQUIRE( chunk2.size() == 2 )
5254 with expansion:
5255 2 == 2
5256
5257 Generators.tests.cpp:<line number>: PASSED:
5258 REQUIRE( chunk2.front() == chunk2.back() )
5259 with expansion:
5260 2 == 2
5261
5262 Generators.tests.cpp:<line number>: PASSED:
5263 REQUIRE( chunk2.front() < 3 )
5264 with expansion:
5265 2 < 3
5266
5267 -------------------------------------------------------------------------------
5268 Generators -- adapters
5269 Chunking a generator into sized pieces
5270 Chunk size of zero
5271 -------------------------------------------------------------------------------
5272 Generators.tests.cpp:<line number>
5273 ...............................................................................
5274
5275 Generators.tests.cpp:<line number>: PASSED:
5276 REQUIRE( chunk2.size() == 0 )
5277 with expansion:
5278 0 == 0
5279
5280 -------------------------------------------------------------------------------
5281 Generators -- adapters
5282 Chunking a generator into sized pieces
5283 Chunk size of zero
5284 -------------------------------------------------------------------------------
5285 Generators.tests.cpp:<line number>
5286 ...............................................................................
5287
5288 Generators.tests.cpp:<line number>: PASSED:
5289 REQUIRE( chunk2.size() == 0 )
5290 with expansion:
5291 0 == 0
5292
5293 -------------------------------------------------------------------------------
5294 Generators -- adapters
5295 Chunking a generator into sized pieces
5296 Chunk size of zero
5297 -------------------------------------------------------------------------------
5298 Generators.tests.cpp:<line number>
5299 ...............................................................................
5300
5301 Generators.tests.cpp:<line number>: PASSED:
5302 REQUIRE( chunk2.size() == 0 )
5303 with expansion:
5304 0 == 0
5305
5306 -------------------------------------------------------------------------------
5307 Generators -- adapters
5308 Chunking a generator into sized pieces
5309 Throws on too small generators
5310 -------------------------------------------------------------------------------
5311 Generators.tests.cpp:<line number>
5312 ...............................................................................
5313
5314 Generators.tests.cpp:<line number>: PASSED:
5315 REQUIRE_THROWS_AS( chunk(2, value(1)), Catch::GeneratorException )
5316
5317 -------------------------------------------------------------------------------
5318 Generators -- simple
5319 one
5320 -------------------------------------------------------------------------------
5321 Generators.tests.cpp:<line number>
5322 ...............................................................................
5323
5324 Generators.tests.cpp:<line number>: PASSED:
5325 REQUIRE( j < i )
5326 with expansion:
5327 -3 < 1
5328
5329 -------------------------------------------------------------------------------
5330 Generators -- simple
5331 one
5332 -------------------------------------------------------------------------------
5333 Generators.tests.cpp:<line number>
5334 ...............................................................................
5335
5336 Generators.tests.cpp:<line number>: PASSED:
5337 REQUIRE( j < i )
5338 with expansion:
5339 -2 < 1
5340
5341 -------------------------------------------------------------------------------
5342 Generators -- simple
5343 one
5344 -------------------------------------------------------------------------------
5345 Generators.tests.cpp:<line number>
5346 ...............................................................................
5347
5348 Generators.tests.cpp:<line number>: PASSED:
5349 REQUIRE( j < i )
5350 with expansion:
5351 -1 < 1
5352
5353 -------------------------------------------------------------------------------
5354 Generators -- simple
5355 two
5356 -------------------------------------------------------------------------------
5357 Generators.tests.cpp:<line number>
5358 ...............................................................................
5359
5360 Generators.tests.cpp:<line number>: PASSED:
5361 REQUIRE( 4u * i > str.size() )
5362 with expansion:
5363 4 > 1
5364
5365 -------------------------------------------------------------------------------
5366 Generators -- simple
5367 two
5368 -------------------------------------------------------------------------------
5369 Generators.tests.cpp:<line number>
5370 ...............................................................................
5371
5372 Generators.tests.cpp:<line number>: PASSED:
5373 REQUIRE( 4u * i > str.size() )
5374 with expansion:
5375 4 > 2
5376
5377 -------------------------------------------------------------------------------
5378 Generators -- simple
5379 two
5380 -------------------------------------------------------------------------------
5381 Generators.tests.cpp:<line number>
5382 ...............................................................................
5383
5384 Generators.tests.cpp:<line number>: PASSED:
5385 REQUIRE( 4u * i > str.size() )
5386 with expansion:
5387 4 > 3
5388
5389 -------------------------------------------------------------------------------
5390 Generators -- simple
5391 one
5392 -------------------------------------------------------------------------------
5393 Generators.tests.cpp:<line number>
5394 ...............................................................................
5395
5396 Generators.tests.cpp:<line number>: PASSED:
5397 REQUIRE( j < i )
5398 with expansion:
5399 -3 < 2
5400
5401 -------------------------------------------------------------------------------
5402 Generators -- simple
5403 one
5404 -------------------------------------------------------------------------------
5405 Generators.tests.cpp:<line number>
5406 ...............................................................................
5407
5408 Generators.tests.cpp:<line number>: PASSED:
5409 REQUIRE( j < i )
5410 with expansion:
5411 -2 < 2
5412
5413 -------------------------------------------------------------------------------
5414 Generators -- simple
5415 one
5416 -------------------------------------------------------------------------------
5417 Generators.tests.cpp:<line number>
5418 ...............................................................................
5419
5420 Generators.tests.cpp:<line number>: PASSED:
5421 REQUIRE( j < i )
5422 with expansion:
5423 -1 < 2
5424
5425 -------------------------------------------------------------------------------
5426 Generators -- simple
5427 two
5428 -------------------------------------------------------------------------------
5429 Generators.tests.cpp:<line number>
5430 ...............................................................................
5431
5432 Generators.tests.cpp:<line number>: PASSED:
5433 REQUIRE( 4u * i > str.size() )
5434 with expansion:
5435 8 > 1
5436
5437 -------------------------------------------------------------------------------
5438 Generators -- simple
5439 two
5440 -------------------------------------------------------------------------------
5441 Generators.tests.cpp:<line number>
5442 ...............................................................................
5443
5444 Generators.tests.cpp:<line number>: PASSED:
5445 REQUIRE( 4u * i > str.size() )
5446 with expansion:
5447 8 > 2
5448
5449 -------------------------------------------------------------------------------
5450 Generators -- simple
5451 two
5452 -------------------------------------------------------------------------------
5453 Generators.tests.cpp:<line number>
5454 ...............................................................................
5455
5456 Generators.tests.cpp:<line number>: PASSED:
5457 REQUIRE( 4u * i > str.size() )
5458 with expansion:
5459 8 > 3
5460
5461 -------------------------------------------------------------------------------
5462 Generators -- simple
5463 one
5464 -------------------------------------------------------------------------------
5465 Generators.tests.cpp:<line number>
5466 ...............................................................................
5467
5468 Generators.tests.cpp:<line number>: PASSED:
5469 REQUIRE( j < i )
5470 with expansion:
5471 -3 < 3
5472
5473 -------------------------------------------------------------------------------
5474 Generators -- simple
5475 one
5476 -------------------------------------------------------------------------------
5477 Generators.tests.cpp:<line number>
5478 ...............................................................................
5479
5480 Generators.tests.cpp:<line number>: PASSED:
5481 REQUIRE( j < i )
5482 with expansion:
5483 -2 < 3
5484
5485 -------------------------------------------------------------------------------
5486 Generators -- simple
5487 one
5488 -------------------------------------------------------------------------------
5489 Generators.tests.cpp:<line number>
5490 ...............................................................................
5491
5492 Generators.tests.cpp:<line number>: PASSED:
5493 REQUIRE( j < i )
5494 with expansion:
5495 -1 < 3
5496
5497 -------------------------------------------------------------------------------
5498 Generators -- simple
5499 two
5500 -------------------------------------------------------------------------------
5501 Generators.tests.cpp:<line number>
5502 ...............................................................................
5503
5504 Generators.tests.cpp:<line number>: PASSED:
5505 REQUIRE( 4u * i > str.size() )
5506 with expansion:
5507 12 > 1
5508
5509 -------------------------------------------------------------------------------
5510 Generators -- simple
5511 two
5512 -------------------------------------------------------------------------------
5513 Generators.tests.cpp:<line number>
5514 ...............................................................................
5515
5516 Generators.tests.cpp:<line number>: PASSED:
5517 REQUIRE( 4u * i > str.size() )
5518 with expansion:
5519 12 > 2
5520
5521 -------------------------------------------------------------------------------
5522 Generators -- simple
5523 two
5524 -------------------------------------------------------------------------------
5525 Generators.tests.cpp:<line number>
5526 ...............................................................................
5527
5528 Generators.tests.cpp:<line number>: PASSED:
5529 REQUIRE( 4u * i > str.size() )
5530 with expansion:
5531 12 > 3
5532
5533 -------------------------------------------------------------------------------
5534 Generators internals
5535 Single value
5536 -------------------------------------------------------------------------------
5537 GeneratorsImpl.tests.cpp:<line number>
5538 ...............................................................................
5539
5540 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5541 REQUIRE( gen.get() == 123 )
5542 with expansion:
5543 123 == 123
5544
5545 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5546 REQUIRE_FALSE( gen.next() )
5547 with expansion:
5548 !false
5549
5550 -------------------------------------------------------------------------------
5551 Generators internals
5552 Preset values
5553 -------------------------------------------------------------------------------
5554 GeneratorsImpl.tests.cpp:<line number>
5555 ...............................................................................
5556
5557 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5558 REQUIRE( gen.get() == 1 )
5559 with expansion:
5560 1 == 1
5561
5562 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5563 REQUIRE( gen.next() )
5564 with expansion:
5565 true
5566
5567 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5568 REQUIRE( gen.get() == 3 )
5569 with expansion:
5570 3 == 3
5571
5572 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5573 REQUIRE( gen.next() )
5574 with expansion:
5575 true
5576
5577 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5578 REQUIRE( gen.get() == 5 )
5579 with expansion:
5580 5 == 5
5581
5582 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5583 REQUIRE_FALSE( gen.next() )
5584 with expansion:
5585 !false
5586
5587 -------------------------------------------------------------------------------
5588 Generators internals
5589 Generator combinator
5590 -------------------------------------------------------------------------------
5591 GeneratorsImpl.tests.cpp:<line number>
5592 ...............................................................................
5593
5594 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5595 REQUIRE( gen.get() == 1 )
5596 with expansion:
5597 1 == 1
5598
5599 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5600 REQUIRE( gen.next() )
5601 with expansion:
5602 true
5603
5604 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5605 REQUIRE( gen.get() == 5 )
5606 with expansion:
5607 5 == 5
5608
5609 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5610 REQUIRE( gen.next() )
5611 with expansion:
5612 true
5613
5614 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5615 REQUIRE( gen.get() == 2 )
5616 with expansion:
5617 2 == 2
5618
5619 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5620 REQUIRE( gen.next() )
5621 with expansion:
5622 true
5623
5624 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5625 REQUIRE( gen.get() == 4 )
5626 with expansion:
5627 4 == 4
5628
5629 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5630 REQUIRE( gen.next() )
5631 with expansion:
5632 true
5633
5634 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5635 REQUIRE( gen.get() == 0 )
5636 with expansion:
5637 0 == 0
5638
5639 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5640 REQUIRE_FALSE( gen.next() )
5641 with expansion:
5642 !false
5643
5644 -------------------------------------------------------------------------------
5645 Generators internals
5646 Explicitly typed generator sequence
5647 -------------------------------------------------------------------------------
5648 GeneratorsImpl.tests.cpp:<line number>
5649 ...............................................................................
5650
5651 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5652 REQUIRE( gen.get().size() == 2 )
5653 with expansion:
5654 2 == 2
5655
5656 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5657 REQUIRE( gen.get() == "aa" )
5658 with expansion:
5659 "aa" == "aa"
5660
5661 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5662 REQUIRE( gen.next() )
5663 with expansion:
5664 true
5665
5666 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5667 REQUIRE( gen.get() == "bb" )
5668 with expansion:
5669 "bb" == "bb"
5670
5671 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5672 REQUIRE( gen.next() )
5673 with expansion:
5674 true
5675
5676 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5677 REQUIRE( gen.get() == "cc" )
5678 with expansion:
5679 "cc" == "cc"
5680
5681 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5682 REQUIRE_FALSE( gen.next() )
5683 with expansion:
5684 !false
5685
5686 -------------------------------------------------------------------------------
5687 Generators internals
5688 Filter generator
5689 Simple filtering
5690 -------------------------------------------------------------------------------
5691 GeneratorsImpl.tests.cpp:<line number>
5692 ...............................................................................
5693
5694 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5695 REQUIRE( gen.get() == 1 )
5696 with expansion:
5697 1 == 1
5698
5699 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5700 REQUIRE( gen.next() )
5701 with expansion:
5702 true
5703
5704 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5705 REQUIRE( gen.get() == 3 )
5706 with expansion:
5707 3 == 3
5708
5709 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5710 REQUIRE_FALSE( gen.next() )
5711 with expansion:
5712 !false
5713
5714 -------------------------------------------------------------------------------
5715 Generators internals
5716 Filter generator
5717 Filter out multiple elements at the start and end
5718 -------------------------------------------------------------------------------
5719 GeneratorsImpl.tests.cpp:<line number>
5720 ...............................................................................
5721
5722 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5723 REQUIRE( gen.get() == 1 )
5724 with expansion:
5725 1 == 1
5726
5727 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5728 REQUIRE( gen.next() )
5729 with expansion:
5730 true
5731
5732 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5733 REQUIRE( gen.get() == 3 )
5734 with expansion:
5735 3 == 3
5736
5737 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5738 REQUIRE_FALSE( gen.next() )
5739 with expansion:
5740 !false
5741
5742 -------------------------------------------------------------------------------
5743 Generators internals
5744 Filter generator
5745 Throws on construction if it can't get initial element
5746 -------------------------------------------------------------------------------
5747 GeneratorsImpl.tests.cpp:<line number>
5748 ...............................................................................
5749
5750 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5751 REQUIRE_THROWS_AS( filter([](int) { return false; }, value(1)), Catch::GeneratorException )
5752
5753 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5754 REQUIRE_THROWS_AS( filter([](int) { return false; }, values({ 1, 2, 3 })), Catch::GeneratorException )
5755
5756 -------------------------------------------------------------------------------
5757 Generators internals
5758 Take generator
5759 Take less
5760 -------------------------------------------------------------------------------
5761 GeneratorsImpl.tests.cpp:<line number>
5762 ...............................................................................
5763
5764 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5765 REQUIRE( gen.get() == 1 )
5766 with expansion:
5767 1 == 1
5768
5769 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5770 REQUIRE( gen.next() )
5771 with expansion:
5772 true
5773
5774 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5775 REQUIRE( gen.get() == 2 )
5776 with expansion:
5777 2 == 2
5778
5779 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5780 REQUIRE_FALSE( gen.next() )
5781 with expansion:
5782 !false
5783
5784 -------------------------------------------------------------------------------
5785 Generators internals
5786 Take generator
5787 Take more
5788 -------------------------------------------------------------------------------
5789 GeneratorsImpl.tests.cpp:<line number>
5790 ...............................................................................
5791
5792 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5793 REQUIRE( gen.get() == 1 )
5794 with expansion:
5795 1 == 1
5796
5797 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5798 REQUIRE_FALSE( gen.next() )
5799 with expansion:
5800 !false
5801
5802 -------------------------------------------------------------------------------
5803 Generators internals
5804 Map with explicit return type
5805 -------------------------------------------------------------------------------
5806 GeneratorsImpl.tests.cpp:<line number>
5807 ...............................................................................
5808
5809 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5810 REQUIRE( gen.get() == 2.0 )
5811 with expansion:
5812 2.0 == 2.0
5813
5814 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5815 REQUIRE( gen.next() )
5816 with expansion:
5817 true
5818
5819 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5820 REQUIRE( gen.get() == 4.0 )
5821 with expansion:
5822 4.0 == 4.0
5823
5824 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5825 REQUIRE( gen.next() )
5826 with expansion:
5827 true
5828
5829 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5830 REQUIRE( gen.get() == 6.0 )
5831 with expansion:
5832 6.0 == 6.0
5833
5834 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5835 REQUIRE_FALSE( gen.next() )
5836 with expansion:
5837 !false
5838
5839 -------------------------------------------------------------------------------
5840 Generators internals
5841 Map with deduced return type
5842 -------------------------------------------------------------------------------
5843 GeneratorsImpl.tests.cpp:<line number>
5844 ...............................................................................
5845
5846 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5847 REQUIRE( gen.get() == 2.0 )
5848 with expansion:
5849 2.0 == 2.0
5850
5851 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5852 REQUIRE( gen.next() )
5853 with expansion:
5854 true
5855
5856 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5857 REQUIRE( gen.get() == 4.0 )
5858 with expansion:
5859 4.0 == 4.0
5860
5861 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5862 REQUIRE( gen.next() )
5863 with expansion:
5864 true
5865
5866 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5867 REQUIRE( gen.get() == 6.0 )
5868 with expansion:
5869 6.0 == 6.0
5870
5871 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5872 REQUIRE_FALSE( gen.next() )
5873 with expansion:
5874 !false
5875
5876 -------------------------------------------------------------------------------
5877 Generators internals
5878 Repeat
5879 Singular repeat
5880 -------------------------------------------------------------------------------
5881 GeneratorsImpl.tests.cpp:<line number>
5882 ...............................................................................
5883
5884 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5885 REQUIRE( gen.get() == 3 )
5886 with expansion:
5887 3 == 3
5888
5889 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5890 REQUIRE_FALSE( gen.next() )
5891 with expansion:
5892 !false
5893
5894 -------------------------------------------------------------------------------
5895 Generators internals
5896 Repeat
5897 Actual repeat
5898 -------------------------------------------------------------------------------
5899 GeneratorsImpl.tests.cpp:<line number>
5900 ...............................................................................
5901
5902 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5903 REQUIRE( gen.get() == 1 )
5904 with expansion:
5905 1 == 1
5906
5907 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5908 REQUIRE( gen.next() )
5909 with expansion:
5910 true
5911
5912 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5913 REQUIRE( gen.get() == 2 )
5914 with expansion:
5915 2 == 2
5916
5917 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5918 REQUIRE( gen.next() )
5919 with expansion:
5920 true
5921
5922 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5923 REQUIRE( gen.get() == 3 )
5924 with expansion:
5925 3 == 3
5926
5927 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5928 REQUIRE( gen.next() )
5929 with expansion:
5930 true
5931
5932 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5933 REQUIRE( gen.get() == 1 )
5934 with expansion:
5935 1 == 1
5936
5937 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5938 REQUIRE( gen.next() )
5939 with expansion:
5940 true
5941
5942 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5943 REQUIRE( gen.get() == 2 )
5944 with expansion:
5945 2 == 2
5946
5947 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5948 REQUIRE( gen.next() )
5949 with expansion:
5950 true
5951
5952 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5953 REQUIRE( gen.get() == 3 )
5954 with expansion:
5955 3 == 3
5956
5957 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5958 REQUIRE_FALSE( gen.next() )
5959 with expansion:
5960 !false
5961
5962 -------------------------------------------------------------------------------
5963 Generators internals
5964 Range
5965 Positive auto step
5966 Integer
5967 -------------------------------------------------------------------------------
5968 GeneratorsImpl.tests.cpp:<line number>
5969 ...............................................................................
5970
5971 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5972 REQUIRE( gen.get() == -2 )
5973 with expansion:
5974 -2 == -2
5975
5976 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5977 REQUIRE( gen.next() )
5978 with expansion:
5979 true
5980
5981 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5982 REQUIRE( gen.get() == -1 )
5983 with expansion:
5984 -1 == -1
5985
5986 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5987 REQUIRE( gen.next() )
5988 with expansion:
5989 true
5990
5991 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5992 REQUIRE( gen.get() == 0 )
5993 with expansion:
5994 0 == 0
5995
5996 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5997 REQUIRE( gen.next() )
5998 with expansion:
5999 true
6000
6001 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6002 REQUIRE( gen.get() == 1 )
6003 with expansion:
6004 1 == 1
6005
6006 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6007 REQUIRE_FALSE( gen.next() )
6008 with expansion:
6009 !false
6010
6011 -------------------------------------------------------------------------------
6012 Generators internals
6013 Range
6014 Negative auto step
6015 Integer
6016 -------------------------------------------------------------------------------
6017 GeneratorsImpl.tests.cpp:<line number>
6018 ...............................................................................
6019
6020 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6021 REQUIRE( gen.get() == 2 )
6022 with expansion:
6023 2 == 2
6024
6025 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6026 REQUIRE( gen.next() )
6027 with expansion:
6028 true
6029
6030 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6031 REQUIRE( gen.get() == 1 )
6032 with expansion:
6033 1 == 1
6034
6035 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6036 REQUIRE( gen.next() )
6037 with expansion:
6038 true
6039
6040 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6041 REQUIRE( gen.get() == 0 )
6042 with expansion:
6043 0 == 0
6044
6045 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6046 REQUIRE( gen.next() )
6047 with expansion:
6048 true
6049
6050 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6051 REQUIRE( gen.get() == -1 )
6052 with expansion:
6053 -1 == -1
6054
6055 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6056 REQUIRE_FALSE( gen.next() )
6057 with expansion:
6058 !false
6059
6060 -------------------------------------------------------------------------------
6061 Generators internals
6062 Range
6063 Positive manual step
6064 Integer
6065 Exact
6066 -------------------------------------------------------------------------------
6067 GeneratorsImpl.tests.cpp:<line number>
6068 ...............................................................................
6069
6070 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6071 REQUIRE( gen.get() == -7 )
6072 with expansion:
6073 -7 == -7
6074
6075 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6076 REQUIRE( gen.next() )
6077 with expansion:
6078 true
6079
6080 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6081 REQUIRE( gen.get() == -4 )
6082 with expansion:
6083 -4 == -4
6084
6085 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6086 REQUIRE( gen.next() )
6087 with expansion:
6088 true
6089
6090 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6091 REQUIRE( gen.get() == -1 )
6092 with expansion:
6093 -1 == -1
6094
6095 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6096 REQUIRE( gen.next() )
6097 with expansion:
6098 true
6099
6100 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6101 REQUIRE( gen.get() == 2 )
6102 with expansion:
6103 2 == 2
6104
6105 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6106 REQUIRE_FALSE( gen.next() )
6107 with expansion:
6108 !false
6109
6110 -------------------------------------------------------------------------------
6111 Generators internals
6112 Range
6113 Positive manual step
6114 Integer
6115 Slightly over end
6116 -------------------------------------------------------------------------------
6117 GeneratorsImpl.tests.cpp:<line number>
6118 ...............................................................................
6119
6120 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6121 REQUIRE( gen.get() == -7 )
6122 with expansion:
6123 -7 == -7
6124
6125 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6126 REQUIRE( gen.next() )
6127 with expansion:
6128 true
6129
6130 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6131 REQUIRE( gen.get() == -4 )
6132 with expansion:
6133 -4 == -4
6134
6135 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6136 REQUIRE( gen.next() )
6137 with expansion:
6138 true
6139
6140 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6141 REQUIRE( gen.get() == -1 )
6142 with expansion:
6143 -1 == -1
6144
6145 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6146 REQUIRE( gen.next() )
6147 with expansion:
6148 true
6149
6150 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6151 REQUIRE( gen.get() == 2 )
6152 with expansion:
6153 2 == 2
6154
6155 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6156 REQUIRE_FALSE( gen.next() )
6157 with expansion:
6158 !false
6159
6160 -------------------------------------------------------------------------------
6161 Generators internals
6162 Range
6163 Positive manual step
6164 Integer
6165 Slightly under end
6166 -------------------------------------------------------------------------------
6167 GeneratorsImpl.tests.cpp:<line number>
6168 ...............................................................................
6169
6170 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6171 REQUIRE( gen.get() == -7 )
6172 with expansion:
6173 -7 == -7
6174
6175 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6176 REQUIRE( gen.next() )
6177 with expansion:
6178 true
6179
6180 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6181 REQUIRE( gen.get() == -4 )
6182 with expansion:
6183 -4 == -4
6184
6185 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6186 REQUIRE( gen.next() )
6187 with expansion:
6188 true
6189
6190 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6191 REQUIRE( gen.get() == -1 )
6192 with expansion:
6193 -1 == -1
6194
6195 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6196 REQUIRE( gen.next() )
6197 with expansion:
6198 true
6199
6200 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6201 REQUIRE( gen.get() == 2 )
6202 with expansion:
6203 2 == 2
6204
6205 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6206 REQUIRE( gen.next() )
6207 with expansion:
6208 true
6209
6210 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6211 REQUIRE( gen.get() == 5 )
6212 with expansion:
6213 5 == 5
6214
6215 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6216 REQUIRE_FALSE( gen.next() )
6217 with expansion:
6218 !false
6219
6220 -------------------------------------------------------------------------------
6221 Generators internals
6222 Range
6223 Positive manual step
6224 Floating Point
6225 Exact
6226 -------------------------------------------------------------------------------
6227 GeneratorsImpl.tests.cpp:<line number>
6228 ...............................................................................
6229
6230 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6231 REQUIRE( gen.get() == Approx(expected) )
6232 with expansion:
6233 -1.0 == Approx( -1.0 )
6234 with message:
6235 Current expected value is -1
6236
6237 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6238 REQUIRE( gen.next() )
6239 with expansion:
6240 true
6241 with message:
6242 Current expected value is -1
6243
6244 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6245 REQUIRE( gen.get() == Approx(expected) )
6246 with expansion:
6247 -0.9 == Approx( -0.9 )
6248 with message:
6249 Current expected value is -0.9
6250
6251 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6252 REQUIRE( gen.next() )
6253 with expansion:
6254 true
6255 with message:
6256 Current expected value is -0.9
6257
6258 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6259 REQUIRE( gen.get() == Approx(expected) )
6260 with expansion:
6261 -0.8 == Approx( -0.8 )
6262 with message:
6263 Current expected value is -0.8
6264
6265 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6266 REQUIRE( gen.next() )
6267 with expansion:
6268 true
6269 with message:
6270 Current expected value is -0.8
6271
6272 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6273 REQUIRE( gen.get() == Approx(expected) )
6274 with expansion:
6275 -0.7 == Approx( -0.7 )
6276 with message:
6277 Current expected value is -0.7
6278
6279 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6280 REQUIRE( gen.next() )
6281 with expansion:
6282 true
6283 with message:
6284 Current expected value is -0.7
6285
6286 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6287 REQUIRE( gen.get() == Approx(expected) )
6288 with expansion:
6289 -0.6 == Approx( -0.6 )
6290 with message:
6291 Current expected value is -0.6
6292
6293 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6294 REQUIRE( gen.next() )
6295 with expansion:
6296 true
6297 with message:
6298 Current expected value is -0.6
6299
6300 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6301 REQUIRE( gen.get() == Approx(expected) )
6302 with expansion:
6303 -0.5 == Approx( -0.5 )
6304 with message:
6305 Current expected value is -0.5
6306
6307 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6308 REQUIRE( gen.next() )
6309 with expansion:
6310 true
6311 with message:
6312 Current expected value is -0.5
6313
6314 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6315 REQUIRE( gen.get() == Approx(expected) )
6316 with expansion:
6317 -0.4 == Approx( -0.4 )
6318 with message:
6319 Current expected value is -0.4
6320
6321 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6322 REQUIRE( gen.next() )
6323 with expansion:
6324 true
6325 with message:
6326 Current expected value is -0.4
6327
6328 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6329 REQUIRE( gen.get() == Approx(expected) )
6330 with expansion:
6331 -0.3 == Approx( -0.3 )
6332 with message:
6333 Current expected value is -0.3
6334
6335 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6336 REQUIRE( gen.next() )
6337 with expansion:
6338 true
6339 with message:
6340 Current expected value is -0.3
6341
6342 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6343 REQUIRE( gen.get() == Approx(expected) )
6344 with expansion:
6345 -0.2 == Approx( -0.2 )
6346 with message:
6347 Current expected value is -0.2
6348
6349 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6350 REQUIRE( gen.next() )
6351 with expansion:
6352 true
6353 with message:
6354 Current expected value is -0.2
6355
6356 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6357 REQUIRE( gen.get() == Approx(expected) )
6358 with expansion:
6359 -0.1 == Approx( -0.1 )
6360 with message:
6361 Current expected value is -0.1
6362
6363 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6364 REQUIRE( gen.next() )
6365 with expansion:
6366 true
6367 with message:
6368 Current expected value is -0.1
6369
6370 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6371 REQUIRE( gen.get() == Approx(expected) )
6372 with expansion:
6373 -0.0 == Approx( -0.0 )
6374 with message:
6375 Current expected value is -1.38778e-16
6376
6377 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6378 REQUIRE( gen.next() )
6379 with expansion:
6380 true
6381 with message:
6382 Current expected value is -1.38778e-16
6383
6384 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6385 REQUIRE( gen.get() == Approx(expected) )
6386 with expansion:
6387 0.1 == Approx( 0.1 )
6388 with message:
6389 Current expected value is 0.1
6390
6391 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6392 REQUIRE( gen.next() )
6393 with expansion:
6394 true
6395 with message:
6396 Current expected value is 0.1
6397
6398 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6399 REQUIRE( gen.get() == Approx(expected) )
6400 with expansion:
6401 0.2 == Approx( 0.2 )
6402 with message:
6403 Current expected value is 0.2
6404
6405 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6406 REQUIRE( gen.next() )
6407 with expansion:
6408 true
6409 with message:
6410 Current expected value is 0.2
6411
6412 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6413 REQUIRE( gen.get() == Approx(expected) )
6414 with expansion:
6415 0.3 == Approx( 0.3 )
6416 with message:
6417 Current expected value is 0.3
6418
6419 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6420 REQUIRE( gen.next() )
6421 with expansion:
6422 true
6423 with message:
6424 Current expected value is 0.3
6425
6426 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6427 REQUIRE( gen.get() == Approx(expected) )
6428 with expansion:
6429 0.4 == Approx( 0.4 )
6430 with message:
6431 Current expected value is 0.4
6432
6433 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6434 REQUIRE( gen.next() )
6435 with expansion:
6436 true
6437 with message:
6438 Current expected value is 0.4
6439
6440 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6441 REQUIRE( gen.get() == Approx(expected) )
6442 with expansion:
6443 0.5 == Approx( 0.5 )
6444 with message:
6445 Current expected value is 0.5
6446
6447 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6448 REQUIRE( gen.next() )
6449 with expansion:
6450 true
6451 with message:
6452 Current expected value is 0.5
6453
6454 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6455 REQUIRE( gen.get() == Approx(expected) )
6456 with expansion:
6457 0.6 == Approx( 0.6 )
6458 with message:
6459 Current expected value is 0.6
6460
6461 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6462 REQUIRE( gen.next() )
6463 with expansion:
6464 true
6465 with message:
6466 Current expected value is 0.6
6467
6468 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6469 REQUIRE( gen.get() == Approx(expected) )
6470 with expansion:
6471 0.7 == Approx( 0.7 )
6472 with message:
6473 Current expected value is 0.7
6474
6475 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6476 REQUIRE( gen.next() )
6477 with expansion:
6478 true
6479 with message:
6480 Current expected value is 0.7
6481
6482 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6483 REQUIRE( gen.get() == Approx(expected) )
6484 with expansion:
6485 0.8 == Approx( 0.8 )
6486 with message:
6487 Current expected value is 0.8
6488
6489 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6490 REQUIRE( gen.next() )
6491 with expansion:
6492 true
6493 with message:
6494 Current expected value is 0.8
6495
6496 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6497 REQUIRE( gen.get() == Approx(expected) )
6498 with expansion:
6499 0.9 == Approx( 0.9 )
6500 with message:
6501 Current expected value is 0.9
6502
6503 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6504 REQUIRE( gen.next() )
6505 with expansion:
6506 true
6507 with message:
6508 Current expected value is 0.9
6509
6510 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6511 REQUIRE( gen.get() == Approx( rangeEnd ) )
6512 with expansion:
6513 1.0 == Approx( 1.0 )
6514
6515 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6516 REQUIRE_FALSE( gen.next() )
6517 with expansion:
6518 !false
6519
6520 -------------------------------------------------------------------------------
6521 Generators internals
6522 Range
6523 Positive manual step
6524 Floating Point
6525 Slightly over end
6526 -------------------------------------------------------------------------------
6527 GeneratorsImpl.tests.cpp:<line number>
6528 ...............................................................................
6529
6530 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6531 REQUIRE( gen.get() == Approx(expected) )
6532 with expansion:
6533 -1.0 == Approx( -1.0 )
6534 with message:
6535 Current expected value is -1
6536
6537 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6538 REQUIRE( gen.next() )
6539 with expansion:
6540 true
6541 with message:
6542 Current expected value is -1
6543
6544 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6545 REQUIRE( gen.get() == Approx(expected) )
6546 with expansion:
6547 -0.7 == Approx( -0.7 )
6548 with message:
6549 Current expected value is -0.7
6550
6551 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6552 REQUIRE( gen.next() )
6553 with expansion:
6554 true
6555 with message:
6556 Current expected value is -0.7
6557
6558 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6559 REQUIRE( gen.get() == Approx(expected) )
6560 with expansion:
6561 -0.4 == Approx( -0.4 )
6562 with message:
6563 Current expected value is -0.4
6564
6565 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6566 REQUIRE( gen.next() )
6567 with expansion:
6568 true
6569 with message:
6570 Current expected value is -0.4
6571
6572 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6573 REQUIRE( gen.get() == Approx(expected) )
6574 with expansion:
6575 -0.1 == Approx( -0.1 )
6576 with message:
6577 Current expected value is -0.1
6578
6579 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6580 REQUIRE( gen.next() )
6581 with expansion:
6582 true
6583 with message:
6584 Current expected value is -0.1
6585
6586 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6587 REQUIRE( gen.get() == Approx(expected) )
6588 with expansion:
6589 0.2 == Approx( 0.2 )
6590 with message:
6591 Current expected value is 0.2
6592
6593 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6594 REQUIRE( gen.next() )
6595 with expansion:
6596 true
6597 with message:
6598 Current expected value is 0.2
6599
6600 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6601 REQUIRE( gen.get() == Approx(expected) )
6602 with expansion:
6603 0.5 == Approx( 0.5 )
6604 with message:
6605 Current expected value is 0.5
6606
6607 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6608 REQUIRE( gen.next() )
6609 with expansion:
6610 true
6611 with message:
6612 Current expected value is 0.5
6613
6614 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6615 REQUIRE_FALSE( gen.next() )
6616 with expansion:
6617 !false
6618
6619 -------------------------------------------------------------------------------
6620 Generators internals
6621 Range
6622 Positive manual step
6623 Floating Point
6624 Slightly under end
6625 -------------------------------------------------------------------------------
6626 GeneratorsImpl.tests.cpp:<line number>
6627 ...............................................................................
6628
6629 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6630 REQUIRE( gen.get() == Approx(expected) )
6631 with expansion:
6632 -1.0 == Approx( -1.0 )
6633 with message:
6634 Current expected value is -1
6635
6636 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6637 REQUIRE( gen.next() )
6638 with expansion:
6639 true
6640 with message:
6641 Current expected value is -1
6642
6643 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6644 REQUIRE( gen.get() == Approx(expected) )
6645 with expansion:
6646 -0.7 == Approx( -0.7 )
6647 with message:
6648 Current expected value is -0.7
6649
6650 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6651 REQUIRE( gen.next() )
6652 with expansion:
6653 true
6654 with message:
6655 Current expected value is -0.7
6656
6657 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6658 REQUIRE( gen.get() == Approx(expected) )
6659 with expansion:
6660 -0.4 == Approx( -0.4 )
6661 with message:
6662 Current expected value is -0.4
6663
6664 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6665 REQUIRE( gen.next() )
6666 with expansion:
6667 true
6668 with message:
6669 Current expected value is -0.4
6670
6671 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6672 REQUIRE( gen.get() == Approx(expected) )
6673 with expansion:
6674 -0.1 == Approx( -0.1 )
6675 with message:
6676 Current expected value is -0.1
6677
6678 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6679 REQUIRE( gen.next() )
6680 with expansion:
6681 true
6682 with message:
6683 Current expected value is -0.1
6684
6685 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6686 REQUIRE( gen.get() == Approx(expected) )
6687 with expansion:
6688 0.2 == Approx( 0.2 )
6689 with message:
6690 Current expected value is 0.2
6691
6692 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6693 REQUIRE( gen.next() )
6694 with expansion:
6695 true
6696 with message:
6697 Current expected value is 0.2
6698
6699 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6700 REQUIRE( gen.get() == Approx(expected) )
6701 with expansion:
6702 0.5 == Approx( 0.5 )
6703 with message:
6704 Current expected value is 0.5
6705
6706 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6707 REQUIRE( gen.next() )
6708 with expansion:
6709 true
6710 with message:
6711 Current expected value is 0.5
6712
6713 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6714 REQUIRE_FALSE( gen.next() )
6715 with expansion:
6716 !false
6717
6718 -------------------------------------------------------------------------------
6719 Generators internals
6720 Range
6721 Negative manual step
6722 Integer
6723 Exact
6724 -------------------------------------------------------------------------------
6725 GeneratorsImpl.tests.cpp:<line number>
6726 ...............................................................................
6727
6728 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6729 REQUIRE( gen.get() == 5 )
6730 with expansion:
6731 5 == 5
6732
6733 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6734 REQUIRE( gen.next() )
6735 with expansion:
6736 true
6737
6738 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6739 REQUIRE( gen.get() == 2 )
6740 with expansion:
6741 2 == 2
6742
6743 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6744 REQUIRE( gen.next() )
6745 with expansion:
6746 true
6747
6748 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6749 REQUIRE( gen.get() == -1 )
6750 with expansion:
6751 -1 == -1
6752
6753 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6754 REQUIRE( gen.next() )
6755 with expansion:
6756 true
6757
6758 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6759 REQUIRE( gen.get() == -4 )
6760 with expansion:
6761 -4 == -4
6762
6763 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6764 REQUIRE_FALSE( gen.next() )
6765 with expansion:
6766 !false
6767
6768 -------------------------------------------------------------------------------
6769 Generators internals
6770 Range
6771 Negative manual step
6772 Integer
6773 Slightly over end
6774 -------------------------------------------------------------------------------
6775 GeneratorsImpl.tests.cpp:<line number>
6776 ...............................................................................
6777
6778 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6779 REQUIRE( gen.get() == 5 )
6780 with expansion:
6781 5 == 5
6782
6783 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6784 REQUIRE( gen.next() )
6785 with expansion:
6786 true
6787
6788 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6789 REQUIRE( gen.get() == 2 )
6790 with expansion:
6791 2 == 2
6792
6793 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6794 REQUIRE( gen.next() )
6795 with expansion:
6796 true
6797
6798 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6799 REQUIRE( gen.get() == -1 )
6800 with expansion:
6801 -1 == -1
6802
6803 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6804 REQUIRE( gen.next() )
6805 with expansion:
6806 true
6807
6808 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6809 REQUIRE( gen.get() == -4 )
6810 with expansion:
6811 -4 == -4
6812
6813 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6814 REQUIRE_FALSE( gen.next() )
6815 with expansion:
6816 !false
6817
6818 -------------------------------------------------------------------------------
6819 Generators internals
6820 Range
6821 Negative manual step
6822 Integer
6823 Slightly under end
6824 -------------------------------------------------------------------------------
6825 GeneratorsImpl.tests.cpp:<line number>
6826 ...............................................................................
6827
6828 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6829 REQUIRE( gen.get() == 5 )
6830 with expansion:
6831 5 == 5
6832
6833 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6834 REQUIRE( gen.next() )
6835 with expansion:
6836 true
6837
6838 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6839 REQUIRE( gen.get() == 2 )
6840 with expansion:
6841 2 == 2
6842
6843 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6844 REQUIRE( gen.next() )
6845 with expansion:
6846 true
6847
6848 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6849 REQUIRE( gen.get() == -1 )
6850 with expansion:
6851 -1 == -1
6852
6853 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6854 REQUIRE( gen.next() )
6855 with expansion:
6856 true
6857
6858 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6859 REQUIRE( gen.get() == -4 )
6860 with expansion:
6861 -4 == -4
6862
6863 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6864 REQUIRE( gen.next() )
6865 with expansion:
6866 true
6867
6868 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6869 REQUIRE( gen.get() == -7 )
6870 with expansion:
6871 -7 == -7
6872
6873 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6874 REQUIRE_FALSE( gen.next() )
6875 with expansion:
6876 !false
6877
6878 -------------------------------------------------------------------------------
6879 Greater-than inequalities with different epsilons
6880 -------------------------------------------------------------------------------
6881 Approx.tests.cpp:<line number>
6882 ...............................................................................
6883
6884 Approx.tests.cpp:<line number>: PASSED:
6885 REQUIRE( d >= Approx( 1.22 ) )
6886 with expansion:
6887 1.23 >= Approx( 1.22 )
6888
6889 Approx.tests.cpp:<line number>: PASSED:
6890 REQUIRE( d >= Approx( 1.23 ) )
6891 with expansion:
6892 1.23 >= Approx( 1.23 )
6893
6894 Approx.tests.cpp:<line number>: PASSED:
6895 REQUIRE_FALSE( d >= Approx( 1.24 ) )
6896 with expansion:
6897 !(1.23 >= Approx( 1.24 ))
6898
6899 Approx.tests.cpp:<line number>: PASSED:
6900 REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) )
6901 with expansion:
6902 1.23 >= Approx( 1.24 )
6903
6904 -------------------------------------------------------------------------------
6905 Hashers with different seed produce different hash with same test case
6906 -------------------------------------------------------------------------------
6907 TestCaseInfoHasher.tests.cpp:<line number>
6908 ...............................................................................
6909
6910 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6911 REQUIRE( h1( dummy ) != h2( dummy ) )
6912 with expansion:
6913 3422778688 (0x<hex digits>)
6914 !=
6915 130711275 (0x<hex digits>)
6916
6917 -------------------------------------------------------------------------------
6918 Hashers with same seed produce same hash
6919 -------------------------------------------------------------------------------
6920 TestCaseInfoHasher.tests.cpp:<line number>
6921 ...............................................................................
6922
6923 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6924 REQUIRE( h1( dummy ) == h2( dummy ) )
6925 with expansion:
6926 3422778688 (0x<hex digits>)
6927 ==
6928 3422778688 (0x<hex digits>)
6929
6930 -------------------------------------------------------------------------------
6931 Hashing different test cases produces different result
6932 Different test name
6933 -------------------------------------------------------------------------------
6934 TestCaseInfoHasher.tests.cpp:<line number>
6935 ...............................................................................
6936
6937 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6938 REQUIRE( h( dummy1 ) != h( dummy2 ) )
6939 with expansion:
6940 2903002874 (0x<hex digits>)
6941 !=
6942 2668622104 (0x<hex digits>)
6943
6944 -------------------------------------------------------------------------------
6945 Hashing different test cases produces different result
6946 Different classname
6947 -------------------------------------------------------------------------------
6948 TestCaseInfoHasher.tests.cpp:<line number>
6949 ...............................................................................
6950
6951 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6952 REQUIRE( h( dummy1 ) != h( dummy2 ) )
6953 with expansion:
6954 2673152918 (0x<hex digits>)
6955 !=
6956 3916075712 (0x<hex digits>)
6957
6958 -------------------------------------------------------------------------------
6959 Hashing different test cases produces different result
6960 Different tags
6961 -------------------------------------------------------------------------------
6962 TestCaseInfoHasher.tests.cpp:<line number>
6963 ...............................................................................
6964
6965 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6966 REQUIRE( h( dummy1 ) != h( dummy2 ) )
6967 with expansion:
6968 2074929312 (0x<hex digits>)
6969 !=
6970 3429949824 (0x<hex digits>)
6971
6972 -------------------------------------------------------------------------------
6973 Hashing test case produces same hash across multiple calls
6974 -------------------------------------------------------------------------------
6975 TestCaseInfoHasher.tests.cpp:<line number>
6976 ...............................................................................
6977
6978 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
6979 REQUIRE( h( dummy ) == h( dummy ) )
6980 with expansion:
6981 3422778688 (0x<hex digits>)
6982 ==
6983 3422778688 (0x<hex digits>)
6984
6985 -------------------------------------------------------------------------------
6986 INFO and WARN do not abort tests
6987 -------------------------------------------------------------------------------
6988 Message.tests.cpp:<line number>
6989 ...............................................................................
6990
6991 Message.tests.cpp:<line number>: warning:
6992 this is a message
6993 this is a warning
6994
6995
6996 No assertions in test case 'INFO and WARN do not abort tests'
6997
6998 -------------------------------------------------------------------------------
6999 INFO gets logged on failure
7000 -------------------------------------------------------------------------------
7001 Message.tests.cpp:<line number>
7002 ...............................................................................
7003
7004 Message.tests.cpp:<line number>: FAILED:
7005 REQUIRE( a == 1 )
7006 with expansion:
7007 2 == 1
7008 with messages:
7009 this message should be logged
7010 so should this
7011
7012 -------------------------------------------------------------------------------
7013 INFO gets logged on failure, even if captured before successful assertions
7014 -------------------------------------------------------------------------------
7015 Message.tests.cpp:<line number>
7016 ...............................................................................
7017
7018 Message.tests.cpp:<line number>: PASSED:
7019 CHECK( a == 2 )
7020 with expansion:
7021 2 == 2
7022 with message:
7023 this message may be logged later
7024
7025 Message.tests.cpp:<line number>: FAILED:
7026 CHECK( a == 1 )
7027 with expansion:
7028 2 == 1
7029 with messages:
7030 this message may be logged later
7031 this message should be logged
7032
7033 Message.tests.cpp:<line number>: FAILED:
7034 CHECK( a == 0 )
7035 with expansion:
7036 2 == 0
7037 with messages:
7038 this message may be logged later
7039 this message should be logged
7040 and this, but later
7041
7042 Message.tests.cpp:<line number>: PASSED:
7043 CHECK( a == 2 )
7044 with expansion:
7045 2 == 2
7046 with messages:
7047 this message may be logged later
7048 this message should be logged
7049 and this, but later
7050 but not this
7051
7052 -------------------------------------------------------------------------------
7053 INFO is reset for each loop
7054 -------------------------------------------------------------------------------
7055 Message.tests.cpp:<line number>
7056 ...............................................................................
7057
7058 Message.tests.cpp:<line number>: PASSED:
7059 REQUIRE( i < 10 )
7060 with expansion:
7061 0 < 10
7062 with messages:
7063 current counter 0
7064 i := 0
7065
7066 Message.tests.cpp:<line number>: PASSED:
7067 REQUIRE( i < 10 )
7068 with expansion:
7069 1 < 10
7070 with messages:
7071 current counter 1
7072 i := 1
7073
7074 Message.tests.cpp:<line number>: PASSED:
7075 REQUIRE( i < 10 )
7076 with expansion:
7077 2 < 10
7078 with messages:
7079 current counter 2
7080 i := 2
7081
7082 Message.tests.cpp:<line number>: PASSED:
7083 REQUIRE( i < 10 )
7084 with expansion:
7085 3 < 10
7086 with messages:
7087 current counter 3
7088 i := 3
7089
7090 Message.tests.cpp:<line number>: PASSED:
7091 REQUIRE( i < 10 )
7092 with expansion:
7093 4 < 10
7094 with messages:
7095 current counter 4
7096 i := 4
7097
7098 Message.tests.cpp:<line number>: PASSED:
7099 REQUIRE( i < 10 )
7100 with expansion:
7101 5 < 10
7102 with messages:
7103 current counter 5
7104 i := 5
7105
7106 Message.tests.cpp:<line number>: PASSED:
7107 REQUIRE( i < 10 )
7108 with expansion:
7109 6 < 10
7110 with messages:
7111 current counter 6
7112 i := 6
7113
7114 Message.tests.cpp:<line number>: PASSED:
7115 REQUIRE( i < 10 )
7116 with expansion:
7117 7 < 10
7118 with messages:
7119 current counter 7
7120 i := 7
7121
7122 Message.tests.cpp:<line number>: PASSED:
7123 REQUIRE( i < 10 )
7124 with expansion:
7125 8 < 10
7126 with messages:
7127 current counter 8
7128 i := 8
7129
7130 Message.tests.cpp:<line number>: PASSED:
7131 REQUIRE( i < 10 )
7132 with expansion:
7133 9 < 10
7134 with messages:
7135 current counter 9
7136 i := 9
7137
7138 Message.tests.cpp:<line number>: FAILED:
7139 REQUIRE( i < 10 )
7140 with expansion:
7141 10 < 10
7142 with messages:
7143 current counter 10
7144 i := 10
7145
7146 -------------------------------------------------------------------------------
7147 Inequality checks that should fail
7148 -------------------------------------------------------------------------------
7149 Condition.tests.cpp:<line number>
7150 ...............................................................................
7151
7152 Condition.tests.cpp:<line number>: FAILED:
7153 CHECK( data.int_seven != 7 )
7154 with expansion:
7155 7 != 7
7156
7157 Condition.tests.cpp:<line number>: FAILED:
7158 CHECK( data.float_nine_point_one != Approx( 9.1f ) )
7159 with expansion:
7160 9.1f != Approx( 9.1000003815 )
7161
7162 Condition.tests.cpp:<line number>: FAILED:
7163 CHECK( data.double_pi != Approx( 3.1415926535 ) )
7164 with expansion:
7165 3.1415926535 != Approx( 3.1415926535 )
7166
7167 Condition.tests.cpp:<line number>: FAILED:
7168 CHECK( data.str_hello != "hello" )
7169 with expansion:
7170 "hello" != "hello"
7171
7172 Condition.tests.cpp:<line number>: FAILED:
7173 CHECK( data.str_hello.size() != 5 )
7174 with expansion:
7175 5 != 5
7176
7177 -------------------------------------------------------------------------------
7178 Inequality checks that should succeed
7179 -------------------------------------------------------------------------------
7180 Condition.tests.cpp:<line number>
7181 ...............................................................................
7182
7183 Condition.tests.cpp:<line number>: PASSED:
7184 REQUIRE( data.int_seven != 6 )
7185 with expansion:
7186 7 != 6
7187
7188 Condition.tests.cpp:<line number>: PASSED:
7189 REQUIRE( data.int_seven != 8 )
7190 with expansion:
7191 7 != 8
7192
7193 Condition.tests.cpp:<line number>: PASSED:
7194 REQUIRE( data.float_nine_point_one != Approx( 9.11f ) )
7195 with expansion:
7196 9.1f != Approx( 9.1099996567 )
7197
7198 Condition.tests.cpp:<line number>: PASSED:
7199 REQUIRE( data.float_nine_point_one != Approx( 9.0f ) )
7200 with expansion:
7201 9.1f != Approx( 9.0 )
7202
7203 Condition.tests.cpp:<line number>: PASSED:
7204 REQUIRE( data.float_nine_point_one != Approx( 1 ) )
7205 with expansion:
7206 9.1f != Approx( 1.0 )
7207
7208 Condition.tests.cpp:<line number>: PASSED:
7209 REQUIRE( data.float_nine_point_one != Approx( 0 ) )
7210 with expansion:
7211 9.1f != Approx( 0.0 )
7212
7213 Condition.tests.cpp:<line number>: PASSED:
7214 REQUIRE( data.double_pi != Approx( 3.1415 ) )
7215 with expansion:
7216 3.1415926535 != Approx( 3.1415 )
7217
7218 Condition.tests.cpp:<line number>: PASSED:
7219 REQUIRE( data.str_hello != "goodbye" )
7220 with expansion:
7221 "hello" != "goodbye"
7222
7223 Condition.tests.cpp:<line number>: PASSED:
7224 REQUIRE( data.str_hello != "hell" )
7225 with expansion:
7226 "hello" != "hell"
7227
7228 Condition.tests.cpp:<line number>: PASSED:
7229 REQUIRE( data.str_hello != "hello1" )
7230 with expansion:
7231 "hello" != "hello1"
7232
7233 Condition.tests.cpp:<line number>: PASSED:
7234 REQUIRE( data.str_hello.size() != 6 )
7235 with expansion:
7236 5 != 6
7237
7238 -------------------------------------------------------------------------------
7239 Lambdas in assertions
7240 -------------------------------------------------------------------------------
7241 Compilation.tests.cpp:<line number>
7242 ...............................................................................
7243
7244 Compilation.tests.cpp:<line number>: PASSED:
7245 REQUIRE( []() { return true; }() )
7246 with expansion:
7247 true
7248
7249 -------------------------------------------------------------------------------
7250 Less-than inequalities with different epsilons
7251 -------------------------------------------------------------------------------
7252 Approx.tests.cpp:<line number>
7253 ...............................................................................
7254
7255 Approx.tests.cpp:<line number>: PASSED:
7256 REQUIRE( d <= Approx( 1.24 ) )
7257 with expansion:
7258 1.23 <= Approx( 1.24 )
7259
7260 Approx.tests.cpp:<line number>: PASSED:
7261 REQUIRE( d <= Approx( 1.23 ) )
7262 with expansion:
7263 1.23 <= Approx( 1.23 )
7264
7265 Approx.tests.cpp:<line number>: PASSED:
7266 REQUIRE_FALSE( d <= Approx( 1.22 ) )
7267 with expansion:
7268 !(1.23 <= Approx( 1.22 ))
7269
7270 Approx.tests.cpp:<line number>: PASSED:
7271 REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) )
7272 with expansion:
7273 1.23 <= Approx( 1.22 )
7274
7275 -------------------------------------------------------------------------------
7276 ManuallyRegistered
7277 -------------------------------------------------------------------------------
7278 Misc.tests.cpp:<line number>
7279 ...............................................................................
7280
7281 Misc.tests.cpp:<line number>: PASSED:
7282 with message:
7283 was called
7284
7285 -------------------------------------------------------------------------------
7286 Matchers can be (AllOf) composed with the && operator
7287 -------------------------------------------------------------------------------
7288 Matchers.tests.cpp:<line number>
7289 ...............................................................................
7290
7291 Matchers.tests.cpp:<line number>: PASSED:
7292 CHECK_THAT( testStringForMatching(), ContainsSubstring( "string" ) && ContainsSubstring( "abc" ) && ContainsSubstring( "substring" ) && ContainsSubstring( "contains" ) )
7293 with expansion:
7294 "this string contains 'abc' as a substring" ( contains: "string" and
7295 contains: "abc" and contains: "substring" and contains: "contains" )
7296
7297 -------------------------------------------------------------------------------
7298 Matchers can be (AnyOf) composed with the || operator
7299 -------------------------------------------------------------------------------
7300 Matchers.tests.cpp:<line number>
7301 ...............................................................................
7302
7303 Matchers.tests.cpp:<line number>: PASSED:
7304 CHECK_THAT( testStringForMatching(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) )
7305 with expansion:
7306 "this string contains 'abc' as a substring" ( contains: "string" or contains:
7307 "different" or contains: "random" )
7308
7309 Matchers.tests.cpp:<line number>: PASSED:
7310 CHECK_THAT( testStringForMatching2(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) )
7311 with expansion:
7312 "some completely different text that contains one common word" ( contains:
7313 "string" or contains: "different" or contains: "random" )
7314
7315 -------------------------------------------------------------------------------
7316 Matchers can be composed with both && and ||
7317 -------------------------------------------------------------------------------
7318 Matchers.tests.cpp:<line number>
7319 ...............................................................................
7320
7321 Matchers.tests.cpp:<line number>: PASSED:
7322 CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "substring" ) )
7323 with expansion:
7324 "this string contains 'abc' as a substring" ( ( contains: "string" or
7325 contains: "different" ) and contains: "substring" )
7326
7327 -------------------------------------------------------------------------------
7328 Matchers can be composed with both && and || - failing
7329 -------------------------------------------------------------------------------
7330 Matchers.tests.cpp:<line number>
7331 ...............................................................................
7332
7333 Matchers.tests.cpp:<line number>: FAILED:
7334 CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "random" ) )
7335 with expansion:
7336 "this string contains 'abc' as a substring" ( ( contains: "string" or
7337 contains: "different" ) and contains: "random" )
7338
7339 -------------------------------------------------------------------------------
7340 Matchers can be negated (Not) with the ! operator
7341 -------------------------------------------------------------------------------
7342 Matchers.tests.cpp:<line number>
7343 ...............................................................................
7344
7345 Matchers.tests.cpp:<line number>: PASSED:
7346 CHECK_THAT( testStringForMatching(), !ContainsSubstring( "different" ) )
7347 with expansion:
7348 "this string contains 'abc' as a substring" not contains: "different"
7349
7350 -------------------------------------------------------------------------------
7351 Matchers can be negated (Not) with the ! operator - failing
7352 -------------------------------------------------------------------------------
7353 Matchers.tests.cpp:<line number>
7354 ...............................................................................
7355
7356 Matchers.tests.cpp:<line number>: FAILED:
7357 CHECK_THAT( testStringForMatching(), !ContainsSubstring( "substring" ) )
7358 with expansion:
7359 "this string contains 'abc' as a substring" not contains: "substring"
7360
7361 -------------------------------------------------------------------------------
7362 Mayfail test case with nested sections
7363 A
7364 1
7365 -------------------------------------------------------------------------------
7366 Condition.tests.cpp:<line number>
7367 ...............................................................................
7368
7369 Condition.tests.cpp:<line number>: FAILED:
7370
7371 -------------------------------------------------------------------------------
7372 Mayfail test case with nested sections
7373 A
7374 2
7375 -------------------------------------------------------------------------------
7376 Condition.tests.cpp:<line number>
7377 ...............................................................................
7378
7379 Condition.tests.cpp:<line number>: FAILED:
7380
7381 -------------------------------------------------------------------------------
7382 Mayfail test case with nested sections
7383 B
7384 1
7385 -------------------------------------------------------------------------------
7386 Condition.tests.cpp:<line number>
7387 ...............................................................................
7388
7389 Condition.tests.cpp:<line number>: FAILED:
7390
7391 -------------------------------------------------------------------------------
7392 Mayfail test case with nested sections
7393 B
7394 2
7395 -------------------------------------------------------------------------------
7396 Condition.tests.cpp:<line number>
7397 ...............................................................................
7398
7399 Condition.tests.cpp:<line number>: FAILED:
7400
7401 -------------------------------------------------------------------------------
7402 Mismatching exception messages failing the test
7403 -------------------------------------------------------------------------------
7404 Exception.tests.cpp:<line number>
7405 ...............................................................................
7406
7407 Exception.tests.cpp:<line number>: PASSED:
7408 REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
7409 with expansion:
7410 "expected exception" equals: "expected exception"
7411
7412 Exception.tests.cpp:<line number>: FAILED:
7413 REQUIRE_THROWS_WITH( thisThrows(), "should fail" )
7414 with expansion:
7415 "expected exception" equals: "should fail"
7416
7417 -------------------------------------------------------------------------------
7418 Multireporter calls reporters and listeners in correct order
7419 -------------------------------------------------------------------------------
7420 Reporters.tests.cpp:<line number>
7421 ...............................................................................
7422
7423 Reporters.tests.cpp:<line number>: PASSED:
7424 REQUIRE( records == expected )
7425 with expansion:
7426 { "Hello", "world", "Goodbye", "world" }
7427 ==
7428 { "Hello", "world", "Goodbye", "world" }
7429
7430 -------------------------------------------------------------------------------
7431 Multireporter updates ReporterPreferences properly
7432 -------------------------------------------------------------------------------
7433 Reporters.tests.cpp:<line number>
7434 ...............................................................................
7435
7436 Reporters.tests.cpp:<line number>: PASSED:
7437 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == false )
7438 with expansion:
7439 false == false
7440
7441 Reporters.tests.cpp:<line number>: PASSED:
7442 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
7443 with expansion:
7444 false == false
7445
7446 -------------------------------------------------------------------------------
7447 Multireporter updates ReporterPreferences properly
7448 Adding listeners
7449 -------------------------------------------------------------------------------
7450 Reporters.tests.cpp:<line number>
7451 ...............................................................................
7452
7453 Reporters.tests.cpp:<line number>: PASSED:
7454 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7455 with expansion:
7456 true == true
7457
7458 Reporters.tests.cpp:<line number>: PASSED:
7459 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
7460 with expansion:
7461 false == false
7462
7463 Reporters.tests.cpp:<line number>: PASSED:
7464 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7465 with expansion:
7466 true == true
7467
7468 Reporters.tests.cpp:<line number>: PASSED:
7469 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
7470 with expansion:
7471 true == true
7472
7473 Reporters.tests.cpp:<line number>: PASSED:
7474 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7475 with expansion:
7476 true == true
7477
7478 Reporters.tests.cpp:<line number>: PASSED:
7479 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
7480 with expansion:
7481 true == true
7482
7483 -------------------------------------------------------------------------------
7484 Multireporter updates ReporterPreferences properly
7485 -------------------------------------------------------------------------------
7486 Reporters.tests.cpp:<line number>
7487 ...............................................................................
7488
7489 Reporters.tests.cpp:<line number>: PASSED:
7490 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == false )
7491 with expansion:
7492 false == false
7493
7494 Reporters.tests.cpp:<line number>: PASSED:
7495 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
7496 with expansion:
7497 false == false
7498
7499 -------------------------------------------------------------------------------
7500 Multireporter updates ReporterPreferences properly
7501 Adding reporters
7502 -------------------------------------------------------------------------------
7503 Reporters.tests.cpp:<line number>
7504 ...............................................................................
7505
7506 Reporters.tests.cpp:<line number>: PASSED:
7507 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7508 with expansion:
7509 true == true
7510
7511 Reporters.tests.cpp:<line number>: PASSED:
7512 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
7513 with expansion:
7514 false == false
7515
7516 Reporters.tests.cpp:<line number>: PASSED:
7517 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7518 with expansion:
7519 true == true
7520
7521 Reporters.tests.cpp:<line number>: PASSED:
7522 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
7523 with expansion:
7524 true == true
7525
7526 Reporters.tests.cpp:<line number>: PASSED:
7527 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
7528 with expansion:
7529 true == true
7530
7531 Reporters.tests.cpp:<line number>: PASSED:
7532 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
7533 with expansion:
7534 true == true
7535
7536 -------------------------------------------------------------------------------
7537 Nested generators and captured variables
7538 -------------------------------------------------------------------------------
7539 Generators.tests.cpp:<line number>
7540 ...............................................................................
7541
7542 Generators.tests.cpp:<line number>: PASSED:
7543 REQUIRE( values > -6 )
7544 with expansion:
7545 3 > -6
7546
7547 -------------------------------------------------------------------------------
7548 Nested generators and captured variables
7549 -------------------------------------------------------------------------------
7550 Generators.tests.cpp:<line number>
7551 ...............................................................................
7552
7553 Generators.tests.cpp:<line number>: PASSED:
7554 REQUIRE( values > -6 )
7555 with expansion:
7556 4 > -6
7557
7558 -------------------------------------------------------------------------------
7559 Nested generators and captured variables
7560 -------------------------------------------------------------------------------
7561 Generators.tests.cpp:<line number>
7562 ...............................................................................
7563
7564 Generators.tests.cpp:<line number>: PASSED:
7565 REQUIRE( values > -6 )
7566 with expansion:
7567 5 > -6
7568
7569 -------------------------------------------------------------------------------
7570 Nested generators and captured variables
7571 -------------------------------------------------------------------------------
7572 Generators.tests.cpp:<line number>
7573 ...............................................................................
7574
7575 Generators.tests.cpp:<line number>: PASSED:
7576 REQUIRE( values > -6 )
7577 with expansion:
7578 6 > -6
7579
7580 -------------------------------------------------------------------------------
7581 Nested generators and captured variables
7582 -------------------------------------------------------------------------------
7583 Generators.tests.cpp:<line number>
7584 ...............................................................................
7585
7586 Generators.tests.cpp:<line number>: PASSED:
7587 REQUIRE( values > -6 )
7588 with expansion:
7589 -5 > -6
7590
7591 -------------------------------------------------------------------------------
7592 Nested generators and captured variables
7593 -------------------------------------------------------------------------------
7594 Generators.tests.cpp:<line number>
7595 ...............................................................................
7596
7597 Generators.tests.cpp:<line number>: PASSED:
7598 REQUIRE( values > -6 )
7599 with expansion:
7600 -4 > -6
7601
7602 -------------------------------------------------------------------------------
7603 Nested generators and captured variables
7604 -------------------------------------------------------------------------------
7605 Generators.tests.cpp:<line number>
7606 ...............................................................................
7607
7608 Generators.tests.cpp:<line number>: PASSED:
7609 REQUIRE( values > -6 )
7610 with expansion:
7611 90 > -6
7612
7613 -------------------------------------------------------------------------------
7614 Nested generators and captured variables
7615 -------------------------------------------------------------------------------
7616 Generators.tests.cpp:<line number>
7617 ...............................................................................
7618
7619 Generators.tests.cpp:<line number>: PASSED:
7620 REQUIRE( values > -6 )
7621 with expansion:
7622 91 > -6
7623
7624 -------------------------------------------------------------------------------
7625 Nested generators and captured variables
7626 -------------------------------------------------------------------------------
7627 Generators.tests.cpp:<line number>
7628 ...............................................................................
7629
7630 Generators.tests.cpp:<line number>: PASSED:
7631 REQUIRE( values > -6 )
7632 with expansion:
7633 92 > -6
7634
7635 -------------------------------------------------------------------------------
7636 Nested generators and captured variables
7637 -------------------------------------------------------------------------------
7638 Generators.tests.cpp:<line number>
7639 ...............................................................................
7640
7641 Generators.tests.cpp:<line number>: PASSED:
7642 REQUIRE( values > -6 )
7643 with expansion:
7644 93 > -6
7645
7646 -------------------------------------------------------------------------------
7647 Nested generators and captured variables
7648 -------------------------------------------------------------------------------
7649 Generators.tests.cpp:<line number>
7650 ...............................................................................
7651
7652 Generators.tests.cpp:<line number>: PASSED:
7653 REQUIRE( values > -6 )
7654 with expansion:
7655 94 > -6
7656
7657 -------------------------------------------------------------------------------
7658 Nested generators and captured variables
7659 -------------------------------------------------------------------------------
7660 Generators.tests.cpp:<line number>
7661 ...............................................................................
7662
7663 Generators.tests.cpp:<line number>: PASSED:
7664 REQUIRE( values > -6 )
7665 with expansion:
7666 95 > -6
7667
7668 -------------------------------------------------------------------------------
7669 Nested generators and captured variables
7670 -------------------------------------------------------------------------------
7671 Generators.tests.cpp:<line number>
7672 ...............................................................................
7673
7674 Generators.tests.cpp:<line number>: PASSED:
7675 REQUIRE( values > -6 )
7676 with expansion:
7677 96 > -6
7678
7679 -------------------------------------------------------------------------------
7680 Nested generators and captured variables
7681 -------------------------------------------------------------------------------
7682 Generators.tests.cpp:<line number>
7683 ...............................................................................
7684
7685 Generators.tests.cpp:<line number>: PASSED:
7686 REQUIRE( values > -6 )
7687 with expansion:
7688 97 > -6
7689
7690 -------------------------------------------------------------------------------
7691 Nested generators and captured variables
7692 -------------------------------------------------------------------------------
7693 Generators.tests.cpp:<line number>
7694 ...............................................................................
7695
7696 Generators.tests.cpp:<line number>: PASSED:
7697 REQUIRE( values > -6 )
7698 with expansion:
7699 98 > -6
7700
7701 -------------------------------------------------------------------------------
7702 Nested generators and captured variables
7703 -------------------------------------------------------------------------------
7704 Generators.tests.cpp:<line number>
7705 ...............................................................................
7706
7707 Generators.tests.cpp:<line number>: PASSED:
7708 REQUIRE( values > -6 )
7709 with expansion:
7710 99 > -6
7711
7712 -------------------------------------------------------------------------------
7713 Nice descriptive name
7714 -------------------------------------------------------------------------------
7715 Misc.tests.cpp:<line number>
7716 ...............................................................................
7717
7718 Misc.tests.cpp:<line number>: warning:
7719 This one ran
7720
7721
7722 No assertions in test case 'Nice descriptive name'
7723
7724 -------------------------------------------------------------------------------
7725 Non-std exceptions can be translated
7726 -------------------------------------------------------------------------------
7727 Exception.tests.cpp:<line number>
7728 ...............................................................................
7729
7730 Exception.tests.cpp:<line number>: FAILED:
7731 due to unexpected exception with message:
7732 custom exception
7733
7734 -------------------------------------------------------------------------------
7735 Objects that evaluated in boolean contexts can be checked
7736 -------------------------------------------------------------------------------
7737 Tricky.tests.cpp:<line number>
7738 ...............................................................................
7739
7740 Tricky.tests.cpp:<line number>: PASSED:
7741 CHECK( True )
7742 with expansion:
7743 {?}
7744
7745 Tricky.tests.cpp:<line number>: PASSED:
7746 CHECK( !False )
7747 with expansion:
7748 true
7749
7750 Tricky.tests.cpp:<line number>: PASSED:
7751 CHECK_FALSE( False )
7752 with expansion:
7753 !{?}
7754
7755 -------------------------------------------------------------------------------
7756 Optionally static assertions
7757 -------------------------------------------------------------------------------
7758 Compilation.tests.cpp:<line number>
7759 ...............................................................................
7760
7761 Compilation.tests.cpp:<line number>: PASSED:
7762 with message:
7763 std::is_void<void>::value
7764
7765 Compilation.tests.cpp:<line number>: PASSED:
7766 with message:
7767 !(std::is_void<int>::value)
7768
7769 Compilation.tests.cpp:<line number>: PASSED:
7770 with message:
7771 std::is_void<void>::value
7772
7773 Compilation.tests.cpp:<line number>: PASSED:
7774 with message:
7775 !(std::is_void<int>::value)
7776
7777 -------------------------------------------------------------------------------
7778 Ordering comparison checks that should fail
7779 -------------------------------------------------------------------------------
7780 Condition.tests.cpp:<line number>
7781 ...............................................................................
7782
7783 Condition.tests.cpp:<line number>: FAILED:
7784 CHECK( data.int_seven > 7 )
7785 with expansion:
7786 7 > 7
7787
7788 Condition.tests.cpp:<line number>: FAILED:
7789 CHECK( data.int_seven < 7 )
7790 with expansion:
7791 7 < 7
7792
7793 Condition.tests.cpp:<line number>: FAILED:
7794 CHECK( data.int_seven > 8 )
7795 with expansion:
7796 7 > 8
7797
7798 Condition.tests.cpp:<line number>: FAILED:
7799 CHECK( data.int_seven < 6 )
7800 with expansion:
7801 7 < 6
7802
7803 Condition.tests.cpp:<line number>: FAILED:
7804 CHECK( data.int_seven < 0 )
7805 with expansion:
7806 7 < 0
7807
7808 Condition.tests.cpp:<line number>: FAILED:
7809 CHECK( data.int_seven < -1 )
7810 with expansion:
7811 7 < -1
7812
7813 Condition.tests.cpp:<line number>: FAILED:
7814 CHECK( data.int_seven >= 8 )
7815 with expansion:
7816 7 >= 8
7817
7818 Condition.tests.cpp:<line number>: FAILED:
7819 CHECK( data.int_seven <= 6 )
7820 with expansion:
7821 7 <= 6
7822
7823 Condition.tests.cpp:<line number>: FAILED:
7824 CHECK( data.float_nine_point_one < 9 )
7825 with expansion:
7826 9.1f < 9
7827
7828 Condition.tests.cpp:<line number>: FAILED:
7829 CHECK( data.float_nine_point_one > 10 )
7830 with expansion:
7831 9.1f > 10
7832
7833 Condition.tests.cpp:<line number>: FAILED:
7834 CHECK( data.float_nine_point_one > 9.2 )
7835 with expansion:
7836 9.1f > 9.2
7837
7838 Condition.tests.cpp:<line number>: FAILED:
7839 CHECK( data.str_hello > "hello" )
7840 with expansion:
7841 "hello" > "hello"
7842
7843 Condition.tests.cpp:<line number>: FAILED:
7844 CHECK( data.str_hello < "hello" )
7845 with expansion:
7846 "hello" < "hello"
7847
7848 Condition.tests.cpp:<line number>: FAILED:
7849 CHECK( data.str_hello > "hellp" )
7850 with expansion:
7851 "hello" > "hellp"
7852
7853 Condition.tests.cpp:<line number>: FAILED:
7854 CHECK( data.str_hello > "z" )
7855 with expansion:
7856 "hello" > "z"
7857
7858 Condition.tests.cpp:<line number>: FAILED:
7859 CHECK( data.str_hello < "hellm" )
7860 with expansion:
7861 "hello" < "hellm"
7862
7863 Condition.tests.cpp:<line number>: FAILED:
7864 CHECK( data.str_hello < "a" )
7865 with expansion:
7866 "hello" < "a"
7867
7868 Condition.tests.cpp:<line number>: FAILED:
7869 CHECK( data.str_hello >= "z" )
7870 with expansion:
7871 "hello" >= "z"
7872
7873 Condition.tests.cpp:<line number>: FAILED:
7874 CHECK( data.str_hello <= "a" )
7875 with expansion:
7876 "hello" <= "a"
7877
7878 -------------------------------------------------------------------------------
7879 Ordering comparison checks that should succeed
7880 -------------------------------------------------------------------------------
7881 Condition.tests.cpp:<line number>
7882 ...............................................................................
7883
7884 Condition.tests.cpp:<line number>: PASSED:
7885 REQUIRE( data.int_seven < 8 )
7886 with expansion:
7887 7 < 8
7888
7889 Condition.tests.cpp:<line number>: PASSED:
7890 REQUIRE( data.int_seven > 6 )
7891 with expansion:
7892 7 > 6
7893
7894 Condition.tests.cpp:<line number>: PASSED:
7895 REQUIRE( data.int_seven > 0 )
7896 with expansion:
7897 7 > 0
7898
7899 Condition.tests.cpp:<line number>: PASSED:
7900 REQUIRE( data.int_seven > -1 )
7901 with expansion:
7902 7 > -1
7903
7904 Condition.tests.cpp:<line number>: PASSED:
7905 REQUIRE( data.int_seven >= 7 )
7906 with expansion:
7907 7 >= 7
7908
7909 Condition.tests.cpp:<line number>: PASSED:
7910 REQUIRE( data.int_seven >= 6 )
7911 with expansion:
7912 7 >= 6
7913
7914 Condition.tests.cpp:<line number>: PASSED:
7915 REQUIRE( data.int_seven <= 7 )
7916 with expansion:
7917 7 <= 7
7918
7919 Condition.tests.cpp:<line number>: PASSED:
7920 REQUIRE( data.int_seven <= 8 )
7921 with expansion:
7922 7 <= 8
7923
7924 Condition.tests.cpp:<line number>: PASSED:
7925 REQUIRE( data.float_nine_point_one > 9 )
7926 with expansion:
7927 9.1f > 9
7928
7929 Condition.tests.cpp:<line number>: PASSED:
7930 REQUIRE( data.float_nine_point_one < 10 )
7931 with expansion:
7932 9.1f < 10
7933
7934 Condition.tests.cpp:<line number>: PASSED:
7935 REQUIRE( data.float_nine_point_one < 9.2 )
7936 with expansion:
7937 9.1f < 9.2
7938
7939 Condition.tests.cpp:<line number>: PASSED:
7940 REQUIRE( data.str_hello <= "hello" )
7941 with expansion:
7942 "hello" <= "hello"
7943
7944 Condition.tests.cpp:<line number>: PASSED:
7945 REQUIRE( data.str_hello >= "hello" )
7946 with expansion:
7947 "hello" >= "hello"
7948
7949 Condition.tests.cpp:<line number>: PASSED:
7950 REQUIRE( data.str_hello < "hellp" )
7951 with expansion:
7952 "hello" < "hellp"
7953
7954 Condition.tests.cpp:<line number>: PASSED:
7955 REQUIRE( data.str_hello < "zebra" )
7956 with expansion:
7957 "hello" < "zebra"
7958
7959 Condition.tests.cpp:<line number>: PASSED:
7960 REQUIRE( data.str_hello > "hellm" )
7961 with expansion:
7962 "hello" > "hellm"
7963
7964 Condition.tests.cpp:<line number>: PASSED:
7965 REQUIRE( data.str_hello > "a" )
7966 with expansion:
7967 "hello" > "a"
7968
7969 -------------------------------------------------------------------------------
7970 Our PCG implementation provides expected results for known seeds
7971 Default seeded
7972 -------------------------------------------------------------------------------
7973 RandomNumberGeneration.tests.cpp:<line number>
7974 ...............................................................................
7975
7976 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
7977 REQUIRE( rng() == 0x<hex digits> )
7978 with expansion:
7979 4242248763 (0x<hex digits>)
7980 ==
7981 4242248763 (0x<hex digits>)
7982
7983 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
7984 REQUIRE( rng() == 0x<hex digits> )
7985 with expansion:
7986 1867888929 (0x<hex digits>)
7987 ==
7988 1867888929 (0x<hex digits>)
7989
7990 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
7991 REQUIRE( rng() == 0x<hex digits> )
7992 with expansion:
7993 1276619030 (0x<hex digits>)
7994 ==
7995 1276619030 (0x<hex digits>)
7996
7997 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
7998 REQUIRE( rng() == 0x<hex digits> )
7999 with expansion:
8000 1911218783 (0x<hex digits>)
8001 ==
8002 1911218783 (0x<hex digits>)
8003
8004 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8005 REQUIRE( rng() == 0x<hex digits> )
8006 with expansion:
8007 1827115164 (0x<hex digits>)
8008 ==
8009 1827115164 (0x<hex digits>)
8010
8011 -------------------------------------------------------------------------------
8012 Our PCG implementation provides expected results for known seeds
8013 Specific seed
8014 -------------------------------------------------------------------------------
8015 RandomNumberGeneration.tests.cpp:<line number>
8016 ...............................................................................
8017
8018 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8019 REQUIRE( rng() == 0x<hex digits> )
8020 with expansion:
8021 1472234645 (0x<hex digits>)
8022 ==
8023 1472234645 (0x<hex digits>)
8024
8025 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8026 REQUIRE( rng() == 0x<hex digits> )
8027 with expansion:
8028 868832940 (0x<hex digits>)
8029 ==
8030 868832940 (0x<hex digits>)
8031
8032 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8033 REQUIRE( rng() == 0x<hex digits> )
8034 with expansion:
8035 570883446 (0x<hex digits>)
8036 ==
8037 570883446 (0x<hex digits>)
8038
8039 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8040 REQUIRE( rng() == 0x<hex digits> )
8041 with expansion:
8042 889299803 (0x<hex digits>)
8043 ==
8044 889299803 (0x<hex digits>)
8045
8046 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8047 REQUIRE( rng() == 0x<hex digits> )
8048 with expansion:
8049 4261393167 (0x<hex digits>)
8050 ==
8051 4261393167 (0x<hex digits>)
8052
8053 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8054 REQUIRE( rng() == 0x<hex digits> )
8055 with expansion:
8056 1472234645 (0x<hex digits>)
8057 ==
8058 1472234645 (0x<hex digits>)
8059
8060 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8061 REQUIRE( rng() == 0x<hex digits> )
8062 with expansion:
8063 868832940 (0x<hex digits>)
8064 ==
8065 868832940 (0x<hex digits>)
8066
8067 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8068 REQUIRE( rng() == 0x<hex digits> )
8069 with expansion:
8070 570883446 (0x<hex digits>)
8071 ==
8072 570883446 (0x<hex digits>)
8073
8074 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8075 REQUIRE( rng() == 0x<hex digits> )
8076 with expansion:
8077 889299803 (0x<hex digits>)
8078 ==
8079 889299803 (0x<hex digits>)
8080
8081 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8082 REQUIRE( rng() == 0x<hex digits> )
8083 with expansion:
8084 4261393167 (0x<hex digits>)
8085 ==
8086 4261393167 (0x<hex digits>)
8087
8088 -------------------------------------------------------------------------------
8089 Output from all sections is reported
8090 one
8091 -------------------------------------------------------------------------------
8092 Message.tests.cpp:<line number>
8093 ...............................................................................
8094
8095 Message.tests.cpp:<line number>: FAILED:
8096 explicitly with message:
8097 Message from section one
8098
8099 -------------------------------------------------------------------------------
8100 Output from all sections is reported
8101 two
8102 -------------------------------------------------------------------------------
8103 Message.tests.cpp:<line number>
8104 ...............................................................................
8105
8106 Message.tests.cpp:<line number>: FAILED:
8107 explicitly with message:
8108 Message from section two
8109
8110 -------------------------------------------------------------------------------
8111 Overloaded comma or address-of operators are not used
8112 -------------------------------------------------------------------------------
8113 Matchers.tests.cpp:<line number>
8114 ...............................................................................
8115
8116 Matchers.tests.cpp:<line number>: PASSED:
8117 REQUIRE_THROWS_AS( ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed )
8118
8119 Matchers.tests.cpp:<line number>: PASSED:
8120 REQUIRE_THROWS_AS( &EvilMatcher(), EvilAddressOfOperatorUsed )
8121
8122 Matchers.tests.cpp:<line number>: PASSED:
8123 REQUIRE_NOTHROW( EvilMatcher() || ( EvilMatcher() && !EvilMatcher() ) )
8124
8125 Matchers.tests.cpp:<line number>: PASSED:
8126 REQUIRE_NOTHROW( ( EvilMatcher() && EvilMatcher() ) || !EvilMatcher() )
8127
8128 -------------------------------------------------------------------------------
8129 Parse uints
8130 proper inputs
8131 -------------------------------------------------------------------------------
8132 Parse.tests.cpp:<line number>
8133 ...............................................................................
8134
8135 Parse.tests.cpp:<line number>: PASSED:
8136 REQUIRE( parseUInt( "0" ) == Optional<unsigned int>{ 0 } )
8137 with expansion:
8138 {?} == {?}
8139
8140 Parse.tests.cpp:<line number>: PASSED:
8141 REQUIRE( parseUInt( "100" ) == Optional<unsigned int>{ 100 } )
8142 with expansion:
8143 {?} == {?}
8144
8145 Parse.tests.cpp:<line number>: PASSED:
8146 REQUIRE( parseUInt( "4294967295" ) == Optional<unsigned int>{ 4294967295 } )
8147 with expansion:
8148 {?} == {?}
8149
8150 Parse.tests.cpp:<line number>: PASSED:
8151 REQUIRE( parseUInt( "0x<hex digits>", 16 ) == Optional<unsigned int>{ 255 } )
8152 with expansion:
8153 {?} == {?}
8154
8155 -------------------------------------------------------------------------------
8156 Parse uints
8157 Bad inputs
8158 -------------------------------------------------------------------------------
8159 Parse.tests.cpp:<line number>
8160 ...............................................................................
8161
8162 Parse.tests.cpp:<line number>: PASSED:
8163 REQUIRE_FALSE( parseUInt( "" ) )
8164 with expansion:
8165 !{?}
8166
8167 Parse.tests.cpp:<line number>: PASSED:
8168 REQUIRE_FALSE( parseUInt( "!!KJHF*#" ) )
8169 with expansion:
8170 !{?}
8171
8172 Parse.tests.cpp:<line number>: PASSED:
8173 REQUIRE_FALSE( parseUInt( "-1" ) )
8174 with expansion:
8175 !{?}
8176
8177 Parse.tests.cpp:<line number>: PASSED:
8178 REQUIRE_FALSE( parseUInt( "4294967296" ) )
8179 with expansion:
8180 !{?}
8181
8182 Parse.tests.cpp:<line number>: PASSED:
8183 REQUIRE_FALSE( parseUInt( "42949672964294967296429496729642949672964294967296" ) )
8184 with expansion:
8185 !{?}
8186
8187 Parse.tests.cpp:<line number>: PASSED:
8188 REQUIRE_FALSE( parseUInt( "2 4" ) )
8189 with expansion:
8190 !{?}
8191
8192 Parse.tests.cpp:<line number>: PASSED:
8193 REQUIRE_FALSE( parseUInt( "0x<hex digits>", 10 ) )
8194 with expansion:
8195 !{?}
8196
8197 -------------------------------------------------------------------------------
8198 Parsed tags are matched case insensitive
8199 -------------------------------------------------------------------------------
8200 TestSpecParser.tests.cpp:<line number>
8201 ...............................................................................
8202
8203 TestSpecParser.tests.cpp:<line number>: PASSED:
8204 REQUIRE( spec.hasFilters() )
8205 with expansion:
8206 true
8207
8208 TestSpecParser.tests.cpp:<line number>: PASSED:
8209 REQUIRE( spec.getInvalidSpecs().empty() )
8210 with expansion:
8211 true
8212
8213 TestSpecParser.tests.cpp:<line number>: PASSED:
8214 REQUIRE( spec.matches( testCase ) )
8215 with expansion:
8216 true
8217
8218 -------------------------------------------------------------------------------
8219 Parsing sharding-related cli flags
8220 shard-count
8221 -------------------------------------------------------------------------------
8222 CmdLine.tests.cpp:<line number>
8223 ...............................................................................
8224
8225 CmdLine.tests.cpp:<line number>: PASSED:
8226 CHECK( cli.parse({ "test", "--shard-count=8" }) )
8227 with expansion:
8228 {?}
8229
8230 CmdLine.tests.cpp:<line number>: PASSED:
8231 REQUIRE( config.shardCount == 8 )
8232 with expansion:
8233 8 == 8
8234
8235 -------------------------------------------------------------------------------
8236 Parsing sharding-related cli flags
8237 Negative shard count reports error
8238 -------------------------------------------------------------------------------
8239 CmdLine.tests.cpp:<line number>
8240 ...............................................................................
8241
8242 CmdLine.tests.cpp:<line number>: PASSED:
8243 CHECK_FALSE( result )
8244 with expansion:
8245 !{?}
8246
8247 CmdLine.tests.cpp:<line number>: PASSED:
8248 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Could not parse '-1' as shard count" ) )
8249 with expansion:
8250 "Could not parse '-1' as shard count" contains: "Could not parse '-1' as
8251 shard count"
8252
8253 -------------------------------------------------------------------------------
8254 Parsing sharding-related cli flags
8255 Zero shard count reports error
8256 -------------------------------------------------------------------------------
8257 CmdLine.tests.cpp:<line number>
8258 ...............................................................................
8259
8260 CmdLine.tests.cpp:<line number>: PASSED:
8261 CHECK_FALSE( result )
8262 with expansion:
8263 !{?}
8264
8265 CmdLine.tests.cpp:<line number>: PASSED:
8266 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Shard count must be positive" ) )
8267 with expansion:
8268 "Shard count must be positive" contains: "Shard count must be positive"
8269
8270 -------------------------------------------------------------------------------
8271 Parsing sharding-related cli flags
8272 shard-index
8273 -------------------------------------------------------------------------------
8274 CmdLine.tests.cpp:<line number>
8275 ...............................................................................
8276
8277 CmdLine.tests.cpp:<line number>: PASSED:
8278 CHECK( cli.parse({ "test", "--shard-index=2" }) )
8279 with expansion:
8280 {?}
8281
8282 CmdLine.tests.cpp:<line number>: PASSED:
8283 REQUIRE( config.shardIndex == 2 )
8284 with expansion:
8285 2 == 2
8286
8287 -------------------------------------------------------------------------------
8288 Parsing sharding-related cli flags
8289 Negative shard index reports error
8290 -------------------------------------------------------------------------------
8291 CmdLine.tests.cpp:<line number>
8292 ...............................................................................
8293
8294 CmdLine.tests.cpp:<line number>: PASSED:
8295 CHECK_FALSE( result )
8296 with expansion:
8297 !{?}
8298
8299 CmdLine.tests.cpp:<line number>: PASSED:
8300 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Could not parse '-12' as shard index" ) )
8301 with expansion:
8302 "Could not parse '-12' as shard index" contains: "Could not parse '-12' as
8303 shard index"
8304
8305 -------------------------------------------------------------------------------
8306 Parsing sharding-related cli flags
8307 Shard index 0 is accepted
8308 -------------------------------------------------------------------------------
8309 CmdLine.tests.cpp:<line number>
8310 ...............................................................................
8311
8312 CmdLine.tests.cpp:<line number>: PASSED:
8313 CHECK( cli.parse({ "test", "--shard-index=0" }) )
8314 with expansion:
8315 {?}
8316
8317 CmdLine.tests.cpp:<line number>: PASSED:
8318 REQUIRE( config.shardIndex == 0 )
8319 with expansion:
8320 0 == 0
8321
8322 -------------------------------------------------------------------------------
8323 Parsing tags with non-alphabetical characters is pass-through
8324 -------------------------------------------------------------------------------
8325 TestSpecParser.tests.cpp:<line number>
8326 ...............................................................................
8327
8328 TestSpecParser.tests.cpp:<line number>: PASSED:
8329 REQUIRE( spec.hasFilters() )
8330 with expansion:
8331 true
8332 with message:
8333 tagString := "[tag with spaces]"
8334
8335 TestSpecParser.tests.cpp:<line number>: PASSED:
8336 REQUIRE( spec.getInvalidSpecs().empty() )
8337 with expansion:
8338 true
8339 with message:
8340 tagString := "[tag with spaces]"
8341
8342 TestSpecParser.tests.cpp:<line number>: PASSED:
8343 REQUIRE( spec.matches( testCase ) )
8344 with expansion:
8345 true
8346 with message:
8347 tagString := "[tag with spaces]"
8348
8349 -------------------------------------------------------------------------------
8350 Parsing tags with non-alphabetical characters is pass-through
8351 -------------------------------------------------------------------------------
8352 TestSpecParser.tests.cpp:<line number>
8353 ...............................................................................
8354
8355 TestSpecParser.tests.cpp:<line number>: PASSED:
8356 REQUIRE( spec.hasFilters() )
8357 with expansion:
8358 true
8359 with message:
8360 tagString := "[I said "good day" sir!]"
8361
8362 TestSpecParser.tests.cpp:<line number>: PASSED:
8363 REQUIRE( spec.getInvalidSpecs().empty() )
8364 with expansion:
8365 true
8366 with message:
8367 tagString := "[I said "good day" sir!]"
8368
8369 TestSpecParser.tests.cpp:<line number>: PASSED:
8370 REQUIRE( spec.matches( testCase ) )
8371 with expansion:
8372 true
8373 with message:
8374 tagString := "[I said "good day" sir!]"
8375
8376 -------------------------------------------------------------------------------
8377 Parsing warnings
8378 NoAssertions
8379 -------------------------------------------------------------------------------
8380 CmdLine.tests.cpp:<line number>
8381 ...............................................................................
8382
8383 CmdLine.tests.cpp:<line number>: PASSED:
8384 REQUIRE( cli.parse( { "test", "-w", "NoAssertions" } ) )
8385 with expansion:
8386 {?}
8387
8388 CmdLine.tests.cpp:<line number>: PASSED:
8389 REQUIRE( config.warnings == WarnAbout::NoAssertions )
8390 with expansion:
8391 1 == 1
8392
8393 -------------------------------------------------------------------------------
8394 Parsing warnings
8395 NoTests is no longer supported
8396 -------------------------------------------------------------------------------
8397 CmdLine.tests.cpp:<line number>
8398 ...............................................................................
8399
8400 CmdLine.tests.cpp:<line number>: PASSED:
8401 REQUIRE_FALSE( cli.parse( { "test", "-w", "NoTests" } ) )
8402 with expansion:
8403 !{?}
8404
8405 -------------------------------------------------------------------------------
8406 Parsing warnings
8407 Combining multiple warnings
8408 -------------------------------------------------------------------------------
8409 CmdLine.tests.cpp:<line number>
8410 ...............................................................................
8411
8412 CmdLine.tests.cpp:<line number>: PASSED:
8413 REQUIRE( cli.parse( { "test", "--warn", "NoAssertions", "--warn", "UnmatchedTestSpec" } ) )
8414 with expansion:
8415 {?}
8416
8417 CmdLine.tests.cpp:<line number>: PASSED:
8418 REQUIRE( config.warnings == ( WarnAbout::NoAssertions | WarnAbout::UnmatchedTestSpec ) )
8419 with expansion:
8420 3 == 3
8421
8422 -------------------------------------------------------------------------------
8423 Pointers can be compared to null
8424 -------------------------------------------------------------------------------
8425 Condition.tests.cpp:<line number>
8426 ...............................................................................
8427
8428 Condition.tests.cpp:<line number>: PASSED:
8429 REQUIRE( p == 0 )
8430 with expansion:
8431 0 == 0
8432
8433 Condition.tests.cpp:<line number>: PASSED:
8434 REQUIRE( p == pNULL )
8435 with expansion:
8436 0 == 0
8437
8438 Condition.tests.cpp:<line number>: PASSED:
8439 REQUIRE( p != 0 )
8440 with expansion:
8441 0x<hex digits> != 0
8442
8443 Condition.tests.cpp:<line number>: PASSED:
8444 REQUIRE( cp != 0 )
8445 with expansion:
8446 0x<hex digits> != 0
8447
8448 Condition.tests.cpp:<line number>: PASSED:
8449 REQUIRE( cpc != 0 )
8450 with expansion:
8451 0x<hex digits> != 0
8452
8453 Condition.tests.cpp:<line number>: PASSED:
8454 REQUIRE( returnsNull() == 0 )
8455 with expansion:
8456 {null string} == 0
8457
8458 Condition.tests.cpp:<line number>: PASSED:
8459 REQUIRE( returnsConstNull() == 0 )
8460 with expansion:
8461 {null string} == 0
8462
8463 Condition.tests.cpp:<line number>: PASSED:
8464 REQUIRE( 0 != p )
8465 with expansion:
8466 0 != 0x<hex digits>
8467
8468 -------------------------------------------------------------------------------
8469 Precision of floating point stringification can be set
8470 Floats
8471 -------------------------------------------------------------------------------
8472 ToStringGeneral.tests.cpp:<line number>
8473 ...............................................................................
8474
8475 ToStringGeneral.tests.cpp:<line number>: PASSED:
8476 CHECK( str1.size() == 3 + 5 )
8477 with expansion:
8478 8 == 8
8479
8480 ToStringGeneral.tests.cpp:<line number>: PASSED:
8481 REQUIRE( str2.size() == 3 + 10 )
8482 with expansion:
8483 13 == 13
8484
8485 -------------------------------------------------------------------------------
8486 Precision of floating point stringification can be set
8487 Double
8488 -------------------------------------------------------------------------------
8489 ToStringGeneral.tests.cpp:<line number>
8490 ...............................................................................
8491
8492 ToStringGeneral.tests.cpp:<line number>: PASSED:
8493 CHECK( str1.size() == 2 + 5 )
8494 with expansion:
8495 7 == 7
8496
8497 ToStringGeneral.tests.cpp:<line number>: PASSED:
8498 REQUIRE( str2.size() == 2 + 15 )
8499 with expansion:
8500 17 == 17
8501
8502 -------------------------------------------------------------------------------
8503 Predicate matcher can accept const char*
8504 -------------------------------------------------------------------------------
8505 Matchers.tests.cpp:<line number>
8506 ...............................................................................
8507
8508 Matchers.tests.cpp:<line number>: PASSED:
8509 REQUIRE_THAT( "foo", Predicate<const char*>( []( const char* const& ) { return true; } ) )
8510 with expansion:
8511 "foo" matches undescribed predicate
8512
8513 -------------------------------------------------------------------------------
8514 Process can be configured on command line
8515 empty args don't cause a crash
8516 -------------------------------------------------------------------------------
8517 CmdLine.tests.cpp:<line number>
8518 ...............................................................................
8519
8520 CmdLine.tests.cpp:<line number>: PASSED:
8521 CHECK( result )
8522 with expansion:
8523 {?}
8524
8525 CmdLine.tests.cpp:<line number>: PASSED:
8526 CHECK( config.processName == "" )
8527 with expansion:
8528 "" == ""
8529
8530 -------------------------------------------------------------------------------
8531 Process can be configured on command line
8532 default - no arguments
8533 -------------------------------------------------------------------------------
8534 CmdLine.tests.cpp:<line number>
8535 ...............................................................................
8536
8537 CmdLine.tests.cpp:<line number>: PASSED:
8538 CHECK( result )
8539 with expansion:
8540 {?}
8541
8542 CmdLine.tests.cpp:<line number>: PASSED:
8543 CHECK( config.processName == "test" )
8544 with expansion:
8545 "test" == "test"
8546
8547 CmdLine.tests.cpp:<line number>: PASSED:
8548 CHECK( config.shouldDebugBreak == false )
8549 with expansion:
8550 false == false
8551
8552 CmdLine.tests.cpp:<line number>: PASSED:
8553 CHECK( config.abortAfter == -1 )
8554 with expansion:
8555 -1 == -1
8556
8557 CmdLine.tests.cpp:<line number>: PASSED:
8558 CHECK( config.noThrow == false )
8559 with expansion:
8560 false == false
8561
8562 CmdLine.tests.cpp:<line number>: PASSED:
8563 CHECK( config.reporterSpecifications.empty() )
8564 with expansion:
8565 true
8566
8567 CmdLine.tests.cpp:<line number>: PASSED:
8568 CHECK_FALSE( cfg.hasTestFilters() )
8569 with expansion:
8570 !false
8571
8572 CmdLine.tests.cpp:<line number>: PASSED:
8573 CHECK( cfg.getReporterSpecs().size() == 1 )
8574 with expansion:
8575 1 == 1
8576
8577 CmdLine.tests.cpp:<line number>: PASSED:
8578 CHECK( cfg.getReporterSpecs()[0] == Catch::ReporterSpec{ expectedReporter, {}, {}, {} } )
8579 with expansion:
8580 {?} == {?}
8581
8582 CmdLine.tests.cpp:<line number>: PASSED:
8583 CHECK( cfg.getProcessedReporterSpecs().size() == 1 )
8584 with expansion:
8585 1 == 1
8586
8587 CmdLine.tests.cpp:<line number>: PASSED:
8588 CHECK( cfg.getProcessedReporterSpecs()[0] == Catch::ProcessedReporterSpec{ expectedReporter, std::string{}, Catch::ColourMode::PlatformDefault, {} } )
8589 with expansion:
8590 {?} == {?}
8591
8592 -------------------------------------------------------------------------------
8593 Process can be configured on command line
8594 test lists
8595 Specify one test case using
8596 -------------------------------------------------------------------------------
8597 CmdLine.tests.cpp:<line number>
8598 ...............................................................................
8599
8600 CmdLine.tests.cpp:<line number>: PASSED:
8601 CHECK( result )
8602 with expansion:
8603 {?}
8604
8605 CmdLine.tests.cpp:<line number>: PASSED:
8606 REQUIRE( cfg.hasTestFilters() )
8607 with expansion:
8608 true
8609
8610 CmdLine.tests.cpp:<line number>: PASSED:
8611 REQUIRE( cfg.testSpec().matches(*fakeTestCase("notIncluded")) == false )
8612 with expansion:
8613 false == false
8614
8615 CmdLine.tests.cpp:<line number>: PASSED:
8616 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) )
8617 with expansion:
8618 true
8619
8620 -------------------------------------------------------------------------------
8621 Process can be configured on command line
8622 test lists
8623 Specify one test case exclusion using exclude:
8624 -------------------------------------------------------------------------------
8625 CmdLine.tests.cpp:<line number>
8626 ...............................................................................
8627
8628 CmdLine.tests.cpp:<line number>: PASSED:
8629 CHECK( result )
8630 with expansion:
8631 {?}
8632
8633 CmdLine.tests.cpp:<line number>: PASSED:
8634 REQUIRE( cfg.hasTestFilters() )
8635 with expansion:
8636 true
8637
8638 CmdLine.tests.cpp:<line number>: PASSED:
8639 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) == false )
8640 with expansion:
8641 false == false
8642
8643 CmdLine.tests.cpp:<line number>: PASSED:
8644 REQUIRE( cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) )
8645 with expansion:
8646 true
8647
8648 -------------------------------------------------------------------------------
8649 Process can be configured on command line
8650 test lists
8651 Specify one test case exclusion using ~
8652 -------------------------------------------------------------------------------
8653 CmdLine.tests.cpp:<line number>
8654 ...............................................................................
8655
8656 CmdLine.tests.cpp:<line number>: PASSED:
8657 CHECK( result )
8658 with expansion:
8659 {?}
8660
8661 CmdLine.tests.cpp:<line number>: PASSED:
8662 REQUIRE( cfg.hasTestFilters() )
8663 with expansion:
8664 true
8665
8666 CmdLine.tests.cpp:<line number>: PASSED:
8667 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) == false )
8668 with expansion:
8669 false == false
8670
8671 CmdLine.tests.cpp:<line number>: PASSED:
8672 REQUIRE( cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) )
8673 with expansion:
8674 true
8675
8676 -------------------------------------------------------------------------------
8677 Process can be configured on command line
8678 reporter
8679 -r/console
8680 -------------------------------------------------------------------------------
8681 CmdLine.tests.cpp:<line number>
8682 ...............................................................................
8683
8684 CmdLine.tests.cpp:<line number>: PASSED:
8685 CHECK( result )
8686 with expansion:
8687 {?}
8688 with message:
8689 result.errorMessage() := ""
8690
8691 CmdLine.tests.cpp:<line number>: PASSED:
8692 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", {}, {}, {} } } )
8693 with expansion:
8694 { {?} } == { {?} }
8695 with message:
8696 result.errorMessage() := ""
8697
8698 -------------------------------------------------------------------------------
8699 Process can be configured on command line
8700 reporter
8701 -r/xml
8702 -------------------------------------------------------------------------------
8703 CmdLine.tests.cpp:<line number>
8704 ...............................................................................
8705
8706 CmdLine.tests.cpp:<line number>: PASSED:
8707 CHECK( result )
8708 with expansion:
8709 {?}
8710 with message:
8711 result.errorMessage() := ""
8712
8713 CmdLine.tests.cpp:<line number>: PASSED:
8714 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", {}, {}, {} } } )
8715 with expansion:
8716 { {?} } == { {?} }
8717 with message:
8718 result.errorMessage() := ""
8719
8720 -------------------------------------------------------------------------------
8721 Process can be configured on command line
8722 reporter
8723 --reporter/junit
8724 -------------------------------------------------------------------------------
8725 CmdLine.tests.cpp:<line number>
8726 ...............................................................................
8727
8728 CmdLine.tests.cpp:<line number>: PASSED:
8729 CHECK( result )
8730 with expansion:
8731 {?}
8732 with message:
8733 result.errorMessage() := ""
8734
8735 CmdLine.tests.cpp:<line number>: PASSED:
8736 REQUIRE( config.reporterSpecifications == vec_Specs{ { "junit", {}, {}, {} } } )
8737 with expansion:
8738 { {?} } == { {?} }
8739 with message:
8740 result.errorMessage() := ""
8741
8742 -------------------------------------------------------------------------------
8743 Process can be configured on command line
8744 reporter
8745 must match one of the available ones
8746 -------------------------------------------------------------------------------
8747 CmdLine.tests.cpp:<line number>
8748 ...............................................................................
8749
8750 CmdLine.tests.cpp:<line number>: PASSED:
8751 CHECK( !result )
8752 with expansion:
8753 true
8754
8755 CmdLine.tests.cpp:<line number>: PASSED:
8756 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Unrecognized reporter") )
8757 with expansion:
8758 "Unrecognized reporter, 'unsupported'. Check available with --list-reporters"
8759 contains: "Unrecognized reporter"
8760
8761 -------------------------------------------------------------------------------
8762 Process can be configured on command line
8763 reporter
8764 With output file
8765 -------------------------------------------------------------------------------
8766 CmdLine.tests.cpp:<line number>
8767 ...............................................................................
8768
8769 CmdLine.tests.cpp:<line number>: PASSED:
8770 CHECK( result )
8771 with expansion:
8772 {?}
8773 with message:
8774 result.errorMessage() := ""
8775
8776 CmdLine.tests.cpp:<line number>: PASSED:
8777 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", "out.txt"s, {}, {} } } )
8778 with expansion:
8779 { {?} } == { {?} }
8780 with message:
8781 result.errorMessage() := ""
8782
8783 -------------------------------------------------------------------------------
8784 Process can be configured on command line
8785 reporter
8786 With Windows-like absolute path as output file
8787 -------------------------------------------------------------------------------
8788 CmdLine.tests.cpp:<line number>
8789 ...............................................................................
8790
8791 CmdLine.tests.cpp:<line number>: PASSED:
8792 CHECK( result )
8793 with expansion:
8794 {?}
8795 with message:
8796 result.errorMessage() := ""
8797
8798 CmdLine.tests.cpp:<line number>: PASSED:
8799 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", "C:\\Temp\\out.txt"s, {}, {} } } )
8800 with expansion:
8801 { {?} } == { {?} }
8802 with message:
8803 result.errorMessage() := ""
8804
8805 -------------------------------------------------------------------------------
8806 Process can be configured on command line
8807 reporter
8808 Multiple reporters
8809 All with output files
8810 -------------------------------------------------------------------------------
8811 CmdLine.tests.cpp:<line number>
8812 ...............................................................................
8813
8814 CmdLine.tests.cpp:<line number>: PASSED:
8815 CHECK( cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "junit::out=output-junit.xml" }) )
8816 with expansion:
8817 {?}
8818
8819 CmdLine.tests.cpp:<line number>: PASSED:
8820 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "junit", "output-junit.xml"s, {}, {} } } )
8821 with expansion:
8822 { {?}, {?} } == { {?}, {?} }
8823
8824 -------------------------------------------------------------------------------
8825 Process can be configured on command line
8826 reporter
8827 Multiple reporters
8828 Mixed output files and default output
8829 -------------------------------------------------------------------------------
8830 CmdLine.tests.cpp:<line number>
8831 ...............................................................................
8832
8833 CmdLine.tests.cpp:<line number>: PASSED:
8834 CHECK( cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "console" }) )
8835 with expansion:
8836 {?}
8837
8838 CmdLine.tests.cpp:<line number>: PASSED:
8839 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "console", {}, {}, {} } } )
8840 with expansion:
8841 { {?}, {?} } == { {?}, {?} }
8842
8843 -------------------------------------------------------------------------------
8844 Process can be configured on command line
8845 reporter
8846 Multiple reporters
8847 cannot have multiple reporters with default output
8848 -------------------------------------------------------------------------------
8849 CmdLine.tests.cpp:<line number>
8850 ...............................................................................
8851
8852 CmdLine.tests.cpp:<line number>: PASSED:
8853 CHECK( !result )
8854 with expansion:
8855 true
8856
8857 CmdLine.tests.cpp:<line number>: PASSED:
8858 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Only one reporter may have unspecified output file.") )
8859 with expansion:
8860 "Only one reporter may have unspecified output file." contains: "Only one
8861 reporter may have unspecified output file."
8862
8863 -------------------------------------------------------------------------------
8864 Process can be configured on command line
8865 debugger
8866 -b
8867 -------------------------------------------------------------------------------
8868 CmdLine.tests.cpp:<line number>
8869 ...............................................................................
8870
8871 CmdLine.tests.cpp:<line number>: PASSED:
8872 CHECK( cli.parse({"test", "-b"}) )
8873 with expansion:
8874 {?}
8875
8876 CmdLine.tests.cpp:<line number>: PASSED:
8877 REQUIRE( config.shouldDebugBreak == true )
8878 with expansion:
8879 true == true
8880
8881 -------------------------------------------------------------------------------
8882 Process can be configured on command line
8883 debugger
8884 --break
8885 -------------------------------------------------------------------------------
8886 CmdLine.tests.cpp:<line number>
8887 ...............................................................................
8888
8889 CmdLine.tests.cpp:<line number>: PASSED:
8890 CHECK( cli.parse({"test", "--break"}) )
8891 with expansion:
8892 {?}
8893
8894 CmdLine.tests.cpp:<line number>: PASSED:
8895 REQUIRE( config.shouldDebugBreak )
8896 with expansion:
8897 true
8898
8899 -------------------------------------------------------------------------------
8900 Process can be configured on command line
8901 abort
8902 -a aborts after first failure
8903 -------------------------------------------------------------------------------
8904 CmdLine.tests.cpp:<line number>
8905 ...............................................................................
8906
8907 CmdLine.tests.cpp:<line number>: PASSED:
8908 CHECK( cli.parse({"test", "-a"}) )
8909 with expansion:
8910 {?}
8911
8912 CmdLine.tests.cpp:<line number>: PASSED:
8913 REQUIRE( config.abortAfter == 1 )
8914 with expansion:
8915 1 == 1
8916
8917 -------------------------------------------------------------------------------
8918 Process can be configured on command line
8919 abort
8920 -x 2 aborts after two failures
8921 -------------------------------------------------------------------------------
8922 CmdLine.tests.cpp:<line number>
8923 ...............................................................................
8924
8925 CmdLine.tests.cpp:<line number>: PASSED:
8926 CHECK( cli.parse({"test", "-x", "2"}) )
8927 with expansion:
8928 {?}
8929
8930 CmdLine.tests.cpp:<line number>: PASSED:
8931 REQUIRE( config.abortAfter == 2 )
8932 with expansion:
8933 2 == 2
8934
8935 -------------------------------------------------------------------------------
8936 Process can be configured on command line
8937 abort
8938 -x must be numeric
8939 -------------------------------------------------------------------------------
8940 CmdLine.tests.cpp:<line number>
8941 ...............................................................................
8942
8943 CmdLine.tests.cpp:<line number>: PASSED:
8944 CHECK( !result )
8945 with expansion:
8946 true
8947
8948 CmdLine.tests.cpp:<line number>: PASSED:
8949 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("convert") && ContainsSubstring("oops") )
8950 with expansion:
8951 "Unable to convert 'oops' to destination type" ( contains: "convert" and
8952 contains: "oops" )
8953
8954 -------------------------------------------------------------------------------
8955 Process can be configured on command line
8956 abort
8957 wait-for-keypress
8958 Accepted options
8959 -------------------------------------------------------------------------------
8960 CmdLine.tests.cpp:<line number>
8961 ...............................................................................
8962
8963 CmdLine.tests.cpp:<line number>: PASSED:
8964 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
8965 with expansion:
8966 {?}
8967
8968 CmdLine.tests.cpp:<line number>: PASSED:
8969 REQUIRE( config.waitForKeypress == std::get<1>(input) )
8970 with expansion:
8971 0 == 0
8972
8973 -------------------------------------------------------------------------------
8974 Process can be configured on command line
8975 abort
8976 wait-for-keypress
8977 Accepted options
8978 -------------------------------------------------------------------------------
8979 CmdLine.tests.cpp:<line number>
8980 ...............................................................................
8981
8982 CmdLine.tests.cpp:<line number>: PASSED:
8983 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
8984 with expansion:
8985 {?}
8986
8987 CmdLine.tests.cpp:<line number>: PASSED:
8988 REQUIRE( config.waitForKeypress == std::get<1>(input) )
8989 with expansion:
8990 1 == 1
8991
8992 -------------------------------------------------------------------------------
8993 Process can be configured on command line
8994 abort
8995 wait-for-keypress
8996 Accepted options
8997 -------------------------------------------------------------------------------
8998 CmdLine.tests.cpp:<line number>
8999 ...............................................................................
9000
9001 CmdLine.tests.cpp:<line number>: PASSED:
9002 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9003 with expansion:
9004 {?}
9005
9006 CmdLine.tests.cpp:<line number>: PASSED:
9007 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9008 with expansion:
9009 2 == 2
9010
9011 -------------------------------------------------------------------------------
9012 Process can be configured on command line
9013 abort
9014 wait-for-keypress
9015 Accepted options
9016 -------------------------------------------------------------------------------
9017 CmdLine.tests.cpp:<line number>
9018 ...............................................................................
9019
9020 CmdLine.tests.cpp:<line number>: PASSED:
9021 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9022 with expansion:
9023 {?}
9024
9025 CmdLine.tests.cpp:<line number>: PASSED:
9026 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9027 with expansion:
9028 3 == 3
9029
9030 -------------------------------------------------------------------------------
9031 Process can be configured on command line
9032 abort
9033 wait-for-keypress
9034 invalid options are reported
9035 -------------------------------------------------------------------------------
9036 CmdLine.tests.cpp:<line number>
9037 ...............................................................................
9038
9039 CmdLine.tests.cpp:<line number>: PASSED:
9040 CHECK( !result )
9041 with expansion:
9042 true
9043
9044 CmdLine.tests.cpp:<line number>: PASSED:
9045 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("never") && ContainsSubstring("both") )
9046 with expansion:
9047 "keypress argument must be one of: never, start, exit or both. 'sometimes'
9048 not recognised" ( contains: "never" and contains: "both" )
9049
9050 -------------------------------------------------------------------------------
9051 Process can be configured on command line
9052 nothrow
9053 -e
9054 -------------------------------------------------------------------------------
9055 CmdLine.tests.cpp:<line number>
9056 ...............................................................................
9057
9058 CmdLine.tests.cpp:<line number>: PASSED:
9059 CHECK( cli.parse({"test", "-e"}) )
9060 with expansion:
9061 {?}
9062
9063 CmdLine.tests.cpp:<line number>: PASSED:
9064 REQUIRE( config.noThrow )
9065 with expansion:
9066 true
9067
9068 -------------------------------------------------------------------------------
9069 Process can be configured on command line
9070 nothrow
9071 --nothrow
9072 -------------------------------------------------------------------------------
9073 CmdLine.tests.cpp:<line number>
9074 ...............................................................................
9075
9076 CmdLine.tests.cpp:<line number>: PASSED:
9077 CHECK( cli.parse({"test", "--nothrow"}) )
9078 with expansion:
9079 {?}
9080
9081 CmdLine.tests.cpp:<line number>: PASSED:
9082 REQUIRE( config.noThrow )
9083 with expansion:
9084 true
9085
9086 -------------------------------------------------------------------------------
9087 Process can be configured on command line
9088 output filename
9089 -o filename
9090 -------------------------------------------------------------------------------
9091 CmdLine.tests.cpp:<line number>
9092 ...............................................................................
9093
9094 CmdLine.tests.cpp:<line number>: PASSED:
9095 CHECK( cli.parse({"test", "-o", "filename.ext"}) )
9096 with expansion:
9097 {?}
9098
9099 CmdLine.tests.cpp:<line number>: PASSED:
9100 REQUIRE( config.defaultOutputFilename == "filename.ext" )
9101 with expansion:
9102 "filename.ext" == "filename.ext"
9103
9104 -------------------------------------------------------------------------------
9105 Process can be configured on command line
9106 output filename
9107 --out
9108 -------------------------------------------------------------------------------
9109 CmdLine.tests.cpp:<line number>
9110 ...............................................................................
9111
9112 CmdLine.tests.cpp:<line number>: PASSED:
9113 CHECK( cli.parse({"test", "--out", "filename.ext"}) )
9114 with expansion:
9115 {?}
9116
9117 CmdLine.tests.cpp:<line number>: PASSED:
9118 REQUIRE( config.defaultOutputFilename == "filename.ext" )
9119 with expansion:
9120 "filename.ext" == "filename.ext"
9121
9122 -------------------------------------------------------------------------------
9123 Process can be configured on command line
9124 combinations
9125 Single character flags can be combined
9126 -------------------------------------------------------------------------------
9127 CmdLine.tests.cpp:<line number>
9128 ...............................................................................
9129
9130 CmdLine.tests.cpp:<line number>: PASSED:
9131 CHECK( cli.parse({"test", "-abe"}) )
9132 with expansion:
9133 {?}
9134
9135 CmdLine.tests.cpp:<line number>: PASSED:
9136 CHECK( config.abortAfter == 1 )
9137 with expansion:
9138 1 == 1
9139
9140 CmdLine.tests.cpp:<line number>: PASSED:
9141 CHECK( config.shouldDebugBreak )
9142 with expansion:
9143 true
9144
9145 CmdLine.tests.cpp:<line number>: PASSED:
9146 CHECK( config.noThrow == true )
9147 with expansion:
9148 true == true
9149
9150 -------------------------------------------------------------------------------
9151 Process can be configured on command line
9152 use-colour
9153 without option
9154 -------------------------------------------------------------------------------
9155 CmdLine.tests.cpp:<line number>
9156 ...............................................................................
9157
9158 CmdLine.tests.cpp:<line number>: PASSED:
9159 CHECK( cli.parse({"test"}) )
9160 with expansion:
9161 {?}
9162
9163 CmdLine.tests.cpp:<line number>: PASSED:
9164 REQUIRE( config.defaultColourMode == ColourMode::PlatformDefault )
9165 with expansion:
9166 0 == 0
9167
9168 -------------------------------------------------------------------------------
9169 Process can be configured on command line
9170 use-colour
9171 auto
9172 -------------------------------------------------------------------------------
9173 CmdLine.tests.cpp:<line number>
9174 ...............................................................................
9175
9176 CmdLine.tests.cpp:<line number>: PASSED:
9177 CHECK( cli.parse( { "test", "--colour-mode", "default" } ) )
9178 with expansion:
9179 {?}
9180
9181 CmdLine.tests.cpp:<line number>: PASSED:
9182 REQUIRE( config.defaultColourMode == ColourMode::PlatformDefault )
9183 with expansion:
9184 0 == 0
9185
9186 -------------------------------------------------------------------------------
9187 Process can be configured on command line
9188 use-colour
9189 yes
9190 -------------------------------------------------------------------------------
9191 CmdLine.tests.cpp:<line number>
9192 ...............................................................................
9193
9194 CmdLine.tests.cpp:<line number>: PASSED:
9195 CHECK( cli.parse({"test", "--colour-mode", "ansi"}) )
9196 with expansion:
9197 {?}
9198
9199 CmdLine.tests.cpp:<line number>: PASSED:
9200 REQUIRE( config.defaultColourMode == ColourMode::ANSI )
9201 with expansion:
9202 1 == 1
9203
9204 -------------------------------------------------------------------------------
9205 Process can be configured on command line
9206 use-colour
9207 no
9208 -------------------------------------------------------------------------------
9209 CmdLine.tests.cpp:<line number>
9210 ...............................................................................
9211
9212 CmdLine.tests.cpp:<line number>: PASSED:
9213 CHECK( cli.parse({"test", "--colour-mode", "none"}) )
9214 with expansion:
9215 {?}
9216
9217 CmdLine.tests.cpp:<line number>: PASSED:
9218 REQUIRE( config.defaultColourMode == ColourMode::None )
9219 with expansion:
9220 3 == 3
9221
9222 -------------------------------------------------------------------------------
9223 Process can be configured on command line
9224 use-colour
9225 error
9226 -------------------------------------------------------------------------------
9227 CmdLine.tests.cpp:<line number>
9228 ...............................................................................
9229
9230 CmdLine.tests.cpp:<line number>: PASSED:
9231 CHECK( !result )
9232 with expansion:
9233 true
9234
9235 CmdLine.tests.cpp:<line number>: PASSED:
9236 CHECK_THAT( result.errorMessage(), ContainsSubstring( "colour mode must be one of" ) )
9237 with expansion:
9238 "colour mode must be one of: default, ansi, win32, or none. 'wrong' is not
9239 recognised" contains: "colour mode must be one of"
9240
9241 -------------------------------------------------------------------------------
9242 Process can be configured on command line
9243 Benchmark options
9244 samples
9245 -------------------------------------------------------------------------------
9246 CmdLine.tests.cpp:<line number>
9247 ...............................................................................
9248
9249 CmdLine.tests.cpp:<line number>: PASSED:
9250 CHECK( cli.parse({ "test", "--benchmark-samples=200" }) )
9251 with expansion:
9252 {?}
9253
9254 CmdLine.tests.cpp:<line number>: PASSED:
9255 REQUIRE( config.benchmarkSamples == 200 )
9256 with expansion:
9257 200 == 200
9258
9259 -------------------------------------------------------------------------------
9260 Process can be configured on command line
9261 Benchmark options
9262 resamples
9263 -------------------------------------------------------------------------------
9264 CmdLine.tests.cpp:<line number>
9265 ...............................................................................
9266
9267 CmdLine.tests.cpp:<line number>: PASSED:
9268 CHECK( cli.parse({ "test", "--benchmark-resamples=20000" }) )
9269 with expansion:
9270 {?}
9271
9272 CmdLine.tests.cpp:<line number>: PASSED:
9273 REQUIRE( config.benchmarkResamples == 20000 )
9274 with expansion:
9275 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
9276
9277 -------------------------------------------------------------------------------
9278 Process can be configured on command line
9279 Benchmark options
9280 confidence-interval
9281 -------------------------------------------------------------------------------
9282 CmdLine.tests.cpp:<line number>
9283 ...............................................................................
9284
9285 CmdLine.tests.cpp:<line number>: PASSED:
9286 CHECK( cli.parse({ "test", "--benchmark-confidence-interval=0.99" }) )
9287 with expansion:
9288 {?}
9289
9290 CmdLine.tests.cpp:<line number>: PASSED:
9291 REQUIRE( config.benchmarkConfidenceInterval == Catch::Approx(0.99) )
9292 with expansion:
9293 0.99 == Approx( 0.99 )
9294
9295 -------------------------------------------------------------------------------
9296 Process can be configured on command line
9297 Benchmark options
9298 no-analysis
9299 -------------------------------------------------------------------------------
9300 CmdLine.tests.cpp:<line number>
9301 ...............................................................................
9302
9303 CmdLine.tests.cpp:<line number>: PASSED:
9304 CHECK( cli.parse({ "test", "--benchmark-no-analysis" }) )
9305 with expansion:
9306 {?}
9307
9308 CmdLine.tests.cpp:<line number>: PASSED:
9309 REQUIRE( config.benchmarkNoAnalysis )
9310 with expansion:
9311 true
9312
9313 -------------------------------------------------------------------------------
9314 Process can be configured on command line
9315 Benchmark options
9316 warmup-time
9317 -------------------------------------------------------------------------------
9318 CmdLine.tests.cpp:<line number>
9319 ...............................................................................
9320
9321 CmdLine.tests.cpp:<line number>: PASSED:
9322 CHECK( cli.parse({ "test", "--benchmark-warmup-time=10" }) )
9323 with expansion:
9324 {?}
9325
9326 CmdLine.tests.cpp:<line number>: PASSED:
9327 REQUIRE( config.benchmarkWarmupTime == 10 )
9328 with expansion:
9329 10 == 10
9330
9331 -------------------------------------------------------------------------------
9332 Product with differing arities - std::tuple<int, double, float>
9333 -------------------------------------------------------------------------------
9334 Misc.tests.cpp:<line number>
9335 ...............................................................................
9336
9337 Misc.tests.cpp:<line number>: PASSED:
9338 REQUIRE( std::tuple_size<TestType>::value >= 1 )
9339 with expansion:
9340 3 >= 1
9341
9342 -------------------------------------------------------------------------------
9343 Product with differing arities - std::tuple<int, double>
9344 -------------------------------------------------------------------------------
9345 Misc.tests.cpp:<line number>
9346 ...............................................................................
9347
9348 Misc.tests.cpp:<line number>: PASSED:
9349 REQUIRE( std::tuple_size<TestType>::value >= 1 )
9350 with expansion:
9351 2 >= 1
9352
9353 -------------------------------------------------------------------------------
9354 Product with differing arities - std::tuple<int>
9355 -------------------------------------------------------------------------------
9356 Misc.tests.cpp:<line number>
9357 ...............................................................................
9358
9359 Misc.tests.cpp:<line number>: PASSED:
9360 REQUIRE( std::tuple_size<TestType>::value >= 1 )
9361 with expansion:
9362 1 >= 1
9363
9364 -------------------------------------------------------------------------------
9365 Random seed generation accepts known methods
9366 -------------------------------------------------------------------------------
9367 RandomNumberGeneration.tests.cpp:<line number>
9368 ...............................................................................
9369
9370 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
9371 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
9372
9373 -------------------------------------------------------------------------------
9374 Random seed generation accepts known methods
9375 -------------------------------------------------------------------------------
9376 RandomNumberGeneration.tests.cpp:<line number>
9377 ...............................................................................
9378
9379 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
9380 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
9381
9382 -------------------------------------------------------------------------------
9383 Random seed generation accepts known methods
9384 -------------------------------------------------------------------------------
9385 RandomNumberGeneration.tests.cpp:<line number>
9386 ...............................................................................
9387
9388 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
9389 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
9390
9391 -------------------------------------------------------------------------------
9392 Random seed generation reports unknown methods
9393 -------------------------------------------------------------------------------
9394 RandomNumberGeneration.tests.cpp:<line number>
9395 ...............................................................................
9396
9397 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
9398 REQUIRE_THROWS( Catch::generateRandomSeed(static_cast<Catch::GenerateFrom>(77)) )
9399
9400 -------------------------------------------------------------------------------
9401 Range type with sentinel
9402 -------------------------------------------------------------------------------
9403 ToString.tests.cpp:<line number>
9404 ...............................................................................
9405
9406 ToString.tests.cpp:<line number>: PASSED:
9407 CHECK( Catch::Detail::stringify(UsesSentinel{}) == "{ }" )
9408 with expansion:
9409 "{ }" == "{ }"
9410
9411 -------------------------------------------------------------------------------
9412 Reconstruction should be based on stringification: #914
9413 -------------------------------------------------------------------------------
9414 Decomposition.tests.cpp:<line number>
9415 ...............................................................................
9416
9417 Decomposition.tests.cpp:<line number>: FAILED:
9418 CHECK( truthy(false) )
9419 with expansion:
9420 Hey, its truthy!
9421
9422 -------------------------------------------------------------------------------
9423 Regex string matcher
9424 -------------------------------------------------------------------------------
9425 Matchers.tests.cpp:<line number>
9426 ...............................................................................
9427
9428 Matchers.tests.cpp:<line number>: FAILED:
9429 CHECK_THAT( testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) )
9430 with expansion:
9431 "this string contains 'abc' as a substring" matches "this STRING contains
9432 'abc' as a substring" case sensitively
9433
9434 Matchers.tests.cpp:<line number>: FAILED:
9435 CHECK_THAT( testStringForMatching(), Matches( "contains 'abc' as a substring" ) )
9436 with expansion:
9437 "this string contains 'abc' as a substring" matches "contains 'abc' as a
9438 substring" case sensitively
9439
9440 Matchers.tests.cpp:<line number>: FAILED:
9441 CHECK_THAT( testStringForMatching(), Matches( "this string contains 'abc' as a" ) )
9442 with expansion:
9443 "this string contains 'abc' as a substring" matches "this string contains
9444 'abc' as a" case sensitively
9445
9446 -------------------------------------------------------------------------------
9447 Registering reporter with '::' in name fails
9448 -------------------------------------------------------------------------------
9449 Reporters.tests.cpp:<line number>
9450 ...............................................................................
9451
9452 Reporters.tests.cpp:<line number>: PASSED:
9453 REQUIRE_THROWS_WITH( registry.registerReporter( "with::doublecolons", Catch::Detail::make_unique<TestReporterFactory>() ), "'::' is not allowed in reporter name: 'with::doublecolons'" )
9454 with expansion:
9455 "'::' is not allowed in reporter name: 'with::doublecolons'" equals: "'::' is
9456 not allowed in reporter name: 'with::doublecolons'"
9457
9458 -------------------------------------------------------------------------------
9459 Regression test #1
9460 -------------------------------------------------------------------------------
9461 Matchers.tests.cpp:<line number>
9462 ...............................................................................
9463
9464 Matchers.tests.cpp:<line number>: PASSED:
9465 CHECK_THAT( actual, !UnorderedEquals( expected ) )
9466 with expansion:
9467 { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
9468
9469 -------------------------------------------------------------------------------
9470 Reporter's write listings to provided stream
9471 -------------------------------------------------------------------------------
9472 Reporters.tests.cpp:<line number>
9473 ...............................................................................
9474
9475 Reporters.tests.cpp:<line number>: PASSED:
9476 REQUIRE_FALSE( factories.empty() )
9477 with expansion:
9478 !false
9479
9480 -------------------------------------------------------------------------------
9481 Reporter's write listings to provided stream
9482 Automake reporter lists tags
9483 -------------------------------------------------------------------------------
9484 Reporters.tests.cpp:<line number>
9485 ...............................................................................
9486
9487 Reporters.tests.cpp:<line number>: PASSED:
9488 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9489 with expansion:
9490 "All available tags:
9491 1 [fakeTag]
9492 1 tag
9493
9494 " contains: "fakeTag"
9495 with message:
9496 Tested reporter: Automake
9497
9498 -------------------------------------------------------------------------------
9499 Reporter's write listings to provided stream
9500 -------------------------------------------------------------------------------
9501 Reporters.tests.cpp:<line number>
9502 ...............................................................................
9503
9504 Reporters.tests.cpp:<line number>: PASSED:
9505 REQUIRE_FALSE( factories.empty() )
9506 with expansion:
9507 !false
9508
9509 -------------------------------------------------------------------------------
9510 Reporter's write listings to provided stream
9511 Automake reporter lists reporters
9512 -------------------------------------------------------------------------------
9513 Reporters.tests.cpp:<line number>
9514 ...............................................................................
9515
9516 Reporters.tests.cpp:<line number>: PASSED:
9517 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9518 with expansion:
9519 "Available reporters:
9520 fake reporter: fake description
9521
9522 " contains: "fake reporter"
9523 with message:
9524 Tested reporter: Automake
9525
9526 -------------------------------------------------------------------------------
9527 Reporter's write listings to provided stream
9528 -------------------------------------------------------------------------------
9529 Reporters.tests.cpp:<line number>
9530 ...............................................................................
9531
9532 Reporters.tests.cpp:<line number>: PASSED:
9533 REQUIRE_FALSE( factories.empty() )
9534 with expansion:
9535 !false
9536
9537 -------------------------------------------------------------------------------
9538 Reporter's write listings to provided stream
9539 Automake reporter lists tests
9540 -------------------------------------------------------------------------------
9541 Reporters.tests.cpp:<line number>
9542 ...............................................................................
9543
9544 Reporters.tests.cpp:<line number>: PASSED:
9545 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9546 with expansion:
9547 "All available test cases:
9548 fake test name
9549 [fakeTestTag]
9550 1 test case
9551
9552 " ( contains: "fake test name" and contains: "fakeTestTag" )
9553 with message:
9554 Tested reporter: Automake
9555
9556 -------------------------------------------------------------------------------
9557 Reporter's write listings to provided stream
9558 -------------------------------------------------------------------------------
9559 Reporters.tests.cpp:<line number>
9560 ...............................................................................
9561
9562 Reporters.tests.cpp:<line number>: PASSED:
9563 REQUIRE_FALSE( factories.empty() )
9564 with expansion:
9565 !false
9566
9567 -------------------------------------------------------------------------------
9568 Reporter's write listings to provided stream
9569 compact reporter lists tags
9570 -------------------------------------------------------------------------------
9571 Reporters.tests.cpp:<line number>
9572 ...............................................................................
9573
9574 Reporters.tests.cpp:<line number>: PASSED:
9575 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9576 with expansion:
9577 "All available tags:
9578 1 [fakeTag]
9579 1 tag
9580
9581 " contains: "fakeTag"
9582 with message:
9583 Tested reporter: compact
9584
9585 -------------------------------------------------------------------------------
9586 Reporter's write listings to provided stream
9587 -------------------------------------------------------------------------------
9588 Reporters.tests.cpp:<line number>
9589 ...............................................................................
9590
9591 Reporters.tests.cpp:<line number>: PASSED:
9592 REQUIRE_FALSE( factories.empty() )
9593 with expansion:
9594 !false
9595
9596 -------------------------------------------------------------------------------
9597 Reporter's write listings to provided stream
9598 compact reporter lists reporters
9599 -------------------------------------------------------------------------------
9600 Reporters.tests.cpp:<line number>
9601 ...............................................................................
9602
9603 Reporters.tests.cpp:<line number>: PASSED:
9604 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9605 with expansion:
9606 "Available reporters:
9607 fake reporter: fake description
9608
9609 " contains: "fake reporter"
9610 with message:
9611 Tested reporter: compact
9612
9613 -------------------------------------------------------------------------------
9614 Reporter's write listings to provided stream
9615 -------------------------------------------------------------------------------
9616 Reporters.tests.cpp:<line number>
9617 ...............................................................................
9618
9619 Reporters.tests.cpp:<line number>: PASSED:
9620 REQUIRE_FALSE( factories.empty() )
9621 with expansion:
9622 !false
9623
9624 -------------------------------------------------------------------------------
9625 Reporter's write listings to provided stream
9626 compact reporter lists tests
9627 -------------------------------------------------------------------------------
9628 Reporters.tests.cpp:<line number>
9629 ...............................................................................
9630
9631 Reporters.tests.cpp:<line number>: PASSED:
9632 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9633 with expansion:
9634 "All available test cases:
9635 fake test name
9636 [fakeTestTag]
9637 1 test case
9638
9639 " ( contains: "fake test name" and contains: "fakeTestTag" )
9640 with message:
9641 Tested reporter: compact
9642
9643 -------------------------------------------------------------------------------
9644 Reporter's write listings to provided stream
9645 -------------------------------------------------------------------------------
9646 Reporters.tests.cpp:<line number>
9647 ...............................................................................
9648
9649 Reporters.tests.cpp:<line number>: PASSED:
9650 REQUIRE_FALSE( factories.empty() )
9651 with expansion:
9652 !false
9653
9654 -------------------------------------------------------------------------------
9655 Reporter's write listings to provided stream
9656 console reporter lists tags
9657 -------------------------------------------------------------------------------
9658 Reporters.tests.cpp:<line number>
9659 ...............................................................................
9660
9661 Reporters.tests.cpp:<line number>: PASSED:
9662 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9663 with expansion:
9664 "All available tags:
9665 1 [fakeTag]
9666 1 tag
9667
9668 " contains: "fakeTag"
9669 with message:
9670 Tested reporter: console
9671
9672 -------------------------------------------------------------------------------
9673 Reporter's write listings to provided stream
9674 -------------------------------------------------------------------------------
9675 Reporters.tests.cpp:<line number>
9676 ...............................................................................
9677
9678 Reporters.tests.cpp:<line number>: PASSED:
9679 REQUIRE_FALSE( factories.empty() )
9680 with expansion:
9681 !false
9682
9683 -------------------------------------------------------------------------------
9684 Reporter's write listings to provided stream
9685 console reporter lists reporters
9686 -------------------------------------------------------------------------------
9687 Reporters.tests.cpp:<line number>
9688 ...............................................................................
9689
9690 Reporters.tests.cpp:<line number>: PASSED:
9691 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9692 with expansion:
9693 "Available reporters:
9694 fake reporter: fake description
9695
9696 " contains: "fake reporter"
9697 with message:
9698 Tested reporter: console
9699
9700 -------------------------------------------------------------------------------
9701 Reporter's write listings to provided stream
9702 -------------------------------------------------------------------------------
9703 Reporters.tests.cpp:<line number>
9704 ...............................................................................
9705
9706 Reporters.tests.cpp:<line number>: PASSED:
9707 REQUIRE_FALSE( factories.empty() )
9708 with expansion:
9709 !false
9710
9711 -------------------------------------------------------------------------------
9712 Reporter's write listings to provided stream
9713 console reporter lists tests
9714 -------------------------------------------------------------------------------
9715 Reporters.tests.cpp:<line number>
9716 ...............................................................................
9717
9718 Reporters.tests.cpp:<line number>: PASSED:
9719 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9720 with expansion:
9721 "All available test cases:
9722 fake test name
9723 [fakeTestTag]
9724 1 test case
9725
9726 " ( contains: "fake test name" and contains: "fakeTestTag" )
9727 with message:
9728 Tested reporter: console
9729
9730 -------------------------------------------------------------------------------
9731 Reporter's write listings to provided stream
9732 -------------------------------------------------------------------------------
9733 Reporters.tests.cpp:<line number>
9734 ...............................................................................
9735
9736 Reporters.tests.cpp:<line number>: PASSED:
9737 REQUIRE_FALSE( factories.empty() )
9738 with expansion:
9739 !false
9740
9741 -------------------------------------------------------------------------------
9742 Reporter's write listings to provided stream
9743 JUnit reporter lists tags
9744 -------------------------------------------------------------------------------
9745 Reporters.tests.cpp:<line number>
9746 ...............................................................................
9747
9748 Reporters.tests.cpp:<line number>: PASSED:
9749 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9750 with expansion:
9751 "<?xml version="1.0" encoding="UTF-8"?>
9752 All available tags:
9753 1 [fakeTag]
9754 1 tag
9755
9756 " contains: "fakeTag"
9757 with message:
9758 Tested reporter: JUnit
9759
9760 -------------------------------------------------------------------------------
9761 Reporter's write listings to provided stream
9762 -------------------------------------------------------------------------------
9763 Reporters.tests.cpp:<line number>
9764 ...............................................................................
9765
9766 Reporters.tests.cpp:<line number>: PASSED:
9767 REQUIRE_FALSE( factories.empty() )
9768 with expansion:
9769 !false
9770
9771 -------------------------------------------------------------------------------
9772 Reporter's write listings to provided stream
9773 JUnit reporter lists reporters
9774 -------------------------------------------------------------------------------
9775 Reporters.tests.cpp:<line number>
9776 ...............................................................................
9777
9778 Reporters.tests.cpp:<line number>: PASSED:
9779 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9780 with expansion:
9781 "<?xml version="1.0" encoding="UTF-8"?>
9782 Available reporters:
9783 fake reporter: fake description
9784
9785 " contains: "fake reporter"
9786 with message:
9787 Tested reporter: JUnit
9788
9789 -------------------------------------------------------------------------------
9790 Reporter's write listings to provided stream
9791 -------------------------------------------------------------------------------
9792 Reporters.tests.cpp:<line number>
9793 ...............................................................................
9794
9795 Reporters.tests.cpp:<line number>: PASSED:
9796 REQUIRE_FALSE( factories.empty() )
9797 with expansion:
9798 !false
9799
9800 -------------------------------------------------------------------------------
9801 Reporter's write listings to provided stream
9802 JUnit reporter lists tests
9803 -------------------------------------------------------------------------------
9804 Reporters.tests.cpp:<line number>
9805 ...............................................................................
9806
9807 Reporters.tests.cpp:<line number>: PASSED:
9808 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9809 with expansion:
9810 "<?xml version="1.0" encoding="UTF-8"?>
9811 All available test cases:
9812 fake test name
9813 [fakeTestTag]
9814 1 test case
9815
9816 " ( contains: "fake test name" and contains: "fakeTestTag" )
9817 with message:
9818 Tested reporter: JUnit
9819
9820 -------------------------------------------------------------------------------
9821 Reporter's write listings to provided stream
9822 -------------------------------------------------------------------------------
9823 Reporters.tests.cpp:<line number>
9824 ...............................................................................
9825
9826 Reporters.tests.cpp:<line number>: PASSED:
9827 REQUIRE_FALSE( factories.empty() )
9828 with expansion:
9829 !false
9830
9831 -------------------------------------------------------------------------------
9832 Reporter's write listings to provided stream
9833 SonarQube reporter lists tags
9834 -------------------------------------------------------------------------------
9835 Reporters.tests.cpp:<line number>
9836 ...............................................................................
9837
9838 Reporters.tests.cpp:<line number>: PASSED:
9839 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9840 with expansion:
9841 "<?xml version="1.0" encoding="UTF-8"?>
9842 All available tags:
9843 1 [fakeTag]
9844 1 tag
9845
9846 " contains: "fakeTag"
9847 with message:
9848 Tested reporter: SonarQube
9849
9850 -------------------------------------------------------------------------------
9851 Reporter's write listings to provided stream
9852 -------------------------------------------------------------------------------
9853 Reporters.tests.cpp:<line number>
9854 ...............................................................................
9855
9856 Reporters.tests.cpp:<line number>: PASSED:
9857 REQUIRE_FALSE( factories.empty() )
9858 with expansion:
9859 !false
9860
9861 -------------------------------------------------------------------------------
9862 Reporter's write listings to provided stream
9863 SonarQube reporter lists reporters
9864 -------------------------------------------------------------------------------
9865 Reporters.tests.cpp:<line number>
9866 ...............................................................................
9867
9868 Reporters.tests.cpp:<line number>: PASSED:
9869 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9870 with expansion:
9871 "<?xml version="1.0" encoding="UTF-8"?>
9872 Available reporters:
9873 fake reporter: fake description
9874
9875 " contains: "fake reporter"
9876 with message:
9877 Tested reporter: SonarQube
9878
9879 -------------------------------------------------------------------------------
9880 Reporter's write listings to provided stream
9881 -------------------------------------------------------------------------------
9882 Reporters.tests.cpp:<line number>
9883 ...............................................................................
9884
9885 Reporters.tests.cpp:<line number>: PASSED:
9886 REQUIRE_FALSE( factories.empty() )
9887 with expansion:
9888 !false
9889
9890 -------------------------------------------------------------------------------
9891 Reporter's write listings to provided stream
9892 SonarQube reporter lists tests
9893 -------------------------------------------------------------------------------
9894 Reporters.tests.cpp:<line number>
9895 ...............................................................................
9896
9897 Reporters.tests.cpp:<line number>: PASSED:
9898 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9899 with expansion:
9900 "<?xml version="1.0" encoding="UTF-8"?>
9901 All available test cases:
9902 fake test name
9903 [fakeTestTag]
9904 1 test case
9905
9906 " ( contains: "fake test name" and contains: "fakeTestTag" )
9907 with message:
9908 Tested reporter: SonarQube
9909
9910 -------------------------------------------------------------------------------
9911 Reporter's write listings to provided stream
9912 -------------------------------------------------------------------------------
9913 Reporters.tests.cpp:<line number>
9914 ...............................................................................
9915
9916 Reporters.tests.cpp:<line number>: PASSED:
9917 REQUIRE_FALSE( factories.empty() )
9918 with expansion:
9919 !false
9920
9921 -------------------------------------------------------------------------------
9922 Reporter's write listings to provided stream
9923 TAP reporter lists tags
9924 -------------------------------------------------------------------------------
9925 Reporters.tests.cpp:<line number>
9926 ...............................................................................
9927
9928 Reporters.tests.cpp:<line number>: PASSED:
9929 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
9930 with expansion:
9931 "All available tags:
9932 1 [fakeTag]
9933 1 tag
9934
9935 " contains: "fakeTag"
9936 with message:
9937 Tested reporter: TAP
9938
9939 -------------------------------------------------------------------------------
9940 Reporter's write listings to provided stream
9941 -------------------------------------------------------------------------------
9942 Reporters.tests.cpp:<line number>
9943 ...............................................................................
9944
9945 Reporters.tests.cpp:<line number>: PASSED:
9946 REQUIRE_FALSE( factories.empty() )
9947 with expansion:
9948 !false
9949
9950 -------------------------------------------------------------------------------
9951 Reporter's write listings to provided stream
9952 TAP reporter lists reporters
9953 -------------------------------------------------------------------------------
9954 Reporters.tests.cpp:<line number>
9955 ...............................................................................
9956
9957 Reporters.tests.cpp:<line number>: PASSED:
9958 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
9959 with expansion:
9960 "Available reporters:
9961 fake reporter: fake description
9962
9963 " contains: "fake reporter"
9964 with message:
9965 Tested reporter: TAP
9966
9967 -------------------------------------------------------------------------------
9968 Reporter's write listings to provided stream
9969 -------------------------------------------------------------------------------
9970 Reporters.tests.cpp:<line number>
9971 ...............................................................................
9972
9973 Reporters.tests.cpp:<line number>: PASSED:
9974 REQUIRE_FALSE( factories.empty() )
9975 with expansion:
9976 !false
9977
9978 -------------------------------------------------------------------------------
9979 Reporter's write listings to provided stream
9980 TAP reporter lists tests
9981 -------------------------------------------------------------------------------
9982 Reporters.tests.cpp:<line number>
9983 ...............................................................................
9984
9985 Reporters.tests.cpp:<line number>: PASSED:
9986 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
9987 with expansion:
9988 "All available test cases:
9989 fake test name
9990 [fakeTestTag]
9991 1 test case
9992
9993 " ( contains: "fake test name" and contains: "fakeTestTag" )
9994 with message:
9995 Tested reporter: TAP
9996
9997 -------------------------------------------------------------------------------
9998 Reporter's write listings to provided stream
9999 -------------------------------------------------------------------------------
10000 Reporters.tests.cpp:<line number>
10001 ...............................................................................
10002
10003 Reporters.tests.cpp:<line number>: PASSED:
10004 REQUIRE_FALSE( factories.empty() )
10005 with expansion:
10006 !false
10007
10008 -------------------------------------------------------------------------------
10009 Reporter's write listings to provided stream
10010 TeamCity reporter lists tags
10011 -------------------------------------------------------------------------------
10012 Reporters.tests.cpp:<line number>
10013 ...............................................................................
10014
10015 Reporters.tests.cpp:<line number>: PASSED:
10016 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10017 with expansion:
10018 "All available tags:
10019 1 [fakeTag]
10020 1 tag
10021
10022 " contains: "fakeTag"
10023 with message:
10024 Tested reporter: TeamCity
10025
10026 -------------------------------------------------------------------------------
10027 Reporter's write listings to provided stream
10028 -------------------------------------------------------------------------------
10029 Reporters.tests.cpp:<line number>
10030 ...............................................................................
10031
10032 Reporters.tests.cpp:<line number>: PASSED:
10033 REQUIRE_FALSE( factories.empty() )
10034 with expansion:
10035 !false
10036
10037 -------------------------------------------------------------------------------
10038 Reporter's write listings to provided stream
10039 TeamCity reporter lists reporters
10040 -------------------------------------------------------------------------------
10041 Reporters.tests.cpp:<line number>
10042 ...............................................................................
10043
10044 Reporters.tests.cpp:<line number>: PASSED:
10045 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10046 with expansion:
10047 "Available reporters:
10048 fake reporter: fake description
10049
10050 " contains: "fake reporter"
10051 with message:
10052 Tested reporter: TeamCity
10053
10054 -------------------------------------------------------------------------------
10055 Reporter's write listings to provided stream
10056 -------------------------------------------------------------------------------
10057 Reporters.tests.cpp:<line number>
10058 ...............................................................................
10059
10060 Reporters.tests.cpp:<line number>: PASSED:
10061 REQUIRE_FALSE( factories.empty() )
10062 with expansion:
10063 !false
10064
10065 -------------------------------------------------------------------------------
10066 Reporter's write listings to provided stream
10067 TeamCity reporter lists tests
10068 -------------------------------------------------------------------------------
10069 Reporters.tests.cpp:<line number>
10070 ...............................................................................
10071
10072 Reporters.tests.cpp:<line number>: PASSED:
10073 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10074 with expansion:
10075 "All available test cases:
10076 fake test name
10077 [fakeTestTag]
10078 1 test case
10079
10080 " ( contains: "fake test name" and contains: "fakeTestTag" )
10081 with message:
10082 Tested reporter: TeamCity
10083
10084 -------------------------------------------------------------------------------
10085 Reporter's write listings to provided stream
10086 -------------------------------------------------------------------------------
10087 Reporters.tests.cpp:<line number>
10088 ...............................................................................
10089
10090 Reporters.tests.cpp:<line number>: PASSED:
10091 REQUIRE_FALSE( factories.empty() )
10092 with expansion:
10093 !false
10094
10095 -------------------------------------------------------------------------------
10096 Reporter's write listings to provided stream
10097 XML reporter lists tags
10098 -------------------------------------------------------------------------------
10099 Reporters.tests.cpp:<line number>
10100 ...............................................................................
10101
10102 Reporters.tests.cpp:<line number>: PASSED:
10103 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10104 with expansion:
10105 "<?xml version="1.0" encoding="UTF-8"?>
10106 <TagsFromMatchingTests>
10107 <Tag>
10108 <Count>1</Count>
10109 <Aliases>
10110 <Alias>fakeTag</Alias>
10111 </Aliases>
10112 </Tag>
10113 </TagsFromMatchingTests>" contains: "fakeTag"
10114 with message:
10115 Tested reporter: XML
10116
10117 -------------------------------------------------------------------------------
10118 Reporter's write listings to provided stream
10119 -------------------------------------------------------------------------------
10120 Reporters.tests.cpp:<line number>
10121 ...............................................................................
10122
10123 Reporters.tests.cpp:<line number>: PASSED:
10124 REQUIRE_FALSE( factories.empty() )
10125 with expansion:
10126 !false
10127
10128 -------------------------------------------------------------------------------
10129 Reporter's write listings to provided stream
10130 XML reporter lists reporters
10131 -------------------------------------------------------------------------------
10132 Reporters.tests.cpp:<line number>
10133 ...............................................................................
10134
10135 Reporters.tests.cpp:<line number>: PASSED:
10136 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10137 with expansion:
10138 "<?xml version="1.0" encoding="UTF-8"?>
10139 <AvailableReporters>
10140 <Reporter>
10141 <Name>fake reporter</Name>
10142 <Description>fake description</Description>
10143 </Reporter>
10144 </AvailableReporters>" contains: "fake reporter"
10145 with message:
10146 Tested reporter: XML
10147
10148 -------------------------------------------------------------------------------
10149 Reporter's write listings to provided stream
10150 -------------------------------------------------------------------------------
10151 Reporters.tests.cpp:<line number>
10152 ...............................................................................
10153
10154 Reporters.tests.cpp:<line number>: PASSED:
10155 REQUIRE_FALSE( factories.empty() )
10156 with expansion:
10157 !false
10158
10159 -------------------------------------------------------------------------------
10160 Reporter's write listings to provided stream
10161 XML reporter lists tests
10162 -------------------------------------------------------------------------------
10163 Reporters.tests.cpp:<line number>
10164 ...............................................................................
10165
10166 Reporters.tests.cpp:<line number>: PASSED:
10167 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10168 with expansion:
10169 "<?xml version="1.0" encoding="UTF-8"?>
10170 <MatchingTests>
10171 <TestCase>
10172 <Name>fake test name</Name>
10173 <ClassName/>
10174 <Tags>[fakeTestTag]</Tags>
10175 <SourceInfo>
10176 <File>fake-file.cpp</File>
10177 <Line>123456789</Line>
10178 </SourceInfo>
10179 </TestCase>
10180 </MatchingTests>" ( contains: "fake test name" and contains: "fakeTestTag" )
10181 with message:
10182 Tested reporter: XML
10183
10184 -------------------------------------------------------------------------------
10185 Reproducer for #2309 - a very long description past 80 chars (default console
10186 width) with a late colon : blablabla
10187 -------------------------------------------------------------------------------
10188 Reporters.tests.cpp:<line number>
10189 ...............................................................................
10190
10191 Reporters.tests.cpp:<line number>: PASSED:
10192
10193 -------------------------------------------------------------------------------
10194 SUCCEED counts as a test pass
10195 -------------------------------------------------------------------------------
10196 Message.tests.cpp:<line number>
10197 ...............................................................................
10198
10199 Message.tests.cpp:<line number>: PASSED:
10200 with message:
10201 this is a success
10202
10203 -------------------------------------------------------------------------------
10204 SUCCEED does not require an argument
10205 -------------------------------------------------------------------------------
10206 Message.tests.cpp:<line number>
10207 ...............................................................................
10208
10209 Message.tests.cpp:<line number>: PASSED:
10210
10211 -------------------------------------------------------------------------------
10212 Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
10213 methods
10214 Given: No operations precede me
10215 -------------------------------------------------------------------------------
10216 BDD.tests.cpp:<line number>
10217 ...............................................................................
10218
10219 BDD.tests.cpp:<line number>: PASSED:
10220 REQUIRE( before == 0 )
10221 with expansion:
10222 0 == 0
10223
10224 -------------------------------------------------------------------------------
10225 Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
10226 methods
10227 Given: No operations precede me
10228 When: We get the count
10229 Then: Subsequently values are higher
10230 -------------------------------------------------------------------------------
10231 BDD.tests.cpp:<line number>
10232 ...............................................................................
10233
10234 BDD.tests.cpp:<line number>: PASSED:
10235 REQUIRE( after > before )
10236 with expansion:
10237 1 > 0
10238
10239 -------------------------------------------------------------------------------
10240 Scenario: Do that thing with the thing
10241 Given: This stuff exists
10242 And given: And some assumption
10243 When: I do this
10244 Then: it should do this
10245 -------------------------------------------------------------------------------
10246 BDD.tests.cpp:<line number>
10247 ...............................................................................
10248
10249 BDD.tests.cpp:<line number>: PASSED:
10250 REQUIRE( itDoesThis() )
10251 with expansion:
10252 true
10253
10254 -------------------------------------------------------------------------------
10255 Scenario: Do that thing with the thing
10256 Given: This stuff exists
10257 And given: And some assumption
10258 When: I do this
10259 Then: it should do this
10260 And: do that
10261 -------------------------------------------------------------------------------
10262 BDD.tests.cpp:<line number>
10263 ...............................................................................
10264
10265 BDD.tests.cpp:<line number>: PASSED:
10266 REQUIRE( itDoesThat() )
10267 with expansion:
10268 true
10269
10270 -------------------------------------------------------------------------------
10271 Scenario: This is a really long scenario name to see how the list command deals
10272 with wrapping
10273 Given: A section name that is so long that it cannot fit in a single
10274 console width
10275 When: The test headers are printed as part of the normal running of the
10276 scenario
10277 Then: The, deliberately very long and overly verbose (you see what I did
10278 there?) section names must wrap, along with an indent
10279 -------------------------------------------------------------------------------
10280 BDD.tests.cpp:<line number>
10281 ...............................................................................
10282
10283 BDD.tests.cpp:<line number>: PASSED:
10284 with message:
10285 boo!
10286
10287 -------------------------------------------------------------------------------
10288 Scenario: Vector resizing affects size and capacity
10289 Given: an empty vector
10290 -------------------------------------------------------------------------------
10291 BDD.tests.cpp:<line number>
10292 ...............................................................................
10293
10294 BDD.tests.cpp:<line number>: PASSED:
10295 REQUIRE( v.size() == 0 )
10296 with expansion:
10297 0 == 0
10298
10299 -------------------------------------------------------------------------------
10300 Scenario: Vector resizing affects size and capacity
10301 Given: an empty vector
10302 When: it is made larger
10303 Then: the size and capacity go up
10304 -------------------------------------------------------------------------------
10305 BDD.tests.cpp:<line number>
10306 ...............................................................................
10307
10308 BDD.tests.cpp:<line number>: PASSED:
10309 REQUIRE( v.size() == 10 )
10310 with expansion:
10311 10 == 10
10312
10313 BDD.tests.cpp:<line number>: PASSED:
10314 REQUIRE( v.capacity() >= 10 )
10315 with expansion:
10316 10 >= 10
10317
10318 -------------------------------------------------------------------------------
10319 Scenario: Vector resizing affects size and capacity
10320 Given: an empty vector
10321 When: it is made larger
10322 Then: the size and capacity go up
10323 And when: it is made smaller again
10324 Then: the size goes down but the capacity stays the same
10325 -------------------------------------------------------------------------------
10326 BDD.tests.cpp:<line number>
10327 ...............................................................................
10328
10329 BDD.tests.cpp:<line number>: PASSED:
10330 REQUIRE( v.size() == 5 )
10331 with expansion:
10332 5 == 5
10333
10334 BDD.tests.cpp:<line number>: PASSED:
10335 REQUIRE( v.capacity() >= 10 )
10336 with expansion:
10337 10 >= 10
10338
10339 -------------------------------------------------------------------------------
10340 Scenario: Vector resizing affects size and capacity
10341 Given: an empty vector
10342 -------------------------------------------------------------------------------
10343 BDD.tests.cpp:<line number>
10344 ...............................................................................
10345
10346 BDD.tests.cpp:<line number>: PASSED:
10347 REQUIRE( v.size() == 0 )
10348 with expansion:
10349 0 == 0
10350
10351 -------------------------------------------------------------------------------
10352 Scenario: Vector resizing affects size and capacity
10353 Given: an empty vector
10354 When: we reserve more space
10355 Then: The capacity is increased but the size remains the same
10356 -------------------------------------------------------------------------------
10357 BDD.tests.cpp:<line number>
10358 ...............................................................................
10359
10360 BDD.tests.cpp:<line number>: PASSED:
10361 REQUIRE( v.capacity() >= 10 )
10362 with expansion:
10363 10 >= 10
10364
10365 BDD.tests.cpp:<line number>: PASSED:
10366 REQUIRE( v.size() == 0 )
10367 with expansion:
10368 0 == 0
10369
10370 A string sent directly to stdout
10371 A string sent directly to stderr
10372 A string sent to stderr via clog
10373 -------------------------------------------------------------------------------
10374 Sends stuff to stdout and stderr
10375 -------------------------------------------------------------------------------
10376 Misc.tests.cpp:<line number>
10377 ...............................................................................
10378
10379
10380 No assertions in test case 'Sends stuff to stdout and stderr'
10381
10382 -------------------------------------------------------------------------------
10383 Some simple comparisons between doubles
10384 -------------------------------------------------------------------------------
10385 Approx.tests.cpp:<line number>
10386 ...............................................................................
10387
10388 Approx.tests.cpp:<line number>: PASSED:
10389 REQUIRE( d == Approx( 1.23 ) )
10390 with expansion:
10391 1.23 == Approx( 1.23 )
10392
10393 Approx.tests.cpp:<line number>: PASSED:
10394 REQUIRE( d != Approx( 1.22 ) )
10395 with expansion:
10396 1.23 != Approx( 1.22 )
10397
10398 Approx.tests.cpp:<line number>: PASSED:
10399 REQUIRE( d != Approx( 1.24 ) )
10400 with expansion:
10401 1.23 != Approx( 1.24 )
10402
10403 Approx.tests.cpp:<line number>: PASSED:
10404 REQUIRE( d == 1.23_a )
10405 with expansion:
10406 1.23 == Approx( 1.23 )
10407
10408 Approx.tests.cpp:<line number>: PASSED:
10409 REQUIRE( d != 1.22_a )
10410 with expansion:
10411 1.23 != Approx( 1.22 )
10412
10413 Approx.tests.cpp:<line number>: PASSED:
10414 REQUIRE( Approx( d ) == 1.23 )
10415 with expansion:
10416 Approx( 1.23 ) == 1.23
10417
10418 Approx.tests.cpp:<line number>: PASSED:
10419 REQUIRE( Approx( d ) != 1.22 )
10420 with expansion:
10421 Approx( 1.23 ) != 1.22
10422
10423 Approx.tests.cpp:<line number>: PASSED:
10424 REQUIRE( Approx( d ) != 1.24 )
10425 with expansion:
10426 Approx( 1.23 ) != 1.24
10427
10428 Message from section one
10429 -------------------------------------------------------------------------------
10430 Standard output from all sections is reported
10431 one
10432 -------------------------------------------------------------------------------
10433 Message.tests.cpp:<line number>
10434 ...............................................................................
10435
10436
10437 No assertions in section 'one'
10438
10439 Message from section two
10440 -------------------------------------------------------------------------------
10441 Standard output from all sections is reported
10442 two
10443 -------------------------------------------------------------------------------
10444 Message.tests.cpp:<line number>
10445 ...............................................................................
10446
10447
10448 No assertions in section 'two'
10449
10450 -------------------------------------------------------------------------------
10451 StartsWith string matcher
10452 -------------------------------------------------------------------------------
10453 Matchers.tests.cpp:<line number>
10454 ...............................................................................
10455
10456 Matchers.tests.cpp:<line number>: FAILED:
10457 CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) )
10458 with expansion:
10459 "this string contains 'abc' as a substring" starts with: "This String"
10460
10461 Matchers.tests.cpp:<line number>: FAILED:
10462 CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) )
10463 with expansion:
10464 "this string contains 'abc' as a substring" starts with: "string" (case
10465 insensitive)
10466
10467 -------------------------------------------------------------------------------
10468 Static arrays are convertible to string
10469 Single item
10470 -------------------------------------------------------------------------------
10471 ToStringGeneral.tests.cpp:<line number>
10472 ...............................................................................
10473
10474 ToStringGeneral.tests.cpp:<line number>: PASSED:
10475 REQUIRE( Catch::Detail::stringify(singular) == "{ 1 }" )
10476 with expansion:
10477 "{ 1 }" == "{ 1 }"
10478
10479 -------------------------------------------------------------------------------
10480 Static arrays are convertible to string
10481 Multiple
10482 -------------------------------------------------------------------------------
10483 ToStringGeneral.tests.cpp:<line number>
10484 ...............................................................................
10485
10486 ToStringGeneral.tests.cpp:<line number>: PASSED:
10487 REQUIRE( Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" )
10488 with expansion:
10489 "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
10490
10491 -------------------------------------------------------------------------------
10492 Static arrays are convertible to string
10493 Non-trivial inner items
10494 -------------------------------------------------------------------------------
10495 ToStringGeneral.tests.cpp:<line number>
10496 ...............................................................................
10497
10498 ToStringGeneral.tests.cpp:<line number>: PASSED:
10499 REQUIRE( Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" )
10500 with expansion:
10501 "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
10502 ==
10503 "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
10504
10505 -------------------------------------------------------------------------------
10506 String matchers
10507 -------------------------------------------------------------------------------
10508 Matchers.tests.cpp:<line number>
10509 ...............................................................................
10510
10511 Matchers.tests.cpp:<line number>: PASSED:
10512 REQUIRE_THAT( testStringForMatching(), ContainsSubstring( "string" ) )
10513 with expansion:
10514 "this string contains 'abc' as a substring" contains: "string"
10515
10516 Matchers.tests.cpp:<line number>: PASSED:
10517 REQUIRE_THAT( testStringForMatching(), ContainsSubstring( "string", Catch::CaseSensitive::No ) )
10518 with expansion:
10519 "this string contains 'abc' as a substring" contains: "string" (case
10520 insensitive)
10521
10522 Matchers.tests.cpp:<line number>: PASSED:
10523 CHECK_THAT( testStringForMatching(), ContainsSubstring( "abc" ) )
10524 with expansion:
10525 "this string contains 'abc' as a substring" contains: "abc"
10526
10527 Matchers.tests.cpp:<line number>: PASSED:
10528 CHECK_THAT( testStringForMatching(), ContainsSubstring( "aBC", Catch::CaseSensitive::No ) )
10529 with expansion:
10530 "this string contains 'abc' as a substring" contains: "abc" (case
10531 insensitive)
10532
10533 Matchers.tests.cpp:<line number>: PASSED:
10534 CHECK_THAT( testStringForMatching(), StartsWith( "this" ) )
10535 with expansion:
10536 "this string contains 'abc' as a substring" starts with: "this"
10537
10538 Matchers.tests.cpp:<line number>: PASSED:
10539 CHECK_THAT( testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) )
10540 with expansion:
10541 "this string contains 'abc' as a substring" starts with: "this" (case
10542 insensitive)
10543
10544 Matchers.tests.cpp:<line number>: PASSED:
10545 CHECK_THAT( testStringForMatching(), EndsWith( "substring" ) )
10546 with expansion:
10547 "this string contains 'abc' as a substring" ends with: "substring"
10548
10549 Matchers.tests.cpp:<line number>: PASSED:
10550 CHECK_THAT( testStringForMatching(), EndsWith( " SuBsTrInG", Catch::CaseSensitive::No ) )
10551 with expansion:
10552 "this string contains 'abc' as a substring" ends with: " substring" (case
10553 insensitive)
10554
10555 -------------------------------------------------------------------------------
10556 StringRef
10557 Empty string
10558 -------------------------------------------------------------------------------
10559 String.tests.cpp:<line number>
10560 ...............................................................................
10561
10562 String.tests.cpp:<line number>: PASSED:
10563 REQUIRE( empty.empty() )
10564 with expansion:
10565 true
10566
10567 String.tests.cpp:<line number>: PASSED:
10568 REQUIRE( empty.size() == 0 )
10569 with expansion:
10570 0 == 0
10571
10572 String.tests.cpp:<line number>: PASSED:
10573 REQUIRE( std::strcmp( empty.data(), "" ) == 0 )
10574 with expansion:
10575 0 == 0
10576
10577 -------------------------------------------------------------------------------
10578 StringRef
10579 From string literal
10580 -------------------------------------------------------------------------------
10581 String.tests.cpp:<line number>
10582 ...............................................................................
10583
10584 String.tests.cpp:<line number>: PASSED:
10585 REQUIRE( s.empty() == false )
10586 with expansion:
10587 false == false
10588
10589 String.tests.cpp:<line number>: PASSED:
10590 REQUIRE( s.size() == 5 )
10591 with expansion:
10592 5 == 5
10593
10594 String.tests.cpp:<line number>: PASSED:
10595 REQUIRE( std::strcmp( rawChars, "hello" ) == 0 )
10596 with expansion:
10597 0 == 0
10598
10599 String.tests.cpp:<line number>: PASSED:
10600 REQUIRE( s.data() == rawChars )
10601 with expansion:
10602 "hello" == "hello"
10603
10604 -------------------------------------------------------------------------------
10605 StringRef
10606 From sub-string
10607 -------------------------------------------------------------------------------
10608 String.tests.cpp:<line number>
10609 ...............................................................................
10610
10611 String.tests.cpp:<line number>: PASSED:
10612 REQUIRE( original == "original" )
10613
10614 String.tests.cpp:<line number>: PASSED:
10615 REQUIRE_NOTHROW( original.data() )
10616
10617 -------------------------------------------------------------------------------
10618 StringRef
10619 Copy construction is shallow
10620 -------------------------------------------------------------------------------
10621 String.tests.cpp:<line number>
10622 ...............................................................................
10623
10624 String.tests.cpp:<line number>: PASSED:
10625 REQUIRE( original.begin() == copy.begin() )
10626 with expansion:
10627 "original string" == "original string"
10628
10629 -------------------------------------------------------------------------------
10630 StringRef
10631 Copy assignment is shallow
10632 -------------------------------------------------------------------------------
10633 String.tests.cpp:<line number>
10634 ...............................................................................
10635
10636 String.tests.cpp:<line number>: PASSED:
10637 REQUIRE( original.begin() == copy.begin() )
10638 with expansion:
10639 "original string" == "original string"
10640
10641 -------------------------------------------------------------------------------
10642 StringRef
10643 Substrings
10644 zero-based substring
10645 -------------------------------------------------------------------------------
10646 String.tests.cpp:<line number>
10647 ...............................................................................
10648
10649 String.tests.cpp:<line number>: PASSED:
10650 REQUIRE( ss.empty() == false )
10651 with expansion:
10652 false == false
10653
10654 String.tests.cpp:<line number>: PASSED:
10655 REQUIRE( ss.size() == 5 )
10656 with expansion:
10657 5 == 5
10658
10659 String.tests.cpp:<line number>: PASSED:
10660 REQUIRE( std::strncmp( ss.data(), "hello", 5 ) == 0 )
10661 with expansion:
10662 0 == 0
10663
10664 String.tests.cpp:<line number>: PASSED:
10665 REQUIRE( ss == "hello" )
10666 with expansion:
10667 hello == "hello"
10668
10669 -------------------------------------------------------------------------------
10670 StringRef
10671 Substrings
10672 non-zero-based substring
10673 -------------------------------------------------------------------------------
10674 String.tests.cpp:<line number>
10675 ...............................................................................
10676
10677 String.tests.cpp:<line number>: PASSED:
10678 REQUIRE( ss.size() == 6 )
10679 with expansion:
10680 6 == 6
10681
10682 String.tests.cpp:<line number>: PASSED:
10683 REQUIRE( std::strcmp( ss.data(), "world!" ) == 0 )
10684 with expansion:
10685 0 == 0
10686
10687 -------------------------------------------------------------------------------
10688 StringRef
10689 Substrings
10690 Pointer values of full refs should match
10691 -------------------------------------------------------------------------------
10692 String.tests.cpp:<line number>
10693 ...............................................................................
10694
10695 String.tests.cpp:<line number>: PASSED:
10696 REQUIRE( s.data() == s2.data() )
10697 with expansion:
10698 "hello world!" == "hello world!"
10699
10700 -------------------------------------------------------------------------------
10701 StringRef
10702 Substrings
10703 Pointer values of substring refs should also match
10704 -------------------------------------------------------------------------------
10705 String.tests.cpp:<line number>
10706 ...............................................................................
10707
10708 String.tests.cpp:<line number>: PASSED:
10709 REQUIRE( s.data() == ss.data() )
10710 with expansion:
10711 "hello world!" == "hello world!"
10712
10713 -------------------------------------------------------------------------------
10714 StringRef
10715 Substrings
10716 Past the end substring
10717 -------------------------------------------------------------------------------
10718 String.tests.cpp:<line number>
10719 ...............................................................................
10720
10721 String.tests.cpp:<line number>: PASSED:
10722 REQUIRE( s.substr(s.size() + 1, 123).empty() )
10723 with expansion:
10724 true
10725
10726 -------------------------------------------------------------------------------
10727 StringRef
10728 Substrings
10729 Substring off the end are trimmed
10730 -------------------------------------------------------------------------------
10731 String.tests.cpp:<line number>
10732 ...............................................................................
10733
10734 String.tests.cpp:<line number>: PASSED:
10735 REQUIRE( std::strcmp(ss.data(), "world!") == 0 )
10736 with expansion:
10737 0 == 0
10738
10739 -------------------------------------------------------------------------------
10740 StringRef
10741 Substrings
10742 substring start after the end is empty
10743 -------------------------------------------------------------------------------
10744 String.tests.cpp:<line number>
10745 ...............................................................................
10746
10747 String.tests.cpp:<line number>: PASSED:
10748 REQUIRE( s.substr(1'000'000, 1).empty() )
10749 with expansion:
10750 true
10751
10752 -------------------------------------------------------------------------------
10753 StringRef
10754 Comparisons are deep
10755 -------------------------------------------------------------------------------
10756 String.tests.cpp:<line number>
10757 ...............................................................................
10758
10759 String.tests.cpp:<line number>: PASSED:
10760 CHECK( reinterpret_cast<char*>(buffer1) != reinterpret_cast<char*>(buffer2) )
10761 with expansion:
10762 "Hello" != "Hello"
10763
10764 String.tests.cpp:<line number>: PASSED:
10765 REQUIRE( left == right )
10766 with expansion:
10767 Hello == Hello
10768
10769 String.tests.cpp:<line number>: PASSED:
10770 REQUIRE( left != left.substr(0, 3) )
10771 with expansion:
10772 Hello != Hel
10773
10774 -------------------------------------------------------------------------------
10775 StringRef
10776 from std::string
10777 implicitly constructed
10778 -------------------------------------------------------------------------------
10779 String.tests.cpp:<line number>
10780 ...............................................................................
10781
10782 String.tests.cpp:<line number>: PASSED:
10783 REQUIRE( sr == "a standard string" )
10784 with expansion:
10785 a standard string == "a standard string"
10786
10787 String.tests.cpp:<line number>: PASSED:
10788 REQUIRE( sr.size() == stdStr.size() )
10789 with expansion:
10790 17 == 17
10791
10792 -------------------------------------------------------------------------------
10793 StringRef
10794 from std::string
10795 explicitly constructed
10796 -------------------------------------------------------------------------------
10797 String.tests.cpp:<line number>
10798 ...............................................................................
10799
10800 String.tests.cpp:<line number>: PASSED:
10801 REQUIRE( sr == "a standard string" )
10802 with expansion:
10803 a standard string == "a standard string"
10804
10805 String.tests.cpp:<line number>: PASSED:
10806 REQUIRE( sr.size() == stdStr.size() )
10807 with expansion:
10808 17 == 17
10809
10810 -------------------------------------------------------------------------------
10811 StringRef
10812 from std::string
10813 assigned
10814 -------------------------------------------------------------------------------
10815 String.tests.cpp:<line number>
10816 ...............................................................................
10817
10818 String.tests.cpp:<line number>: PASSED:
10819 REQUIRE( sr == "a standard string" )
10820 with expansion:
10821 a standard string == "a standard string"
10822
10823 String.tests.cpp:<line number>: PASSED:
10824 REQUIRE( sr.size() == stdStr.size() )
10825 with expansion:
10826 17 == 17
10827
10828 -------------------------------------------------------------------------------
10829 StringRef
10830 to std::string
10831 explicitly constructed
10832 -------------------------------------------------------------------------------
10833 String.tests.cpp:<line number>
10834 ...............................................................................
10835
10836 String.tests.cpp:<line number>: PASSED:
10837 REQUIRE( stdStr == "a stringref" )
10838 with expansion:
10839 "a stringref" == "a stringref"
10840
10841 String.tests.cpp:<line number>: PASSED:
10842 REQUIRE( stdStr.size() == sr.size() )
10843 with expansion:
10844 11 == 11
10845
10846 -------------------------------------------------------------------------------
10847 StringRef
10848 to std::string
10849 assigned
10850 -------------------------------------------------------------------------------
10851 String.tests.cpp:<line number>
10852 ...............................................................................
10853
10854 String.tests.cpp:<line number>: PASSED:
10855 REQUIRE( stdStr == "a stringref" )
10856 with expansion:
10857 "a stringref" == "a stringref"
10858
10859 String.tests.cpp:<line number>: PASSED:
10860 REQUIRE( stdStr.size() == sr.size() )
10861 with expansion:
10862 11 == 11
10863
10864 -------------------------------------------------------------------------------
10865 StringRef
10866 std::string += StringRef
10867 -------------------------------------------------------------------------------
10868 String.tests.cpp:<line number>
10869 ...............................................................................
10870
10871 String.tests.cpp:<line number>: PASSED:
10872 REQUIRE( lhs == "some string += the stringref contents" )
10873 with expansion:
10874 "some string += the stringref contents"
10875 ==
10876 "some string += the stringref contents"
10877
10878 -------------------------------------------------------------------------------
10879 StringRef
10880 StringRef + StringRef
10881 -------------------------------------------------------------------------------
10882 String.tests.cpp:<line number>
10883 ...............................................................................
10884
10885 String.tests.cpp:<line number>: PASSED:
10886 REQUIRE( together == "abrakadabra" )
10887 with expansion:
10888 "abrakadabra" == "abrakadabra"
10889
10890 -------------------------------------------------------------------------------
10891 StringRef at compilation time
10892 Simple constructors
10893 -------------------------------------------------------------------------------
10894 String.tests.cpp:<line number>
10895 ...............................................................................
10896
10897 String.tests.cpp:<line number>: PASSED:
10898 with message:
10899 empty.size() == 0
10900
10901 String.tests.cpp:<line number>: PASSED:
10902 with message:
10903 empty.begin() == empty.end()
10904
10905 String.tests.cpp:<line number>: PASSED:
10906 with message:
10907 stringref.size() == 3
10908
10909 String.tests.cpp:<line number>: PASSED:
10910 with message:
10911 stringref.data() == abc
10912
10913 String.tests.cpp:<line number>: PASSED:
10914 with message:
10915 stringref.begin() == abc
10916
10917 String.tests.cpp:<line number>: PASSED:
10918 with message:
10919 stringref.begin() != stringref.end()
10920
10921 String.tests.cpp:<line number>: PASSED:
10922 with message:
10923 stringref.substr(10, 0).empty()
10924
10925 String.tests.cpp:<line number>: PASSED:
10926 with message:
10927 stringref.substr(2, 1).data() == abc + 2
10928
10929 String.tests.cpp:<line number>: PASSED:
10930 with message:
10931 stringref[1] == 'b'
10932
10933 String.tests.cpp:<line number>: PASSED:
10934 with message:
10935 shortened.size() == 2
10936
10937 String.tests.cpp:<line number>: PASSED:
10938 with message:
10939 shortened.data() == abc
10940
10941 String.tests.cpp:<line number>: PASSED:
10942 with message:
10943 shortened.begin() != shortened.end()
10944
10945 -------------------------------------------------------------------------------
10946 StringRef at compilation time
10947 UDL construction
10948 -------------------------------------------------------------------------------
10949 String.tests.cpp:<line number>
10950 ...............................................................................
10951
10952 String.tests.cpp:<line number>: PASSED:
10953 with message:
10954 !(sr1.empty())
10955
10956 String.tests.cpp:<line number>: PASSED:
10957 with message:
10958 sr1.size() == 3
10959
10960 String.tests.cpp:<line number>: PASSED:
10961 with message:
10962 sr2.empty()
10963
10964 String.tests.cpp:<line number>: PASSED:
10965 with message:
10966 sr2.size() == 0
10967
10968 -------------------------------------------------------------------------------
10969 Stringifying char arrays with statically known sizes - char
10970 -------------------------------------------------------------------------------
10971 ToString.tests.cpp:<line number>
10972 ...............................................................................
10973
10974 ToString.tests.cpp:<line number>: PASSED:
10975 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
10976 with expansion:
10977 ""abc"" == ""abc""
10978
10979 ToString.tests.cpp:<line number>: PASSED:
10980 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
10981 with expansion:
10982 ""abc"" == ""abc""
10983
10984 -------------------------------------------------------------------------------
10985 Stringifying char arrays with statically known sizes - signed char
10986 -------------------------------------------------------------------------------
10987 ToString.tests.cpp:<line number>
10988 ...............................................................................
10989
10990 ToString.tests.cpp:<line number>: PASSED:
10991 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
10992 with expansion:
10993 ""abc"" == ""abc""
10994
10995 ToString.tests.cpp:<line number>: PASSED:
10996 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
10997 with expansion:
10998 ""abc"" == ""abc""
10999
11000 -------------------------------------------------------------------------------
11001 Stringifying char arrays with statically known sizes - unsigned char
11002 -------------------------------------------------------------------------------
11003 ToString.tests.cpp:<line number>
11004 ...............................................................................
11005
11006 ToString.tests.cpp:<line number>: PASSED:
11007 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
11008 with expansion:
11009 ""abc"" == ""abc""
11010
11011 ToString.tests.cpp:<line number>: PASSED:
11012 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
11013 with expansion:
11014 ""abc"" == ""abc""
11015
11016 -------------------------------------------------------------------------------
11017 Stringifying std::chrono::duration helpers
11018 -------------------------------------------------------------------------------
11019 ToStringChrono.tests.cpp:<line number>
11020 ...............................................................................
11021
11022 ToStringChrono.tests.cpp:<line number>: PASSED:
11023 REQUIRE( minute == seconds )
11024 with expansion:
11025 1 m == 60 s
11026
11027 ToStringChrono.tests.cpp:<line number>: PASSED:
11028 REQUIRE( hour != seconds )
11029 with expansion:
11030 1 h != 60 s
11031
11032 ToStringChrono.tests.cpp:<line number>: PASSED:
11033 REQUIRE( micro != milli )
11034 with expansion:
11035 1 us != 1 ms
11036
11037 ToStringChrono.tests.cpp:<line number>: PASSED:
11038 REQUIRE( nano != micro )
11039 with expansion:
11040 1 ns != 1 us
11041
11042 -------------------------------------------------------------------------------
11043 Stringifying std::chrono::duration with weird ratios
11044 -------------------------------------------------------------------------------
11045 ToStringChrono.tests.cpp:<line number>
11046 ...............................................................................
11047
11048 ToStringChrono.tests.cpp:<line number>: PASSED:
11049 REQUIRE( half_minute != femto_second )
11050 with expansion:
11051 1 [30/1]s != 1 fs
11052
11053 ToStringChrono.tests.cpp:<line number>: PASSED:
11054 REQUIRE( pico_second != atto_second )
11055 with expansion:
11056 1 ps != 1 as
11057
11058 -------------------------------------------------------------------------------
11059 Stringifying std::chrono::time_point<system_clock>
11060 -------------------------------------------------------------------------------
11061 ToStringChrono.tests.cpp:<line number>
11062 ...............................................................................
11063
11064 ToStringChrono.tests.cpp:<line number>: PASSED:
11065 REQUIRE( now != later )
11066 with expansion:
11067 {iso8601-timestamp}
11068 !=
11069 {iso8601-timestamp}
11070
11071 -------------------------------------------------------------------------------
11072 Tabs and newlines show in output
11073 -------------------------------------------------------------------------------
11074 Misc.tests.cpp:<line number>
11075 ...............................................................................
11076
11077 Misc.tests.cpp:<line number>: FAILED:
11078 CHECK( s1 == s2 )
11079 with expansion:
11080 "if ($b == 10) {
11081 $a = 20;
11082 }"
11083 ==
11084 "if ($b == 10) {
11085 $a = 20;
11086 }
11087 "
11088
11089 -------------------------------------------------------------------------------
11090 Tag alias can be registered against tag patterns
11091 The same tag alias can only be registered once
11092 -------------------------------------------------------------------------------
11093 Tag.tests.cpp:<line number>
11094 ...............................................................................
11095
11096 Tag.tests.cpp:<line number>: PASSED:
11097 CHECK_THAT( what, ContainsSubstring( "[@zzz]" ) )
11098 with expansion:
11099 "error: tag alias, '[@zzz]' already registered.
11100 First seen at: file:2
11101 Redefined at: file:10" contains: "[@zzz]"
11102
11103 Tag.tests.cpp:<line number>: PASSED:
11104 CHECK_THAT( what, ContainsSubstring( "file" ) )
11105 with expansion:
11106 "error: tag alias, '[@zzz]' already registered.
11107 First seen at: file:2
11108 Redefined at: file:10" contains: "file"
11109
11110 Tag.tests.cpp:<line number>: PASSED:
11111 CHECK_THAT( what, ContainsSubstring( "2" ) )
11112 with expansion:
11113 "error: tag alias, '[@zzz]' already registered.
11114 First seen at: file:2
11115 Redefined at: file:10" contains: "2"
11116
11117 Tag.tests.cpp:<line number>: PASSED:
11118 CHECK_THAT( what, ContainsSubstring( "10" ) )
11119 with expansion:
11120 "error: tag alias, '[@zzz]' already registered.
11121 First seen at: file:2
11122 Redefined at: file:10" contains: "10"
11123
11124 -------------------------------------------------------------------------------
11125 Tag alias can be registered against tag patterns
11126 Tag aliases must be of the form [@name]
11127 -------------------------------------------------------------------------------
11128 Tag.tests.cpp:<line number>
11129 ...............................................................................
11130
11131 Tag.tests.cpp:<line number>: PASSED:
11132 CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) )
11133
11134 Tag.tests.cpp:<line number>: PASSED:
11135 CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
11136
11137 Tag.tests.cpp:<line number>: PASSED:
11138 CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
11139
11140 Tag.tests.cpp:<line number>: PASSED:
11141 CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) )
11142
11143 -------------------------------------------------------------------------------
11144 Tags with spaces and non-alphanumerical characters are accepted
11145 -------------------------------------------------------------------------------
11146 Tag.tests.cpp:<line number>
11147 ...............................................................................
11148
11149 Tag.tests.cpp:<line number>: PASSED:
11150 REQUIRE( testCase.tags.size() == 2 )
11151 with expansion:
11152 2 == 2
11153
11154 Tag.tests.cpp:<line number>: PASSED:
11155 REQUIRE_THAT( testCase.tags, VectorContains( Tag( "tag with spaces" ) ) && VectorContains( Tag( "I said \"good day\" sir!"_catch_sr ) ) )
11156 with expansion:
11157 { {?}, {?} } ( Contains: {?} and Contains: {?} )
11158
11159 -------------------------------------------------------------------------------
11160 Template test case method with test types specified inside std::tuple - MyTypes
11161 - 0
11162 -------------------------------------------------------------------------------
11163 Class.tests.cpp:<line number>
11164 ...............................................................................
11165
11166 Class.tests.cpp:<line number>: PASSED:
11167 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
11168 with expansion:
11169 1 == 1
11170
11171 -------------------------------------------------------------------------------
11172 Template test case method with test types specified inside std::tuple - MyTypes
11173 - 1
11174 -------------------------------------------------------------------------------
11175 Class.tests.cpp:<line number>
11176 ...............................................................................
11177
11178 Class.tests.cpp:<line number>: PASSED:
11179 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
11180 with expansion:
11181 1 == 1
11182
11183 -------------------------------------------------------------------------------
11184 Template test case method with test types specified inside std::tuple - MyTypes
11185 - 2
11186 -------------------------------------------------------------------------------
11187 Class.tests.cpp:<line number>
11188 ...............................................................................
11189
11190 Class.tests.cpp:<line number>: PASSED:
11191 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
11192 with expansion:
11193 1.0 == 1
11194
11195 -------------------------------------------------------------------------------
11196 Template test case with test types specified inside non-copyable and non-
11197 movable std::tuple - NonCopyableAndNonMovableTypes - 0
11198 -------------------------------------------------------------------------------
11199 Misc.tests.cpp:<line number>
11200 ...............................................................................
11201
11202 Misc.tests.cpp:<line number>: PASSED:
11203 REQUIRE( sizeof(TestType) > 0 )
11204 with expansion:
11205 1 > 0
11206
11207 -------------------------------------------------------------------------------
11208 Template test case with test types specified inside non-copyable and non-
11209 movable std::tuple - NonCopyableAndNonMovableTypes - 1
11210 -------------------------------------------------------------------------------
11211 Misc.tests.cpp:<line number>
11212 ...............................................................................
11213
11214 Misc.tests.cpp:<line number>: PASSED:
11215 REQUIRE( sizeof(TestType) > 0 )
11216 with expansion:
11217 4 > 0
11218
11219 -------------------------------------------------------------------------------
11220 Template test case with test types specified inside non-default-constructible
11221 std::tuple - MyNonDefaultConstructibleTypes - 0
11222 -------------------------------------------------------------------------------
11223 Misc.tests.cpp:<line number>
11224 ...............................................................................
11225
11226 Misc.tests.cpp:<line number>: PASSED:
11227 REQUIRE( sizeof(TestType) > 0 )
11228 with expansion:
11229 1 > 0
11230
11231 -------------------------------------------------------------------------------
11232 Template test case with test types specified inside non-default-constructible
11233 std::tuple - MyNonDefaultConstructibleTypes - 1
11234 -------------------------------------------------------------------------------
11235 Misc.tests.cpp:<line number>
11236 ...............................................................................
11237
11238 Misc.tests.cpp:<line number>: PASSED:
11239 REQUIRE( sizeof(TestType) > 0 )
11240 with expansion:
11241 4 > 0
11242
11243 -------------------------------------------------------------------------------
11244 Template test case with test types specified inside std::tuple - MyTypes - 0
11245 -------------------------------------------------------------------------------
11246 Misc.tests.cpp:<line number>
11247 ...............................................................................
11248
11249 Misc.tests.cpp:<line number>: PASSED:
11250 REQUIRE( sizeof(TestType) > 0 )
11251 with expansion:
11252 4 > 0
11253
11254 -------------------------------------------------------------------------------
11255 Template test case with test types specified inside std::tuple - MyTypes - 1
11256 -------------------------------------------------------------------------------
11257 Misc.tests.cpp:<line number>
11258 ...............................................................................
11259
11260 Misc.tests.cpp:<line number>: PASSED:
11261 REQUIRE( sizeof(TestType) > 0 )
11262 with expansion:
11263 1 > 0
11264
11265 -------------------------------------------------------------------------------
11266 Template test case with test types specified inside std::tuple - MyTypes - 2
11267 -------------------------------------------------------------------------------
11268 Misc.tests.cpp:<line number>
11269 ...............................................................................
11270
11271 Misc.tests.cpp:<line number>: PASSED:
11272 REQUIRE( sizeof(TestType) > 0 )
11273 with expansion:
11274 4 > 0
11275
11276 -------------------------------------------------------------------------------
11277 TemplateTest: vectors can be sized and resized - float
11278 -------------------------------------------------------------------------------
11279 Misc.tests.cpp:<line number>
11280 ...............................................................................
11281
11282 Misc.tests.cpp:<line number>: PASSED:
11283 REQUIRE( v.size() == 5 )
11284 with expansion:
11285 5 == 5
11286
11287 Misc.tests.cpp:<line number>: PASSED:
11288 REQUIRE( v.capacity() >= 5 )
11289 with expansion:
11290 5 >= 5
11291
11292 -------------------------------------------------------------------------------
11293 TemplateTest: vectors can be sized and resized - float
11294 resizing bigger changes size and capacity
11295 -------------------------------------------------------------------------------
11296 Misc.tests.cpp:<line number>
11297 ...............................................................................
11298
11299 Misc.tests.cpp:<line number>: PASSED:
11300 REQUIRE( v.size() == 10 )
11301 with expansion:
11302 10 == 10
11303
11304 Misc.tests.cpp:<line number>: PASSED:
11305 REQUIRE( v.capacity() >= 10 )
11306 with expansion:
11307 10 >= 10
11308
11309 -------------------------------------------------------------------------------
11310 TemplateTest: vectors can be sized and resized - float
11311 -------------------------------------------------------------------------------
11312 Misc.tests.cpp:<line number>
11313 ...............................................................................
11314
11315 Misc.tests.cpp:<line number>: PASSED:
11316 REQUIRE( v.size() == 5 )
11317 with expansion:
11318 5 == 5
11319
11320 Misc.tests.cpp:<line number>: PASSED:
11321 REQUIRE( v.capacity() >= 5 )
11322 with expansion:
11323 5 >= 5
11324
11325 -------------------------------------------------------------------------------
11326 TemplateTest: vectors can be sized and resized - float
11327 resizing smaller changes size but not capacity
11328 -------------------------------------------------------------------------------
11329 Misc.tests.cpp:<line number>
11330 ...............................................................................
11331
11332 Misc.tests.cpp:<line number>: PASSED:
11333 REQUIRE( v.size() == 0 )
11334 with expansion:
11335 0 == 0
11336
11337 Misc.tests.cpp:<line number>: PASSED:
11338 REQUIRE( v.capacity() >= 5 )
11339 with expansion:
11340 5 >= 5
11341
11342 -------------------------------------------------------------------------------
11343 TemplateTest: vectors can be sized and resized - float
11344 resizing smaller changes size but not capacity
11345 We can use the 'swap trick' to reset the capacity
11346 -------------------------------------------------------------------------------
11347 Misc.tests.cpp:<line number>
11348 ...............................................................................
11349
11350 Misc.tests.cpp:<line number>: PASSED:
11351 REQUIRE( v.capacity() == 0 )
11352 with expansion:
11353 0 == 0
11354
11355 -------------------------------------------------------------------------------
11356 TemplateTest: vectors can be sized and resized - float
11357 -------------------------------------------------------------------------------
11358 Misc.tests.cpp:<line number>
11359 ...............................................................................
11360
11361 Misc.tests.cpp:<line number>: PASSED:
11362 REQUIRE( v.size() == 5 )
11363 with expansion:
11364 5 == 5
11365
11366 Misc.tests.cpp:<line number>: PASSED:
11367 REQUIRE( v.capacity() >= 5 )
11368 with expansion:
11369 5 >= 5
11370
11371 -------------------------------------------------------------------------------
11372 TemplateTest: vectors can be sized and resized - float
11373 reserving bigger changes capacity but not size
11374 -------------------------------------------------------------------------------
11375 Misc.tests.cpp:<line number>
11376 ...............................................................................
11377
11378 Misc.tests.cpp:<line number>: PASSED:
11379 REQUIRE( v.size() == 5 )
11380 with expansion:
11381 5 == 5
11382
11383 Misc.tests.cpp:<line number>: PASSED:
11384 REQUIRE( v.capacity() >= 10 )
11385 with expansion:
11386 10 >= 10
11387
11388 -------------------------------------------------------------------------------
11389 TemplateTest: vectors can be sized and resized - float
11390 -------------------------------------------------------------------------------
11391 Misc.tests.cpp:<line number>
11392 ...............................................................................
11393
11394 Misc.tests.cpp:<line number>: PASSED:
11395 REQUIRE( v.size() == 5 )
11396 with expansion:
11397 5 == 5
11398
11399 Misc.tests.cpp:<line number>: PASSED:
11400 REQUIRE( v.capacity() >= 5 )
11401 with expansion:
11402 5 >= 5
11403
11404 -------------------------------------------------------------------------------
11405 TemplateTest: vectors can be sized and resized - float
11406 reserving smaller does not change size or capacity
11407 -------------------------------------------------------------------------------
11408 Misc.tests.cpp:<line number>
11409 ...............................................................................
11410
11411 Misc.tests.cpp:<line number>: PASSED:
11412 REQUIRE( v.size() == 5 )
11413 with expansion:
11414 5 == 5
11415
11416 Misc.tests.cpp:<line number>: PASSED:
11417 REQUIRE( v.capacity() >= 5 )
11418 with expansion:
11419 5 >= 5
11420
11421 -------------------------------------------------------------------------------
11422 TemplateTest: vectors can be sized and resized - int
11423 -------------------------------------------------------------------------------
11424 Misc.tests.cpp:<line number>
11425 ...............................................................................
11426
11427 Misc.tests.cpp:<line number>: PASSED:
11428 REQUIRE( v.size() == 5 )
11429 with expansion:
11430 5 == 5
11431
11432 Misc.tests.cpp:<line number>: PASSED:
11433 REQUIRE( v.capacity() >= 5 )
11434 with expansion:
11435 5 >= 5
11436
11437 -------------------------------------------------------------------------------
11438 TemplateTest: vectors can be sized and resized - int
11439 resizing bigger changes size and capacity
11440 -------------------------------------------------------------------------------
11441 Misc.tests.cpp:<line number>
11442 ...............................................................................
11443
11444 Misc.tests.cpp:<line number>: PASSED:
11445 REQUIRE( v.size() == 10 )
11446 with expansion:
11447 10 == 10
11448
11449 Misc.tests.cpp:<line number>: PASSED:
11450 REQUIRE( v.capacity() >= 10 )
11451 with expansion:
11452 10 >= 10
11453
11454 -------------------------------------------------------------------------------
11455 TemplateTest: vectors can be sized and resized - int
11456 -------------------------------------------------------------------------------
11457 Misc.tests.cpp:<line number>
11458 ...............................................................................
11459
11460 Misc.tests.cpp:<line number>: PASSED:
11461 REQUIRE( v.size() == 5 )
11462 with expansion:
11463 5 == 5
11464
11465 Misc.tests.cpp:<line number>: PASSED:
11466 REQUIRE( v.capacity() >= 5 )
11467 with expansion:
11468 5 >= 5
11469
11470 -------------------------------------------------------------------------------
11471 TemplateTest: vectors can be sized and resized - int
11472 resizing smaller changes size but not capacity
11473 -------------------------------------------------------------------------------
11474 Misc.tests.cpp:<line number>
11475 ...............................................................................
11476
11477 Misc.tests.cpp:<line number>: PASSED:
11478 REQUIRE( v.size() == 0 )
11479 with expansion:
11480 0 == 0
11481
11482 Misc.tests.cpp:<line number>: PASSED:
11483 REQUIRE( v.capacity() >= 5 )
11484 with expansion:
11485 5 >= 5
11486
11487 -------------------------------------------------------------------------------
11488 TemplateTest: vectors can be sized and resized - int
11489 resizing smaller changes size but not capacity
11490 We can use the 'swap trick' to reset the capacity
11491 -------------------------------------------------------------------------------
11492 Misc.tests.cpp:<line number>
11493 ...............................................................................
11494
11495 Misc.tests.cpp:<line number>: PASSED:
11496 REQUIRE( v.capacity() == 0 )
11497 with expansion:
11498 0 == 0
11499
11500 -------------------------------------------------------------------------------
11501 TemplateTest: vectors can be sized and resized - int
11502 -------------------------------------------------------------------------------
11503 Misc.tests.cpp:<line number>
11504 ...............................................................................
11505
11506 Misc.tests.cpp:<line number>: PASSED:
11507 REQUIRE( v.size() == 5 )
11508 with expansion:
11509 5 == 5
11510
11511 Misc.tests.cpp:<line number>: PASSED:
11512 REQUIRE( v.capacity() >= 5 )
11513 with expansion:
11514 5 >= 5
11515
11516 -------------------------------------------------------------------------------
11517 TemplateTest: vectors can be sized and resized - int
11518 reserving bigger changes capacity but not size
11519 -------------------------------------------------------------------------------
11520 Misc.tests.cpp:<line number>
11521 ...............................................................................
11522
11523 Misc.tests.cpp:<line number>: PASSED:
11524 REQUIRE( v.size() == 5 )
11525 with expansion:
11526 5 == 5
11527
11528 Misc.tests.cpp:<line number>: PASSED:
11529 REQUIRE( v.capacity() >= 10 )
11530 with expansion:
11531 10 >= 10
11532
11533 -------------------------------------------------------------------------------
11534 TemplateTest: vectors can be sized and resized - int
11535 -------------------------------------------------------------------------------
11536 Misc.tests.cpp:<line number>
11537 ...............................................................................
11538
11539 Misc.tests.cpp:<line number>: PASSED:
11540 REQUIRE( v.size() == 5 )
11541 with expansion:
11542 5 == 5
11543
11544 Misc.tests.cpp:<line number>: PASSED:
11545 REQUIRE( v.capacity() >= 5 )
11546 with expansion:
11547 5 >= 5
11548
11549 -------------------------------------------------------------------------------
11550 TemplateTest: vectors can be sized and resized - int
11551 reserving smaller does not change size or capacity
11552 -------------------------------------------------------------------------------
11553 Misc.tests.cpp:<line number>
11554 ...............................................................................
11555
11556 Misc.tests.cpp:<line number>: PASSED:
11557 REQUIRE( v.size() == 5 )
11558 with expansion:
11559 5 == 5
11560
11561 Misc.tests.cpp:<line number>: PASSED:
11562 REQUIRE( v.capacity() >= 5 )
11563 with expansion:
11564 5 >= 5
11565
11566 -------------------------------------------------------------------------------
11567 TemplateTest: vectors can be sized and resized - std::string
11568 -------------------------------------------------------------------------------
11569 Misc.tests.cpp:<line number>
11570 ...............................................................................
11571
11572 Misc.tests.cpp:<line number>: PASSED:
11573 REQUIRE( v.size() == 5 )
11574 with expansion:
11575 5 == 5
11576
11577 Misc.tests.cpp:<line number>: PASSED:
11578 REQUIRE( v.capacity() >= 5 )
11579 with expansion:
11580 5 >= 5
11581
11582 -------------------------------------------------------------------------------
11583 TemplateTest: vectors can be sized and resized - std::string
11584 resizing bigger changes size and capacity
11585 -------------------------------------------------------------------------------
11586 Misc.tests.cpp:<line number>
11587 ...............................................................................
11588
11589 Misc.tests.cpp:<line number>: PASSED:
11590 REQUIRE( v.size() == 10 )
11591 with expansion:
11592 10 == 10
11593
11594 Misc.tests.cpp:<line number>: PASSED:
11595 REQUIRE( v.capacity() >= 10 )
11596 with expansion:
11597 10 >= 10
11598
11599 -------------------------------------------------------------------------------
11600 TemplateTest: vectors can be sized and resized - std::string
11601 -------------------------------------------------------------------------------
11602 Misc.tests.cpp:<line number>
11603 ...............................................................................
11604
11605 Misc.tests.cpp:<line number>: PASSED:
11606 REQUIRE( v.size() == 5 )
11607 with expansion:
11608 5 == 5
11609
11610 Misc.tests.cpp:<line number>: PASSED:
11611 REQUIRE( v.capacity() >= 5 )
11612 with expansion:
11613 5 >= 5
11614
11615 -------------------------------------------------------------------------------
11616 TemplateTest: vectors can be sized and resized - std::string
11617 resizing smaller changes size but not capacity
11618 -------------------------------------------------------------------------------
11619 Misc.tests.cpp:<line number>
11620 ...............................................................................
11621
11622 Misc.tests.cpp:<line number>: PASSED:
11623 REQUIRE( v.size() == 0 )
11624 with expansion:
11625 0 == 0
11626
11627 Misc.tests.cpp:<line number>: PASSED:
11628 REQUIRE( v.capacity() >= 5 )
11629 with expansion:
11630 5 >= 5
11631
11632 -------------------------------------------------------------------------------
11633 TemplateTest: vectors can be sized and resized - std::string
11634 resizing smaller changes size but not capacity
11635 We can use the 'swap trick' to reset the capacity
11636 -------------------------------------------------------------------------------
11637 Misc.tests.cpp:<line number>
11638 ...............................................................................
11639
11640 Misc.tests.cpp:<line number>: PASSED:
11641 REQUIRE( v.capacity() == 0 )
11642 with expansion:
11643 0 == 0
11644
11645 -------------------------------------------------------------------------------
11646 TemplateTest: vectors can be sized and resized - std::string
11647 -------------------------------------------------------------------------------
11648 Misc.tests.cpp:<line number>
11649 ...............................................................................
11650
11651 Misc.tests.cpp:<line number>: PASSED:
11652 REQUIRE( v.size() == 5 )
11653 with expansion:
11654 5 == 5
11655
11656 Misc.tests.cpp:<line number>: PASSED:
11657 REQUIRE( v.capacity() >= 5 )
11658 with expansion:
11659 5 >= 5
11660
11661 -------------------------------------------------------------------------------
11662 TemplateTest: vectors can be sized and resized - std::string
11663 reserving bigger changes capacity but not size
11664 -------------------------------------------------------------------------------
11665 Misc.tests.cpp:<line number>
11666 ...............................................................................
11667
11668 Misc.tests.cpp:<line number>: PASSED:
11669 REQUIRE( v.size() == 5 )
11670 with expansion:
11671 5 == 5
11672
11673 Misc.tests.cpp:<line number>: PASSED:
11674 REQUIRE( v.capacity() >= 10 )
11675 with expansion:
11676 10 >= 10
11677
11678 -------------------------------------------------------------------------------
11679 TemplateTest: vectors can be sized and resized - std::string
11680 -------------------------------------------------------------------------------
11681 Misc.tests.cpp:<line number>
11682 ...............................................................................
11683
11684 Misc.tests.cpp:<line number>: PASSED:
11685 REQUIRE( v.size() == 5 )
11686 with expansion:
11687 5 == 5
11688
11689 Misc.tests.cpp:<line number>: PASSED:
11690 REQUIRE( v.capacity() >= 5 )
11691 with expansion:
11692 5 >= 5
11693
11694 -------------------------------------------------------------------------------
11695 TemplateTest: vectors can be sized and resized - std::string
11696 reserving smaller does not change size or capacity
11697 -------------------------------------------------------------------------------
11698 Misc.tests.cpp:<line number>
11699 ...............................................................................
11700
11701 Misc.tests.cpp:<line number>: PASSED:
11702 REQUIRE( v.size() == 5 )
11703 with expansion:
11704 5 == 5
11705
11706 Misc.tests.cpp:<line number>: PASSED:
11707 REQUIRE( v.capacity() >= 5 )
11708 with expansion:
11709 5 >= 5
11710
11711 -------------------------------------------------------------------------------
11712 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11713 -------------------------------------------------------------------------------
11714 Misc.tests.cpp:<line number>
11715 ...............................................................................
11716
11717 Misc.tests.cpp:<line number>: PASSED:
11718 REQUIRE( v.size() == 5 )
11719 with expansion:
11720 5 == 5
11721
11722 Misc.tests.cpp:<line number>: PASSED:
11723 REQUIRE( v.capacity() >= 5 )
11724 with expansion:
11725 5 >= 5
11726
11727 -------------------------------------------------------------------------------
11728 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11729 resizing bigger changes size and capacity
11730 -------------------------------------------------------------------------------
11731 Misc.tests.cpp:<line number>
11732 ...............................................................................
11733
11734 Misc.tests.cpp:<line number>: PASSED:
11735 REQUIRE( v.size() == 10 )
11736 with expansion:
11737 10 == 10
11738
11739 Misc.tests.cpp:<line number>: PASSED:
11740 REQUIRE( v.capacity() >= 10 )
11741 with expansion:
11742 10 >= 10
11743
11744 -------------------------------------------------------------------------------
11745 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11746 -------------------------------------------------------------------------------
11747 Misc.tests.cpp:<line number>
11748 ...............................................................................
11749
11750 Misc.tests.cpp:<line number>: PASSED:
11751 REQUIRE( v.size() == 5 )
11752 with expansion:
11753 5 == 5
11754
11755 Misc.tests.cpp:<line number>: PASSED:
11756 REQUIRE( v.capacity() >= 5 )
11757 with expansion:
11758 5 >= 5
11759
11760 -------------------------------------------------------------------------------
11761 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11762 resizing smaller changes size but not capacity
11763 -------------------------------------------------------------------------------
11764 Misc.tests.cpp:<line number>
11765 ...............................................................................
11766
11767 Misc.tests.cpp:<line number>: PASSED:
11768 REQUIRE( v.size() == 0 )
11769 with expansion:
11770 0 == 0
11771
11772 Misc.tests.cpp:<line number>: PASSED:
11773 REQUIRE( v.capacity() >= 5 )
11774 with expansion:
11775 5 >= 5
11776
11777 -------------------------------------------------------------------------------
11778 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11779 resizing smaller changes size but not capacity
11780 We can use the 'swap trick' to reset the capacity
11781 -------------------------------------------------------------------------------
11782 Misc.tests.cpp:<line number>
11783 ...............................................................................
11784
11785 Misc.tests.cpp:<line number>: PASSED:
11786 REQUIRE( v.capacity() == 0 )
11787 with expansion:
11788 0 == 0
11789
11790 -------------------------------------------------------------------------------
11791 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11792 -------------------------------------------------------------------------------
11793 Misc.tests.cpp:<line number>
11794 ...............................................................................
11795
11796 Misc.tests.cpp:<line number>: PASSED:
11797 REQUIRE( v.size() == 5 )
11798 with expansion:
11799 5 == 5
11800
11801 Misc.tests.cpp:<line number>: PASSED:
11802 REQUIRE( v.capacity() >= 5 )
11803 with expansion:
11804 5 >= 5
11805
11806 -------------------------------------------------------------------------------
11807 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11808 reserving bigger changes capacity but not size
11809 -------------------------------------------------------------------------------
11810 Misc.tests.cpp:<line number>
11811 ...............................................................................
11812
11813 Misc.tests.cpp:<line number>: PASSED:
11814 REQUIRE( v.size() == 5 )
11815 with expansion:
11816 5 == 5
11817
11818 Misc.tests.cpp:<line number>: PASSED:
11819 REQUIRE( v.capacity() >= 10 )
11820 with expansion:
11821 10 >= 10
11822
11823 -------------------------------------------------------------------------------
11824 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11825 -------------------------------------------------------------------------------
11826 Misc.tests.cpp:<line number>
11827 ...............................................................................
11828
11829 Misc.tests.cpp:<line number>: PASSED:
11830 REQUIRE( v.size() == 5 )
11831 with expansion:
11832 5 == 5
11833
11834 Misc.tests.cpp:<line number>: PASSED:
11835 REQUIRE( v.capacity() >= 5 )
11836 with expansion:
11837 5 >= 5
11838
11839 -------------------------------------------------------------------------------
11840 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
11841 reserving smaller does not change size or capacity
11842 -------------------------------------------------------------------------------
11843 Misc.tests.cpp:<line number>
11844 ...............................................................................
11845
11846 Misc.tests.cpp:<line number>: PASSED:
11847 REQUIRE( v.size() == 5 )
11848 with expansion:
11849 5 == 5
11850
11851 Misc.tests.cpp:<line number>: PASSED:
11852 REQUIRE( v.capacity() >= 5 )
11853 with expansion:
11854 5 >= 5
11855
11856 -------------------------------------------------------------------------------
11857 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11858 -------------------------------------------------------------------------------
11859 Misc.tests.cpp:<line number>
11860 ...............................................................................
11861
11862 Misc.tests.cpp:<line number>: PASSED:
11863 REQUIRE( v.size() == V )
11864 with expansion:
11865 6 == 6
11866
11867 Misc.tests.cpp:<line number>: PASSED:
11868 REQUIRE( v.capacity() >= V )
11869 with expansion:
11870 6 >= 6
11871
11872 -------------------------------------------------------------------------------
11873 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11874 resizing bigger changes size and capacity
11875 -------------------------------------------------------------------------------
11876 Misc.tests.cpp:<line number>
11877 ...............................................................................
11878
11879 Misc.tests.cpp:<line number>: PASSED:
11880 REQUIRE( v.size() == 2 * V )
11881 with expansion:
11882 12 == 12
11883
11884 Misc.tests.cpp:<line number>: PASSED:
11885 REQUIRE( v.capacity() >= 2 * V )
11886 with expansion:
11887 12 >= 12
11888
11889 -------------------------------------------------------------------------------
11890 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11891 -------------------------------------------------------------------------------
11892 Misc.tests.cpp:<line number>
11893 ...............................................................................
11894
11895 Misc.tests.cpp:<line number>: PASSED:
11896 REQUIRE( v.size() == V )
11897 with expansion:
11898 6 == 6
11899
11900 Misc.tests.cpp:<line number>: PASSED:
11901 REQUIRE( v.capacity() >= V )
11902 with expansion:
11903 6 >= 6
11904
11905 -------------------------------------------------------------------------------
11906 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11907 resizing smaller changes size but not capacity
11908 -------------------------------------------------------------------------------
11909 Misc.tests.cpp:<line number>
11910 ...............................................................................
11911
11912 Misc.tests.cpp:<line number>: PASSED:
11913 REQUIRE( v.size() == 0 )
11914 with expansion:
11915 0 == 0
11916
11917 Misc.tests.cpp:<line number>: PASSED:
11918 REQUIRE( v.capacity() >= V )
11919 with expansion:
11920 6 >= 6
11921
11922 -------------------------------------------------------------------------------
11923 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11924 resizing smaller changes size but not capacity
11925 We can use the 'swap trick' to reset the capacity
11926 -------------------------------------------------------------------------------
11927 Misc.tests.cpp:<line number>
11928 ...............................................................................
11929
11930 Misc.tests.cpp:<line number>: PASSED:
11931 REQUIRE( v.capacity() == 0 )
11932 with expansion:
11933 0 == 0
11934
11935 -------------------------------------------------------------------------------
11936 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11937 -------------------------------------------------------------------------------
11938 Misc.tests.cpp:<line number>
11939 ...............................................................................
11940
11941 Misc.tests.cpp:<line number>: PASSED:
11942 REQUIRE( v.size() == V )
11943 with expansion:
11944 6 == 6
11945
11946 Misc.tests.cpp:<line number>: PASSED:
11947 REQUIRE( v.capacity() >= V )
11948 with expansion:
11949 6 >= 6
11950
11951 -------------------------------------------------------------------------------
11952 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11953 reserving bigger changes capacity but not size
11954 -------------------------------------------------------------------------------
11955 Misc.tests.cpp:<line number>
11956 ...............................................................................
11957
11958 Misc.tests.cpp:<line number>: PASSED:
11959 REQUIRE( v.size() == V )
11960 with expansion:
11961 6 == 6
11962
11963 Misc.tests.cpp:<line number>: PASSED:
11964 REQUIRE( v.capacity() >= 2 * V )
11965 with expansion:
11966 12 >= 12
11967
11968 -------------------------------------------------------------------------------
11969 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11970 -------------------------------------------------------------------------------
11971 Misc.tests.cpp:<line number>
11972 ...............................................................................
11973
11974 Misc.tests.cpp:<line number>: PASSED:
11975 REQUIRE( v.size() == V )
11976 with expansion:
11977 6 == 6
11978
11979 Misc.tests.cpp:<line number>: PASSED:
11980 REQUIRE( v.capacity() >= V )
11981 with expansion:
11982 6 >= 6
11983
11984 -------------------------------------------------------------------------------
11985 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
11986 reserving smaller does not change size or capacity
11987 -------------------------------------------------------------------------------
11988 Misc.tests.cpp:<line number>
11989 ...............................................................................
11990
11991 Misc.tests.cpp:<line number>: PASSED:
11992 REQUIRE( v.size() == V )
11993 with expansion:
11994 6 == 6
11995
11996 Misc.tests.cpp:<line number>: PASSED:
11997 REQUIRE( v.capacity() >= V )
11998 with expansion:
11999 6 >= 6
12000
12001 -------------------------------------------------------------------------------
12002 TemplateTestSig: vectors can be sized and resized - float,4
12003 -------------------------------------------------------------------------------
12004 Misc.tests.cpp:<line number>
12005 ...............................................................................
12006
12007 Misc.tests.cpp:<line number>: PASSED:
12008 REQUIRE( v.size() == V )
12009 with expansion:
12010 4 == 4
12011
12012 Misc.tests.cpp:<line number>: PASSED:
12013 REQUIRE( v.capacity() >= V )
12014 with expansion:
12015 4 >= 4
12016
12017 -------------------------------------------------------------------------------
12018 TemplateTestSig: vectors can be sized and resized - float,4
12019 resizing bigger changes size and capacity
12020 -------------------------------------------------------------------------------
12021 Misc.tests.cpp:<line number>
12022 ...............................................................................
12023
12024 Misc.tests.cpp:<line number>: PASSED:
12025 REQUIRE( v.size() == 2 * V )
12026 with expansion:
12027 8 == 8
12028
12029 Misc.tests.cpp:<line number>: PASSED:
12030 REQUIRE( v.capacity() >= 2 * V )
12031 with expansion:
12032 8 >= 8
12033
12034 -------------------------------------------------------------------------------
12035 TemplateTestSig: vectors can be sized and resized - float,4
12036 -------------------------------------------------------------------------------
12037 Misc.tests.cpp:<line number>
12038 ...............................................................................
12039
12040 Misc.tests.cpp:<line number>: PASSED:
12041 REQUIRE( v.size() == V )
12042 with expansion:
12043 4 == 4
12044
12045 Misc.tests.cpp:<line number>: PASSED:
12046 REQUIRE( v.capacity() >= V )
12047 with expansion:
12048 4 >= 4
12049
12050 -------------------------------------------------------------------------------
12051 TemplateTestSig: vectors can be sized and resized - float,4
12052 resizing smaller changes size but not capacity
12053 -------------------------------------------------------------------------------
12054 Misc.tests.cpp:<line number>
12055 ...............................................................................
12056
12057 Misc.tests.cpp:<line number>: PASSED:
12058 REQUIRE( v.size() == 0 )
12059 with expansion:
12060 0 == 0
12061
12062 Misc.tests.cpp:<line number>: PASSED:
12063 REQUIRE( v.capacity() >= V )
12064 with expansion:
12065 4 >= 4
12066
12067 -------------------------------------------------------------------------------
12068 TemplateTestSig: vectors can be sized and resized - float,4
12069 resizing smaller changes size but not capacity
12070 We can use the 'swap trick' to reset the capacity
12071 -------------------------------------------------------------------------------
12072 Misc.tests.cpp:<line number>
12073 ...............................................................................
12074
12075 Misc.tests.cpp:<line number>: PASSED:
12076 REQUIRE( v.capacity() == 0 )
12077 with expansion:
12078 0 == 0
12079
12080 -------------------------------------------------------------------------------
12081 TemplateTestSig: vectors can be sized and resized - float,4
12082 -------------------------------------------------------------------------------
12083 Misc.tests.cpp:<line number>
12084 ...............................................................................
12085
12086 Misc.tests.cpp:<line number>: PASSED:
12087 REQUIRE( v.size() == V )
12088 with expansion:
12089 4 == 4
12090
12091 Misc.tests.cpp:<line number>: PASSED:
12092 REQUIRE( v.capacity() >= V )
12093 with expansion:
12094 4 >= 4
12095
12096 -------------------------------------------------------------------------------
12097 TemplateTestSig: vectors can be sized and resized - float,4
12098 reserving bigger changes capacity but not size
12099 -------------------------------------------------------------------------------
12100 Misc.tests.cpp:<line number>
12101 ...............................................................................
12102
12103 Misc.tests.cpp:<line number>: PASSED:
12104 REQUIRE( v.size() == V )
12105 with expansion:
12106 4 == 4
12107
12108 Misc.tests.cpp:<line number>: PASSED:
12109 REQUIRE( v.capacity() >= 2 * V )
12110 with expansion:
12111 8 >= 8
12112
12113 -------------------------------------------------------------------------------
12114 TemplateTestSig: vectors can be sized and resized - float,4
12115 -------------------------------------------------------------------------------
12116 Misc.tests.cpp:<line number>
12117 ...............................................................................
12118
12119 Misc.tests.cpp:<line number>: PASSED:
12120 REQUIRE( v.size() == V )
12121 with expansion:
12122 4 == 4
12123
12124 Misc.tests.cpp:<line number>: PASSED:
12125 REQUIRE( v.capacity() >= V )
12126 with expansion:
12127 4 >= 4
12128
12129 -------------------------------------------------------------------------------
12130 TemplateTestSig: vectors can be sized and resized - float,4
12131 reserving smaller does not change size or capacity
12132 -------------------------------------------------------------------------------
12133 Misc.tests.cpp:<line number>
12134 ...............................................................................
12135
12136 Misc.tests.cpp:<line number>: PASSED:
12137 REQUIRE( v.size() == V )
12138 with expansion:
12139 4 == 4
12140
12141 Misc.tests.cpp:<line number>: PASSED:
12142 REQUIRE( v.capacity() >= V )
12143 with expansion:
12144 4 >= 4
12145
12146 -------------------------------------------------------------------------------
12147 TemplateTestSig: vectors can be sized and resized - int,5
12148 -------------------------------------------------------------------------------
12149 Misc.tests.cpp:<line number>
12150 ...............................................................................
12151
12152 Misc.tests.cpp:<line number>: PASSED:
12153 REQUIRE( v.size() == V )
12154 with expansion:
12155 5 == 5
12156
12157 Misc.tests.cpp:<line number>: PASSED:
12158 REQUIRE( v.capacity() >= V )
12159 with expansion:
12160 5 >= 5
12161
12162 -------------------------------------------------------------------------------
12163 TemplateTestSig: vectors can be sized and resized - int,5
12164 resizing bigger changes size and capacity
12165 -------------------------------------------------------------------------------
12166 Misc.tests.cpp:<line number>
12167 ...............................................................................
12168
12169 Misc.tests.cpp:<line number>: PASSED:
12170 REQUIRE( v.size() == 2 * V )
12171 with expansion:
12172 10 == 10
12173
12174 Misc.tests.cpp:<line number>: PASSED:
12175 REQUIRE( v.capacity() >= 2 * V )
12176 with expansion:
12177 10 >= 10
12178
12179 -------------------------------------------------------------------------------
12180 TemplateTestSig: vectors can be sized and resized - int,5
12181 -------------------------------------------------------------------------------
12182 Misc.tests.cpp:<line number>
12183 ...............................................................................
12184
12185 Misc.tests.cpp:<line number>: PASSED:
12186 REQUIRE( v.size() == V )
12187 with expansion:
12188 5 == 5
12189
12190 Misc.tests.cpp:<line number>: PASSED:
12191 REQUIRE( v.capacity() >= V )
12192 with expansion:
12193 5 >= 5
12194
12195 -------------------------------------------------------------------------------
12196 TemplateTestSig: vectors can be sized and resized - int,5
12197 resizing smaller changes size but not capacity
12198 -------------------------------------------------------------------------------
12199 Misc.tests.cpp:<line number>
12200 ...............................................................................
12201
12202 Misc.tests.cpp:<line number>: PASSED:
12203 REQUIRE( v.size() == 0 )
12204 with expansion:
12205 0 == 0
12206
12207 Misc.tests.cpp:<line number>: PASSED:
12208 REQUIRE( v.capacity() >= V )
12209 with expansion:
12210 5 >= 5
12211
12212 -------------------------------------------------------------------------------
12213 TemplateTestSig: vectors can be sized and resized - int,5
12214 resizing smaller changes size but not capacity
12215 We can use the 'swap trick' to reset the capacity
12216 -------------------------------------------------------------------------------
12217 Misc.tests.cpp:<line number>
12218 ...............................................................................
12219
12220 Misc.tests.cpp:<line number>: PASSED:
12221 REQUIRE( v.capacity() == 0 )
12222 with expansion:
12223 0 == 0
12224
12225 -------------------------------------------------------------------------------
12226 TemplateTestSig: vectors can be sized and resized - int,5
12227 -------------------------------------------------------------------------------
12228 Misc.tests.cpp:<line number>
12229 ...............................................................................
12230
12231 Misc.tests.cpp:<line number>: PASSED:
12232 REQUIRE( v.size() == V )
12233 with expansion:
12234 5 == 5
12235
12236 Misc.tests.cpp:<line number>: PASSED:
12237 REQUIRE( v.capacity() >= V )
12238 with expansion:
12239 5 >= 5
12240
12241 -------------------------------------------------------------------------------
12242 TemplateTestSig: vectors can be sized and resized - int,5
12243 reserving bigger changes capacity but not size
12244 -------------------------------------------------------------------------------
12245 Misc.tests.cpp:<line number>
12246 ...............................................................................
12247
12248 Misc.tests.cpp:<line number>: PASSED:
12249 REQUIRE( v.size() == V )
12250 with expansion:
12251 5 == 5
12252
12253 Misc.tests.cpp:<line number>: PASSED:
12254 REQUIRE( v.capacity() >= 2 * V )
12255 with expansion:
12256 10 >= 10
12257
12258 -------------------------------------------------------------------------------
12259 TemplateTestSig: vectors can be sized and resized - int,5
12260 -------------------------------------------------------------------------------
12261 Misc.tests.cpp:<line number>
12262 ...............................................................................
12263
12264 Misc.tests.cpp:<line number>: PASSED:
12265 REQUIRE( v.size() == V )
12266 with expansion:
12267 5 == 5
12268
12269 Misc.tests.cpp:<line number>: PASSED:
12270 REQUIRE( v.capacity() >= V )
12271 with expansion:
12272 5 >= 5
12273
12274 -------------------------------------------------------------------------------
12275 TemplateTestSig: vectors can be sized and resized - int,5
12276 reserving smaller does not change size or capacity
12277 -------------------------------------------------------------------------------
12278 Misc.tests.cpp:<line number>
12279 ...............................................................................
12280
12281 Misc.tests.cpp:<line number>: PASSED:
12282 REQUIRE( v.size() == V )
12283 with expansion:
12284 5 == 5
12285
12286 Misc.tests.cpp:<line number>: PASSED:
12287 REQUIRE( v.capacity() >= V )
12288 with expansion:
12289 5 >= 5
12290
12291 -------------------------------------------------------------------------------
12292 TemplateTestSig: vectors can be sized and resized - std::string,15
12293 -------------------------------------------------------------------------------
12294 Misc.tests.cpp:<line number>
12295 ...............................................................................
12296
12297 Misc.tests.cpp:<line number>: PASSED:
12298 REQUIRE( v.size() == V )
12299 with expansion:
12300 15 == 15
12301
12302 Misc.tests.cpp:<line number>: PASSED:
12303 REQUIRE( v.capacity() >= V )
12304 with expansion:
12305 15 >= 15
12306
12307 -------------------------------------------------------------------------------
12308 TemplateTestSig: vectors can be sized and resized - std::string,15
12309 resizing bigger changes size and capacity
12310 -------------------------------------------------------------------------------
12311 Misc.tests.cpp:<line number>
12312 ...............................................................................
12313
12314 Misc.tests.cpp:<line number>: PASSED:
12315 REQUIRE( v.size() == 2 * V )
12316 with expansion:
12317 30 == 30
12318
12319 Misc.tests.cpp:<line number>: PASSED:
12320 REQUIRE( v.capacity() >= 2 * V )
12321 with expansion:
12322 30 >= 30
12323
12324 -------------------------------------------------------------------------------
12325 TemplateTestSig: vectors can be sized and resized - std::string,15
12326 -------------------------------------------------------------------------------
12327 Misc.tests.cpp:<line number>
12328 ...............................................................................
12329
12330 Misc.tests.cpp:<line number>: PASSED:
12331 REQUIRE( v.size() == V )
12332 with expansion:
12333 15 == 15
12334
12335 Misc.tests.cpp:<line number>: PASSED:
12336 REQUIRE( v.capacity() >= V )
12337 with expansion:
12338 15 >= 15
12339
12340 -------------------------------------------------------------------------------
12341 TemplateTestSig: vectors can be sized and resized - std::string,15
12342 resizing smaller changes size but not capacity
12343 -------------------------------------------------------------------------------
12344 Misc.tests.cpp:<line number>
12345 ...............................................................................
12346
12347 Misc.tests.cpp:<line number>: PASSED:
12348 REQUIRE( v.size() == 0 )
12349 with expansion:
12350 0 == 0
12351
12352 Misc.tests.cpp:<line number>: PASSED:
12353 REQUIRE( v.capacity() >= V )
12354 with expansion:
12355 15 >= 15
12356
12357 -------------------------------------------------------------------------------
12358 TemplateTestSig: vectors can be sized and resized - std::string,15
12359 resizing smaller changes size but not capacity
12360 We can use the 'swap trick' to reset the capacity
12361 -------------------------------------------------------------------------------
12362 Misc.tests.cpp:<line number>
12363 ...............................................................................
12364
12365 Misc.tests.cpp:<line number>: PASSED:
12366 REQUIRE( v.capacity() == 0 )
12367 with expansion:
12368 0 == 0
12369
12370 -------------------------------------------------------------------------------
12371 TemplateTestSig: vectors can be sized and resized - std::string,15
12372 -------------------------------------------------------------------------------
12373 Misc.tests.cpp:<line number>
12374 ...............................................................................
12375
12376 Misc.tests.cpp:<line number>: PASSED:
12377 REQUIRE( v.size() == V )
12378 with expansion:
12379 15 == 15
12380
12381 Misc.tests.cpp:<line number>: PASSED:
12382 REQUIRE( v.capacity() >= V )
12383 with expansion:
12384 15 >= 15
12385
12386 -------------------------------------------------------------------------------
12387 TemplateTestSig: vectors can be sized and resized - std::string,15
12388 reserving bigger changes capacity but not size
12389 -------------------------------------------------------------------------------
12390 Misc.tests.cpp:<line number>
12391 ...............................................................................
12392
12393 Misc.tests.cpp:<line number>: PASSED:
12394 REQUIRE( v.size() == V )
12395 with expansion:
12396 15 == 15
12397
12398 Misc.tests.cpp:<line number>: PASSED:
12399 REQUIRE( v.capacity() >= 2 * V )
12400 with expansion:
12401 30 >= 30
12402
12403 -------------------------------------------------------------------------------
12404 TemplateTestSig: vectors can be sized and resized - std::string,15
12405 -------------------------------------------------------------------------------
12406 Misc.tests.cpp:<line number>
12407 ...............................................................................
12408
12409 Misc.tests.cpp:<line number>: PASSED:
12410 REQUIRE( v.size() == V )
12411 with expansion:
12412 15 == 15
12413
12414 Misc.tests.cpp:<line number>: PASSED:
12415 REQUIRE( v.capacity() >= V )
12416 with expansion:
12417 15 >= 15
12418
12419 -------------------------------------------------------------------------------
12420 TemplateTestSig: vectors can be sized and resized - std::string,15
12421 reserving smaller does not change size or capacity
12422 -------------------------------------------------------------------------------
12423 Misc.tests.cpp:<line number>
12424 ...............................................................................
12425
12426 Misc.tests.cpp:<line number>: PASSED:
12427 REQUIRE( v.size() == V )
12428 with expansion:
12429 15 == 15
12430
12431 Misc.tests.cpp:<line number>: PASSED:
12432 REQUIRE( v.capacity() >= V )
12433 with expansion:
12434 15 >= 15
12435
12436 -------------------------------------------------------------------------------
12437 Test case with identical tags keeps just one
12438 -------------------------------------------------------------------------------
12439 Tag.tests.cpp:<line number>
12440 ...............................................................................
12441
12442 Tag.tests.cpp:<line number>: PASSED:
12443 REQUIRE( testCase.tags.size() == 1 )
12444 with expansion:
12445 1 == 1
12446
12447 Tag.tests.cpp:<line number>: PASSED:
12448 REQUIRE( testCase.tags[0] == Tag( "tag1" ) )
12449 with expansion:
12450 {?} == {?}
12451
12452 -------------------------------------------------------------------------------
12453 Test case with one argument
12454 -------------------------------------------------------------------------------
12455 VariadicMacros.tests.cpp:<line number>
12456 ...............................................................................
12457
12458 VariadicMacros.tests.cpp:<line number>: PASSED:
12459 with message:
12460 no assertions
12461
12462 -------------------------------------------------------------------------------
12463 Test enum bit values
12464 -------------------------------------------------------------------------------
12465 Tricky.tests.cpp:<line number>
12466 ...............................................................................
12467
12468 Tricky.tests.cpp:<line number>: PASSED:
12469 REQUIRE( 0x<hex digits> == bit30and31 )
12470 with expansion:
12471 3221225472 (0x<hex digits>) == 3221225472
12472
12473 -------------------------------------------------------------------------------
12474 Test with special, characters "in name
12475 -------------------------------------------------------------------------------
12476 CmdLine.tests.cpp:<line number>
12477 ...............................................................................
12478
12479 CmdLine.tests.cpp:<line number>: PASSED:
12480
12481 -------------------------------------------------------------------------------
12482 Testing checked-if
12483 -------------------------------------------------------------------------------
12484 Misc.tests.cpp:<line number>
12485 ...............................................................................
12486
12487 Misc.tests.cpp:<line number>: PASSED:
12488 CHECKED_IF( true )
12489
12490 Misc.tests.cpp:<line number>: PASSED:
12491
12492 Misc.tests.cpp:<line number>: FAILED - but was ok:
12493 CHECKED_IF( false )
12494
12495 Misc.tests.cpp:<line number>: PASSED:
12496 CHECKED_ELSE( true )
12497
12498 Misc.tests.cpp:<line number>: FAILED - but was ok:
12499 CHECKED_ELSE( false )
12500
12501 Misc.tests.cpp:<line number>: PASSED:
12502
12503 -------------------------------------------------------------------------------
12504 Testing checked-if 2
12505 -------------------------------------------------------------------------------
12506 Misc.tests.cpp:<line number>
12507 ...............................................................................
12508
12509 Misc.tests.cpp:<line number>: PASSED:
12510 CHECKED_IF( true )
12511
12512 Misc.tests.cpp:<line number>: FAILED:
12513
12514 -------------------------------------------------------------------------------
12515 Testing checked-if 3
12516 -------------------------------------------------------------------------------
12517 Misc.tests.cpp:<line number>
12518 ...............................................................................
12519
12520 Misc.tests.cpp:<line number>: FAILED - but was ok:
12521 CHECKED_ELSE( false )
12522
12523 Misc.tests.cpp:<line number>: FAILED:
12524
12525 -------------------------------------------------------------------------------
12526 The NO_FAIL macro reports a failure but does not fail the test
12527 -------------------------------------------------------------------------------
12528 Message.tests.cpp:<line number>
12529 ...............................................................................
12530
12531 Message.tests.cpp:<line number>: FAILED - but was ok:
12532 CHECK_NOFAIL( 1 == 2 )
12533
12534
12535 No assertions in test case 'The NO_FAIL macro reports a failure but does not fail the test'
12536
12537 -------------------------------------------------------------------------------
12538 The default listing implementation write to provided stream
12539 Listing tags
12540 -------------------------------------------------------------------------------
12541 Reporters.tests.cpp:<line number>
12542 ...............................................................................
12543
12544 Reporters.tests.cpp:<line number>: PASSED:
12545 REQUIRE_THAT( listingString, ContainsSubstring("[fakeTag]"s) )
12546 with expansion:
12547 "All available tags:
12548 1 [fakeTag]
12549 1 tag
12550
12551 " contains: "[fakeTag]"
12552
12553 -------------------------------------------------------------------------------
12554 The default listing implementation write to provided stream
12555 Listing reporters
12556 -------------------------------------------------------------------------------
12557 Reporters.tests.cpp:<line number>
12558 ...............................................................................
12559
12560 Reporters.tests.cpp:<line number>: PASSED:
12561 REQUIRE_THAT( listingString, ContainsSubstring( "fake reporter"s ) && ContainsSubstring( "fake description"s ) )
12562 with expansion:
12563 "Available reporters:
12564 fake reporter: fake description
12565
12566 " ( contains: "fake reporter" and contains: "fake description" )
12567
12568 -------------------------------------------------------------------------------
12569 The default listing implementation write to provided stream
12570 Listing tests
12571 -------------------------------------------------------------------------------
12572 Reporters.tests.cpp:<line number>
12573 ...............................................................................
12574
12575 Reporters.tests.cpp:<line number>: PASSED:
12576 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
12577 with expansion:
12578 "All available test cases:
12579 fake test name
12580 [fakeTestTag]
12581 1 test case
12582
12583 " ( contains: "fake test name" and contains: "fakeTestTag" )
12584
12585 -------------------------------------------------------------------------------
12586 The default listing implementation write to provided stream
12587 Listing listeners
12588 -------------------------------------------------------------------------------
12589 Reporters.tests.cpp:<line number>
12590 ...............................................................................
12591
12592 Reporters.tests.cpp:<line number>: PASSED:
12593 REQUIRE_THAT( listingString, ContainsSubstring( "fakeListener"s ) && ContainsSubstring( "fake description"s ) )
12594 with expansion:
12595 "Registered listeners:
12596 fakeListener: fake description
12597
12598 " ( contains: "fakeListener" and contains: "fake description" )
12599
12600 -------------------------------------------------------------------------------
12601 This test 'should' fail but doesn't
12602 -------------------------------------------------------------------------------
12603 Misc.tests.cpp:<line number>
12604 ...............................................................................
12605
12606 Misc.tests.cpp:<line number>: PASSED:
12607 with message:
12608 oops!
12609
12610 -------------------------------------------------------------------------------
12611 Thrown string literals are translated
12612 -------------------------------------------------------------------------------
12613 Exception.tests.cpp:<line number>
12614 ...............................................................................
12615
12616 Exception.tests.cpp:<line number>: FAILED:
12617 due to unexpected exception with message:
12618 For some reason someone is throwing a string literal!
12619
12620 -------------------------------------------------------------------------------
12621 Tracker
12622 -------------------------------------------------------------------------------
12623 PartTracker.tests.cpp:<line number>
12624 ...............................................................................
12625
12626 PartTracker.tests.cpp:<line number>: PASSED:
12627 REQUIRE( testCase.isOpen() )
12628 with expansion:
12629 true
12630
12631 PartTracker.tests.cpp:<line number>: PASSED:
12632 REQUIRE( s1.isOpen() )
12633 with expansion:
12634 true
12635
12636 -------------------------------------------------------------------------------
12637 Tracker
12638 successfully close one section
12639 -------------------------------------------------------------------------------
12640 PartTracker.tests.cpp:<line number>
12641 ...............................................................................
12642
12643 PartTracker.tests.cpp:<line number>: PASSED:
12644 REQUIRE( s1.isSuccessfullyCompleted() )
12645 with expansion:
12646 true
12647
12648 PartTracker.tests.cpp:<line number>: PASSED:
12649 REQUIRE( testCase.isComplete() == false )
12650 with expansion:
12651 false == false
12652
12653 PartTracker.tests.cpp:<line number>: PASSED:
12654 REQUIRE( ctx.completedCycle() )
12655 with expansion:
12656 true
12657
12658 PartTracker.tests.cpp:<line number>: PASSED:
12659 REQUIRE( testCase.isSuccessfullyCompleted() )
12660 with expansion:
12661 true
12662
12663 -------------------------------------------------------------------------------
12664 Tracker
12665 -------------------------------------------------------------------------------
12666 PartTracker.tests.cpp:<line number>
12667 ...............................................................................
12668
12669 PartTracker.tests.cpp:<line number>: PASSED:
12670 REQUIRE( testCase.isOpen() )
12671 with expansion:
12672 true
12673
12674 PartTracker.tests.cpp:<line number>: PASSED:
12675 REQUIRE( s1.isOpen() )
12676 with expansion:
12677 true
12678
12679 -------------------------------------------------------------------------------
12680 Tracker
12681 fail one section
12682 -------------------------------------------------------------------------------
12683 PartTracker.tests.cpp:<line number>
12684 ...............................................................................
12685
12686 PartTracker.tests.cpp:<line number>: PASSED:
12687 REQUIRE( s1.isComplete() )
12688 with expansion:
12689 true
12690
12691 PartTracker.tests.cpp:<line number>: PASSED:
12692 REQUIRE( s1.isSuccessfullyCompleted() == false )
12693 with expansion:
12694 false == false
12695
12696 PartTracker.tests.cpp:<line number>: PASSED:
12697 REQUIRE( testCase.isComplete() == false )
12698 with expansion:
12699 false == false
12700
12701 PartTracker.tests.cpp:<line number>: PASSED:
12702 REQUIRE( ctx.completedCycle() )
12703 with expansion:
12704 true
12705
12706 PartTracker.tests.cpp:<line number>: PASSED:
12707 REQUIRE( testCase.isSuccessfullyCompleted() == false )
12708 with expansion:
12709 false == false
12710
12711 -------------------------------------------------------------------------------
12712 Tracker
12713 fail one section
12714 re-enter after failed section
12715 -------------------------------------------------------------------------------
12716 PartTracker.tests.cpp:<line number>
12717 ...............................................................................
12718
12719 PartTracker.tests.cpp:<line number>: PASSED:
12720 REQUIRE( testCase2.isOpen() )
12721 with expansion:
12722 true
12723
12724 PartTracker.tests.cpp:<line number>: PASSED:
12725 REQUIRE( s1b.isOpen() == false )
12726 with expansion:
12727 false == false
12728
12729 PartTracker.tests.cpp:<line number>: PASSED:
12730 REQUIRE( ctx.completedCycle() )
12731 with expansion:
12732 true
12733
12734 PartTracker.tests.cpp:<line number>: PASSED:
12735 REQUIRE( testCase.isComplete() )
12736 with expansion:
12737 true
12738
12739 PartTracker.tests.cpp:<line number>: PASSED:
12740 REQUIRE( testCase.isSuccessfullyCompleted() )
12741 with expansion:
12742 true
12743
12744 -------------------------------------------------------------------------------
12745 Tracker
12746 -------------------------------------------------------------------------------
12747 PartTracker.tests.cpp:<line number>
12748 ...............................................................................
12749
12750 PartTracker.tests.cpp:<line number>: PASSED:
12751 REQUIRE( testCase.isOpen() )
12752 with expansion:
12753 true
12754
12755 PartTracker.tests.cpp:<line number>: PASSED:
12756 REQUIRE( s1.isOpen() )
12757 with expansion:
12758 true
12759
12760 -------------------------------------------------------------------------------
12761 Tracker
12762 fail one section
12763 -------------------------------------------------------------------------------
12764 PartTracker.tests.cpp:<line number>
12765 ...............................................................................
12766
12767 PartTracker.tests.cpp:<line number>: PASSED:
12768 REQUIRE( s1.isComplete() )
12769 with expansion:
12770 true
12771
12772 PartTracker.tests.cpp:<line number>: PASSED:
12773 REQUIRE( s1.isSuccessfullyCompleted() == false )
12774 with expansion:
12775 false == false
12776
12777 PartTracker.tests.cpp:<line number>: PASSED:
12778 REQUIRE( testCase.isComplete() == false )
12779 with expansion:
12780 false == false
12781
12782 PartTracker.tests.cpp:<line number>: PASSED:
12783 REQUIRE( ctx.completedCycle() )
12784 with expansion:
12785 true
12786
12787 PartTracker.tests.cpp:<line number>: PASSED:
12788 REQUIRE( testCase.isSuccessfullyCompleted() == false )
12789 with expansion:
12790 false == false
12791
12792 -------------------------------------------------------------------------------
12793 Tracker
12794 fail one section
12795 re-enter after failed section and find next section
12796 -------------------------------------------------------------------------------
12797 PartTracker.tests.cpp:<line number>
12798 ...............................................................................
12799
12800 PartTracker.tests.cpp:<line number>: PASSED:
12801 REQUIRE( testCase2.isOpen() )
12802 with expansion:
12803 true
12804
12805 PartTracker.tests.cpp:<line number>: PASSED:
12806 REQUIRE( s1b.isOpen() == false )
12807 with expansion:
12808 false == false
12809
12810 PartTracker.tests.cpp:<line number>: PASSED:
12811 REQUIRE( s2.isOpen() )
12812 with expansion:
12813 true
12814
12815 PartTracker.tests.cpp:<line number>: PASSED:
12816 REQUIRE( ctx.completedCycle() )
12817 with expansion:
12818 true
12819
12820 PartTracker.tests.cpp:<line number>: PASSED:
12821 REQUIRE( testCase.isComplete() )
12822 with expansion:
12823 true
12824
12825 PartTracker.tests.cpp:<line number>: PASSED:
12826 REQUIRE( testCase.isSuccessfullyCompleted() )
12827 with expansion:
12828 true
12829
12830 -------------------------------------------------------------------------------
12831 Tracker
12832 -------------------------------------------------------------------------------
12833 PartTracker.tests.cpp:<line number>
12834 ...............................................................................
12835
12836 PartTracker.tests.cpp:<line number>: PASSED:
12837 REQUIRE( testCase.isOpen() )
12838 with expansion:
12839 true
12840
12841 PartTracker.tests.cpp:<line number>: PASSED:
12842 REQUIRE( s1.isOpen() )
12843 with expansion:
12844 true
12845
12846 -------------------------------------------------------------------------------
12847 Tracker
12848 successfully close one section, then find another
12849 -------------------------------------------------------------------------------
12850 PartTracker.tests.cpp:<line number>
12851 ...............................................................................
12852
12853 PartTracker.tests.cpp:<line number>: PASSED:
12854 REQUIRE( s2.isOpen() == false )
12855 with expansion:
12856 false == false
12857
12858 PartTracker.tests.cpp:<line number>: PASSED:
12859 REQUIRE( testCase.isComplete() == false )
12860 with expansion:
12861 false == false
12862
12863 -------------------------------------------------------------------------------
12864 Tracker
12865 successfully close one section, then find another
12866 Re-enter - skips S1 and enters S2
12867 -------------------------------------------------------------------------------
12868 PartTracker.tests.cpp:<line number>
12869 ...............................................................................
12870
12871 PartTracker.tests.cpp:<line number>: PASSED:
12872 REQUIRE( testCase2.isOpen() )
12873 with expansion:
12874 true
12875
12876 PartTracker.tests.cpp:<line number>: PASSED:
12877 REQUIRE( s1b.isOpen() == false )
12878 with expansion:
12879 false == false
12880
12881 PartTracker.tests.cpp:<line number>: PASSED:
12882 REQUIRE( s2b.isOpen() )
12883 with expansion:
12884 true
12885
12886 PartTracker.tests.cpp:<line number>: PASSED:
12887 REQUIRE( ctx.completedCycle() == false )
12888 with expansion:
12889 false == false
12890
12891 -------------------------------------------------------------------------------
12892 Tracker
12893 successfully close one section, then find another
12894 Re-enter - skips S1 and enters S2
12895 Successfully close S2
12896 -------------------------------------------------------------------------------
12897 PartTracker.tests.cpp:<line number>
12898 ...............................................................................
12899
12900 PartTracker.tests.cpp:<line number>: PASSED:
12901 REQUIRE( ctx.completedCycle() )
12902 with expansion:
12903 true
12904
12905 PartTracker.tests.cpp:<line number>: PASSED:
12906 REQUIRE( s2b.isSuccessfullyCompleted() )
12907 with expansion:
12908 true
12909
12910 PartTracker.tests.cpp:<line number>: PASSED:
12911 REQUIRE( testCase2.isComplete() == false )
12912 with expansion:
12913 false == false
12914
12915 PartTracker.tests.cpp:<line number>: PASSED:
12916 REQUIRE( testCase2.isSuccessfullyCompleted() )
12917 with expansion:
12918 true
12919
12920 -------------------------------------------------------------------------------
12921 Tracker
12922 -------------------------------------------------------------------------------
12923 PartTracker.tests.cpp:<line number>
12924 ...............................................................................
12925
12926 PartTracker.tests.cpp:<line number>: PASSED:
12927 REQUIRE( testCase.isOpen() )
12928 with expansion:
12929 true
12930
12931 PartTracker.tests.cpp:<line number>: PASSED:
12932 REQUIRE( s1.isOpen() )
12933 with expansion:
12934 true
12935
12936 -------------------------------------------------------------------------------
12937 Tracker
12938 successfully close one section, then find another
12939 -------------------------------------------------------------------------------
12940 PartTracker.tests.cpp:<line number>
12941 ...............................................................................
12942
12943 PartTracker.tests.cpp:<line number>: PASSED:
12944 REQUIRE( s2.isOpen() == false )
12945 with expansion:
12946 false == false
12947
12948 PartTracker.tests.cpp:<line number>: PASSED:
12949 REQUIRE( testCase.isComplete() == false )
12950 with expansion:
12951 false == false
12952
12953 -------------------------------------------------------------------------------
12954 Tracker
12955 successfully close one section, then find another
12956 Re-enter - skips S1 and enters S2
12957 -------------------------------------------------------------------------------
12958 PartTracker.tests.cpp:<line number>
12959 ...............................................................................
12960
12961 PartTracker.tests.cpp:<line number>: PASSED:
12962 REQUIRE( testCase2.isOpen() )
12963 with expansion:
12964 true
12965
12966 PartTracker.tests.cpp:<line number>: PASSED:
12967 REQUIRE( s1b.isOpen() == false )
12968 with expansion:
12969 false == false
12970
12971 PartTracker.tests.cpp:<line number>: PASSED:
12972 REQUIRE( s2b.isOpen() )
12973 with expansion:
12974 true
12975
12976 PartTracker.tests.cpp:<line number>: PASSED:
12977 REQUIRE( ctx.completedCycle() == false )
12978 with expansion:
12979 false == false
12980
12981 -------------------------------------------------------------------------------
12982 Tracker
12983 successfully close one section, then find another
12984 Re-enter - skips S1 and enters S2
12985 fail S2
12986 -------------------------------------------------------------------------------
12987 PartTracker.tests.cpp:<line number>
12988 ...............................................................................
12989
12990 PartTracker.tests.cpp:<line number>: PASSED:
12991 REQUIRE( ctx.completedCycle() )
12992 with expansion:
12993 true
12994
12995 PartTracker.tests.cpp:<line number>: PASSED:
12996 REQUIRE( s2b.isComplete() )
12997 with expansion:
12998 true
12999
13000 PartTracker.tests.cpp:<line number>: PASSED:
13001 REQUIRE( s2b.isSuccessfullyCompleted() == false )
13002 with expansion:
13003 false == false
13004
13005 PartTracker.tests.cpp:<line number>: PASSED:
13006 REQUIRE( testCase2.isSuccessfullyCompleted() == false )
13007 with expansion:
13008 false == false
13009
13010 PartTracker.tests.cpp:<line number>: PASSED:
13011 REQUIRE( testCase3.isOpen() )
13012 with expansion:
13013 true
13014
13015 PartTracker.tests.cpp:<line number>: PASSED:
13016 REQUIRE( s1c.isOpen() == false )
13017 with expansion:
13018 false == false
13019
13020 PartTracker.tests.cpp:<line number>: PASSED:
13021 REQUIRE( s2c.isOpen() == false )
13022 with expansion:
13023 false == false
13024
13025 PartTracker.tests.cpp:<line number>: PASSED:
13026 REQUIRE( testCase3.isSuccessfullyCompleted() )
13027 with expansion:
13028 true
13029
13030 -------------------------------------------------------------------------------
13031 Tracker
13032 -------------------------------------------------------------------------------
13033 PartTracker.tests.cpp:<line number>
13034 ...............................................................................
13035
13036 PartTracker.tests.cpp:<line number>: PASSED:
13037 REQUIRE( testCase.isOpen() )
13038 with expansion:
13039 true
13040
13041 PartTracker.tests.cpp:<line number>: PASSED:
13042 REQUIRE( s1.isOpen() )
13043 with expansion:
13044 true
13045
13046 -------------------------------------------------------------------------------
13047 Tracker
13048 open a nested section
13049 -------------------------------------------------------------------------------
13050 PartTracker.tests.cpp:<line number>
13051 ...............................................................................
13052
13053 PartTracker.tests.cpp:<line number>: PASSED:
13054 REQUIRE( s2.isOpen() )
13055 with expansion:
13056 true
13057
13058 PartTracker.tests.cpp:<line number>: PASSED:
13059 REQUIRE( s2.isComplete() )
13060 with expansion:
13061 true
13062
13063 PartTracker.tests.cpp:<line number>: PASSED:
13064 REQUIRE( s1.isComplete() == false )
13065 with expansion:
13066 false == false
13067
13068 PartTracker.tests.cpp:<line number>: PASSED:
13069 REQUIRE( s1.isComplete() )
13070 with expansion:
13071 true
13072
13073 PartTracker.tests.cpp:<line number>: PASSED:
13074 REQUIRE( testCase.isComplete() == false )
13075 with expansion:
13076 false == false
13077
13078 PartTracker.tests.cpp:<line number>: PASSED:
13079 REQUIRE( testCase.isComplete() )
13080 with expansion:
13081 true
13082
13083 -------------------------------------------------------------------------------
13084 Trim strings
13085 -------------------------------------------------------------------------------
13086 StringManip.tests.cpp:<line number>
13087 ...............................................................................
13088
13089 StringManip.tests.cpp:<line number>: PASSED:
13090 REQUIRE( trim(std::string(no_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(leading_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(trailing_whitespace)) == 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(std::string(whitespace_at_both_ends)) == 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(no_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(leading_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(trailing_whitespace)) == StringRef(no_whitespace) )
13133 with expansion:
13134 There is no extra whitespace here
13135 ==
13136 There is no extra whitespace here
13137
13138 StringManip.tests.cpp:<line number>: PASSED:
13139 REQUIRE( trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace) )
13140 with expansion:
13141 There is no extra whitespace here
13142 ==
13143 There is no extra whitespace here
13144
13145 -------------------------------------------------------------------------------
13146 Type conversions of RangeEquals and similar
13147 Container conversions
13148 Two equal containers of different container types
13149 -------------------------------------------------------------------------------
13150 MatchersRanges.tests.cpp:<line number>
13151 ...............................................................................
13152
13153 MatchersRanges.tests.cpp:<line number>: PASSED:
13154 CHECK_THAT( array_int_a, RangeEquals( c_array ) )
13155 with expansion:
13156 { 1, 2, 3 } elements are { 1, 2, 3 }
13157
13158 MatchersRanges.tests.cpp:<line number>: PASSED:
13159 CHECK_THAT( array_int_a, UnorderedRangeEquals( c_array ) )
13160 with expansion:
13161 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
13162
13163 -------------------------------------------------------------------------------
13164 Type conversions of RangeEquals and similar
13165 Container conversions
13166 Two equal containers of different container types (differ in array N)
13167 -------------------------------------------------------------------------------
13168 MatchersRanges.tests.cpp:<line number>
13169 ...............................................................................
13170
13171 MatchersRanges.tests.cpp:<line number>: PASSED:
13172 CHECK_THAT( array_int_3, !RangeEquals( array_int_4 ) )
13173 with expansion:
13174 { 1, 2, 3 } not elements are { 1, 2, 3, 4 }
13175
13176 MatchersRanges.tests.cpp:<line number>: PASSED:
13177 CHECK_THAT( array_int_3, !UnorderedRangeEquals( array_int_4 ) )
13178 with expansion:
13179 { 1, 2, 3 } not unordered elements are { 1, 2, 3, 4 }
13180
13181 -------------------------------------------------------------------------------
13182 Type conversions of RangeEquals and similar
13183 Container conversions
13184 Two equal containers of different container types and value types
13185 -------------------------------------------------------------------------------
13186 MatchersRanges.tests.cpp:<line number>
13187 ...............................................................................
13188
13189 MatchersRanges.tests.cpp:<line number>: PASSED:
13190 CHECK_THAT( array_int_a, RangeEquals( vector_char_a ) )
13191 with expansion:
13192 { 1, 2, 3 } elements are { 1, 2, 3 }
13193
13194 MatchersRanges.tests.cpp:<line number>: PASSED:
13195 CHECK_THAT( array_int_a, UnorderedRangeEquals( vector_char_a ) )
13196 with expansion:
13197 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
13198
13199 -------------------------------------------------------------------------------
13200 Type conversions of RangeEquals and similar
13201 Container conversions
13202 Two equal containers, one random access, one not
13203 -------------------------------------------------------------------------------
13204 MatchersRanges.tests.cpp:<line number>
13205 ...............................................................................
13206
13207 MatchersRanges.tests.cpp:<line number>: PASSED:
13208 with message:
13209 ContainerIsRandomAccess( array_int_a ) != ContainerIsRandomAccess(
13210 list_char_a )
13211
13212 MatchersRanges.tests.cpp:<line number>: PASSED:
13213 CHECK_THAT( array_int_a, RangeEquals( list_char_a ) )
13214 with expansion:
13215 { 1, 2, 3 } elements are { 1, 2, 3 }
13216
13217 MatchersRanges.tests.cpp:<line number>: PASSED:
13218 CHECK_THAT( array_int_a, UnorderedRangeEquals( list_char_a ) )
13219 with expansion:
13220 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
13221
13222 -------------------------------------------------------------------------------
13223 Type conversions of RangeEquals and similar
13224 Value type
13225 Two equal containers of different value types
13226 -------------------------------------------------------------------------------
13227 MatchersRanges.tests.cpp:<line number>
13228 ...............................................................................
13229
13230 MatchersRanges.tests.cpp:<line number>: PASSED:
13231 CHECK_THAT( vector_int_a, RangeEquals( vector_char_a ) )
13232 with expansion:
13233 { 1, 2, 3 } elements are { 1, 2, 3 }
13234
13235 MatchersRanges.tests.cpp:<line number>: PASSED:
13236 CHECK_THAT( vector_int_a, UnorderedRangeEquals( vector_char_a ) )
13237 with expansion:
13238 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
13239
13240 -------------------------------------------------------------------------------
13241 Type conversions of RangeEquals and similar
13242 Value type
13243 Two non-equal containers of different value types
13244 -------------------------------------------------------------------------------
13245 MatchersRanges.tests.cpp:<line number>
13246 ...............................................................................
13247
13248 MatchersRanges.tests.cpp:<line number>: PASSED:
13249 CHECK_THAT( vector_int_a, !RangeEquals( vector_char_b ) )
13250 with expansion:
13251 { 1, 2, 3 } not elements are { 1, 2, 2 }
13252
13253 MatchersRanges.tests.cpp:<line number>: PASSED:
13254 CHECK_THAT( vector_int_a, !UnorderedRangeEquals( vector_char_b ) )
13255 with expansion:
13256 { 1, 2, 3 } not unordered elements are { 1, 2, 2 }
13257
13258 -------------------------------------------------------------------------------
13259 Type conversions of RangeEquals and similar
13260 Ranges with begin that needs ADL
13261 -------------------------------------------------------------------------------
13262 MatchersRanges.tests.cpp:<line number>
13263 ...............................................................................
13264
13265 MatchersRanges.tests.cpp:<line number>: PASSED:
13266 REQUIRE_THAT( a, !RangeEquals( b ) )
13267 with expansion:
13268 { 1, 2, 3 } not elements are { 3, 2, 1 }
13269
13270 MatchersRanges.tests.cpp:<line number>: PASSED:
13271 REQUIRE_THAT( a, UnorderedRangeEquals( b ) )
13272 with expansion:
13273 { 1, 2, 3 } unordered elements are { 3, 2, 1 }
13274
13275 -------------------------------------------------------------------------------
13276 Type conversions of RangeEquals and similar
13277 Custom predicate
13278 Two equal non-empty containers (close enough)
13279 -------------------------------------------------------------------------------
13280 MatchersRanges.tests.cpp:<line number>
13281 ...............................................................................
13282
13283 MatchersRanges.tests.cpp:<line number>: PASSED:
13284 CHECK_THAT( vector_a, RangeEquals( array_a_plus_1, close_enough ) )
13285 with expansion:
13286 { 1, 2, 3 } elements are { 2, 3, 4 }
13287
13288 MatchersRanges.tests.cpp:<line number>: PASSED:
13289 CHECK_THAT( vector_a, UnorderedRangeEquals( array_a_plus_1, close_enough ) )
13290 with expansion:
13291 { 1, 2, 3 } unordered elements are { 2, 3, 4 }
13292
13293 -------------------------------------------------------------------------------
13294 Unexpected exceptions can be translated
13295 -------------------------------------------------------------------------------
13296 Exception.tests.cpp:<line number>
13297 ...............................................................................
13298
13299 Exception.tests.cpp:<line number>: FAILED:
13300 due to unexpected exception with message:
13301 3.14
13302
13303 -------------------------------------------------------------------------------
13304 Upcasting special member functions
13305 Move constructor
13306 -------------------------------------------------------------------------------
13307 UniquePtr.tests.cpp:<line number>
13308 ...............................................................................
13309
13310 UniquePtr.tests.cpp:<line number>: PASSED:
13311 REQUIRE( bptr->i == 3 )
13312 with expansion:
13313 3 == 3
13314
13315 -------------------------------------------------------------------------------
13316 Upcasting special member functions
13317 move assignment
13318 -------------------------------------------------------------------------------
13319 UniquePtr.tests.cpp:<line number>
13320 ...............................................................................
13321
13322 UniquePtr.tests.cpp:<line number>: PASSED:
13323 REQUIRE( bptr->i == 3 )
13324 with expansion:
13325 3 == 3
13326
13327 -------------------------------------------------------------------------------
13328 Usage of AllMatch range matcher
13329 Basic usage
13330 -------------------------------------------------------------------------------
13331 MatchersRanges.tests.cpp:<line number>
13332 ...............................................................................
13333
13334 MatchersRanges.tests.cpp:<line number>: PASSED:
13335 REQUIRE_THAT( data, AllMatch(SizeIs(5)) )
13336 with expansion:
13337 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13338 }, { 1, 0, 0, -1, 5 } } all match has size == 5
13339
13340 MatchersRanges.tests.cpp:<line number>: PASSED:
13341 REQUIRE_THAT( data, !AllMatch(Contains(0) && Contains(1)) )
13342 with expansion:
13343 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13344 }, { 1, 0, 0, -1, 5 } } not all match ( contains element 0 and contains
13345 element 1 )
13346
13347 -------------------------------------------------------------------------------
13348 Usage of AllMatch range matcher
13349 Type requires ADL found begin and end
13350 -------------------------------------------------------------------------------
13351 MatchersRanges.tests.cpp:<line number>
13352 ...............................................................................
13353
13354 MatchersRanges.tests.cpp:<line number>: PASSED:
13355 REQUIRE_THAT( needs_adl, AllMatch( Predicate<int>( []( int elem ) { return elem < 6; } ) ) )
13356 with expansion:
13357 { 1, 2, 3, 4, 5 } all match matches undescribed predicate
13358
13359 -------------------------------------------------------------------------------
13360 Usage of AllMatch range matcher
13361 Shortcircuiting
13362 All are read
13363 -------------------------------------------------------------------------------
13364 MatchersRanges.tests.cpp:<line number>
13365 ...............................................................................
13366
13367 MatchersRanges.tests.cpp:<line number>: PASSED:
13368 REQUIRE_THAT( mocked, allMatch )
13369 with expansion:
13370 { 1, 2, 3, 4, 5 } all match matches undescribed predicate
13371
13372 MatchersRanges.tests.cpp:<line number>: PASSED:
13373 REQUIRE( mocked.m_derefed[0] )
13374 with expansion:
13375 true
13376
13377 MatchersRanges.tests.cpp:<line number>: PASSED:
13378 REQUIRE( mocked.m_derefed[1] )
13379 with expansion:
13380 true
13381
13382 MatchersRanges.tests.cpp:<line number>: PASSED:
13383 REQUIRE( mocked.m_derefed[2] )
13384 with expansion:
13385 true
13386
13387 MatchersRanges.tests.cpp:<line number>: PASSED:
13388 REQUIRE( mocked.m_derefed[3] )
13389 with expansion:
13390 true
13391
13392 MatchersRanges.tests.cpp:<line number>: PASSED:
13393 REQUIRE( mocked.m_derefed[4] )
13394 with expansion:
13395 true
13396
13397 -------------------------------------------------------------------------------
13398 Usage of AllMatch range matcher
13399 Shortcircuiting
13400 Short-circuited
13401 -------------------------------------------------------------------------------
13402 MatchersRanges.tests.cpp:<line number>
13403 ...............................................................................
13404
13405 MatchersRanges.tests.cpp:<line number>: PASSED:
13406 REQUIRE_THAT( mocked, !allMatch )
13407 with expansion:
13408 { 1, 2, 3, 4, 5 } not all match matches undescribed predicate
13409
13410 MatchersRanges.tests.cpp:<line number>: PASSED:
13411 REQUIRE( mocked.m_derefed[0] )
13412 with expansion:
13413 true
13414
13415 MatchersRanges.tests.cpp:<line number>: PASSED:
13416 REQUIRE( mocked.m_derefed[1] )
13417 with expansion:
13418 true
13419
13420 MatchersRanges.tests.cpp:<line number>: PASSED:
13421 REQUIRE( mocked.m_derefed[2] )
13422 with expansion:
13423 true
13424
13425 MatchersRanges.tests.cpp:<line number>: PASSED:
13426 REQUIRE_FALSE( mocked.m_derefed[3] )
13427 with expansion:
13428 !false
13429
13430 MatchersRanges.tests.cpp:<line number>: PASSED:
13431 REQUIRE_FALSE( mocked.m_derefed[4] )
13432 with expansion:
13433 !false
13434
13435 -------------------------------------------------------------------------------
13436 Usage of AllTrue range matcher
13437 Basic usage
13438 All true evaluates to true
13439 -------------------------------------------------------------------------------
13440 MatchersRanges.tests.cpp:<line number>
13441 ...............................................................................
13442
13443 MatchersRanges.tests.cpp:<line number>: PASSED:
13444 REQUIRE_THAT( data, AllTrue() )
13445 with expansion:
13446 { true, true, true, true, true } contains only true
13447
13448 -------------------------------------------------------------------------------
13449 Usage of AllTrue range matcher
13450 Basic usage
13451 Empty evaluates to true
13452 -------------------------------------------------------------------------------
13453 MatchersRanges.tests.cpp:<line number>
13454 ...............................................................................
13455
13456 MatchersRanges.tests.cpp:<line number>: PASSED:
13457 REQUIRE_THAT( data, AllTrue() )
13458 with expansion:
13459 { } contains only true
13460
13461 -------------------------------------------------------------------------------
13462 Usage of AllTrue range matcher
13463 Basic usage
13464 One false evaluates to false
13465 -------------------------------------------------------------------------------
13466 MatchersRanges.tests.cpp:<line number>
13467 ...............................................................................
13468
13469 MatchersRanges.tests.cpp:<line number>: PASSED:
13470 REQUIRE_THAT( data, !AllTrue() )
13471 with expansion:
13472 { true, true, false, true, true } not contains only true
13473
13474 -------------------------------------------------------------------------------
13475 Usage of AllTrue range matcher
13476 Basic usage
13477 All false evaluates to false
13478 -------------------------------------------------------------------------------
13479 MatchersRanges.tests.cpp:<line number>
13480 ...............................................................................
13481
13482 MatchersRanges.tests.cpp:<line number>: PASSED:
13483 REQUIRE_THAT( data, !AllTrue() )
13484 with expansion:
13485 { false, false, false, false, false } not contains only true
13486
13487 -------------------------------------------------------------------------------
13488 Usage of AllTrue range matcher
13489 Contained type is convertible to bool
13490 All true evaluates to true
13491 -------------------------------------------------------------------------------
13492 MatchersRanges.tests.cpp:<line number>
13493 ...............................................................................
13494
13495 MatchersRanges.tests.cpp:<line number>: PASSED:
13496 REQUIRE_THAT( data, AllTrue() )
13497 with expansion:
13498 { true, true, true, true, true } contains only true
13499
13500 -------------------------------------------------------------------------------
13501 Usage of AllTrue range matcher
13502 Contained type is convertible to bool
13503 One false evaluates to false
13504 -------------------------------------------------------------------------------
13505 MatchersRanges.tests.cpp:<line number>
13506 ...............................................................................
13507
13508 MatchersRanges.tests.cpp:<line number>: PASSED:
13509 REQUIRE_THAT( data, !AllTrue() )
13510 with expansion:
13511 { true, true, false, true, true } not contains only true
13512
13513 -------------------------------------------------------------------------------
13514 Usage of AllTrue range matcher
13515 Contained type is convertible to bool
13516 All false evaluates to false
13517 -------------------------------------------------------------------------------
13518 MatchersRanges.tests.cpp:<line number>
13519 ...............................................................................
13520
13521 MatchersRanges.tests.cpp:<line number>: PASSED:
13522 REQUIRE_THAT( data, !AllTrue() )
13523 with expansion:
13524 { false, false, false, false, false } not contains only true
13525
13526 -------------------------------------------------------------------------------
13527 Usage of AllTrue range matcher
13528 Shortcircuiting
13529 All are read
13530 -------------------------------------------------------------------------------
13531 MatchersRanges.tests.cpp:<line number>
13532 ...............................................................................
13533
13534 MatchersRanges.tests.cpp:<line number>: PASSED:
13535 REQUIRE_THAT( mocked, AllTrue() )
13536 with expansion:
13537 { true, true, true, true, true } contains only true
13538
13539 MatchersRanges.tests.cpp:<line number>: PASSED:
13540 REQUIRE( mocked.m_derefed[0] )
13541 with expansion:
13542 true
13543
13544 MatchersRanges.tests.cpp:<line number>: PASSED:
13545 REQUIRE( mocked.m_derefed[1] )
13546 with expansion:
13547 true
13548
13549 MatchersRanges.tests.cpp:<line number>: PASSED:
13550 REQUIRE( mocked.m_derefed[2] )
13551 with expansion:
13552 true
13553
13554 MatchersRanges.tests.cpp:<line number>: PASSED:
13555 REQUIRE( mocked.m_derefed[3] )
13556 with expansion:
13557 true
13558
13559 MatchersRanges.tests.cpp:<line number>: PASSED:
13560 REQUIRE( mocked.m_derefed[4] )
13561 with expansion:
13562 true
13563
13564 -------------------------------------------------------------------------------
13565 Usage of AllTrue range matcher
13566 Shortcircuiting
13567 Short-circuited
13568 -------------------------------------------------------------------------------
13569 MatchersRanges.tests.cpp:<line number>
13570 ...............................................................................
13571
13572 MatchersRanges.tests.cpp:<line number>: PASSED:
13573 REQUIRE_THAT( mocked, !AllTrue() )
13574 with expansion:
13575 { true, true, false, true, true } not contains only true
13576
13577 MatchersRanges.tests.cpp:<line number>: PASSED:
13578 REQUIRE( mocked.m_derefed[0] )
13579 with expansion:
13580 true
13581
13582 MatchersRanges.tests.cpp:<line number>: PASSED:
13583 REQUIRE( mocked.m_derefed[1] )
13584 with expansion:
13585 true
13586
13587 MatchersRanges.tests.cpp:<line number>: PASSED:
13588 REQUIRE( mocked.m_derefed[2] )
13589 with expansion:
13590 true
13591
13592 MatchersRanges.tests.cpp:<line number>: PASSED:
13593 REQUIRE_FALSE( mocked.m_derefed[3] )
13594 with expansion:
13595 !false
13596
13597 MatchersRanges.tests.cpp:<line number>: PASSED:
13598 REQUIRE_FALSE( mocked.m_derefed[4] )
13599 with expansion:
13600 !false
13601
13602 -------------------------------------------------------------------------------
13603 Usage of AnyMatch range matcher
13604 Basic usage
13605 -------------------------------------------------------------------------------
13606 MatchersRanges.tests.cpp:<line number>
13607 ...............................................................................
13608
13609 MatchersRanges.tests.cpp:<line number>: PASSED:
13610 REQUIRE_THAT( data, AnyMatch(SizeIs(5)) )
13611 with expansion:
13612 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13613 }, { 1, 0, 0, -1, 5 } } any match has size == 5
13614
13615 MatchersRanges.tests.cpp:<line number>: PASSED:
13616 REQUIRE_THAT( data, !AnyMatch(Contains(0) && Contains(10)) )
13617 with expansion:
13618 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13619 }, { 1, 0, 0, -1, 5 } } not any match ( contains element 0 and contains
13620 element 10 )
13621
13622 -------------------------------------------------------------------------------
13623 Usage of AnyMatch range matcher
13624 Type requires ADL found begin and end
13625 -------------------------------------------------------------------------------
13626 MatchersRanges.tests.cpp:<line number>
13627 ...............................................................................
13628
13629 MatchersRanges.tests.cpp:<line number>: PASSED:
13630 REQUIRE_THAT( needs_adl, AnyMatch( Predicate<int>( []( int elem ) { return elem < 3; } ) ) )
13631 with expansion:
13632 { 1, 2, 3, 4, 5 } any match matches undescribed predicate
13633
13634 -------------------------------------------------------------------------------
13635 Usage of AnyMatch range matcher
13636 Shortcircuiting
13637 All are read
13638 -------------------------------------------------------------------------------
13639 MatchersRanges.tests.cpp:<line number>
13640 ...............................................................................
13641
13642 MatchersRanges.tests.cpp:<line number>: PASSED:
13643 REQUIRE_THAT( mocked, !anyMatch )
13644 with expansion:
13645 { 1, 2, 3, 4, 5 } not any match matches undescribed predicate
13646
13647 MatchersRanges.tests.cpp:<line number>: PASSED:
13648 REQUIRE( mocked.m_derefed[0] )
13649 with expansion:
13650 true
13651
13652 MatchersRanges.tests.cpp:<line number>: PASSED:
13653 REQUIRE( mocked.m_derefed[1] )
13654 with expansion:
13655 true
13656
13657 MatchersRanges.tests.cpp:<line number>: PASSED:
13658 REQUIRE( mocked.m_derefed[2] )
13659 with expansion:
13660 true
13661
13662 MatchersRanges.tests.cpp:<line number>: PASSED:
13663 REQUIRE( mocked.m_derefed[3] )
13664 with expansion:
13665 true
13666
13667 MatchersRanges.tests.cpp:<line number>: PASSED:
13668 REQUIRE( mocked.m_derefed[4] )
13669 with expansion:
13670 true
13671
13672 -------------------------------------------------------------------------------
13673 Usage of AnyMatch range matcher
13674 Shortcircuiting
13675 Short-circuited
13676 -------------------------------------------------------------------------------
13677 MatchersRanges.tests.cpp:<line number>
13678 ...............................................................................
13679
13680 MatchersRanges.tests.cpp:<line number>: PASSED:
13681 REQUIRE_THAT( mocked, anyMatch )
13682 with expansion:
13683 { 1, 2, 3, 4, 5 } any match matches undescribed predicate
13684
13685 MatchersRanges.tests.cpp:<line number>: PASSED:
13686 REQUIRE( mocked.m_derefed[0] )
13687 with expansion:
13688 true
13689
13690 MatchersRanges.tests.cpp:<line number>: PASSED:
13691 REQUIRE_FALSE( mocked.m_derefed[1] )
13692 with expansion:
13693 !false
13694
13695 MatchersRanges.tests.cpp:<line number>: PASSED:
13696 REQUIRE_FALSE( mocked.m_derefed[2] )
13697 with expansion:
13698 !false
13699
13700 MatchersRanges.tests.cpp:<line number>: PASSED:
13701 REQUIRE_FALSE( mocked.m_derefed[3] )
13702 with expansion:
13703 !false
13704
13705 MatchersRanges.tests.cpp:<line number>: PASSED:
13706 REQUIRE_FALSE( mocked.m_derefed[4] )
13707 with expansion:
13708 !false
13709
13710 -------------------------------------------------------------------------------
13711 Usage of AnyTrue range matcher
13712 Basic usage
13713 All true evaluates to true
13714 -------------------------------------------------------------------------------
13715 MatchersRanges.tests.cpp:<line number>
13716 ...............................................................................
13717
13718 MatchersRanges.tests.cpp:<line number>: PASSED:
13719 REQUIRE_THAT( data, AnyTrue() )
13720 with expansion:
13721 { true, true, true, true, true } contains at least one true
13722
13723 -------------------------------------------------------------------------------
13724 Usage of AnyTrue range matcher
13725 Basic usage
13726 Empty evaluates to false
13727 -------------------------------------------------------------------------------
13728 MatchersRanges.tests.cpp:<line number>
13729 ...............................................................................
13730
13731 MatchersRanges.tests.cpp:<line number>: PASSED:
13732 REQUIRE_THAT( data, !AnyTrue() )
13733 with expansion:
13734 { } not contains at least one true
13735
13736 -------------------------------------------------------------------------------
13737 Usage of AnyTrue range matcher
13738 Basic usage
13739 One true evaluates to true
13740 -------------------------------------------------------------------------------
13741 MatchersRanges.tests.cpp:<line number>
13742 ...............................................................................
13743
13744 MatchersRanges.tests.cpp:<line number>: PASSED:
13745 REQUIRE_THAT( data, AnyTrue() )
13746 with expansion:
13747 { false, false, true, false, false } contains at least one true
13748
13749 -------------------------------------------------------------------------------
13750 Usage of AnyTrue range matcher
13751 Basic usage
13752 All false evaluates to false
13753 -------------------------------------------------------------------------------
13754 MatchersRanges.tests.cpp:<line number>
13755 ...............................................................................
13756
13757 MatchersRanges.tests.cpp:<line number>: PASSED:
13758 REQUIRE_THAT( data, !AnyTrue() )
13759 with expansion:
13760 { false, false, false, false, false } not contains at least one true
13761
13762 -------------------------------------------------------------------------------
13763 Usage of AnyTrue range matcher
13764 Contained type is convertible to bool
13765 All true evaluates to true
13766 -------------------------------------------------------------------------------
13767 MatchersRanges.tests.cpp:<line number>
13768 ...............................................................................
13769
13770 MatchersRanges.tests.cpp:<line number>: PASSED:
13771 REQUIRE_THAT( data, AnyTrue() )
13772 with expansion:
13773 { true, true, true, true, true } contains at least one true
13774
13775 -------------------------------------------------------------------------------
13776 Usage of AnyTrue range matcher
13777 Contained type is convertible to bool
13778 One true evaluates to true
13779 -------------------------------------------------------------------------------
13780 MatchersRanges.tests.cpp:<line number>
13781 ...............................................................................
13782
13783 MatchersRanges.tests.cpp:<line number>: PASSED:
13784 REQUIRE_THAT( data, AnyTrue() )
13785 with expansion:
13786 { false, false, true, false, false } contains at least one true
13787
13788 -------------------------------------------------------------------------------
13789 Usage of AnyTrue range matcher
13790 Contained type is convertible to bool
13791 All false evaluates to false
13792 -------------------------------------------------------------------------------
13793 MatchersRanges.tests.cpp:<line number>
13794 ...............................................................................
13795
13796 MatchersRanges.tests.cpp:<line number>: PASSED:
13797 REQUIRE_THAT( data, !AnyTrue() )
13798 with expansion:
13799 { false, false, false, false, false } not contains at least one true
13800
13801 -------------------------------------------------------------------------------
13802 Usage of AnyTrue range matcher
13803 Shortcircuiting
13804 All are read
13805 -------------------------------------------------------------------------------
13806 MatchersRanges.tests.cpp:<line number>
13807 ...............................................................................
13808
13809 MatchersRanges.tests.cpp:<line number>: PASSED:
13810 REQUIRE_THAT( mocked, AnyTrue() )
13811 with expansion:
13812 { false, false, false, false, true } contains at least one true
13813
13814 MatchersRanges.tests.cpp:<line number>: PASSED:
13815 REQUIRE( mocked.m_derefed[0] )
13816 with expansion:
13817 true
13818
13819 MatchersRanges.tests.cpp:<line number>: PASSED:
13820 REQUIRE( mocked.m_derefed[1] )
13821 with expansion:
13822 true
13823
13824 MatchersRanges.tests.cpp:<line number>: PASSED:
13825 REQUIRE( mocked.m_derefed[2] )
13826 with expansion:
13827 true
13828
13829 MatchersRanges.tests.cpp:<line number>: PASSED:
13830 REQUIRE( mocked.m_derefed[3] )
13831 with expansion:
13832 true
13833
13834 MatchersRanges.tests.cpp:<line number>: PASSED:
13835 REQUIRE( mocked.m_derefed[4] )
13836 with expansion:
13837 true
13838
13839 -------------------------------------------------------------------------------
13840 Usage of AnyTrue range matcher
13841 Shortcircuiting
13842 Short-circuited
13843 -------------------------------------------------------------------------------
13844 MatchersRanges.tests.cpp:<line number>
13845 ...............................................................................
13846
13847 MatchersRanges.tests.cpp:<line number>: PASSED:
13848 REQUIRE_THAT( mocked, AnyTrue() )
13849 with expansion:
13850 { false, false, true, true, true } contains at least one true
13851
13852 MatchersRanges.tests.cpp:<line number>: PASSED:
13853 REQUIRE( mocked.m_derefed[0] )
13854 with expansion:
13855 true
13856
13857 MatchersRanges.tests.cpp:<line number>: PASSED:
13858 REQUIRE( mocked.m_derefed[1] )
13859 with expansion:
13860 true
13861
13862 MatchersRanges.tests.cpp:<line number>: PASSED:
13863 REQUIRE( mocked.m_derefed[2] )
13864 with expansion:
13865 true
13866
13867 MatchersRanges.tests.cpp:<line number>: PASSED:
13868 REQUIRE_FALSE( mocked.m_derefed[3] )
13869 with expansion:
13870 !false
13871
13872 MatchersRanges.tests.cpp:<line number>: PASSED:
13873 REQUIRE_FALSE( mocked.m_derefed[4] )
13874 with expansion:
13875 !false
13876
13877 -------------------------------------------------------------------------------
13878 Usage of NoneMatch range matcher
13879 Basic usage
13880 -------------------------------------------------------------------------------
13881 MatchersRanges.tests.cpp:<line number>
13882 ...............................................................................
13883
13884 MatchersRanges.tests.cpp:<line number>: PASSED:
13885 REQUIRE_THAT( data, NoneMatch(SizeIs(6)) )
13886 with expansion:
13887 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13888 }, { 1, 0, 0, -1, 5 } } none match has size == 6
13889
13890 MatchersRanges.tests.cpp:<line number>: PASSED:
13891 REQUIRE_THAT( data, !NoneMatch(Contains(0) && Contains(1)) )
13892 with expansion:
13893 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
13894 }, { 1, 0, 0, -1, 5 } } not none match ( contains element 0 and contains
13895 element 1 )
13896
13897 -------------------------------------------------------------------------------
13898 Usage of NoneMatch range matcher
13899 Type requires ADL found begin and end
13900 -------------------------------------------------------------------------------
13901 MatchersRanges.tests.cpp:<line number>
13902 ...............................................................................
13903
13904 MatchersRanges.tests.cpp:<line number>: PASSED:
13905 REQUIRE_THAT( needs_adl, NoneMatch( Predicate<int>( []( int elem ) { return elem > 6; } ) ) )
13906 with expansion:
13907 { 1, 2, 3, 4, 5 } none match matches undescribed predicate
13908
13909 -------------------------------------------------------------------------------
13910 Usage of NoneMatch range matcher
13911 Shortcircuiting
13912 All are read
13913 -------------------------------------------------------------------------------
13914 MatchersRanges.tests.cpp:<line number>
13915 ...............................................................................
13916
13917 MatchersRanges.tests.cpp:<line number>: PASSED:
13918 REQUIRE_THAT( mocked, noneMatch )
13919 with expansion:
13920 { 1, 2, 3, 4, 5 } none match matches undescribed predicate
13921
13922 MatchersRanges.tests.cpp:<line number>: PASSED:
13923 REQUIRE( mocked.m_derefed[0] )
13924 with expansion:
13925 true
13926
13927 MatchersRanges.tests.cpp:<line number>: PASSED:
13928 REQUIRE( mocked.m_derefed[1] )
13929 with expansion:
13930 true
13931
13932 MatchersRanges.tests.cpp:<line number>: PASSED:
13933 REQUIRE( mocked.m_derefed[2] )
13934 with expansion:
13935 true
13936
13937 MatchersRanges.tests.cpp:<line number>: PASSED:
13938 REQUIRE( mocked.m_derefed[3] )
13939 with expansion:
13940 true
13941
13942 MatchersRanges.tests.cpp:<line number>: PASSED:
13943 REQUIRE( mocked.m_derefed[4] )
13944 with expansion:
13945 true
13946
13947 -------------------------------------------------------------------------------
13948 Usage of NoneMatch range matcher
13949 Shortcircuiting
13950 Short-circuited
13951 -------------------------------------------------------------------------------
13952 MatchersRanges.tests.cpp:<line number>
13953 ...............................................................................
13954
13955 MatchersRanges.tests.cpp:<line number>: PASSED:
13956 REQUIRE_THAT( mocked, !noneMatch )
13957 with expansion:
13958 { 1, 2, 3, 4, 5 } not none match matches undescribed predicate
13959
13960 MatchersRanges.tests.cpp:<line number>: PASSED:
13961 REQUIRE( mocked.m_derefed[0] )
13962 with expansion:
13963 true
13964
13965 MatchersRanges.tests.cpp:<line number>: PASSED:
13966 REQUIRE_FALSE( mocked.m_derefed[1] )
13967 with expansion:
13968 !false
13969
13970 MatchersRanges.tests.cpp:<line number>: PASSED:
13971 REQUIRE_FALSE( mocked.m_derefed[2] )
13972 with expansion:
13973 !false
13974
13975 MatchersRanges.tests.cpp:<line number>: PASSED:
13976 REQUIRE_FALSE( mocked.m_derefed[3] )
13977 with expansion:
13978 !false
13979
13980 MatchersRanges.tests.cpp:<line number>: PASSED:
13981 REQUIRE_FALSE( mocked.m_derefed[4] )
13982 with expansion:
13983 !false
13984
13985 -------------------------------------------------------------------------------
13986 Usage of NoneTrue range matcher
13987 Basic usage
13988 All true evaluates to false
13989 -------------------------------------------------------------------------------
13990 MatchersRanges.tests.cpp:<line number>
13991 ...............................................................................
13992
13993 MatchersRanges.tests.cpp:<line number>: PASSED:
13994 REQUIRE_THAT( data, !NoneTrue() )
13995 with expansion:
13996 { true, true, true, true, true } not contains no true
13997
13998 -------------------------------------------------------------------------------
13999 Usage of NoneTrue range matcher
14000 Basic usage
14001 Empty evaluates to true
14002 -------------------------------------------------------------------------------
14003 MatchersRanges.tests.cpp:<line number>
14004 ...............................................................................
14005
14006 MatchersRanges.tests.cpp:<line number>: PASSED:
14007 REQUIRE_THAT( data, NoneTrue() )
14008 with expansion:
14009 { } contains no true
14010
14011 -------------------------------------------------------------------------------
14012 Usage of NoneTrue range matcher
14013 Basic usage
14014 One true evaluates to false
14015 -------------------------------------------------------------------------------
14016 MatchersRanges.tests.cpp:<line number>
14017 ...............................................................................
14018
14019 MatchersRanges.tests.cpp:<line number>: PASSED:
14020 REQUIRE_THAT( data, !NoneTrue() )
14021 with expansion:
14022 { false, false, true, false, false } not contains no true
14023
14024 -------------------------------------------------------------------------------
14025 Usage of NoneTrue range matcher
14026 Basic usage
14027 All false evaluates to true
14028 -------------------------------------------------------------------------------
14029 MatchersRanges.tests.cpp:<line number>
14030 ...............................................................................
14031
14032 MatchersRanges.tests.cpp:<line number>: PASSED:
14033 REQUIRE_THAT( data, NoneTrue() )
14034 with expansion:
14035 { false, false, false, false, false } contains no true
14036
14037 -------------------------------------------------------------------------------
14038 Usage of NoneTrue range matcher
14039 Contained type is convertible to bool
14040 All true evaluates to false
14041 -------------------------------------------------------------------------------
14042 MatchersRanges.tests.cpp:<line number>
14043 ...............................................................................
14044
14045 MatchersRanges.tests.cpp:<line number>: PASSED:
14046 REQUIRE_THAT( data, !NoneTrue() )
14047 with expansion:
14048 { true, true, true, true, true } not contains no true
14049
14050 -------------------------------------------------------------------------------
14051 Usage of NoneTrue range matcher
14052 Contained type is convertible to bool
14053 One true evaluates to false
14054 -------------------------------------------------------------------------------
14055 MatchersRanges.tests.cpp:<line number>
14056 ...............................................................................
14057
14058 MatchersRanges.tests.cpp:<line number>: PASSED:
14059 REQUIRE_THAT( data, !NoneTrue() )
14060 with expansion:
14061 { false, false, true, false, false } not contains no true
14062
14063 -------------------------------------------------------------------------------
14064 Usage of NoneTrue range matcher
14065 Contained type is convertible to bool
14066 All false evaluates to true
14067 -------------------------------------------------------------------------------
14068 MatchersRanges.tests.cpp:<line number>
14069 ...............................................................................
14070
14071 MatchersRanges.tests.cpp:<line number>: PASSED:
14072 REQUIRE_THAT( data, NoneTrue() )
14073 with expansion:
14074 { false, false, false, false, false } contains no true
14075
14076 -------------------------------------------------------------------------------
14077 Usage of NoneTrue range matcher
14078 Shortcircuiting
14079 All are read
14080 -------------------------------------------------------------------------------
14081 MatchersRanges.tests.cpp:<line number>
14082 ...............................................................................
14083
14084 MatchersRanges.tests.cpp:<line number>: PASSED:
14085 REQUIRE_THAT( mocked, NoneTrue() )
14086 with expansion:
14087 { false, false, false, false, false } contains no true
14088
14089 MatchersRanges.tests.cpp:<line number>: PASSED:
14090 REQUIRE( mocked.m_derefed[0] )
14091 with expansion:
14092 true
14093
14094 MatchersRanges.tests.cpp:<line number>: PASSED:
14095 REQUIRE( mocked.m_derefed[1] )
14096 with expansion:
14097 true
14098
14099 MatchersRanges.tests.cpp:<line number>: PASSED:
14100 REQUIRE( mocked.m_derefed[2] )
14101 with expansion:
14102 true
14103
14104 MatchersRanges.tests.cpp:<line number>: PASSED:
14105 REQUIRE( mocked.m_derefed[3] )
14106 with expansion:
14107 true
14108
14109 MatchersRanges.tests.cpp:<line number>: PASSED:
14110 REQUIRE( mocked.m_derefed[4] )
14111 with expansion:
14112 true
14113
14114 -------------------------------------------------------------------------------
14115 Usage of NoneTrue range matcher
14116 Shortcircuiting
14117 Short-circuited
14118 -------------------------------------------------------------------------------
14119 MatchersRanges.tests.cpp:<line number>
14120 ...............................................................................
14121
14122 MatchersRanges.tests.cpp:<line number>: PASSED:
14123 REQUIRE_THAT( mocked, !NoneTrue() )
14124 with expansion:
14125 { false, false, true, true, true } not contains no true
14126
14127 MatchersRanges.tests.cpp:<line number>: PASSED:
14128 REQUIRE( mocked.m_derefed[0] )
14129 with expansion:
14130 true
14131
14132 MatchersRanges.tests.cpp:<line number>: PASSED:
14133 REQUIRE( mocked.m_derefed[1] )
14134 with expansion:
14135 true
14136
14137 MatchersRanges.tests.cpp:<line number>: PASSED:
14138 REQUIRE( mocked.m_derefed[2] )
14139 with expansion:
14140 true
14141
14142 MatchersRanges.tests.cpp:<line number>: PASSED:
14143 REQUIRE_FALSE( mocked.m_derefed[3] )
14144 with expansion:
14145 !false
14146
14147 MatchersRanges.tests.cpp:<line number>: PASSED:
14148 REQUIRE_FALSE( mocked.m_derefed[4] )
14149 with expansion:
14150 !false
14151
14152 -------------------------------------------------------------------------------
14153 Usage of RangeEquals range matcher
14154 Basic usage
14155 Empty container matches empty container
14156 -------------------------------------------------------------------------------
14157 MatchersRanges.tests.cpp:<line number>
14158 ...............................................................................
14159
14160 MatchersRanges.tests.cpp:<line number>: PASSED:
14161 CHECK_THAT( empty_vector, RangeEquals( empty_vector ) )
14162 with expansion:
14163 { } elements are { }
14164
14165 -------------------------------------------------------------------------------
14166 Usage of RangeEquals range matcher
14167 Basic usage
14168 Empty container does not match non-empty container
14169 -------------------------------------------------------------------------------
14170 MatchersRanges.tests.cpp:<line number>
14171 ...............................................................................
14172
14173 MatchersRanges.tests.cpp:<line number>: PASSED:
14174 CHECK_THAT( empty_vector, !RangeEquals( non_empty_vector ) )
14175 with expansion:
14176 { } not elements are { 1 }
14177
14178 MatchersRanges.tests.cpp:<line number>: PASSED:
14179 CHECK_THAT( non_empty_vector, !RangeEquals( empty_vector ) )
14180 with expansion:
14181 { 1 } not elements are { }
14182
14183 -------------------------------------------------------------------------------
14184 Usage of RangeEquals range matcher
14185 Basic usage
14186 Two equal 1-length non-empty containers
14187 -------------------------------------------------------------------------------
14188 MatchersRanges.tests.cpp:<line number>
14189 ...............................................................................
14190
14191 MatchersRanges.tests.cpp:<line number>: PASSED:
14192 CHECK_THAT( non_empty_array, RangeEquals( non_empty_array ) )
14193 with expansion:
14194 { 1 } elements are { 1 }
14195
14196 -------------------------------------------------------------------------------
14197 Usage of RangeEquals range matcher
14198 Basic usage
14199 Two equal-sized, equal, non-empty containers
14200 -------------------------------------------------------------------------------
14201 MatchersRanges.tests.cpp:<line number>
14202 ...............................................................................
14203
14204 MatchersRanges.tests.cpp:<line number>: PASSED:
14205 CHECK_THAT( array_a, RangeEquals( array_a ) )
14206 with expansion:
14207 { 1, 2, 3 } elements are { 1, 2, 3 }
14208
14209 -------------------------------------------------------------------------------
14210 Usage of RangeEquals range matcher
14211 Basic usage
14212 Two equal-sized, non-equal, non-empty containers
14213 -------------------------------------------------------------------------------
14214 MatchersRanges.tests.cpp:<line number>
14215 ...............................................................................
14216
14217 MatchersRanges.tests.cpp:<line number>: PASSED:
14218 CHECK_THAT( array_a, !RangeEquals( array_b ) )
14219 with expansion:
14220 { 1, 2, 3 } not elements are { 2, 2, 3 }
14221
14222 MatchersRanges.tests.cpp:<line number>: PASSED:
14223 CHECK_THAT( array_a, !RangeEquals( array_c ) )
14224 with expansion:
14225 { 1, 2, 3 } not elements are { 1, 2, 2 }
14226
14227 -------------------------------------------------------------------------------
14228 Usage of RangeEquals range matcher
14229 Basic usage
14230 Two non-equal-sized, non-empty containers (with same first elements)
14231 -------------------------------------------------------------------------------
14232 MatchersRanges.tests.cpp:<line number>
14233 ...............................................................................
14234
14235 MatchersRanges.tests.cpp:<line number>: PASSED:
14236 CHECK_THAT( vector_a, !RangeEquals( vector_b ) )
14237 with expansion:
14238 { 1, 2, 3 } not elements are { 1, 2, 3, 4 }
14239
14240 -------------------------------------------------------------------------------
14241 Usage of RangeEquals range matcher
14242 Custom predicate
14243 Two equal non-empty containers (close enough)
14244 -------------------------------------------------------------------------------
14245 MatchersRanges.tests.cpp:<line number>
14246 ...............................................................................
14247
14248 MatchersRanges.tests.cpp:<line number>: PASSED:
14249 CHECK_THAT( vector_a, RangeEquals( vector_a_plus_1, close_enough ) )
14250 with expansion:
14251 { 1, 2, 3 } elements are { 2, 3, 4 }
14252
14253 -------------------------------------------------------------------------------
14254 Usage of RangeEquals range matcher
14255 Custom predicate
14256 Two non-equal non-empty containers (close enough)
14257 -------------------------------------------------------------------------------
14258 MatchersRanges.tests.cpp:<line number>
14259 ...............................................................................
14260
14261 MatchersRanges.tests.cpp:<line number>: PASSED:
14262 CHECK_THAT( vector_a, !RangeEquals( vector_b, close_enough ) )
14263 with expansion:
14264 { 1, 2, 3 } not elements are { 3, 3, 4 }
14265
14266 -------------------------------------------------------------------------------
14267 Usage of RangeEquals range matcher
14268 Ranges that need ADL begin/end
14269 -------------------------------------------------------------------------------
14270 MatchersRanges.tests.cpp:<line number>
14271 ...............................................................................
14272
14273 MatchersRanges.tests.cpp:<line number>: PASSED:
14274 REQUIRE_THAT( needs_adl1, RangeEquals( needs_adl2 ) )
14275 with expansion:
14276 { 1, 2, 3, 4, 5 } elements are { 1, 2, 3, 4, 5 }
14277
14278 MatchersRanges.tests.cpp:<line number>: PASSED:
14279 REQUIRE_THAT( needs_adl1, RangeEquals( needs_adl3, []( int l, int r ) { return l + 1 == r; } ) )
14280 with expansion:
14281 { 1, 2, 3, 4, 5 } elements are { 2, 3, 4, 5, 6 }
14282
14283 -------------------------------------------------------------------------------
14284 Usage of RangeEquals range matcher
14285 Check short-circuiting behaviour
14286 Check short-circuits on failure
14287 -------------------------------------------------------------------------------
14288 MatchersRanges.tests.cpp:<line number>
14289 ...............................................................................
14290
14291 MatchersRanges.tests.cpp:<line number>: PASSED:
14292 REQUIRE_THAT( mocked1, !RangeEquals( arr ) )
14293 with expansion:
14294 { 1, 2, 3, 4 } not elements are { 1, 2, 4, 4 }
14295
14296 MatchersRanges.tests.cpp:<line number>: PASSED:
14297 REQUIRE( mocked1.m_derefed[0] )
14298 with expansion:
14299 true
14300
14301 MatchersRanges.tests.cpp:<line number>: PASSED:
14302 REQUIRE( mocked1.m_derefed[1] )
14303 with expansion:
14304 true
14305
14306 MatchersRanges.tests.cpp:<line number>: PASSED:
14307 REQUIRE( mocked1.m_derefed[2] )
14308 with expansion:
14309 true
14310
14311 MatchersRanges.tests.cpp:<line number>: PASSED:
14312 REQUIRE_FALSE( mocked1.m_derefed[3] )
14313 with expansion:
14314 !false
14315
14316 -------------------------------------------------------------------------------
14317 Usage of RangeEquals range matcher
14318 Check short-circuiting behaviour
14319 All elements are checked on success
14320 -------------------------------------------------------------------------------
14321 MatchersRanges.tests.cpp:<line number>
14322 ...............................................................................
14323
14324 MatchersRanges.tests.cpp:<line number>: PASSED:
14325 REQUIRE_THAT( mocked1, RangeEquals( arr ) )
14326 with expansion:
14327 { 1, 2, 3, 4 } elements are { 1, 2, 3, 4 }
14328
14329 MatchersRanges.tests.cpp:<line number>: PASSED:
14330 REQUIRE( mocked1.m_derefed[0] )
14331 with expansion:
14332 true
14333
14334 MatchersRanges.tests.cpp:<line number>: PASSED:
14335 REQUIRE( mocked1.m_derefed[1] )
14336 with expansion:
14337 true
14338
14339 MatchersRanges.tests.cpp:<line number>: PASSED:
14340 REQUIRE( mocked1.m_derefed[2] )
14341 with expansion:
14342 true
14343
14344 MatchersRanges.tests.cpp:<line number>: PASSED:
14345 REQUIRE( mocked1.m_derefed[3] )
14346 with expansion:
14347 true
14348
14349 -------------------------------------------------------------------------------
14350 Usage of UnorderedRangeEquals range matcher
14351 Basic usage
14352 Empty container matches empty container
14353 -------------------------------------------------------------------------------
14354 MatchersRanges.tests.cpp:<line number>
14355 ...............................................................................
14356
14357 MatchersRanges.tests.cpp:<line number>: PASSED:
14358 CHECK_THAT( empty_vector, UnorderedRangeEquals( empty_vector ) )
14359 with expansion:
14360 { } unordered elements are { }
14361
14362 -------------------------------------------------------------------------------
14363 Usage of UnorderedRangeEquals range matcher
14364 Basic usage
14365 Empty container does not match non-empty container
14366 -------------------------------------------------------------------------------
14367 MatchersRanges.tests.cpp:<line number>
14368 ...............................................................................
14369
14370 MatchersRanges.tests.cpp:<line number>: PASSED:
14371 CHECK_THAT( empty_vector, !UnorderedRangeEquals( non_empty_vector ) )
14372 with expansion:
14373 { } not unordered elements are { 1 }
14374
14375 MatchersRanges.tests.cpp:<line number>: PASSED:
14376 CHECK_THAT( non_empty_vector, !UnorderedRangeEquals( empty_vector ) )
14377 with expansion:
14378 { 1 } not unordered elements are { }
14379
14380 -------------------------------------------------------------------------------
14381 Usage of UnorderedRangeEquals range matcher
14382 Basic usage
14383 Two equal 1-length non-empty containers
14384 -------------------------------------------------------------------------------
14385 MatchersRanges.tests.cpp:<line number>
14386 ...............................................................................
14387
14388 MatchersRanges.tests.cpp:<line number>: PASSED:
14389 CHECK_THAT( non_empty_array, UnorderedRangeEquals( non_empty_array ) )
14390 with expansion:
14391 { 1 } unordered elements are { 1 }
14392
14393 -------------------------------------------------------------------------------
14394 Usage of UnorderedRangeEquals range matcher
14395 Basic usage
14396 Two equal-sized, equal, non-empty containers
14397 -------------------------------------------------------------------------------
14398 MatchersRanges.tests.cpp:<line number>
14399 ...............................................................................
14400
14401 MatchersRanges.tests.cpp:<line number>: PASSED:
14402 CHECK_THAT( array_a, UnorderedRangeEquals( array_a ) )
14403 with expansion:
14404 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
14405
14406 -------------------------------------------------------------------------------
14407 Usage of UnorderedRangeEquals range matcher
14408 Basic usage
14409 Two equal-sized, non-equal, non-empty containers
14410 -------------------------------------------------------------------------------
14411 MatchersRanges.tests.cpp:<line number>
14412 ...............................................................................
14413
14414 MatchersRanges.tests.cpp:<line number>: PASSED:
14415 CHECK_THAT( array_a, !UnorderedRangeEquals( array_b ) )
14416 with expansion:
14417 { 1, 2, 3 } not unordered elements are { 2, 2, 3 }
14418
14419 -------------------------------------------------------------------------------
14420 Usage of UnorderedRangeEquals range matcher
14421 Basic usage
14422 Two non-equal-sized, non-empty containers
14423 -------------------------------------------------------------------------------
14424 MatchersRanges.tests.cpp:<line number>
14425 ...............................................................................
14426
14427 MatchersRanges.tests.cpp:<line number>: PASSED:
14428 CHECK_THAT( vector_a, !UnorderedRangeEquals( vector_b ) )
14429 with expansion:
14430 { 1, 2, 3 } not unordered elements are { 1, 2, 3, 4 }
14431
14432 -------------------------------------------------------------------------------
14433 Usage of UnorderedRangeEquals range matcher
14434 Custom predicate
14435 Two equal non-empty containers (close enough)
14436 -------------------------------------------------------------------------------
14437 MatchersRanges.tests.cpp:<line number>
14438 ...............................................................................
14439
14440 MatchersRanges.tests.cpp:<line number>: PASSED:
14441 CHECK_THAT( vector_a, UnorderedRangeEquals( vector_a_plus_1, close_enough ) )
14442 with expansion:
14443 { 1, 10, 20 } unordered elements are { 11, 21, 2 }
14444
14445 -------------------------------------------------------------------------------
14446 Usage of UnorderedRangeEquals range matcher
14447 Custom predicate
14448 Two non-equal non-empty containers (close enough)
14449 -------------------------------------------------------------------------------
14450 MatchersRanges.tests.cpp:<line number>
14451 ...............................................................................
14452
14453 MatchersRanges.tests.cpp:<line number>: PASSED:
14454 CHECK_THAT( vector_a, !UnorderedRangeEquals( vector_b, close_enough ) )
14455 with expansion:
14456 { 1, 10, 21 } not unordered elements are { 11, 21, 3 }
14457
14458 -------------------------------------------------------------------------------
14459 Usage of UnorderedRangeEquals range matcher
14460 Ranges that need ADL begin/end
14461 -------------------------------------------------------------------------------
14462 MatchersRanges.tests.cpp:<line number>
14463 ...............................................................................
14464
14465 MatchersRanges.tests.cpp:<line number>: PASSED:
14466 REQUIRE_THAT( needs_adl1, UnorderedRangeEquals( needs_adl2 ) )
14467 with expansion:
14468 { 1, 2, 3, 4, 5 } unordered elements are { 1, 2, 3, 4, 5 }
14469
14470 -------------------------------------------------------------------------------
14471 Usage of the SizeIs range matcher
14472 Some with stdlib containers
14473 -------------------------------------------------------------------------------
14474 MatchersRanges.tests.cpp:<line number>
14475 ...............................................................................
14476
14477 MatchersRanges.tests.cpp:<line number>: PASSED:
14478 REQUIRE_THAT( empty_vec, SizeIs(0) )
14479 with expansion:
14480 { } has size == 0
14481
14482 MatchersRanges.tests.cpp:<line number>: PASSED:
14483 REQUIRE_THAT( empty_vec, !SizeIs(2) )
14484 with expansion:
14485 { } not has size == 2
14486
14487 MatchersRanges.tests.cpp:<line number>: PASSED:
14488 REQUIRE_THAT( empty_vec, SizeIs(Lt(2)) )
14489 with expansion:
14490 { } size matches is less than 2
14491
14492 MatchersRanges.tests.cpp:<line number>: PASSED:
14493 REQUIRE_THAT( arr, SizeIs(2) )
14494 with expansion:
14495 { 0, 0 } has size == 2
14496
14497 MatchersRanges.tests.cpp:<line number>: PASSED:
14498 REQUIRE_THAT( arr, SizeIs( Lt(3)) )
14499 with expansion:
14500 { 0, 0 } size matches is less than 3
14501
14502 MatchersRanges.tests.cpp:<line number>: PASSED:
14503 REQUIRE_THAT( arr, !SizeIs(!Lt(3)) )
14504 with expansion:
14505 { 0, 0 } not size matches not is less than 3
14506
14507 MatchersRanges.tests.cpp:<line number>: PASSED:
14508 REQUIRE_THAT( map, SizeIs(3) )
14509 with expansion:
14510 { {?}, {?}, {?} } has size == 3
14511
14512 -------------------------------------------------------------------------------
14513 Usage of the SizeIs range matcher
14514 Type requires ADL found size free function
14515 -------------------------------------------------------------------------------
14516 MatchersRanges.tests.cpp:<line number>
14517 ...............................................................................
14518
14519 MatchersRanges.tests.cpp:<line number>: PASSED:
14520 REQUIRE_THAT( unrelated::ADL_size{}, SizeIs(12) )
14521 with expansion:
14522 {?} has size == 12
14523
14524 -------------------------------------------------------------------------------
14525 Usage of the SizeIs range matcher
14526 Type has size member
14527 -------------------------------------------------------------------------------
14528 MatchersRanges.tests.cpp:<line number>
14529 ...............................................................................
14530
14531 MatchersRanges.tests.cpp:<line number>: PASSED:
14532 REQUIRE_THAT( has_size{}, SizeIs(13) )
14533 with expansion:
14534 {?} has size == 13
14535
14536 -------------------------------------------------------------------------------
14537 Use a custom approx
14538 -------------------------------------------------------------------------------
14539 Approx.tests.cpp:<line number>
14540 ...............................................................................
14541
14542 Approx.tests.cpp:<line number>: PASSED:
14543 REQUIRE( d == approx( 1.23 ) )
14544 with expansion:
14545 1.23 == Approx( 1.23 )
14546
14547 Approx.tests.cpp:<line number>: PASSED:
14548 REQUIRE( d == approx( 1.22 ) )
14549 with expansion:
14550 1.23 == Approx( 1.22 )
14551
14552 Approx.tests.cpp:<line number>: PASSED:
14553 REQUIRE( d == approx( 1.24 ) )
14554 with expansion:
14555 1.23 == Approx( 1.24 )
14556
14557 Approx.tests.cpp:<line number>: PASSED:
14558 REQUIRE( d != approx( 1.25 ) )
14559 with expansion:
14560 1.23 != Approx( 1.25 )
14561
14562 Approx.tests.cpp:<line number>: PASSED:
14563 REQUIRE( approx( d ) == 1.23 )
14564 with expansion:
14565 Approx( 1.23 ) == 1.23
14566
14567 Approx.tests.cpp:<line number>: PASSED:
14568 REQUIRE( approx( d ) == 1.22 )
14569 with expansion:
14570 Approx( 1.23 ) == 1.22
14571
14572 Approx.tests.cpp:<line number>: PASSED:
14573 REQUIRE( approx( d ) == 1.24 )
14574 with expansion:
14575 Approx( 1.23 ) == 1.24
14576
14577 Approx.tests.cpp:<line number>: PASSED:
14578 REQUIRE( approx( d ) != 1.25 )
14579 with expansion:
14580 Approx( 1.23 ) != 1.25
14581
14582 -------------------------------------------------------------------------------
14583 Variadic macros
14584 Section with one argument
14585 -------------------------------------------------------------------------------
14586 VariadicMacros.tests.cpp:<line number>
14587 ...............................................................................
14588
14589 VariadicMacros.tests.cpp:<line number>: PASSED:
14590 with message:
14591 no assertions
14592
14593 -------------------------------------------------------------------------------
14594 Vector Approx matcher
14595 Empty vector is roughly equal to an empty vector
14596 -------------------------------------------------------------------------------
14597 Matchers.tests.cpp:<line number>
14598 ...............................................................................
14599
14600 Matchers.tests.cpp:<line number>: PASSED:
14601 REQUIRE_THAT( empty, Approx( empty ) )
14602 with expansion:
14603 { } is approx: { }
14604
14605 -------------------------------------------------------------------------------
14606 Vector Approx matcher
14607 Vectors with elements
14608 A vector is approx equal to itself
14609 -------------------------------------------------------------------------------
14610 Matchers.tests.cpp:<line number>
14611 ...............................................................................
14612
14613 Matchers.tests.cpp:<line number>: PASSED:
14614 REQUIRE_THAT( v1, Approx( v1 ) )
14615 with expansion:
14616 { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
14617
14618 Matchers.tests.cpp:<line number>: PASSED:
14619 REQUIRE_THAT( v1, Approx<double>( { 1., 2., 3. } ) )
14620 with expansion:
14621 { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
14622
14623 -------------------------------------------------------------------------------
14624 Vector Approx matcher
14625 Vectors with elements
14626 Different length
14627 -------------------------------------------------------------------------------
14628 Matchers.tests.cpp:<line number>
14629 ...............................................................................
14630
14631 Matchers.tests.cpp:<line number>: PASSED:
14632 REQUIRE_THAT( v1, !Approx( temp ) )
14633 with expansion:
14634 { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
14635
14636 -------------------------------------------------------------------------------
14637 Vector Approx matcher
14638 Vectors with elements
14639 Same length, different elements
14640 -------------------------------------------------------------------------------
14641 Matchers.tests.cpp:<line number>
14642 ...............................................................................
14643
14644 Matchers.tests.cpp:<line number>: PASSED:
14645 REQUIRE_THAT( v1, !Approx( v2 ) )
14646 with expansion:
14647 { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
14648
14649 Matchers.tests.cpp:<line number>: PASSED:
14650 REQUIRE_THAT( v1, Approx( v2 ).margin( 0.5 ) )
14651 with expansion:
14652 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
14653
14654 Matchers.tests.cpp:<line number>: PASSED:
14655 REQUIRE_THAT( v1, Approx( v2 ).epsilon( 0.5 ) )
14656 with expansion:
14657 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
14658
14659 Matchers.tests.cpp:<line number>: PASSED:
14660 REQUIRE_THAT( v1, Approx( v2 ).epsilon( 0.1 ).scale( 500 ) )
14661 with expansion:
14662 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
14663
14664 -------------------------------------------------------------------------------
14665 Vector Approx matcher -- failing
14666 Empty and non empty vectors are not approx equal
14667 -------------------------------------------------------------------------------
14668 Matchers.tests.cpp:<line number>
14669 ...............................................................................
14670
14671 Matchers.tests.cpp:<line number>: FAILED:
14672 CHECK_THAT( empty, Approx( t1 ) )
14673 with expansion:
14674 { } is approx: { 1.0, 2.0 }
14675
14676 -------------------------------------------------------------------------------
14677 Vector Approx matcher -- failing
14678 Just different vectors
14679 -------------------------------------------------------------------------------
14680 Matchers.tests.cpp:<line number>
14681 ...............................................................................
14682
14683 Matchers.tests.cpp:<line number>: FAILED:
14684 CHECK_THAT( v1, Approx( v2 ) )
14685 with expansion:
14686 { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
14687
14688 -------------------------------------------------------------------------------
14689 Vector matchers
14690 Contains (element)
14691 -------------------------------------------------------------------------------
14692 Matchers.tests.cpp:<line number>
14693 ...............................................................................
14694
14695 Matchers.tests.cpp:<line number>: PASSED:
14696 CHECK_THAT( v, VectorContains( 1 ) )
14697 with expansion:
14698 { 1, 2, 3 } Contains: 1
14699
14700 Matchers.tests.cpp:<line number>: PASSED:
14701 CHECK_THAT( v, VectorContains( 2 ) )
14702 with expansion:
14703 { 1, 2, 3 } Contains: 2
14704
14705 Matchers.tests.cpp:<line number>: PASSED:
14706 CHECK_THAT( v5, ( VectorContains<int, CustomAllocator<int>>( 2 ) ) )
14707 with expansion:
14708 { 1, 2, 3 } Contains: 2
14709
14710 -------------------------------------------------------------------------------
14711 Vector matchers
14712 Contains (vector)
14713 -------------------------------------------------------------------------------
14714 Matchers.tests.cpp:<line number>
14715 ...............................................................................
14716
14717 Matchers.tests.cpp:<line number>: PASSED:
14718 CHECK_THAT( v, Contains( v2 ) )
14719 with expansion:
14720 { 1, 2, 3 } Contains: { 1, 2 }
14721
14722 Matchers.tests.cpp:<line number>: PASSED:
14723 CHECK_THAT( v, Contains<int>( { 1, 2 } ) )
14724 with expansion:
14725 { 1, 2, 3 } Contains: { 1, 2 }
14726
14727 Matchers.tests.cpp:<line number>: PASSED:
14728 CHECK_THAT( v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
14729 with expansion:
14730 { 1, 2, 3 } Contains: { 1, 2 }
14731
14732 Matchers.tests.cpp:<line number>: PASSED:
14733 CHECK_THAT( v, Contains( v2 ) )
14734 with expansion:
14735 { 1, 2, 3 } Contains: { 1, 2, 3 }
14736
14737 Matchers.tests.cpp:<line number>: PASSED:
14738 CHECK_THAT( v, Contains( empty ) )
14739 with expansion:
14740 { 1, 2, 3 } Contains: { }
14741
14742 Matchers.tests.cpp:<line number>: PASSED:
14743 CHECK_THAT( empty, Contains( empty ) )
14744 with expansion:
14745 { } Contains: { }
14746
14747 Matchers.tests.cpp:<line number>: PASSED:
14748 CHECK_THAT( v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
14749 with expansion:
14750 { 1, 2, 3 } Contains: { 1, 2, 3 }
14751
14752 Matchers.tests.cpp:<line number>: PASSED:
14753 CHECK_THAT( v5, Contains( v6 ) )
14754 with expansion:
14755 { 1, 2, 3 } Contains: { 1, 2 }
14756
14757 -------------------------------------------------------------------------------
14758 Vector matchers
14759 Contains (element), composed
14760 -------------------------------------------------------------------------------
14761 Matchers.tests.cpp:<line number>
14762 ...............................................................................
14763
14764 Matchers.tests.cpp:<line number>: PASSED:
14765 CHECK_THAT( v, VectorContains( 1 ) && VectorContains( 2 ) )
14766 with expansion:
14767 { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
14768
14769 -------------------------------------------------------------------------------
14770 Vector matchers
14771 Equals
14772 -------------------------------------------------------------------------------
14773 Matchers.tests.cpp:<line number>
14774 ...............................................................................
14775
14776 Matchers.tests.cpp:<line number>: PASSED:
14777 CHECK_THAT( v, Equals( v ) )
14778 with expansion:
14779 { 1, 2, 3 } Equals: { 1, 2, 3 }
14780
14781 Matchers.tests.cpp:<line number>: PASSED:
14782 CHECK_THAT( empty, Equals( empty ) )
14783 with expansion:
14784 { } Equals: { }
14785
14786 Matchers.tests.cpp:<line number>: PASSED:
14787 CHECK_THAT( v, Equals<int>( { 1, 2, 3 } ) )
14788 with expansion:
14789 { 1, 2, 3 } Equals: { 1, 2, 3 }
14790
14791 Matchers.tests.cpp:<line number>: PASSED:
14792 CHECK_THAT( v, Equals( v2 ) )
14793 with expansion:
14794 { 1, 2, 3 } Equals: { 1, 2, 3 }
14795
14796 Matchers.tests.cpp:<line number>: PASSED:
14797 CHECK_THAT( v5, ( Equals<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
14798 with expansion:
14799 { 1, 2, 3 } Equals: { 1, 2, 3 }
14800
14801 Matchers.tests.cpp:<line number>: PASSED:
14802 CHECK_THAT( v5, Equals( v6 ) )
14803 with expansion:
14804 { 1, 2, 3 } Equals: { 1, 2, 3 }
14805
14806 -------------------------------------------------------------------------------
14807 Vector matchers
14808 UnorderedEquals
14809 -------------------------------------------------------------------------------
14810 Matchers.tests.cpp:<line number>
14811 ...............................................................................
14812
14813 Matchers.tests.cpp:<line number>: PASSED:
14814 CHECK_THAT( v, UnorderedEquals( v ) )
14815 with expansion:
14816 { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
14817
14818 Matchers.tests.cpp:<line number>: PASSED:
14819 CHECK_THAT( v, UnorderedEquals<int>( { 3, 2, 1 } ) )
14820 with expansion:
14821 { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
14822
14823 Matchers.tests.cpp:<line number>: PASSED:
14824 CHECK_THAT( empty, UnorderedEquals( empty ) )
14825 with expansion:
14826 { } UnorderedEquals: { }
14827
14828 Matchers.tests.cpp:<line number>: PASSED:
14829 REQUIRE_THAT( permuted, UnorderedEquals( v ) )
14830 with expansion:
14831 { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
14832
14833 Matchers.tests.cpp:<line number>: PASSED:
14834 REQUIRE_THAT( permuted, UnorderedEquals( v ) )
14835 with expansion:
14836 { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
14837
14838 Matchers.tests.cpp:<line number>: PASSED:
14839 CHECK_THAT( v5, ( UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>( permuted ) ) )
14840 with expansion:
14841 { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
14842
14843 Matchers.tests.cpp:<line number>: PASSED:
14844 CHECK_THAT( v5_permuted, UnorderedEquals( v5 ) )
14845 with expansion:
14846 { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
14847
14848 -------------------------------------------------------------------------------
14849 Vector matchers that fail
14850 Contains (element)
14851 -------------------------------------------------------------------------------
14852 Matchers.tests.cpp:<line number>
14853 ...............................................................................
14854
14855 Matchers.tests.cpp:<line number>: FAILED:
14856 CHECK_THAT( v, VectorContains( -1 ) )
14857 with expansion:
14858 { 1, 2, 3 } Contains: -1
14859
14860 Matchers.tests.cpp:<line number>: FAILED:
14861 CHECK_THAT( empty, VectorContains( 1 ) )
14862 with expansion:
14863 { } Contains: 1
14864
14865 -------------------------------------------------------------------------------
14866 Vector matchers that fail
14867 Contains (vector)
14868 -------------------------------------------------------------------------------
14869 Matchers.tests.cpp:<line number>
14870 ...............................................................................
14871
14872 Matchers.tests.cpp:<line number>: FAILED:
14873 CHECK_THAT( empty, Contains( v ) )
14874 with expansion:
14875 { } Contains: { 1, 2, 3 }
14876
14877 Matchers.tests.cpp:<line number>: FAILED:
14878 CHECK_THAT( v, Contains( v2 ) )
14879 with expansion:
14880 { 1, 2, 3 } Contains: { 1, 2, 4 }
14881
14882 -------------------------------------------------------------------------------
14883 Vector matchers that fail
14884 Equals
14885 -------------------------------------------------------------------------------
14886 Matchers.tests.cpp:<line number>
14887 ...............................................................................
14888
14889 Matchers.tests.cpp:<line number>: FAILED:
14890 CHECK_THAT( v, Equals( v2 ) )
14891 with expansion:
14892 { 1, 2, 3 } Equals: { 1, 2 }
14893
14894 Matchers.tests.cpp:<line number>: FAILED:
14895 CHECK_THAT( v2, Equals( v ) )
14896 with expansion:
14897 { 1, 2 } Equals: { 1, 2, 3 }
14898
14899 Matchers.tests.cpp:<line number>: FAILED:
14900 CHECK_THAT( empty, Equals( v ) )
14901 with expansion:
14902 { } Equals: { 1, 2, 3 }
14903
14904 Matchers.tests.cpp:<line number>: FAILED:
14905 CHECK_THAT( v, Equals( empty ) )
14906 with expansion:
14907 { 1, 2, 3 } Equals: { }
14908
14909 -------------------------------------------------------------------------------
14910 Vector matchers that fail
14911 UnorderedEquals
14912 -------------------------------------------------------------------------------
14913 Matchers.tests.cpp:<line number>
14914 ...............................................................................
14915
14916 Matchers.tests.cpp:<line number>: FAILED:
14917 CHECK_THAT( v, UnorderedEquals( empty ) )
14918 with expansion:
14919 { 1, 2, 3 } UnorderedEquals: { }
14920
14921 Matchers.tests.cpp:<line number>: FAILED:
14922 CHECK_THAT( empty, UnorderedEquals( v ) )
14923 with expansion:
14924 { } UnorderedEquals: { 1, 2, 3 }
14925
14926 Matchers.tests.cpp:<line number>: FAILED:
14927 CHECK_THAT( permuted, UnorderedEquals( v ) )
14928 with expansion:
14929 { 1, 3 } UnorderedEquals: { 1, 2, 3 }
14930
14931 Matchers.tests.cpp:<line number>: FAILED:
14932 CHECK_THAT( permuted, UnorderedEquals( v ) )
14933 with expansion:
14934 { 3, 1 } UnorderedEquals: { 1, 2, 3 }
14935
14936 -------------------------------------------------------------------------------
14937 When checked exceptions are thrown they can be expected or unexpected
14938 -------------------------------------------------------------------------------
14939 Exception.tests.cpp:<line number>
14940 ...............................................................................
14941
14942 Exception.tests.cpp:<line number>: PASSED:
14943 REQUIRE_THROWS_AS( thisThrows(), std::domain_error )
14944
14945 Exception.tests.cpp:<line number>: PASSED:
14946 REQUIRE_NOTHROW( thisDoesntThrow() )
14947
14948 Exception.tests.cpp:<line number>: PASSED:
14949 REQUIRE_THROWS( thisThrows() )
14950
14951 -------------------------------------------------------------------------------
14952 When unchecked exceptions are thrown directly they are always failures
14953 -------------------------------------------------------------------------------
14954 Exception.tests.cpp:<line number>
14955 ...............................................................................
14956
14957 Exception.tests.cpp:<line number>: FAILED:
14958 due to unexpected exception with message:
14959 unexpected exception
14960
14961 -------------------------------------------------------------------------------
14962 When unchecked exceptions are thrown during a CHECK the test should continue
14963 -------------------------------------------------------------------------------
14964 Exception.tests.cpp:<line number>
14965 ...............................................................................
14966
14967 Exception.tests.cpp:<line number>: FAILED:
14968 CHECK( thisThrows() == 0 )
14969 due to unexpected exception with message:
14970 expected exception
14971
14972 -------------------------------------------------------------------------------
14973 When unchecked exceptions are thrown during a REQUIRE the test should abort
14974 fail
14975 -------------------------------------------------------------------------------
14976 Exception.tests.cpp:<line number>
14977 ...............................................................................
14978
14979 Exception.tests.cpp:<line number>: FAILED:
14980 REQUIRE( thisThrows() == 0 )
14981 due to unexpected exception with message:
14982 expected exception
14983
14984 -------------------------------------------------------------------------------
14985 When unchecked exceptions are thrown from functions they are always failures
14986 -------------------------------------------------------------------------------
14987 Exception.tests.cpp:<line number>
14988 ...............................................................................
14989
14990 Exception.tests.cpp:<line number>: FAILED:
14991 CHECK( thisThrows() == 0 )
14992 due to unexpected exception with message:
14993 expected exception
14994
14995 -------------------------------------------------------------------------------
14996 When unchecked exceptions are thrown from sections they are always failures
14997 section name
14998 -------------------------------------------------------------------------------
14999 Exception.tests.cpp:<line number>
15000 ...............................................................................
15001
15002 Exception.tests.cpp:<line number>: FAILED:
15003 due to unexpected exception with message:
15004 unexpected exception
15005
15006 -------------------------------------------------------------------------------
15007 When unchecked exceptions are thrown, but caught, they do not affect the test
15008 -------------------------------------------------------------------------------
15009 Exception.tests.cpp:<line number>
15010 ...............................................................................
15011
15012
15013 No assertions in test case 'When unchecked exceptions are thrown, but caught, they do not affect the test'
15014
15015 -------------------------------------------------------------------------------
15016 X/level/0/a
15017 -------------------------------------------------------------------------------
15018 Tricky.tests.cpp:<line number>
15019 ...............................................................................
15020
15021 Tricky.tests.cpp:<line number>: PASSED:
15022
15023 -------------------------------------------------------------------------------
15024 X/level/0/b
15025 -------------------------------------------------------------------------------
15026 Tricky.tests.cpp:<line number>
15027 ...............................................................................
15028
15029 Tricky.tests.cpp:<line number>: PASSED:
15030
15031 -------------------------------------------------------------------------------
15032 X/level/1/a
15033 -------------------------------------------------------------------------------
15034 Tricky.tests.cpp:<line number>
15035 ...............................................................................
15036
15037 Tricky.tests.cpp:<line number>: PASSED:
15038
15039 -------------------------------------------------------------------------------
15040 X/level/1/b
15041 -------------------------------------------------------------------------------
15042 Tricky.tests.cpp:<line number>
15043 ...............................................................................
15044
15045 Tricky.tests.cpp:<line number>: PASSED:
15046
15047 -------------------------------------------------------------------------------
15048 XmlEncode
15049 normal string
15050 -------------------------------------------------------------------------------
15051 Xml.tests.cpp:<line number>
15052 ...............................................................................
15053
15054 Xml.tests.cpp:<line number>: PASSED:
15055 REQUIRE( encode( "normal string" ) == "normal string" )
15056 with expansion:
15057 "normal string" == "normal string"
15058
15059 -------------------------------------------------------------------------------
15060 XmlEncode
15061 empty string
15062 -------------------------------------------------------------------------------
15063 Xml.tests.cpp:<line number>
15064 ...............................................................................
15065
15066 Xml.tests.cpp:<line number>: PASSED:
15067 REQUIRE( encode( "" ) == "" )
15068 with expansion:
15069 "" == ""
15070
15071 -------------------------------------------------------------------------------
15072 XmlEncode
15073 string with ampersand
15074 -------------------------------------------------------------------------------
15075 Xml.tests.cpp:<line number>
15076 ...............................................................................
15077
15078 Xml.tests.cpp:<line number>: PASSED:
15079 REQUIRE( encode( "smith & jones" ) == "smith &amp; jones" )
15080 with expansion:
15081 "smith &amp; jones" == "smith &amp; jones"
15082
15083 -------------------------------------------------------------------------------
15084 XmlEncode
15085 string with less-than
15086 -------------------------------------------------------------------------------
15087 Xml.tests.cpp:<line number>
15088 ...............................................................................
15089
15090 Xml.tests.cpp:<line number>: PASSED:
15091 REQUIRE( encode( "smith < jones" ) == "smith &lt; jones" )
15092 with expansion:
15093 "smith &lt; jones" == "smith &lt; jones"
15094
15095 -------------------------------------------------------------------------------
15096 XmlEncode
15097 string with greater-than
15098 -------------------------------------------------------------------------------
15099 Xml.tests.cpp:<line number>
15100 ...............................................................................
15101
15102 Xml.tests.cpp:<line number>: PASSED:
15103 REQUIRE( encode( "smith > jones" ) == "smith > jones" )
15104 with expansion:
15105 "smith > jones" == "smith > jones"
15106
15107 Xml.tests.cpp:<line number>: PASSED:
15108 REQUIRE( encode( "smith ]]> jones" ) == "smith ]]&gt; jones" )
15109 with expansion:
15110 "smith ]]&gt; jones"
15111 ==
15112 "smith ]]&gt; jones"
15113
15114 -------------------------------------------------------------------------------
15115 XmlEncode
15116 string with quotes
15117 -------------------------------------------------------------------------------
15118 Xml.tests.cpp:<line number>
15119 ...............................................................................
15120
15121 Xml.tests.cpp:<line number>: PASSED:
15122 REQUIRE( encode( stringWithQuotes ) == stringWithQuotes )
15123 with expansion:
15124 "don't "quote" me on that"
15125 ==
15126 "don't "quote" me on that"
15127
15128 Xml.tests.cpp:<line number>: PASSED:
15129 REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" )
15130 with expansion:
15131 "don't &quot;quote&quot; me on that"
15132 ==
15133 "don't &quot;quote&quot; me on that"
15134
15135 -------------------------------------------------------------------------------
15136 XmlEncode
15137 string with control char (1)
15138 -------------------------------------------------------------------------------
15139 Xml.tests.cpp:<line number>
15140 ...............................................................................
15141
15142 Xml.tests.cpp:<line number>: PASSED:
15143 REQUIRE( encode( "[\x01]" ) == "[\\x01]" )
15144 with expansion:
15145 "[\x01]" == "[\x01]"
15146
15147 -------------------------------------------------------------------------------
15148 XmlEncode
15149 string with control char (x7F)
15150 -------------------------------------------------------------------------------
15151 Xml.tests.cpp:<line number>
15152 ...............................................................................
15153
15154 Xml.tests.cpp:<line number>: PASSED:
15155 REQUIRE( encode( "[\x7F]" ) == "[\\x7F]" )
15156 with expansion:
15157 "[\x7F]" == "[\x7F]"
15158
15159 -------------------------------------------------------------------------------
15160 XmlWriter writes boolean attributes as true/false
15161 -------------------------------------------------------------------------------
15162 Xml.tests.cpp:<line number>
15163 ...............................................................................
15164
15165 Xml.tests.cpp:<line number>: PASSED:
15166 REQUIRE_THAT( stream.str(), ContainsSubstring(R"(attr1="true")") && ContainsSubstring(R"(attr2="false")") )
15167 with expansion:
15168 "<?xml version="1.0" encoding="UTF-8"?>
15169 <Element1 attr1="true" attr2="false"/>
15170 " ( contains: "attr1="true"" and contains: "attr2="false"" )
15171
15172 -------------------------------------------------------------------------------
15173 a succeeding test can still be skipped
15174 -------------------------------------------------------------------------------
15175 Skip.tests.cpp:<line number>
15176 ...............................................................................
15177
15178 Skip.tests.cpp:<line number>: PASSED:
15179
15180 Skip.tests.cpp:<line number>: SKIPPED:
15181
15182 -------------------------------------------------------------------------------
15183 analyse no analysis
15184 -------------------------------------------------------------------------------
15185 InternalBenchmark.tests.cpp:<line number>
15186 ...............................................................................
15187
15188 InternalBenchmark.tests.cpp:<line number>: PASSED:
15189 CHECK( analysis.mean.point.count() == 23 )
15190 with expansion:
15191 23.0 == 23
15192
15193 InternalBenchmark.tests.cpp:<line number>: PASSED:
15194 CHECK( analysis.mean.lower_bound.count() == 23 )
15195 with expansion:
15196 23.0 == 23
15197
15198 InternalBenchmark.tests.cpp:<line number>: PASSED:
15199 CHECK( analysis.mean.upper_bound.count() == 23 )
15200 with expansion:
15201 23.0 == 23
15202
15203 InternalBenchmark.tests.cpp:<line number>: PASSED:
15204 CHECK( analysis.standard_deviation.point.count() == 0 )
15205 with expansion:
15206 0.0 == 0
15207
15208 InternalBenchmark.tests.cpp:<line number>: PASSED:
15209 CHECK( analysis.standard_deviation.lower_bound.count() == 0 )
15210 with expansion:
15211 0.0 == 0
15212
15213 InternalBenchmark.tests.cpp:<line number>: PASSED:
15214 CHECK( analysis.standard_deviation.upper_bound.count() == 0 )
15215 with expansion:
15216 0.0 == 0
15217
15218 InternalBenchmark.tests.cpp:<line number>: PASSED:
15219 CHECK( analysis.outliers.total() == 0 )
15220 with expansion:
15221 0 == 0
15222
15223 InternalBenchmark.tests.cpp:<line number>: PASSED:
15224 CHECK( analysis.outliers.low_mild == 0 )
15225 with expansion:
15226 0 == 0
15227
15228 InternalBenchmark.tests.cpp:<line number>: PASSED:
15229 CHECK( analysis.outliers.low_severe == 0 )
15230 with expansion:
15231 0 == 0
15232
15233 InternalBenchmark.tests.cpp:<line number>: PASSED:
15234 CHECK( analysis.outliers.high_mild == 0 )
15235 with expansion:
15236 0 == 0
15237
15238 InternalBenchmark.tests.cpp:<line number>: PASSED:
15239 CHECK( analysis.outliers.high_severe == 0 )
15240 with expansion:
15241 0 == 0
15242
15243 InternalBenchmark.tests.cpp:<line number>: PASSED:
15244 CHECK( analysis.outliers.samples_seen == 0 )
15245 with expansion:
15246 0 == 0
15247
15248 InternalBenchmark.tests.cpp:<line number>: PASSED:
15249 CHECK( analysis.outlier_variance == 0 )
15250 with expansion:
15251 0.0 == 0
15252
15253 -------------------------------------------------------------------------------
15254 array<int, N> -> toString
15255 -------------------------------------------------------------------------------
15256 ToStringVector.tests.cpp:<line number>
15257 ...............................................................................
15258
15259 ToStringVector.tests.cpp:<line number>: PASSED:
15260 REQUIRE( Catch::Detail::stringify( empty ) == "{ }" )
15261 with expansion:
15262 "{ }" == "{ }"
15263
15264 ToStringVector.tests.cpp:<line number>: PASSED:
15265 REQUIRE( Catch::Detail::stringify( oneValue ) == "{ 42 }" )
15266 with expansion:
15267 "{ 42 }" == "{ 42 }"
15268
15269 ToStringVector.tests.cpp:<line number>: PASSED:
15270 REQUIRE( Catch::Detail::stringify( twoValues ) == "{ 42, 250 }" )
15271 with expansion:
15272 "{ 42, 250 }" == "{ 42, 250 }"
15273
15274 -------------------------------------------------------------------------------
15275 benchmark function call
15276 without chronometer
15277 -------------------------------------------------------------------------------
15278 InternalBenchmark.tests.cpp:<line number>
15279 ...............................................................................
15280
15281 InternalBenchmark.tests.cpp:<line number>: PASSED:
15282 CHECK( model.started == 1 )
15283 with expansion:
15284 1 == 1
15285
15286 InternalBenchmark.tests.cpp:<line number>: PASSED:
15287 CHECK( model.finished == 0 )
15288 with expansion:
15289 0 == 0
15290
15291 InternalBenchmark.tests.cpp:<line number>: PASSED:
15292 CHECK( model.started == 1 )
15293 with expansion:
15294 1 == 1
15295
15296 InternalBenchmark.tests.cpp:<line number>: PASSED:
15297 CHECK( model.finished == 1 )
15298 with expansion:
15299 1 == 1
15300
15301 InternalBenchmark.tests.cpp:<line number>: PASSED:
15302 CHECK( called == 1 )
15303 with expansion:
15304 1 == 1
15305
15306 -------------------------------------------------------------------------------
15307 benchmark function call
15308 with chronometer
15309 -------------------------------------------------------------------------------
15310 InternalBenchmark.tests.cpp:<line number>
15311 ...............................................................................
15312
15313 InternalBenchmark.tests.cpp:<line number>: PASSED:
15314 CHECK( model.started == 0 )
15315 with expansion:
15316 0 == 0
15317
15318 InternalBenchmark.tests.cpp:<line number>: PASSED:
15319 CHECK( model.finished == 0 )
15320 with expansion:
15321 0 == 0
15322
15323 InternalBenchmark.tests.cpp:<line number>: PASSED:
15324 CHECK( model.started == 0 )
15325 with expansion:
15326 0 == 0
15327
15328 InternalBenchmark.tests.cpp:<line number>: PASSED:
15329 CHECK( model.finished == 0 )
15330 with expansion:
15331 0 == 0
15332
15333 InternalBenchmark.tests.cpp:<line number>: PASSED:
15334 CHECK( called == 1 )
15335 with expansion:
15336 1 == 1
15337
15338 -------------------------------------------------------------------------------
15339 boolean member
15340 -------------------------------------------------------------------------------
15341 Tricky.tests.cpp:<line number>
15342 ...............................................................................
15343
15344 Tricky.tests.cpp:<line number>: PASSED:
15345 REQUIRE( obj.prop != 0 )
15346 with expansion:
15347 0x<hex digits> != 0
15348
15349 -------------------------------------------------------------------------------
15350 checkedElse
15351 -------------------------------------------------------------------------------
15352 Misc.tests.cpp:<line number>
15353 ...............................................................................
15354
15355 Misc.tests.cpp:<line number>: PASSED:
15356 CHECKED_ELSE( flag )
15357 with expansion:
15358 true
15359
15360 Misc.tests.cpp:<line number>: PASSED:
15361 REQUIRE( testCheckedElse( true ) )
15362 with expansion:
15363 true
15364
15365 -------------------------------------------------------------------------------
15366 checkedElse, failing
15367 -------------------------------------------------------------------------------
15368 Misc.tests.cpp:<line number>
15369 ...............................................................................
15370
15371 Misc.tests.cpp:<line number>: FAILED - but was ok:
15372 CHECKED_ELSE( flag )
15373 with expansion:
15374 false
15375
15376 Misc.tests.cpp:<line number>: FAILED:
15377 REQUIRE( testCheckedElse( false ) )
15378 with expansion:
15379 false
15380
15381 -------------------------------------------------------------------------------
15382 checkedIf
15383 -------------------------------------------------------------------------------
15384 Misc.tests.cpp:<line number>
15385 ...............................................................................
15386
15387 Misc.tests.cpp:<line number>: PASSED:
15388 CHECKED_IF( flag )
15389 with expansion:
15390 true
15391
15392 Misc.tests.cpp:<line number>: PASSED:
15393 REQUIRE( testCheckedIf( true ) )
15394 with expansion:
15395 true
15396
15397 -------------------------------------------------------------------------------
15398 checkedIf, failing
15399 -------------------------------------------------------------------------------
15400 Misc.tests.cpp:<line number>
15401 ...............................................................................
15402
15403 Misc.tests.cpp:<line number>: FAILED - but was ok:
15404 CHECKED_IF( flag )
15405 with expansion:
15406 false
15407
15408 Misc.tests.cpp:<line number>: FAILED:
15409 REQUIRE( testCheckedIf( false ) )
15410 with expansion:
15411 false
15412
15413 -------------------------------------------------------------------------------
15414 classify_outliers
15415 none
15416 -------------------------------------------------------------------------------
15417 InternalBenchmark.tests.cpp:<line number>
15418 ...............................................................................
15419
15420 InternalBenchmark.tests.cpp:<line number>: PASSED:
15421 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15422 with expansion:
15423 6 == 6
15424
15425 InternalBenchmark.tests.cpp:<line number>: PASSED:
15426 REQUIRE( o.low_severe == los )
15427 with expansion:
15428 0 == 0
15429
15430 InternalBenchmark.tests.cpp:<line number>: PASSED:
15431 REQUIRE( o.low_mild == lom )
15432 with expansion:
15433 0 == 0
15434
15435 InternalBenchmark.tests.cpp:<line number>: PASSED:
15436 REQUIRE( o.high_mild == him )
15437 with expansion:
15438 0 == 0
15439
15440 InternalBenchmark.tests.cpp:<line number>: PASSED:
15441 REQUIRE( o.high_severe == his )
15442 with expansion:
15443 0 == 0
15444
15445 InternalBenchmark.tests.cpp:<line number>: PASSED:
15446 REQUIRE( o.total() == los + lom + him + his )
15447 with expansion:
15448 0 == 0
15449
15450 -------------------------------------------------------------------------------
15451 classify_outliers
15452 low severe
15453 -------------------------------------------------------------------------------
15454 InternalBenchmark.tests.cpp:<line number>
15455 ...............................................................................
15456
15457 InternalBenchmark.tests.cpp:<line number>: PASSED:
15458 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15459 with expansion:
15460 6 == 6
15461
15462 InternalBenchmark.tests.cpp:<line number>: PASSED:
15463 REQUIRE( o.low_severe == los )
15464 with expansion:
15465 1 == 1
15466
15467 InternalBenchmark.tests.cpp:<line number>: PASSED:
15468 REQUIRE( o.low_mild == lom )
15469 with expansion:
15470 0 == 0
15471
15472 InternalBenchmark.tests.cpp:<line number>: PASSED:
15473 REQUIRE( o.high_mild == him )
15474 with expansion:
15475 0 == 0
15476
15477 InternalBenchmark.tests.cpp:<line number>: PASSED:
15478 REQUIRE( o.high_severe == his )
15479 with expansion:
15480 0 == 0
15481
15482 InternalBenchmark.tests.cpp:<line number>: PASSED:
15483 REQUIRE( o.total() == los + lom + him + his )
15484 with expansion:
15485 1 == 1
15486
15487 -------------------------------------------------------------------------------
15488 classify_outliers
15489 low mild
15490 -------------------------------------------------------------------------------
15491 InternalBenchmark.tests.cpp:<line number>
15492 ...............................................................................
15493
15494 InternalBenchmark.tests.cpp:<line number>: PASSED:
15495 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15496 with expansion:
15497 6 == 6
15498
15499 InternalBenchmark.tests.cpp:<line number>: PASSED:
15500 REQUIRE( o.low_severe == los )
15501 with expansion:
15502 0 == 0
15503
15504 InternalBenchmark.tests.cpp:<line number>: PASSED:
15505 REQUIRE( o.low_mild == lom )
15506 with expansion:
15507 1 == 1
15508
15509 InternalBenchmark.tests.cpp:<line number>: PASSED:
15510 REQUIRE( o.high_mild == him )
15511 with expansion:
15512 0 == 0
15513
15514 InternalBenchmark.tests.cpp:<line number>: PASSED:
15515 REQUIRE( o.high_severe == his )
15516 with expansion:
15517 0 == 0
15518
15519 InternalBenchmark.tests.cpp:<line number>: PASSED:
15520 REQUIRE( o.total() == los + lom + him + his )
15521 with expansion:
15522 1 == 1
15523
15524 -------------------------------------------------------------------------------
15525 classify_outliers
15526 high mild
15527 -------------------------------------------------------------------------------
15528 InternalBenchmark.tests.cpp:<line number>
15529 ...............................................................................
15530
15531 InternalBenchmark.tests.cpp:<line number>: PASSED:
15532 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15533 with expansion:
15534 6 == 6
15535
15536 InternalBenchmark.tests.cpp:<line number>: PASSED:
15537 REQUIRE( o.low_severe == los )
15538 with expansion:
15539 0 == 0
15540
15541 InternalBenchmark.tests.cpp:<line number>: PASSED:
15542 REQUIRE( o.low_mild == lom )
15543 with expansion:
15544 0 == 0
15545
15546 InternalBenchmark.tests.cpp:<line number>: PASSED:
15547 REQUIRE( o.high_mild == him )
15548 with expansion:
15549 1 == 1
15550
15551 InternalBenchmark.tests.cpp:<line number>: PASSED:
15552 REQUIRE( o.high_severe == his )
15553 with expansion:
15554 0 == 0
15555
15556 InternalBenchmark.tests.cpp:<line number>: PASSED:
15557 REQUIRE( o.total() == los + lom + him + his )
15558 with expansion:
15559 1 == 1
15560
15561 -------------------------------------------------------------------------------
15562 classify_outliers
15563 high severe
15564 -------------------------------------------------------------------------------
15565 InternalBenchmark.tests.cpp:<line number>
15566 ...............................................................................
15567
15568 InternalBenchmark.tests.cpp:<line number>: PASSED:
15569 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15570 with expansion:
15571 6 == 6
15572
15573 InternalBenchmark.tests.cpp:<line number>: PASSED:
15574 REQUIRE( o.low_severe == los )
15575 with expansion:
15576 0 == 0
15577
15578 InternalBenchmark.tests.cpp:<line number>: PASSED:
15579 REQUIRE( o.low_mild == lom )
15580 with expansion:
15581 0 == 0
15582
15583 InternalBenchmark.tests.cpp:<line number>: PASSED:
15584 REQUIRE( o.high_mild == him )
15585 with expansion:
15586 0 == 0
15587
15588 InternalBenchmark.tests.cpp:<line number>: PASSED:
15589 REQUIRE( o.high_severe == his )
15590 with expansion:
15591 1 == 1
15592
15593 InternalBenchmark.tests.cpp:<line number>: PASSED:
15594 REQUIRE( o.total() == los + lom + him + his )
15595 with expansion:
15596 1 == 1
15597
15598 -------------------------------------------------------------------------------
15599 classify_outliers
15600 mixed
15601 -------------------------------------------------------------------------------
15602 InternalBenchmark.tests.cpp:<line number>
15603 ...............................................................................
15604
15605 InternalBenchmark.tests.cpp:<line number>: PASSED:
15606 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
15607 with expansion:
15608 6 == 6
15609
15610 InternalBenchmark.tests.cpp:<line number>: PASSED:
15611 REQUIRE( o.low_severe == los )
15612 with expansion:
15613 1 == 1
15614
15615 InternalBenchmark.tests.cpp:<line number>: PASSED:
15616 REQUIRE( o.low_mild == lom )
15617 with expansion:
15618 0 == 0
15619
15620 InternalBenchmark.tests.cpp:<line number>: PASSED:
15621 REQUIRE( o.high_mild == him )
15622 with expansion:
15623 1 == 1
15624
15625 InternalBenchmark.tests.cpp:<line number>: PASSED:
15626 REQUIRE( o.high_severe == his )
15627 with expansion:
15628 0 == 0
15629
15630 InternalBenchmark.tests.cpp:<line number>: PASSED:
15631 REQUIRE( o.total() == los + lom + him + his )
15632 with expansion:
15633 2 == 2
15634
15635 -------------------------------------------------------------------------------
15636 comparisons between const int variables
15637 -------------------------------------------------------------------------------
15638 Condition.tests.cpp:<line number>
15639 ...............................................................................
15640
15641 Condition.tests.cpp:<line number>: PASSED:
15642 REQUIRE( unsigned_char_var == 1 )
15643 with expansion:
15644 1 == 1
15645
15646 Condition.tests.cpp:<line number>: PASSED:
15647 REQUIRE( unsigned_short_var == 1 )
15648 with expansion:
15649 1 == 1
15650
15651 Condition.tests.cpp:<line number>: PASSED:
15652 REQUIRE( unsigned_int_var == 1 )
15653 with expansion:
15654 1 == 1
15655
15656 Condition.tests.cpp:<line number>: PASSED:
15657 REQUIRE( unsigned_long_var == 1 )
15658 with expansion:
15659 1 == 1
15660
15661 -------------------------------------------------------------------------------
15662 comparisons between int variables
15663 -------------------------------------------------------------------------------
15664 Condition.tests.cpp:<line number>
15665 ...............................................................................
15666
15667 Condition.tests.cpp:<line number>: PASSED:
15668 REQUIRE( long_var == unsigned_char_var )
15669 with expansion:
15670 1 == 1
15671
15672 Condition.tests.cpp:<line number>: PASSED:
15673 REQUIRE( long_var == unsigned_short_var )
15674 with expansion:
15675 1 == 1
15676
15677 Condition.tests.cpp:<line number>: PASSED:
15678 REQUIRE( long_var == unsigned_int_var )
15679 with expansion:
15680 1 == 1
15681
15682 Condition.tests.cpp:<line number>: PASSED:
15683 REQUIRE( long_var == unsigned_long_var )
15684 with expansion:
15685 1 == 1
15686
15687 -------------------------------------------------------------------------------
15688 convertToBits
15689 -------------------------------------------------------------------------------
15690 FloatingPoint.tests.cpp:<line number>
15691 ...............................................................................
15692
15693 FloatingPoint.tests.cpp:<line number>: PASSED:
15694 CHECK( convertToBits( 0.f ) == 0 )
15695 with expansion:
15696 0 == 0
15697
15698 FloatingPoint.tests.cpp:<line number>: PASSED:
15699 CHECK( convertToBits( -0.f ) == ( 1ULL << 31 ) )
15700 with expansion:
15701 2147483648 (0x<hex digits>)
15702 ==
15703 2147483648 (0x<hex digits>)
15704
15705 FloatingPoint.tests.cpp:<line number>: PASSED:
15706 CHECK( convertToBits( 0. ) == 0 )
15707 with expansion:
15708 0 == 0
15709
15710 FloatingPoint.tests.cpp:<line number>: PASSED:
15711 CHECK( convertToBits( -0. ) == ( 1ULL << 63 ) )
15712 with expansion:
15713 9223372036854775808 (0x<hex digits>)
15714 ==
15715 9223372036854775808 (0x<hex digits>)
15716
15717 FloatingPoint.tests.cpp:<line number>: PASSED:
15718 CHECK( convertToBits( std::numeric_limits<float>::denorm_min() ) == 1 )
15719 with expansion:
15720 1 == 1
15721
15722 FloatingPoint.tests.cpp:<line number>: PASSED:
15723 CHECK( convertToBits( std::numeric_limits<double>::denorm_min() ) == 1 )
15724 with expansion:
15725 1 == 1
15726
15727 -------------------------------------------------------------------------------
15728 dynamic skipping works with generators
15729 -------------------------------------------------------------------------------
15730 Skip.tests.cpp:<line number>
15731 ...............................................................................
15732
15733 Skip.tests.cpp:<line number>: SKIPPED:
15734 explicitly with message:
15735 skipping because answer = 41
15736
15737 -------------------------------------------------------------------------------
15738 dynamic skipping works with generators
15739 -------------------------------------------------------------------------------
15740 Skip.tests.cpp:<line number>
15741 ...............................................................................
15742
15743 Skip.tests.cpp:<line number>: PASSED:
15744
15745 -------------------------------------------------------------------------------
15746 dynamic skipping works with generators
15747 -------------------------------------------------------------------------------
15748 Skip.tests.cpp:<line number>
15749 ...............................................................................
15750
15751 Skip.tests.cpp:<line number>: SKIPPED:
15752 explicitly with message:
15753 skipping because answer = 43
15754
15755 -------------------------------------------------------------------------------
15756 empty tags are not allowed
15757 -------------------------------------------------------------------------------
15758 Tag.tests.cpp:<line number>
15759 ...............................................................................
15760
15761 Tag.tests.cpp:<line number>: PASSED:
15762 REQUIRE_THROWS( Catch::TestCaseInfo("", { "test with an empty tag", "[]" }, dummySourceLineInfo) )
15763
15764 -------------------------------------------------------------------------------
15765 erfc_inv
15766 -------------------------------------------------------------------------------
15767 InternalBenchmark.tests.cpp:<line number>
15768 ...............................................................................
15769
15770 InternalBenchmark.tests.cpp:<line number>: PASSED:
15771 CHECK( erfc_inv(1.103560) == Approx(-0.09203687623843015) )
15772 with expansion:
15773 -0.0920368762 == Approx( -0.0920368762 )
15774
15775 InternalBenchmark.tests.cpp:<line number>: PASSED:
15776 CHECK( erfc_inv(1.067400) == Approx(-0.05980291115763361) )
15777 with expansion:
15778 -0.0598029112 == Approx( -0.0598029112 )
15779
15780 InternalBenchmark.tests.cpp:<line number>: PASSED:
15781 CHECK( erfc_inv(0.050000) == Approx(1.38590382434967796) )
15782 with expansion:
15783 1.3859038243 == Approx( 1.3859038243 )
15784
15785 -------------------------------------------------------------------------------
15786 estimate_clock_resolution
15787 -------------------------------------------------------------------------------
15788 InternalBenchmark.tests.cpp:<line number>
15789 ...............................................................................
15790
15791 InternalBenchmark.tests.cpp:<line number>: PASSED:
15792 REQUIRE( res.mean.count() == rate )
15793 with expansion:
15794 2000.0 == 2000 (0x<hex digits>)
15795
15796 InternalBenchmark.tests.cpp:<line number>: PASSED:
15797 REQUIRE( res.outliers.total() == 0 )
15798 with expansion:
15799 0 == 0
15800
15801 -------------------------------------------------------------------------------
15802 even more nested SECTION tests
15803 c
15804 d (leaf)
15805 -------------------------------------------------------------------------------
15806 Misc.tests.cpp:<line number>
15807 ...............................................................................
15808
15809 Misc.tests.cpp:<line number>: PASSED:
15810
15811 -------------------------------------------------------------------------------
15812 even more nested SECTION tests
15813 c
15814 e (leaf)
15815 -------------------------------------------------------------------------------
15816 Misc.tests.cpp:<line number>
15817 ...............................................................................
15818
15819 Misc.tests.cpp:<line number>: PASSED:
15820
15821 -------------------------------------------------------------------------------
15822 even more nested SECTION tests
15823 f (leaf)
15824 -------------------------------------------------------------------------------
15825 Misc.tests.cpp:<line number>
15826 ...............................................................................
15827
15828 Misc.tests.cpp:<line number>: PASSED:
15829
15830 -------------------------------------------------------------------------------
15831 failed assertions before SKIP cause test case to fail
15832 -------------------------------------------------------------------------------
15833 Skip.tests.cpp:<line number>
15834 ...............................................................................
15835
15836 Skip.tests.cpp:<line number>: FAILED:
15837 CHECK( 3 == 4 )
15838
15839 Skip.tests.cpp:<line number>: SKIPPED:
15840
15841 -------------------------------------------------------------------------------
15842 failing for some generator values causes entire test case to fail
15843 -------------------------------------------------------------------------------
15844 Skip.tests.cpp:<line number>
15845 ...............................................................................
15846
15847 Skip.tests.cpp:<line number>: FAILED:
15848
15849 -------------------------------------------------------------------------------
15850 failing for some generator values causes entire test case to fail
15851 -------------------------------------------------------------------------------
15852 Skip.tests.cpp:<line number>
15853 ...............................................................................
15854
15855 Skip.tests.cpp:<line number>: SKIPPED:
15856
15857 -------------------------------------------------------------------------------
15858 failing for some generator values causes entire test case to fail
15859 -------------------------------------------------------------------------------
15860 Skip.tests.cpp:<line number>
15861 ...............................................................................
15862
15863 Skip.tests.cpp:<line number>: FAILED:
15864
15865 -------------------------------------------------------------------------------
15866 failing for some generator values causes entire test case to fail
15867 -------------------------------------------------------------------------------
15868 Skip.tests.cpp:<line number>
15869 ...............................................................................
15870
15871 Skip.tests.cpp:<line number>: SKIPPED:
15872
15873 -------------------------------------------------------------------------------
15874 failing in some unskipped sections causes entire test case to fail
15875 skipped
15876 -------------------------------------------------------------------------------
15877 Skip.tests.cpp:<line number>
15878 ...............................................................................
15879
15880 Skip.tests.cpp:<line number>: SKIPPED:
15881
15882 -------------------------------------------------------------------------------
15883 failing in some unskipped sections causes entire test case to fail
15884 not skipped
15885 -------------------------------------------------------------------------------
15886 Skip.tests.cpp:<line number>
15887 ...............................................................................
15888
15889 Skip.tests.cpp:<line number>: FAILED:
15890
15891 -------------------------------------------------------------------------------
15892 first tag
15893 -------------------------------------------------------------------------------
15894 Misc.tests.cpp:<line number>
15895 ...............................................................................
15896
15897
15898 No assertions in test case 'first tag'
15899
15900 loose text artifact
15901 -------------------------------------------------------------------------------
15902 has printf
15903 -------------------------------------------------------------------------------
15904 Tricky.tests.cpp:<line number>
15905 ...............................................................................
15906
15907
15908 No assertions in test case 'has printf'
15909
15910 -------------------------------------------------------------------------------
15911 is_unary_function
15912 -------------------------------------------------------------------------------
15913 Clara.tests.cpp:<line number>
15914 ...............................................................................
15915
15916 Clara.tests.cpp:<line number>: PASSED:
15917 with message:
15918 Catch::Clara::Detail::is_unary_function<decltype(unary1)>::value
15919
15920 Clara.tests.cpp:<line number>: PASSED:
15921 with message:
15922 Catch::Clara::Detail::is_unary_function<decltype(unary2)>::value
15923
15924 Clara.tests.cpp:<line number>: PASSED:
15925 with message:
15926 Catch::Clara::Detail::is_unary_function<decltype(unary3)>::value
15927
15928 Clara.tests.cpp:<line number>: PASSED:
15929 with message:
15930 Catch::Clara::Detail::is_unary_function<decltype(unary4)>::value
15931
15932 Clara.tests.cpp:<line number>: PASSED:
15933 with message:
15934 Catch::Clara::Detail::is_unary_function<decltype(unary5)>::value
15935
15936 Clara.tests.cpp:<line number>: PASSED:
15937 with message:
15938 Catch::Clara::Detail::is_unary_function<decltype(unary6)>::value
15939
15940 Clara.tests.cpp:<line number>: PASSED:
15941 with message:
15942 !(Catch::Clara::Detail::is_unary_function<decltype(binary1)>::value)
15943
15944 Clara.tests.cpp:<line number>: PASSED:
15945 with message:
15946 !(Catch::Clara::Detail::is_unary_function<decltype(binary2)>::value)
15947
15948 Clara.tests.cpp:<line number>: PASSED:
15949 with message:
15950 !(Catch::Clara::Detail::is_unary_function<decltype(nullary1)>::value)
15951
15952 Clara.tests.cpp:<line number>: PASSED:
15953 with message:
15954 !(Catch::Clara::Detail::is_unary_function<decltype(nullary2)>::value)
15955
15956 Clara.tests.cpp:<line number>: PASSED:
15957 with message:
15958 !(Catch::Clara::Detail::is_unary_function<int>::value)
15959
15960 Clara.tests.cpp:<line number>: PASSED:
15961 with message:
15962 !(Catch::Clara::Detail::is_unary_function<std::string const&>::value)
15963
15964 -------------------------------------------------------------------------------
15965 just failure
15966 -------------------------------------------------------------------------------
15967 Message.tests.cpp:<line number>
15968 ...............................................................................
15969
15970 Message.tests.cpp:<line number>: FAILED:
15971 explicitly with message:
15972 Previous info should not be seen
15973
15974 -------------------------------------------------------------------------------
15975 just failure after unscoped info
15976 -------------------------------------------------------------------------------
15977 Message.tests.cpp:<line number>
15978 ...............................................................................
15979
15980 Message.tests.cpp:<line number>: FAILED:
15981 explicitly with message:
15982 previous unscoped info SHOULD not be seen
15983
15984 -------------------------------------------------------------------------------
15985 just info
15986 -------------------------------------------------------------------------------
15987 Message.tests.cpp:<line number>
15988 ...............................................................................
15989
15990
15991 No assertions in test case 'just info'
15992
15993 -------------------------------------------------------------------------------
15994 just unscoped info
15995 -------------------------------------------------------------------------------
15996 Message.tests.cpp:<line number>
15997 ...............................................................................
15998
15999
16000 No assertions in test case 'just unscoped info'
16001
16002 -------------------------------------------------------------------------------
16003 long long
16004 -------------------------------------------------------------------------------
16005 Misc.tests.cpp:<line number>
16006 ...............................................................................
16007
16008 Misc.tests.cpp:<line number>: PASSED:
16009 REQUIRE( l == std::numeric_limits<long long>::max() )
16010 with expansion:
16011 9223372036854775807 (0x<hex digits>)
16012 ==
16013 9223372036854775807 (0x<hex digits>)
16014
16015 -------------------------------------------------------------------------------
16016 looped SECTION tests
16017 b is currently: 0
16018 -------------------------------------------------------------------------------
16019 Misc.tests.cpp:<line number>
16020 ...............................................................................
16021
16022 Misc.tests.cpp:<line number>: FAILED:
16023 CHECK( b > a )
16024 with expansion:
16025 0 > 1
16026
16027 -------------------------------------------------------------------------------
16028 looped SECTION tests
16029 b is currently: 1
16030 -------------------------------------------------------------------------------
16031 Misc.tests.cpp:<line number>
16032 ...............................................................................
16033
16034 Misc.tests.cpp:<line number>: FAILED:
16035 CHECK( b > a )
16036 with expansion:
16037 1 > 1
16038
16039 -------------------------------------------------------------------------------
16040 looped SECTION tests
16041 b is currently: 2
16042 -------------------------------------------------------------------------------
16043 Misc.tests.cpp:<line number>
16044 ...............................................................................
16045
16046 Misc.tests.cpp:<line number>: PASSED:
16047 CHECK( b > a )
16048 with expansion:
16049 2 > 1
16050
16051 -------------------------------------------------------------------------------
16052 looped SECTION tests
16053 b is currently: 3
16054 -------------------------------------------------------------------------------
16055 Misc.tests.cpp:<line number>
16056 ...............................................................................
16057
16058 Misc.tests.cpp:<line number>: PASSED:
16059 CHECK( b > a )
16060 with expansion:
16061 3 > 1
16062
16063 -------------------------------------------------------------------------------
16064 looped SECTION tests
16065 b is currently: 4
16066 -------------------------------------------------------------------------------
16067 Misc.tests.cpp:<line number>
16068 ...............................................................................
16069
16070 Misc.tests.cpp:<line number>: PASSED:
16071 CHECK( b > a )
16072 with expansion:
16073 4 > 1
16074
16075 -------------------------------------------------------------------------------
16076 looped SECTION tests
16077 b is currently: 5
16078 -------------------------------------------------------------------------------
16079 Misc.tests.cpp:<line number>
16080 ...............................................................................
16081
16082 Misc.tests.cpp:<line number>: PASSED:
16083 CHECK( b > a )
16084 with expansion:
16085 5 > 1
16086
16087 -------------------------------------------------------------------------------
16088 looped SECTION tests
16089 b is currently: 6
16090 -------------------------------------------------------------------------------
16091 Misc.tests.cpp:<line number>
16092 ...............................................................................
16093
16094 Misc.tests.cpp:<line number>: PASSED:
16095 CHECK( b > a )
16096 with expansion:
16097 6 > 1
16098
16099 -------------------------------------------------------------------------------
16100 looped SECTION tests
16101 b is currently: 7
16102 -------------------------------------------------------------------------------
16103 Misc.tests.cpp:<line number>
16104 ...............................................................................
16105
16106 Misc.tests.cpp:<line number>: PASSED:
16107 CHECK( b > a )
16108 with expansion:
16109 7 > 1
16110
16111 -------------------------------------------------------------------------------
16112 looped SECTION tests
16113 b is currently: 8
16114 -------------------------------------------------------------------------------
16115 Misc.tests.cpp:<line number>
16116 ...............................................................................
16117
16118 Misc.tests.cpp:<line number>: PASSED:
16119 CHECK( b > a )
16120 with expansion:
16121 8 > 1
16122
16123 -------------------------------------------------------------------------------
16124 looped SECTION tests
16125 b is currently: 9
16126 -------------------------------------------------------------------------------
16127 Misc.tests.cpp:<line number>
16128 ...............................................................................
16129
16130 Misc.tests.cpp:<line number>: PASSED:
16131 CHECK( b > a )
16132 with expansion:
16133 9 > 1
16134
16135 -------------------------------------------------------------------------------
16136 looped tests
16137 -------------------------------------------------------------------------------
16138 Misc.tests.cpp:<line number>
16139 ...............................................................................
16140
16141 Misc.tests.cpp:<line number>: FAILED:
16142 CHECK( ( fib[i] % 2 ) == 0 )
16143 with expansion:
16144 1 == 0
16145 with message:
16146 Testing if fib[0] (1) is even
16147
16148 Misc.tests.cpp:<line number>: FAILED:
16149 CHECK( ( fib[i] % 2 ) == 0 )
16150 with expansion:
16151 1 == 0
16152 with message:
16153 Testing if fib[1] (1) is even
16154
16155 Misc.tests.cpp:<line number>: PASSED:
16156 CHECK( ( fib[i] % 2 ) == 0 )
16157 with expansion:
16158 0 == 0
16159 with message:
16160 Testing if fib[2] (2) is even
16161
16162 Misc.tests.cpp:<line number>: FAILED:
16163 CHECK( ( fib[i] % 2 ) == 0 )
16164 with expansion:
16165 1 == 0
16166 with message:
16167 Testing if fib[3] (3) is even
16168
16169 Misc.tests.cpp:<line number>: FAILED:
16170 CHECK( ( fib[i] % 2 ) == 0 )
16171 with expansion:
16172 1 == 0
16173 with message:
16174 Testing if fib[4] (5) is even
16175
16176 Misc.tests.cpp:<line number>: PASSED:
16177 CHECK( ( fib[i] % 2 ) == 0 )
16178 with expansion:
16179 0 == 0
16180 with message:
16181 Testing if fib[5] (8) is even
16182
16183 Misc.tests.cpp:<line number>: FAILED:
16184 CHECK( ( fib[i] % 2 ) == 0 )
16185 with expansion:
16186 1 == 0
16187 with message:
16188 Testing if fib[6] (13) is even
16189
16190 Misc.tests.cpp:<line number>: FAILED:
16191 CHECK( ( fib[i] % 2 ) == 0 )
16192 with expansion:
16193 1 == 0
16194 with message:
16195 Testing if fib[7] (21) is even
16196
16197 -------------------------------------------------------------------------------
16198 makeStream recognizes %debug stream name
16199 -------------------------------------------------------------------------------
16200 Stream.tests.cpp:<line number>
16201 ...............................................................................
16202
16203 Stream.tests.cpp:<line number>: PASSED:
16204 REQUIRE_NOTHROW( Catch::makeStream( "%debug" ) )
16205
16206 -------------------------------------------------------------------------------
16207 make_unique reimplementation
16208 From lvalue copies
16209 -------------------------------------------------------------------------------
16210 UniquePtr.tests.cpp:<line number>
16211 ...............................................................................
16212
16213 UniquePtr.tests.cpp:<line number>: PASSED:
16214 REQUIRE_FALSE( lval.has_moved )
16215 with expansion:
16216 !false
16217
16218 -------------------------------------------------------------------------------
16219 make_unique reimplementation
16220 From rvalue moves
16221 -------------------------------------------------------------------------------
16222 UniquePtr.tests.cpp:<line number>
16223 ...............................................................................
16224
16225 UniquePtr.tests.cpp:<line number>: PASSED:
16226 REQUIRE( rval.has_moved )
16227 with expansion:
16228 true
16229
16230 -------------------------------------------------------------------------------
16231 make_unique reimplementation
16232 Variadic constructor
16233 -------------------------------------------------------------------------------
16234 UniquePtr.tests.cpp:<line number>
16235 ...............................................................................
16236
16237 UniquePtr.tests.cpp:<line number>: PASSED:
16238 REQUIRE( *ptr == std::tuple<int, double, int>{1, 2., 3} )
16239 with expansion:
16240 {?} == {?}
16241
16242 -------------------------------------------------------------------------------
16243 mean
16244 -------------------------------------------------------------------------------
16245 InternalBenchmark.tests.cpp:<line number>
16246 ...............................................................................
16247
16248 InternalBenchmark.tests.cpp:<line number>: PASSED:
16249 REQUIRE( m == 19. )
16250 with expansion:
16251 19.0 == 19.0
16252
16253 -------------------------------------------------------------------------------
16254 measure
16255 -------------------------------------------------------------------------------
16256 InternalBenchmark.tests.cpp:<line number>
16257 ...............................................................................
16258
16259 InternalBenchmark.tests.cpp:<line number>: PASSED:
16260 CHECK( x == 17 )
16261 with expansion:
16262 17 == 17
16263
16264 InternalBenchmark.tests.cpp:<line number>: PASSED:
16265 CHECK( x == 23 )
16266 with expansion:
16267 23 == 23
16268
16269 InternalBenchmark.tests.cpp:<line number>: PASSED:
16270 CHECK( r.elapsed.count() == 42 )
16271 with expansion:
16272 42 == 42
16273
16274 InternalBenchmark.tests.cpp:<line number>: PASSED:
16275 CHECK( r.result == 23 )
16276 with expansion:
16277 23 == 23
16278
16279 InternalBenchmark.tests.cpp:<line number>: PASSED:
16280 CHECK( r.iterations == 1 )
16281 with expansion:
16282 1 == 1
16283
16284 InternalBenchmark.tests.cpp:<line number>: PASSED:
16285 CHECK( s.elapsed.count() == 69 )
16286 with expansion:
16287 69 == 69
16288
16289 InternalBenchmark.tests.cpp:<line number>: PASSED:
16290 CHECK( s.result == 17 )
16291 with expansion:
16292 17 == 17
16293
16294 InternalBenchmark.tests.cpp:<line number>: PASSED:
16295 CHECK( s.iterations == 1 )
16296 with expansion:
16297 1 == 1
16298
16299 -------------------------------------------------------------------------------
16300 mix info, unscoped info and warning
16301 -------------------------------------------------------------------------------
16302 Message.tests.cpp:<line number>
16303 ...............................................................................
16304
16305 Message.tests.cpp:<line number>: warning:
16306 info
16307 unscoped info
16308 and warn may mix
16309
16310 Message.tests.cpp:<line number>: warning:
16311 info
16312 unscoped info
16313 they are not cleared after warnings
16314
16315
16316 No assertions in test case 'mix info, unscoped info and warning'
16317
16318 -------------------------------------------------------------------------------
16319 more nested SECTION tests
16320 doesn't equal
16321 equal
16322 -------------------------------------------------------------------------------
16323 Misc.tests.cpp:<line number>
16324 ...............................................................................
16325
16326 Misc.tests.cpp:<line number>: FAILED:
16327 REQUIRE( a == b )
16328 with expansion:
16329 1 == 2
16330
16331 -------------------------------------------------------------------------------
16332 more nested SECTION tests
16333 doesn't equal
16334 not equal
16335 -------------------------------------------------------------------------------
16336 Misc.tests.cpp:<line number>
16337 ...............................................................................
16338
16339 Misc.tests.cpp:<line number>: PASSED:
16340 REQUIRE( a != b )
16341 with expansion:
16342 1 != 2
16343
16344 -------------------------------------------------------------------------------
16345 more nested SECTION tests
16346 doesn't equal
16347 less than
16348 -------------------------------------------------------------------------------
16349 Misc.tests.cpp:<line number>
16350 ...............................................................................
16351
16352 Misc.tests.cpp:<line number>: PASSED:
16353 REQUIRE( a < b )
16354 with expansion:
16355 1 < 2
16356
16357 -------------------------------------------------------------------------------
16358 nested SECTION tests
16359 doesn't equal
16360 -------------------------------------------------------------------------------
16361 Misc.tests.cpp:<line number>
16362 ...............................................................................
16363
16364 Misc.tests.cpp:<line number>: PASSED:
16365 REQUIRE( a != b )
16366 with expansion:
16367 1 != 2
16368
16369 Misc.tests.cpp:<line number>: PASSED:
16370 REQUIRE( b != a )
16371 with expansion:
16372 2 != 1
16373
16374 -------------------------------------------------------------------------------
16375 nested SECTION tests
16376 doesn't equal
16377 not equal
16378 -------------------------------------------------------------------------------
16379 Misc.tests.cpp:<line number>
16380 ...............................................................................
16381
16382 Misc.tests.cpp:<line number>: PASSED:
16383 REQUIRE( a != b )
16384 with expansion:
16385 1 != 2
16386
16387 a-------------------------------------------------------------------------------
16388 nested sections can be skipped dynamically at runtime
16389 A
16390 -------------------------------------------------------------------------------
16391 Skip.tests.cpp:<line number>
16392 ...............................................................................
16393
16394
16395 No assertions in section 'A'
16396
16397 !
16398 b1-------------------------------------------------------------------------------
16399 nested sections can be skipped dynamically at runtime
16400 B
16401 B1
16402 -------------------------------------------------------------------------------
16403 Skip.tests.cpp:<line number>
16404 ...............................................................................
16405
16406
16407 No assertions in section 'B1'
16408
16409 !
16410 -------------------------------------------------------------------------------
16411 nested sections can be skipped dynamically at runtime
16412 B
16413 B2
16414 -------------------------------------------------------------------------------
16415 Skip.tests.cpp:<line number>
16416 ...............................................................................
16417
16418 Skip.tests.cpp:<line number>: SKIPPED:
16419
16420 !
16421 -------------------------------------------------------------------------------
16422 non streamable - with conv. op
16423 -------------------------------------------------------------------------------
16424 Tricky.tests.cpp:<line number>
16425 ...............................................................................
16426
16427 Tricky.tests.cpp:<line number>: PASSED:
16428 REQUIRE( s == "7" )
16429 with expansion:
16430 "7" == "7"
16431
16432 -------------------------------------------------------------------------------
16433 non-copyable objects
16434 -------------------------------------------------------------------------------
16435 Tricky.tests.cpp:<line number>
16436 ...............................................................................
16437
16438 Tricky.tests.cpp:<line number>: PASSED:
16439 CHECK( ti == typeid(int) )
16440 with expansion:
16441 {?} == {?}
16442
16443 -------------------------------------------------------------------------------
16444 normal_cdf
16445 -------------------------------------------------------------------------------
16446 InternalBenchmark.tests.cpp:<line number>
16447 ...............................................................................
16448
16449 InternalBenchmark.tests.cpp:<line number>: PASSED:
16450 CHECK( normal_cdf(0.000000) == Approx(0.50000000000000000) )
16451 with expansion:
16452 0.5 == Approx( 0.5 )
16453
16454 InternalBenchmark.tests.cpp:<line number>: PASSED:
16455 CHECK( normal_cdf(1.000000) == Approx(0.84134474606854293) )
16456 with expansion:
16457 0.8413447461 == Approx( 0.8413447461 )
16458
16459 InternalBenchmark.tests.cpp:<line number>: PASSED:
16460 CHECK( normal_cdf(-1.000000) == Approx(0.15865525393145705) )
16461 with expansion:
16462 0.1586552539 == Approx( 0.1586552539 )
16463
16464 InternalBenchmark.tests.cpp:<line number>: PASSED:
16465 CHECK( normal_cdf(2.809729) == Approx(0.99752083845315409) )
16466 with expansion:
16467 0.9975208385 == Approx( 0.9975208385 )
16468
16469 InternalBenchmark.tests.cpp:<line number>: PASSED:
16470 CHECK( normal_cdf(-1.352570) == Approx(0.08809652095066035) )
16471 with expansion:
16472 0.088096521 == Approx( 0.088096521 )
16473
16474 -------------------------------------------------------------------------------
16475 normal_quantile
16476 -------------------------------------------------------------------------------
16477 InternalBenchmark.tests.cpp:<line number>
16478 ...............................................................................
16479
16480 InternalBenchmark.tests.cpp:<line number>: PASSED:
16481 CHECK( normal_quantile(0.551780) == Approx(0.13015979861484198) )
16482 with expansion:
16483 0.1301597986 == Approx( 0.1301597986 )
16484
16485 InternalBenchmark.tests.cpp:<line number>: PASSED:
16486 CHECK( normal_quantile(0.533700) == Approx(0.08457408802851875) )
16487 with expansion:
16488 0.084574088 == Approx( 0.084574088 )
16489
16490 InternalBenchmark.tests.cpp:<line number>: PASSED:
16491 CHECK( normal_quantile(0.025000) == Approx(-1.95996398454005449) )
16492 with expansion:
16493 -1.9599639845 == Approx( -1.9599639845 )
16494
16495 -------------------------------------------------------------------------------
16496 not allowed
16497 -------------------------------------------------------------------------------
16498 Misc.tests.cpp:<line number>
16499 ...............................................................................
16500
16501 Misc.tests.cpp:<line number>: PASSED:
16502
16503 -------------------------------------------------------------------------------
16504 not prints unscoped info from previous failures
16505 -------------------------------------------------------------------------------
16506 Message.tests.cpp:<line number>
16507 ...............................................................................
16508
16509 Message.tests.cpp:<line number>: PASSED:
16510 REQUIRE( true )
16511 with message:
16512 this MAY be seen only for the FIRST assertion IF info is printed for passing
16513 assertions
16514
16515 Message.tests.cpp:<line number>: PASSED:
16516 REQUIRE( true )
16517 with message:
16518 this MAY be seen only for the SECOND assertion IF info is printed for passing
16519 assertions
16520
16521 Message.tests.cpp:<line number>: FAILED:
16522 REQUIRE( false )
16523 with message:
16524 this SHOULD be seen
16525
16526 -------------------------------------------------------------------------------
16527 null strings
16528 -------------------------------------------------------------------------------
16529 Misc.tests.cpp:<line number>
16530 ...............................................................................
16531
16532 Misc.tests.cpp:<line number>: PASSED:
16533 REQUIRE( makeString( false ) != static_cast<char*>(0) )
16534 with expansion:
16535 "valid string" != {null string}
16536
16537 Misc.tests.cpp:<line number>: PASSED:
16538 REQUIRE( makeString( true ) == static_cast<char*>(0) )
16539 with expansion:
16540 {null string} == {null string}
16541
16542 -------------------------------------------------------------------------------
16543 null_ptr
16544 -------------------------------------------------------------------------------
16545 Tricky.tests.cpp:<line number>
16546 ...............................................................................
16547
16548 Tricky.tests.cpp:<line number>: PASSED:
16549 REQUIRE( ptr.get() == 0 )
16550 with expansion:
16551 0 == 0
16552
16553 -------------------------------------------------------------------------------
16554 pair<pair<int,const char *,pair<std::string,int> > -> toString
16555 -------------------------------------------------------------------------------
16556 ToStringPair.tests.cpp:<line number>
16557 ...............................................................................
16558
16559 ToStringPair.tests.cpp:<line number>: PASSED:
16560 REQUIRE( ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" )
16561 with expansion:
16562 "{ { 42, "Arthur" }, { "Ford", 24 } }"
16563 ==
16564 "{ { 42, "Arthur" }, { "Ford", 24 } }"
16565
16566 -------------------------------------------------------------------------------
16567 parseEnums
16568 No enums
16569 -------------------------------------------------------------------------------
16570 ToString.tests.cpp:<line number>
16571 ...............................................................................
16572
16573 ToString.tests.cpp:<line number>: PASSED:
16574 CHECK_THAT( parseEnums( "" ), Equals( std::vector<Catch::StringRef>{} ) )
16575 with expansion:
16576 { } Equals: { }
16577
16578 -------------------------------------------------------------------------------
16579 parseEnums
16580 One enum value
16581 -------------------------------------------------------------------------------
16582 ToString.tests.cpp:<line number>
16583 ...............................................................................
16584
16585 ToString.tests.cpp:<line number>: PASSED:
16586 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
16587 with expansion:
16588 { Value1 } Equals: { Value1 }
16589
16590 ToString.tests.cpp:<line number>: PASSED:
16591 CHECK_THAT( parseEnums( "Value1" ), Equals( std::vector<Catch::StringRef>{"Value1"} ) )
16592 with expansion:
16593 { Value1 } Equals: { Value1 }
16594
16595 ToString.tests.cpp:<line number>: PASSED:
16596 CHECK_THAT( parseEnums( "EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
16597 with expansion:
16598 { Value1 } Equals: { Value1 }
16599
16600 -------------------------------------------------------------------------------
16601 parseEnums
16602 Multiple enum values
16603 -------------------------------------------------------------------------------
16604 ToString.tests.cpp:<line number>
16605 ...............................................................................
16606
16607 ToString.tests.cpp:<line number>: PASSED:
16608 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2"} ) )
16609 with expansion:
16610 { Value1, Value2 } Equals: { Value1, Value2 }
16611
16612 ToString.tests.cpp:<line number>: PASSED:
16613 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
16614 with expansion:
16615 { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
16616
16617 ToString.tests.cpp:<line number>: PASSED:
16618 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
16619 with expansion:
16620 { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
16621
16622 -------------------------------------------------------------------------------
16623 pointer to class
16624 -------------------------------------------------------------------------------
16625 Tricky.tests.cpp:<line number>
16626 ...............................................................................
16627
16628 Tricky.tests.cpp:<line number>: PASSED:
16629 REQUIRE( p == 0 )
16630 with expansion:
16631 0 == 0
16632
16633 -------------------------------------------------------------------------------
16634 print unscoped info if passing unscoped info is printed
16635 -------------------------------------------------------------------------------
16636 Message.tests.cpp:<line number>
16637 ...............................................................................
16638
16639 Message.tests.cpp:<line number>: PASSED:
16640 REQUIRE( true )
16641 with message:
16642 this MAY be seen IF info is printed for passing assertions
16643
16644 -------------------------------------------------------------------------------
16645 prints unscoped info on failure
16646 -------------------------------------------------------------------------------
16647 Message.tests.cpp:<line number>
16648 ...............................................................................
16649
16650 Message.tests.cpp:<line number>: FAILED:
16651 REQUIRE( false )
16652 with messages:
16653 this SHOULD be seen
16654 this SHOULD also be seen
16655
16656 -------------------------------------------------------------------------------
16657 prints unscoped info only for the first assertion
16658 -------------------------------------------------------------------------------
16659 Message.tests.cpp:<line number>
16660 ...............................................................................
16661
16662 Message.tests.cpp:<line number>: FAILED:
16663 CHECK( false )
16664 with message:
16665 this SHOULD be seen only ONCE
16666
16667 Message.tests.cpp:<line number>: PASSED:
16668 CHECK( true )
16669
16670 Message.tests.cpp:<line number>: PASSED:
16671 CHECK( true )
16672 with message:
16673 this MAY also be seen only ONCE IF info is printed for passing assertions
16674
16675 Message.tests.cpp:<line number>: PASSED:
16676 CHECK( true )
16677
16678 -------------------------------------------------------------------------------
16679 random SECTION tests
16680 doesn't equal
16681 -------------------------------------------------------------------------------
16682 Misc.tests.cpp:<line number>
16683 ...............................................................................
16684
16685 Misc.tests.cpp:<line number>: PASSED:
16686 REQUIRE( a != b )
16687 with expansion:
16688 1 != 2
16689
16690 Misc.tests.cpp:<line number>: PASSED:
16691 REQUIRE( b != a )
16692 with expansion:
16693 2 != 1
16694
16695 -------------------------------------------------------------------------------
16696 random SECTION tests
16697 not equal
16698 -------------------------------------------------------------------------------
16699 Misc.tests.cpp:<line number>
16700 ...............................................................................
16701
16702 Misc.tests.cpp:<line number>: PASSED:
16703 REQUIRE( a != b )
16704 with expansion:
16705 1 != 2
16706
16707 -------------------------------------------------------------------------------
16708 replaceInPlace
16709 replace single char
16710 -------------------------------------------------------------------------------
16711 StringManip.tests.cpp:<line number>
16712 ...............................................................................
16713
16714 StringManip.tests.cpp:<line number>: PASSED:
16715 CHECK( Catch::replaceInPlace(letters, "b", "z") )
16716 with expansion:
16717 true
16718
16719 StringManip.tests.cpp:<line number>: PASSED:
16720 CHECK( letters == "azcdefcg" )
16721 with expansion:
16722 "azcdefcg" == "azcdefcg"
16723
16724 -------------------------------------------------------------------------------
16725 replaceInPlace
16726 replace two chars
16727 -------------------------------------------------------------------------------
16728 StringManip.tests.cpp:<line number>
16729 ...............................................................................
16730
16731 StringManip.tests.cpp:<line number>: PASSED:
16732 CHECK( Catch::replaceInPlace(letters, "c", "z") )
16733 with expansion:
16734 true
16735
16736 StringManip.tests.cpp:<line number>: PASSED:
16737 CHECK( letters == "abzdefzg" )
16738 with expansion:
16739 "abzdefzg" == "abzdefzg"
16740
16741 -------------------------------------------------------------------------------
16742 replaceInPlace
16743 replace first char
16744 -------------------------------------------------------------------------------
16745 StringManip.tests.cpp:<line number>
16746 ...............................................................................
16747
16748 StringManip.tests.cpp:<line number>: PASSED:
16749 CHECK( Catch::replaceInPlace(letters, "a", "z") )
16750 with expansion:
16751 true
16752
16753 StringManip.tests.cpp:<line number>: PASSED:
16754 CHECK( letters == "zbcdefcg" )
16755 with expansion:
16756 "zbcdefcg" == "zbcdefcg"
16757
16758 -------------------------------------------------------------------------------
16759 replaceInPlace
16760 replace last char
16761 -------------------------------------------------------------------------------
16762 StringManip.tests.cpp:<line number>
16763 ...............................................................................
16764
16765 StringManip.tests.cpp:<line number>: PASSED:
16766 CHECK( Catch::replaceInPlace(letters, "g", "z") )
16767 with expansion:
16768 true
16769
16770 StringManip.tests.cpp:<line number>: PASSED:
16771 CHECK( letters == "abcdefcz" )
16772 with expansion:
16773 "abcdefcz" == "abcdefcz"
16774
16775 -------------------------------------------------------------------------------
16776 replaceInPlace
16777 replace all chars
16778 -------------------------------------------------------------------------------
16779 StringManip.tests.cpp:<line number>
16780 ...............................................................................
16781
16782 StringManip.tests.cpp:<line number>: PASSED:
16783 CHECK( Catch::replaceInPlace(letters, letters, "replaced") )
16784 with expansion:
16785 true
16786
16787 StringManip.tests.cpp:<line number>: PASSED:
16788 CHECK( letters == "replaced" )
16789 with expansion:
16790 "replaced" == "replaced"
16791
16792 -------------------------------------------------------------------------------
16793 replaceInPlace
16794 replace no chars
16795 -------------------------------------------------------------------------------
16796 StringManip.tests.cpp:<line number>
16797 ...............................................................................
16798
16799 StringManip.tests.cpp:<line number>: PASSED:
16800 CHECK_FALSE( Catch::replaceInPlace(letters, "x", "z") )
16801 with expansion:
16802 !false
16803
16804 StringManip.tests.cpp:<line number>: PASSED:
16805 CHECK( letters == letters )
16806 with expansion:
16807 "abcdefcg" == "abcdefcg"
16808
16809 -------------------------------------------------------------------------------
16810 replaceInPlace
16811 escape '
16812 -------------------------------------------------------------------------------
16813 StringManip.tests.cpp:<line number>
16814 ...............................................................................
16815
16816 StringManip.tests.cpp:<line number>: PASSED:
16817 CHECK( Catch::replaceInPlace(s, "'", "|'") )
16818 with expansion:
16819 true
16820
16821 StringManip.tests.cpp:<line number>: PASSED:
16822 CHECK( s == "didn|'t" )
16823 with expansion:
16824 "didn|'t" == "didn|'t"
16825
16826 -------------------------------------------------------------------------------
16827 request an unknown %-starting stream fails
16828 -------------------------------------------------------------------------------
16829 Stream.tests.cpp:<line number>
16830 ...............................................................................
16831
16832 Stream.tests.cpp:<line number>: PASSED:
16833 REQUIRE_THROWS( Catch::makeStream( "%somestream" ) )
16834
16835 -------------------------------------------------------------------------------
16836 resolution
16837 -------------------------------------------------------------------------------
16838 InternalBenchmark.tests.cpp:<line number>
16839 ...............................................................................
16840
16841 InternalBenchmark.tests.cpp:<line number>: PASSED:
16842 REQUIRE( res.size() == count )
16843 with expansion:
16844 10 == 10
16845
16846 InternalBenchmark.tests.cpp:<line number>: PASSED:
16847 REQUIRE( res[i] == rate )
16848 with expansion:
16849 1000.0 == 1000 (0x<hex digits>)
16850
16851 InternalBenchmark.tests.cpp:<line number>: PASSED:
16852 REQUIRE( res[i] == rate )
16853 with expansion:
16854 1000.0 == 1000 (0x<hex digits>)
16855
16856 InternalBenchmark.tests.cpp:<line number>: PASSED:
16857 REQUIRE( res[i] == rate )
16858 with expansion:
16859 1000.0 == 1000 (0x<hex digits>)
16860
16861 InternalBenchmark.tests.cpp:<line number>: PASSED:
16862 REQUIRE( res[i] == rate )
16863 with expansion:
16864 1000.0 == 1000 (0x<hex digits>)
16865
16866 InternalBenchmark.tests.cpp:<line number>: PASSED:
16867 REQUIRE( res[i] == rate )
16868 with expansion:
16869 1000.0 == 1000 (0x<hex digits>)
16870
16871 InternalBenchmark.tests.cpp:<line number>: PASSED:
16872 REQUIRE( res[i] == rate )
16873 with expansion:
16874 1000.0 == 1000 (0x<hex digits>)
16875
16876 InternalBenchmark.tests.cpp:<line number>: PASSED:
16877 REQUIRE( res[i] == rate )
16878 with expansion:
16879 1000.0 == 1000 (0x<hex digits>)
16880
16881 InternalBenchmark.tests.cpp:<line number>: PASSED:
16882 REQUIRE( res[i] == rate )
16883 with expansion:
16884 1000.0 == 1000 (0x<hex digits>)
16885
16886 InternalBenchmark.tests.cpp:<line number>: PASSED:
16887 REQUIRE( res[i] == rate )
16888 with expansion:
16889 1000.0 == 1000 (0x<hex digits>)
16890
16891 -------------------------------------------------------------------------------
16892 run_for_at_least, chronometer
16893 -------------------------------------------------------------------------------
16894 InternalBenchmark.tests.cpp:<line number>
16895 ...............................................................................
16896
16897 InternalBenchmark.tests.cpp:<line number>: PASSED:
16898 CHECK( meter.runs() >= old_runs )
16899 with expansion:
16900 1 >= 1
16901
16902 InternalBenchmark.tests.cpp:<line number>: PASSED:
16903 CHECK( meter.runs() >= old_runs )
16904 with expansion:
16905 2 >= 1
16906
16907 InternalBenchmark.tests.cpp:<line number>: PASSED:
16908 CHECK( meter.runs() >= old_runs )
16909 with expansion:
16910 4 >= 2
16911
16912 InternalBenchmark.tests.cpp:<line number>: PASSED:
16913 CHECK( meter.runs() >= old_runs )
16914 with expansion:
16915 8 >= 4
16916
16917 InternalBenchmark.tests.cpp:<line number>: PASSED:
16918 CHECK( meter.runs() >= old_runs )
16919 with expansion:
16920 16 >= 8
16921
16922 InternalBenchmark.tests.cpp:<line number>: PASSED:
16923 CHECK( meter.runs() >= old_runs )
16924 with expansion:
16925 32 >= 16
16926
16927 InternalBenchmark.tests.cpp:<line number>: PASSED:
16928 CHECK( meter.runs() >= old_runs )
16929 with expansion:
16930 64 >= 32
16931
16932 InternalBenchmark.tests.cpp:<line number>: PASSED:
16933 CHECK( meter.runs() >= old_runs )
16934 with expansion:
16935 128 >= 64
16936
16937 InternalBenchmark.tests.cpp:<line number>: PASSED:
16938 REQUIRE( Timing.elapsed >= time )
16939 with expansion:
16940 128 ns >= 100 ns
16941
16942 InternalBenchmark.tests.cpp:<line number>: PASSED:
16943 REQUIRE( Timing.result == Timing.iterations + 17 )
16944 with expansion:
16945 145 == 145
16946
16947 InternalBenchmark.tests.cpp:<line number>: PASSED:
16948 REQUIRE( Timing.iterations >= time.count() )
16949 with expansion:
16950 128 >= 100
16951
16952 -------------------------------------------------------------------------------
16953 run_for_at_least, int
16954 -------------------------------------------------------------------------------
16955 InternalBenchmark.tests.cpp:<line number>
16956 ...............................................................................
16957
16958 InternalBenchmark.tests.cpp:<line number>: PASSED:
16959 CHECK( x >= old_x )
16960 with expansion:
16961 1 >= 1
16962
16963 InternalBenchmark.tests.cpp:<line number>: PASSED:
16964 CHECK( x >= old_x )
16965 with expansion:
16966 2 >= 1
16967
16968 InternalBenchmark.tests.cpp:<line number>: PASSED:
16969 CHECK( x >= old_x )
16970 with expansion:
16971 4 >= 2
16972
16973 InternalBenchmark.tests.cpp:<line number>: PASSED:
16974 CHECK( x >= old_x )
16975 with expansion:
16976 8 >= 4
16977
16978 InternalBenchmark.tests.cpp:<line number>: PASSED:
16979 CHECK( x >= old_x )
16980 with expansion:
16981 16 >= 8
16982
16983 InternalBenchmark.tests.cpp:<line number>: PASSED:
16984 CHECK( x >= old_x )
16985 with expansion:
16986 32 >= 16
16987
16988 InternalBenchmark.tests.cpp:<line number>: PASSED:
16989 CHECK( x >= old_x )
16990 with expansion:
16991 64 >= 32
16992
16993 InternalBenchmark.tests.cpp:<line number>: PASSED:
16994 CHECK( x >= old_x )
16995 with expansion:
16996 128 >= 64
16997
16998 InternalBenchmark.tests.cpp:<line number>: PASSED:
16999 REQUIRE( Timing.elapsed >= time )
17000 with expansion:
17001 128 ns >= 100 ns
17002
17003 InternalBenchmark.tests.cpp:<line number>: PASSED:
17004 REQUIRE( Timing.result == Timing.iterations + 17 )
17005 with expansion:
17006 145 == 145
17007
17008 InternalBenchmark.tests.cpp:<line number>: PASSED:
17009 REQUIRE( Timing.iterations >= time.count() )
17010 with expansion:
17011 128 >= 100
17012
17013 -------------------------------------------------------------------------------
17014 second tag
17015 -------------------------------------------------------------------------------
17016 Misc.tests.cpp:<line number>
17017 ...............................................................................
17018
17019
17020 No assertions in test case 'second tag'
17021
17022 -------------------------------------------------------------------------------
17023 sections can be skipped dynamically at runtime
17024 not skipped
17025 -------------------------------------------------------------------------------
17026 Skip.tests.cpp:<line number>
17027 ...............................................................................
17028
17029 Skip.tests.cpp:<line number>: PASSED:
17030
17031 -------------------------------------------------------------------------------
17032 sections can be skipped dynamically at runtime
17033 skipped
17034 -------------------------------------------------------------------------------
17035 Skip.tests.cpp:<line number>
17036 ...............................................................................
17037
17038 Skip.tests.cpp:<line number>: SKIPPED:
17039
17040 -------------------------------------------------------------------------------
17041 sections can be skipped dynamically at runtime
17042 also not skipped
17043 -------------------------------------------------------------------------------
17044 Skip.tests.cpp:<line number>
17045 ...............................................................................
17046
17047 Skip.tests.cpp:<line number>: PASSED:
17048
17049 -------------------------------------------------------------------------------
17050 send a single char to INFO
17051 -------------------------------------------------------------------------------
17052 Misc.tests.cpp:<line number>
17053 ...............................................................................
17054
17055 Misc.tests.cpp:<line number>: FAILED:
17056 REQUIRE( false )
17057 with message:
17058 3
17059
17060 -------------------------------------------------------------------------------
17061 sends information to INFO
17062 -------------------------------------------------------------------------------
17063 Message.tests.cpp:<line number>
17064 ...............................................................................
17065
17066 Message.tests.cpp:<line number>: FAILED:
17067 REQUIRE( false )
17068 with messages:
17069 hi
17070 i := 7
17071
17072 -------------------------------------------------------------------------------
17073 shortened hide tags are split apart
17074 -------------------------------------------------------------------------------
17075 Tag.tests.cpp:<line number>
17076 ...............................................................................
17077
17078 Tag.tests.cpp:<line number>: PASSED:
17079 REQUIRE_THAT( testcase.tags, VectorContains( Tag( "magic-tag" ) ) && VectorContains( Tag( "."_catch_sr ) ) )
17080 with expansion:
17081 { {?}, {?} } ( Contains: {?} and Contains: {?} )
17082
17083 -------------------------------------------------------------------------------
17084 skipped tests can optionally provide a reason
17085 -------------------------------------------------------------------------------
17086 Skip.tests.cpp:<line number>
17087 ...............................................................................
17088
17089 Skip.tests.cpp:<line number>: SKIPPED:
17090 explicitly with message:
17091 skipping because answer = 43
17092
17093 -------------------------------------------------------------------------------
17094 splitString
17095 -------------------------------------------------------------------------------
17096 StringManip.tests.cpp:<line number>
17097 ...............................................................................
17098
17099 StringManip.tests.cpp:<line number>: PASSED:
17100 CHECK_THAT( splitStringRef("", ','), Equals(std::vector<StringRef>()) )
17101 with expansion:
17102 { } Equals: { }
17103
17104 StringManip.tests.cpp:<line number>: PASSED:
17105 CHECK_THAT( splitStringRef("abc", ','), Equals(std::vector<StringRef>{"abc"}) )
17106 with expansion:
17107 { abc } Equals: { abc }
17108
17109 StringManip.tests.cpp:<line number>: PASSED:
17110 CHECK_THAT( splitStringRef("abc,def", ','), Equals(std::vector<StringRef>{"abc", "def"}) )
17111 with expansion:
17112 { abc, def } Equals: { abc, def }
17113
17114 -------------------------------------------------------------------------------
17115 stacks unscoped info in loops
17116 -------------------------------------------------------------------------------
17117 Message.tests.cpp:<line number>
17118 ...............................................................................
17119
17120 Message.tests.cpp:<line number>: FAILED:
17121 CHECK( false )
17122 with messages:
17123 Count 1 to 3...
17124 1
17125 2
17126 3
17127
17128 Message.tests.cpp:<line number>: FAILED:
17129 CHECK( false )
17130 with messages:
17131 Count 4 to 6...
17132 4
17133 5
17134 6
17135
17136 -------------------------------------------------------------------------------
17137 startsWith
17138 -------------------------------------------------------------------------------
17139 StringManip.tests.cpp:<line number>
17140 ...............................................................................
17141
17142 StringManip.tests.cpp:<line number>: PASSED:
17143 CHECK_FALSE( startsWith("", 'c') )
17144 with expansion:
17145 !false
17146
17147 StringManip.tests.cpp:<line number>: PASSED:
17148 CHECK( startsWith(std::string("abc"), 'a') )
17149 with expansion:
17150 true
17151
17152 StringManip.tests.cpp:<line number>: PASSED:
17153 CHECK( startsWith("def"_catch_sr, 'd') )
17154 with expansion:
17155 true
17156
17157 -------------------------------------------------------------------------------
17158 std::map is convertible string
17159 empty
17160 -------------------------------------------------------------------------------
17161 ToStringGeneral.tests.cpp:<line number>
17162 ...............................................................................
17163
17164 ToStringGeneral.tests.cpp:<line number>: PASSED:
17165 REQUIRE( Catch::Detail::stringify( emptyMap ) == "{ }" )
17166 with expansion:
17167 "{ }" == "{ }"
17168
17169 -------------------------------------------------------------------------------
17170 std::map is convertible string
17171 single item
17172 -------------------------------------------------------------------------------
17173 ToStringGeneral.tests.cpp:<line number>
17174 ...............................................................................
17175
17176 ToStringGeneral.tests.cpp:<line number>: PASSED:
17177 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" )
17178 with expansion:
17179 "{ { "one", 1 } }" == "{ { "one", 1 } }"
17180
17181 -------------------------------------------------------------------------------
17182 std::map is convertible string
17183 several items
17184 -------------------------------------------------------------------------------
17185 ToStringGeneral.tests.cpp:<line number>
17186 ...............................................................................
17187
17188 ToStringGeneral.tests.cpp:<line number>: PASSED:
17189 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" )
17190 with expansion:
17191 "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
17192 ==
17193 "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
17194
17195 -------------------------------------------------------------------------------
17196 std::pair<int,const 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::pair<int,std::string> -> toString
17208 -------------------------------------------------------------------------------
17209 ToStringPair.tests.cpp:<line number>
17210 ...............................................................................
17211
17212 ToStringPair.tests.cpp:<line number>: PASSED:
17213 REQUIRE( ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" )
17214 with expansion:
17215 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
17216
17217 -------------------------------------------------------------------------------
17218 std::set is convertible string
17219 empty
17220 -------------------------------------------------------------------------------
17221 ToStringGeneral.tests.cpp:<line number>
17222 ...............................................................................
17223
17224 ToStringGeneral.tests.cpp:<line number>: PASSED:
17225 REQUIRE( Catch::Detail::stringify( emptySet ) == "{ }" )
17226 with expansion:
17227 "{ }" == "{ }"
17228
17229 -------------------------------------------------------------------------------
17230 std::set is convertible string
17231 single item
17232 -------------------------------------------------------------------------------
17233 ToStringGeneral.tests.cpp:<line number>
17234 ...............................................................................
17235
17236 ToStringGeneral.tests.cpp:<line number>: PASSED:
17237 REQUIRE( Catch::Detail::stringify( set ) == "{ \"one\" }" )
17238 with expansion:
17239 "{ "one" }" == "{ "one" }"
17240
17241 -------------------------------------------------------------------------------
17242 std::set is convertible string
17243 several items
17244 -------------------------------------------------------------------------------
17245 ToStringGeneral.tests.cpp:<line number>
17246 ...............................................................................
17247
17248 ToStringGeneral.tests.cpp:<line number>: PASSED:
17249 REQUIRE( Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" )
17250 with expansion:
17251 "{ "abc", "def", "ghi" }"
17252 ==
17253 "{ "abc", "def", "ghi" }"
17254
17255 -------------------------------------------------------------------------------
17256 std::vector<std::pair<std::string,int> > -> toString
17257 -------------------------------------------------------------------------------
17258 ToStringPair.tests.cpp:<line number>
17259 ...............................................................................
17260
17261 ToStringPair.tests.cpp:<line number>: PASSED:
17262 REQUIRE( ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" )
17263 with expansion:
17264 "{ { "green", 55 } }"
17265 ==
17266 "{ { "green", 55 } }"
17267
17268 -------------------------------------------------------------------------------
17269 stdout and stderr streams have %-starting name
17270 -------------------------------------------------------------------------------
17271 Stream.tests.cpp:<line number>
17272 ...............................................................................
17273
17274 Stream.tests.cpp:<line number>: PASSED:
17275 REQUIRE( Catch::makeStream( "%stderr" )->isConsole() )
17276 with expansion:
17277 true
17278
17279 Stream.tests.cpp:<line number>: PASSED:
17280 REQUIRE( Catch::makeStream( "%stdout" )->isConsole() )
17281 with expansion:
17282 true
17283
17284 -------------------------------------------------------------------------------
17285 stringify ranges
17286 -------------------------------------------------------------------------------
17287 ToStringWhich.tests.cpp:<line number>
17288 ...............................................................................
17289
17290 ToStringWhich.tests.cpp:<line number>: PASSED:
17291 REQUIRE( ::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)" )
17292 with expansion:
17293 "op<<(streamable_range)"
17294 ==
17295 "op<<(streamable_range)"
17296
17297 ToStringWhich.tests.cpp:<line number>: PASSED:
17298 REQUIRE( ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)" )
17299 with expansion:
17300 "stringmaker(streamable_range)"
17301 ==
17302 "stringmaker(streamable_range)"
17303
17304 ToStringWhich.tests.cpp:<line number>: PASSED:
17305 REQUIRE( ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }" )
17306 with expansion:
17307 "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
17308
17309 ToStringWhich.tests.cpp:<line number>: PASSED:
17310 REQUIRE( ::Catch::Detail::stringify(disabled_range{}) == "{?}" )
17311 with expansion:
17312 "{?}" == "{?}"
17313
17314 -------------------------------------------------------------------------------
17315 stringify( has_maker )
17316 -------------------------------------------------------------------------------
17317 ToStringWhich.tests.cpp:<line number>
17318 ...............................................................................
17319
17320 ToStringWhich.tests.cpp:<line number>: PASSED:
17321 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" )
17322 with expansion:
17323 "StringMaker<has_maker>"
17324 ==
17325 "StringMaker<has_maker>"
17326
17327 -------------------------------------------------------------------------------
17328 stringify( has_maker_and_operator )
17329 -------------------------------------------------------------------------------
17330 ToStringWhich.tests.cpp:<line number>
17331 ...............................................................................
17332
17333 ToStringWhich.tests.cpp:<line number>: PASSED:
17334 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" )
17335 with expansion:
17336 "StringMaker<has_maker_and_operator>"
17337 ==
17338 "StringMaker<has_maker_and_operator>"
17339
17340 -------------------------------------------------------------------------------
17341 stringify( has_neither )
17342 -------------------------------------------------------------------------------
17343 ToStringWhich.tests.cpp:<line number>
17344 ...............................................................................
17345
17346 ToStringWhich.tests.cpp:<line number>: PASSED:
17347 REQUIRE( ::Catch::Detail::stringify(item) == "{?}" )
17348 with expansion:
17349 "{?}" == "{?}"
17350
17351 -------------------------------------------------------------------------------
17352 stringify( has_operator )
17353 -------------------------------------------------------------------------------
17354 ToStringWhich.tests.cpp:<line number>
17355 ...............................................................................
17356
17357 ToStringWhich.tests.cpp:<line number>: PASSED:
17358 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" )
17359 with expansion:
17360 "operator<<( has_operator )"
17361 ==
17362 "operator<<( has_operator )"
17363
17364 -------------------------------------------------------------------------------
17365 stringify( has_template_operator )
17366 -------------------------------------------------------------------------------
17367 ToStringWhich.tests.cpp:<line number>
17368 ...............................................................................
17369
17370 ToStringWhich.tests.cpp:<line number>: PASSED:
17371 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" )
17372 with expansion:
17373 "operator<<( has_template_operator )"
17374 ==
17375 "operator<<( has_template_operator )"
17376
17377 -------------------------------------------------------------------------------
17378 stringify( vectors<has_maker> )
17379 -------------------------------------------------------------------------------
17380 ToStringWhich.tests.cpp:<line number>
17381 ...............................................................................
17382
17383 ToStringWhich.tests.cpp:<line number>: PASSED:
17384 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" )
17385 with expansion:
17386 "{ StringMaker<has_maker> }"
17387 ==
17388 "{ StringMaker<has_maker> }"
17389
17390 -------------------------------------------------------------------------------
17391 stringify( vectors<has_maker_and_operator> )
17392 -------------------------------------------------------------------------------
17393 ToStringWhich.tests.cpp:<line number>
17394 ...............................................................................
17395
17396 ToStringWhich.tests.cpp:<line number>: PASSED:
17397 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" )
17398 with expansion:
17399 "{ StringMaker<has_maker_and_operator> }"
17400 ==
17401 "{ StringMaker<has_maker_and_operator> }"
17402
17403 -------------------------------------------------------------------------------
17404 stringify( vectors<has_operator> )
17405 -------------------------------------------------------------------------------
17406 ToStringWhich.tests.cpp:<line number>
17407 ...............................................................................
17408
17409 ToStringWhich.tests.cpp:<line number>: PASSED:
17410 REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" )
17411 with expansion:
17412 "{ operator<<( has_operator ) }"
17413 ==
17414 "{ operator<<( has_operator ) }"
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 3 == 3
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 5 == 5
17448
17449 -------------------------------------------------------------------------------
17450 strlen3
17451 -------------------------------------------------------------------------------
17452 Generators.tests.cpp:<line number>
17453 ...............................................................................
17454
17455 Generators.tests.cpp:<line number>: PASSED:
17456 REQUIRE( data.str.size() == data.len )
17457 with expansion:
17458 4 == 4
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 5 == 5
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 6 == 6
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 5 == 5
17492
17493 -------------------------------------------------------------------------------
17494 tables
17495 -------------------------------------------------------------------------------
17496 Generators.tests.cpp:<line number>
17497 ...............................................................................
17498
17499 Generators.tests.cpp:<line number>: PASSED:
17500 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
17501 with expansion:
17502 6 == 6
17503
17504 -------------------------------------------------------------------------------
17505 tags with dots in later positions are not parsed as hidden
17506 -------------------------------------------------------------------------------
17507 Tag.tests.cpp:<line number>
17508 ...............................................................................
17509
17510 Tag.tests.cpp:<line number>: PASSED:
17511 REQUIRE( testcase.tags.size() == 1 )
17512 with expansion:
17513 1 == 1
17514
17515 Tag.tests.cpp:<line number>: PASSED:
17516 REQUIRE( testcase.tags[0].original == "magic.tag"_catch_sr )
17517 with expansion:
17518 magic.tag == magic.tag
17519
17520 -------------------------------------------------------------------------------
17521 tests can be skipped dynamically at runtime
17522 -------------------------------------------------------------------------------
17523 Skip.tests.cpp:<line number>
17524 ...............................................................................
17525
17526 Skip.tests.cpp:<line number>: SKIPPED:
17527
17528 -------------------------------------------------------------------------------
17529 thrown std::strings are translated
17530 -------------------------------------------------------------------------------
17531 Exception.tests.cpp:<line number>
17532 ...............................................................................
17533
17534 Exception.tests.cpp:<line number>: FAILED:
17535 due to unexpected exception with message:
17536 Why would you throw a std::string?
17537
17538 -------------------------------------------------------------------------------
17539 toString on const wchar_t const 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 const wchar_t 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 const pointer 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 on wchar_t returns the string contents
17573 -------------------------------------------------------------------------------
17574 Misc.tests.cpp:<line number>
17575 ...............................................................................
17576
17577 Misc.tests.cpp:<line number>: PASSED:
17578 CHECK( result == "\"wide load\"" )
17579 with expansion:
17580 ""wide load"" == ""wide load""
17581
17582 -------------------------------------------------------------------------------
17583 toString(enum class w/operator<<)
17584 -------------------------------------------------------------------------------
17585 EnumToString.tests.cpp:<line number>
17586 ...............................................................................
17587
17588 EnumToString.tests.cpp:<line number>: PASSED:
17589 CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" )
17590 with expansion:
17591 "E2/V0" == "E2/V0"
17592
17593 EnumToString.tests.cpp:<line number>: PASSED:
17594 CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" )
17595 with expansion:
17596 "E2/V1" == "E2/V1"
17597
17598 EnumToString.tests.cpp:<line number>: PASSED:
17599 CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" )
17600 with expansion:
17601 "Unknown enum value 10"
17602 ==
17603 "Unknown enum value 10"
17604
17605 -------------------------------------------------------------------------------
17606 toString(enum class)
17607 -------------------------------------------------------------------------------
17608 EnumToString.tests.cpp:<line number>
17609 ...............................................................................
17610
17611 EnumToString.tests.cpp:<line number>: PASSED:
17612 CHECK( ::Catch::Detail::stringify(e0) == "0" )
17613 with expansion:
17614 "0" == "0"
17615
17616 EnumToString.tests.cpp:<line number>: PASSED:
17617 CHECK( ::Catch::Detail::stringify(e1) == "1" )
17618 with expansion:
17619 "1" == "1"
17620
17621 -------------------------------------------------------------------------------
17622 toString(enum w/operator<<)
17623 -------------------------------------------------------------------------------
17624 EnumToString.tests.cpp:<line number>
17625 ...............................................................................
17626
17627 EnumToString.tests.cpp:<line number>: PASSED:
17628 CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" )
17629 with expansion:
17630 "E2{0}" == "E2{0}"
17631
17632 EnumToString.tests.cpp:<line number>: PASSED:
17633 CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" )
17634 with expansion:
17635 "E2{1}" == "E2{1}"
17636
17637 -------------------------------------------------------------------------------
17638 toString(enum)
17639 -------------------------------------------------------------------------------
17640 EnumToString.tests.cpp:<line number>
17641 ...............................................................................
17642
17643 EnumToString.tests.cpp:<line number>: PASSED:
17644 CHECK( ::Catch::Detail::stringify(e0) == "0" )
17645 with expansion:
17646 "0" == "0"
17647
17648 EnumToString.tests.cpp:<line number>: PASSED:
17649 CHECK( ::Catch::Detail::stringify(e1) == "1" )
17650 with expansion:
17651 "1" == "1"
17652
17653 -------------------------------------------------------------------------------
17654 tuple<>
17655 -------------------------------------------------------------------------------
17656 ToStringTuple.tests.cpp:<line number>
17657 ...............................................................................
17658
17659 ToStringTuple.tests.cpp:<line number>: PASSED:
17660 CHECK( "{ }" == ::Catch::Detail::stringify(type{}) )
17661 with expansion:
17662 "{ }" == "{ }"
17663
17664 ToStringTuple.tests.cpp:<line number>: PASSED:
17665 CHECK( "{ }" == ::Catch::Detail::stringify(value) )
17666 with expansion:
17667 "{ }" == "{ }"
17668
17669 -------------------------------------------------------------------------------
17670 tuple<float,int>
17671 -------------------------------------------------------------------------------
17672 ToStringTuple.tests.cpp:<line number>
17673 ...............................................................................
17674
17675 ToStringTuple.tests.cpp:<line number>: PASSED:
17676 CHECK( "1.2f" == ::Catch::Detail::stringify(float(1.2)) )
17677 with expansion:
17678 "1.2f" == "1.2f"
17679
17680 ToStringTuple.tests.cpp:<line number>: PASSED:
17681 CHECK( "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) )
17682 with expansion:
17683 "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
17684
17685 -------------------------------------------------------------------------------
17686 tuple<int>
17687 -------------------------------------------------------------------------------
17688 ToStringTuple.tests.cpp:<line number>
17689 ...............................................................................
17690
17691 ToStringTuple.tests.cpp:<line number>: PASSED:
17692 CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) )
17693 with expansion:
17694 "{ 0 }" == "{ 0 }"
17695
17696 -------------------------------------------------------------------------------
17697 tuple<string,string>
17698 -------------------------------------------------------------------------------
17699 ToStringTuple.tests.cpp:<line number>
17700 ...............................................................................
17701
17702 ToStringTuple.tests.cpp:<line number>: PASSED:
17703 CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) )
17704 with expansion:
17705 "{ "hello", "world" }"
17706 ==
17707 "{ "hello", "world" }"
17708
17709 -------------------------------------------------------------------------------
17710 tuple<tuple<int>,tuple<>,float>
17711 -------------------------------------------------------------------------------
17712 ToStringTuple.tests.cpp:<line number>
17713 ...............................................................................
17714
17715 ToStringTuple.tests.cpp:<line number>: PASSED:
17716 CHECK( "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) )
17717 with expansion:
17718 "{ { 42 }, { }, 1.2f }"
17719 ==
17720 "{ { 42 }, { }, 1.2f }"
17721
17722 -------------------------------------------------------------------------------
17723 uniform samples
17724 -------------------------------------------------------------------------------
17725 InternalBenchmark.tests.cpp:<line number>
17726 ...............................................................................
17727
17728 InternalBenchmark.tests.cpp:<line number>: PASSED:
17729 CHECK( e.point == 23 )
17730 with expansion:
17731 23.0 == 23
17732
17733 InternalBenchmark.tests.cpp:<line number>: PASSED:
17734 CHECK( e.upper_bound == 23 )
17735 with expansion:
17736 23.0 == 23
17737
17738 InternalBenchmark.tests.cpp:<line number>: PASSED:
17739 CHECK( e.lower_bound == 23 )
17740 with expansion:
17741 23.0 == 23
17742
17743 InternalBenchmark.tests.cpp:<line number>: PASSED:
17744 CHECK( e.confidence_interval == 0.95 )
17745 with expansion:
17746 0.95 == 0.95
17747
17748 -------------------------------------------------------------------------------
17749 unique_ptr reimplementation: basic functionality
17750 Default constructed unique_ptr is empty
17751 -------------------------------------------------------------------------------
17752 UniquePtr.tests.cpp:<line number>
17753 ...............................................................................
17754
17755 UniquePtr.tests.cpp:<line number>: PASSED:
17756 REQUIRE_FALSE( ptr )
17757 with expansion:
17758 !{?}
17759
17760 UniquePtr.tests.cpp:<line number>: PASSED:
17761 REQUIRE( ptr.get() == 0 )
17762 with expansion:
17763 0 == 0
17764
17765 -------------------------------------------------------------------------------
17766 unique_ptr reimplementation: basic functionality
17767 Take ownership of allocation
17768 -------------------------------------------------------------------------------
17769 UniquePtr.tests.cpp:<line number>
17770 ...............................................................................
17771
17772 UniquePtr.tests.cpp:<line number>: PASSED:
17773 REQUIRE( ptr )
17774 with expansion:
17775 {?}
17776
17777 UniquePtr.tests.cpp:<line number>: PASSED:
17778 REQUIRE( *ptr == 0 )
17779 with expansion:
17780 0 == 0
17781
17782 UniquePtr.tests.cpp:<line number>: PASSED:
17783 REQUIRE( ptr.get() == naked_ptr )
17784 with expansion:
17785 0x<hex digits> == 0x<hex digits>
17786
17787 -------------------------------------------------------------------------------
17788 unique_ptr reimplementation: basic functionality
17789 Take ownership of allocation
17790 Plain reset deallocates
17791 -------------------------------------------------------------------------------
17792 UniquePtr.tests.cpp:<line number>
17793 ...............................................................................
17794
17795 UniquePtr.tests.cpp:<line number>: PASSED:
17796 REQUIRE_FALSE( ptr )
17797 with expansion:
17798 !{?}
17799
17800 UniquePtr.tests.cpp:<line number>: PASSED:
17801 REQUIRE( ptr.get() == 0 )
17802 with expansion:
17803 0 == 0
17804
17805 -------------------------------------------------------------------------------
17806 unique_ptr reimplementation: basic functionality
17807 Take ownership of allocation
17808 -------------------------------------------------------------------------------
17809 UniquePtr.tests.cpp:<line number>
17810 ...............................................................................
17811
17812 UniquePtr.tests.cpp:<line number>: PASSED:
17813 REQUIRE( ptr )
17814 with expansion:
17815 {?}
17816
17817 UniquePtr.tests.cpp:<line number>: PASSED:
17818 REQUIRE( *ptr == 0 )
17819 with expansion:
17820 0 == 0
17821
17822 UniquePtr.tests.cpp:<line number>: PASSED:
17823 REQUIRE( ptr.get() == naked_ptr )
17824 with expansion:
17825 0x<hex digits> == 0x<hex digits>
17826
17827 -------------------------------------------------------------------------------
17828 unique_ptr reimplementation: basic functionality
17829 Take ownership of allocation
17830 Reset replaces ownership
17831 -------------------------------------------------------------------------------
17832 UniquePtr.tests.cpp:<line number>
17833 ...............................................................................
17834
17835 UniquePtr.tests.cpp:<line number>: PASSED:
17836 REQUIRE( ptr )
17837 with expansion:
17838 {?}
17839
17840 UniquePtr.tests.cpp:<line number>: PASSED:
17841 REQUIRE( ptr.get() != 0 )
17842 with expansion:
17843 0x<hex digits> != 0
17844
17845 UniquePtr.tests.cpp:<line number>: PASSED:
17846 REQUIRE( *ptr == 2 )
17847 with expansion:
17848 2 == 2
17849
17850 -------------------------------------------------------------------------------
17851 unique_ptr reimplementation: basic functionality
17852 Release releases ownership
17853 -------------------------------------------------------------------------------
17854 UniquePtr.tests.cpp:<line number>
17855 ...............................................................................
17856
17857 UniquePtr.tests.cpp:<line number>: PASSED:
17858 CHECK_FALSE( ptr )
17859 with expansion:
17860 !{?}
17861
17862 UniquePtr.tests.cpp:<line number>: PASSED:
17863 CHECK( ptr.get() == 0 )
17864 with expansion:
17865 0 == 0
17866
17867 -------------------------------------------------------------------------------
17868 unique_ptr reimplementation: basic functionality
17869 Move constructor
17870 -------------------------------------------------------------------------------
17871 UniquePtr.tests.cpp:<line number>
17872 ...............................................................................
17873
17874 UniquePtr.tests.cpp:<line number>: PASSED:
17875 REQUIRE_FALSE( ptr1 )
17876 with expansion:
17877 !{?}
17878
17879 UniquePtr.tests.cpp:<line number>: PASSED:
17880 REQUIRE( ptr2 )
17881 with expansion:
17882 {?}
17883
17884 UniquePtr.tests.cpp:<line number>: PASSED:
17885 REQUIRE( *ptr2 == 1 )
17886 with expansion:
17887 1 == 1
17888
17889 -------------------------------------------------------------------------------
17890 unique_ptr reimplementation: basic functionality
17891 Move assignment
17892 -------------------------------------------------------------------------------
17893 UniquePtr.tests.cpp:<line number>
17894 ...............................................................................
17895
17896 UniquePtr.tests.cpp:<line number>: PASSED:
17897 REQUIRE_FALSE( ptr2 )
17898 with expansion:
17899 !{?}
17900
17901 UniquePtr.tests.cpp:<line number>: PASSED:
17902 REQUIRE( ptr1 )
17903 with expansion:
17904 {?}
17905
17906 UniquePtr.tests.cpp:<line number>: PASSED:
17907 REQUIRE( *ptr1 == 2 )
17908 with expansion:
17909 2 == 2
17910
17911 -------------------------------------------------------------------------------
17912 unique_ptr reimplementation: basic functionality
17913 free swap
17914 -------------------------------------------------------------------------------
17915 UniquePtr.tests.cpp:<line number>
17916 ...............................................................................
17917
17918 UniquePtr.tests.cpp:<line number>: PASSED:
17919 REQUIRE( *ptr1 == 2 )
17920 with expansion:
17921 2 == 2
17922
17923 UniquePtr.tests.cpp:<line number>: PASSED:
17924 REQUIRE( *ptr2 == 1 )
17925 with expansion:
17926 1 == 1
17927
17928 -------------------------------------------------------------------------------
17929 vec<vec<string,alloc>> -> toString
17930 -------------------------------------------------------------------------------
17931 ToStringVector.tests.cpp:<line number>
17932 ...............................................................................
17933
17934 ToStringVector.tests.cpp:<line number>: PASSED:
17935 REQUIRE( ::Catch::Detail::stringify(v) == "{ }" )
17936 with expansion:
17937 "{ }" == "{ }"
17938
17939 ToStringVector.tests.cpp:<line number>: PASSED:
17940 REQUIRE( ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" )
17941 with expansion:
17942 "{ { "hello" }, { "world" } }"
17943 ==
17944 "{ { "hello" }, { "world" } }"
17945
17946 -------------------------------------------------------------------------------
17947 vector<bool> -> toString
17948 -------------------------------------------------------------------------------
17949 ToStringVector.tests.cpp:<line number>
17950 ...............................................................................
17951
17952 ToStringVector.tests.cpp:<line number>: PASSED:
17953 REQUIRE( ::Catch::Detail::stringify(bools) == "{ }" )
17954 with expansion:
17955 "{ }" == "{ }"
17956
17957 ToStringVector.tests.cpp:<line number>: PASSED:
17958 REQUIRE( ::Catch::Detail::stringify(bools) == "{ true }" )
17959 with expansion:
17960 "{ true }" == "{ true }"
17961
17962 ToStringVector.tests.cpp:<line number>: PASSED:
17963 REQUIRE( ::Catch::Detail::stringify(bools) == "{ true, false }" )
17964 with expansion:
17965 "{ true, false }" == "{ true, false }"
17966
17967 -------------------------------------------------------------------------------
17968 vector<int,allocator> -> toString
17969 -------------------------------------------------------------------------------
17970 ToStringVector.tests.cpp:<line number>
17971 ...............................................................................
17972
17973 ToStringVector.tests.cpp:<line number>: PASSED:
17974 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
17975 with expansion:
17976 "{ }" == "{ }"
17977
17978 ToStringVector.tests.cpp:<line number>: PASSED:
17979 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
17980 with expansion:
17981 "{ 42 }" == "{ 42 }"
17982
17983 ToStringVector.tests.cpp:<line number>: PASSED:
17984 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
17985 with expansion:
17986 "{ 42, 250 }" == "{ 42, 250 }"
17987
17988 -------------------------------------------------------------------------------
17989 vector<int> -> toString
17990 -------------------------------------------------------------------------------
17991 ToStringVector.tests.cpp:<line number>
17992 ...............................................................................
17993
17994 ToStringVector.tests.cpp:<line number>: PASSED:
17995 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
17996 with expansion:
17997 "{ }" == "{ }"
17998
17999 ToStringVector.tests.cpp:<line number>: PASSED:
18000 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
18001 with expansion:
18002 "{ 42 }" == "{ 42 }"
18003
18004 ToStringVector.tests.cpp:<line number>: PASSED:
18005 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
18006 with expansion:
18007 "{ 42, 250 }" == "{ 42, 250 }"
18008
18009 -------------------------------------------------------------------------------
18010 vector<string> -> toString
18011 -------------------------------------------------------------------------------
18012 ToStringVector.tests.cpp:<line number>
18013 ...............................................................................
18014
18015 ToStringVector.tests.cpp:<line number>: PASSED:
18016 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
18017 with expansion:
18018 "{ }" == "{ }"
18019
18020 ToStringVector.tests.cpp:<line number>: PASSED:
18021 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" )
18022 with expansion:
18023 "{ "hello" }" == "{ "hello" }"
18024
18025 ToStringVector.tests.cpp:<line number>: PASSED:
18026 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" )
18027 with expansion:
18028 "{ "hello", "world" }"
18029 ==
18030 "{ "hello", "world" }"
18031
18032 -------------------------------------------------------------------------------
18033 vectors can be sized and resized
18034 -------------------------------------------------------------------------------
18035 Misc.tests.cpp:<line number>
18036 ...............................................................................
18037
18038 Misc.tests.cpp:<line number>: PASSED:
18039 REQUIRE( v.size() == 5 )
18040 with expansion:
18041 5 == 5
18042
18043 Misc.tests.cpp:<line number>: PASSED:
18044 REQUIRE( v.capacity() >= 5 )
18045 with expansion:
18046 5 >= 5
18047
18048 -------------------------------------------------------------------------------
18049 vectors can be sized and resized
18050 resizing bigger changes size and capacity
18051 -------------------------------------------------------------------------------
18052 Misc.tests.cpp:<line number>
18053 ...............................................................................
18054
18055 Misc.tests.cpp:<line number>: PASSED:
18056 REQUIRE( v.size() == 10 )
18057 with expansion:
18058 10 == 10
18059
18060 Misc.tests.cpp:<line number>: PASSED:
18061 REQUIRE( v.capacity() >= 10 )
18062 with expansion:
18063 10 >= 10
18064
18065 -------------------------------------------------------------------------------
18066 vectors can be sized and resized
18067 -------------------------------------------------------------------------------
18068 Misc.tests.cpp:<line number>
18069 ...............................................................................
18070
18071 Misc.tests.cpp:<line number>: PASSED:
18072 REQUIRE( v.size() == 5 )
18073 with expansion:
18074 5 == 5
18075
18076 Misc.tests.cpp:<line number>: PASSED:
18077 REQUIRE( v.capacity() >= 5 )
18078 with expansion:
18079 5 >= 5
18080
18081 -------------------------------------------------------------------------------
18082 vectors can be sized and resized
18083 resizing smaller changes size but not capacity
18084 -------------------------------------------------------------------------------
18085 Misc.tests.cpp:<line number>
18086 ...............................................................................
18087
18088 Misc.tests.cpp:<line number>: PASSED:
18089 REQUIRE( v.size() == 0 )
18090 with expansion:
18091 0 == 0
18092
18093 Misc.tests.cpp:<line number>: PASSED:
18094 REQUIRE( v.capacity() >= 5 )
18095 with expansion:
18096 5 >= 5
18097
18098 -------------------------------------------------------------------------------
18099 vectors can be sized and resized
18100 resizing smaller changes size but not capacity
18101 We can use the 'swap trick' to reset the capacity
18102 -------------------------------------------------------------------------------
18103 Misc.tests.cpp:<line number>
18104 ...............................................................................
18105
18106 Misc.tests.cpp:<line number>: PASSED:
18107 REQUIRE( v.capacity() == 0 )
18108 with expansion:
18109 0 == 0
18110
18111 -------------------------------------------------------------------------------
18112 vectors can be sized and resized
18113 -------------------------------------------------------------------------------
18114 Misc.tests.cpp:<line number>
18115 ...............................................................................
18116
18117 Misc.tests.cpp:<line number>: PASSED:
18118 REQUIRE( v.size() == 5 )
18119 with expansion:
18120 5 == 5
18121
18122 Misc.tests.cpp:<line number>: PASSED:
18123 REQUIRE( v.capacity() >= 5 )
18124 with expansion:
18125 5 >= 5
18126
18127 -------------------------------------------------------------------------------
18128 vectors can be sized and resized
18129 reserving bigger changes capacity but not size
18130 -------------------------------------------------------------------------------
18131 Misc.tests.cpp:<line number>
18132 ...............................................................................
18133
18134 Misc.tests.cpp:<line number>: PASSED:
18135 REQUIRE( v.size() == 5 )
18136 with expansion:
18137 5 == 5
18138
18139 Misc.tests.cpp:<line number>: PASSED:
18140 REQUIRE( v.capacity() >= 10 )
18141 with expansion:
18142 10 >= 10
18143
18144 -------------------------------------------------------------------------------
18145 vectors can be sized and resized
18146 -------------------------------------------------------------------------------
18147 Misc.tests.cpp:<line number>
18148 ...............................................................................
18149
18150 Misc.tests.cpp:<line number>: PASSED:
18151 REQUIRE( v.size() == 5 )
18152 with expansion:
18153 5 == 5
18154
18155 Misc.tests.cpp:<line number>: PASSED:
18156 REQUIRE( v.capacity() >= 5 )
18157 with expansion:
18158 5 >= 5
18159
18160 -------------------------------------------------------------------------------
18161 vectors can be sized and resized
18162 reserving smaller does not change size or capacity
18163 -------------------------------------------------------------------------------
18164 Misc.tests.cpp:<line number>
18165 ...............................................................................
18166
18167 Misc.tests.cpp:<line number>: PASSED:
18168 REQUIRE( v.size() == 5 )
18169 with expansion:
18170 5 == 5
18171
18172 Misc.tests.cpp:<line number>: PASSED:
18173 REQUIRE( v.capacity() >= 5 )
18174 with expansion:
18175 5 >= 5
18176
18177 -------------------------------------------------------------------------------
18178 warmup
18179 -------------------------------------------------------------------------------
18180 InternalBenchmark.tests.cpp:<line number>
18181 ...............................................................................
18182
18183 InternalBenchmark.tests.cpp:<line number>: PASSED:
18184 REQUIRE( (iterations * rate) > Catch::Benchmark::Detail::warmup_time.count() )
18185 with expansion:
18186 160000000 (0x<hex digits>) > 100
18187
18188 InternalBenchmark.tests.cpp:<line number>: PASSED:
18189 REQUIRE( (end - start) > Catch::Benchmark::Detail::warmup_time )
18190 with expansion:
18191 310016000 ns > 100 ms
18192
18193 -------------------------------------------------------------------------------
18194 weighted_average_quantile
18195 -------------------------------------------------------------------------------
18196 InternalBenchmark.tests.cpp:<line number>
18197 ...............................................................................
18198
18199 InternalBenchmark.tests.cpp:<line number>: PASSED:
18200 REQUIRE( q1 == 14.5 )
18201 with expansion:
18202 14.5 == 14.5
18203
18204 InternalBenchmark.tests.cpp:<line number>: PASSED:
18205 REQUIRE( med == 18. )
18206 with expansion:
18207 18.0 == 18.0
18208
18209 InternalBenchmark.tests.cpp:<line number>: PASSED:
18210 REQUIRE( q3 == 23. )
18211 with expansion:
18212 23.0 == 23.0
18213
18214 -------------------------------------------------------------------------------
18215 xmlentitycheck
18216 embedded xml: <test>it should be possible to embed xml characters, such as <,
18217 " or &, or even whole <xml>documents</xml> within an attribute
18218 </test>
18219 -------------------------------------------------------------------------------
18220 Misc.tests.cpp:<line number>
18221 ...............................................................................
18222
18223 Misc.tests.cpp:<line number>: PASSED:
18224
18225 -------------------------------------------------------------------------------
18226 xmlentitycheck
18227 encoded chars: these should all be encoded: &&&"""<<<&"<<&"
18228 -------------------------------------------------------------------------------
18229 Misc.tests.cpp:<line number>
18230 ...............................................................................
18231
18232 Misc.tests.cpp:<line number>: PASSED:
18233
18234 ===============================================================================
18235 test cases: 409 | 308 passed | 84 failed | 6 skipped | 11 failed as expected
18236 assertions: 2225 | 2048 passed | 145 failed | 32 failed as expected
18237