Debian Codegraph @

src/external/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 {Unknown expression after the reported line}
772 due to unexpected exception with message:
773 failure to init
774
775 -------------------------------------------------------------------------------
776 #3001: Enum-based bitfields can be captured
777 -------------------------------------------------------------------------------
778 Compilation.tests.cpp:<line number>
779 ...............................................................................
780
781 Compilation.tests.cpp:<line number>: PASSED:
782 REQUIRE( bf.e == 1 )
783 with expansion:
784 1 == 1
785
786 Compilation.tests.cpp:<line number>: PASSED:
787 REQUIRE( 1 == bf.e )
788 with expansion:
789 1 == 1
790
791 -------------------------------------------------------------------------------
792 #748 - captures with unexpected exceptions
793 outside assertions
794 -------------------------------------------------------------------------------
795 Exception.tests.cpp:<line number>
796 ...............................................................................
797
798 Exception.tests.cpp:<line number>: FAILED:
799 {Unknown expression after the reported line}
800 due to unexpected exception with message:
801 expected exception
802
803 -------------------------------------------------------------------------------
804 #748 - captures with unexpected exceptions
805 inside REQUIRE_NOTHROW
806 -------------------------------------------------------------------------------
807 Exception.tests.cpp:<line number>
808 ...............................................................................
809
810 Exception.tests.cpp:<line number>: FAILED:
811 REQUIRE_NOTHROW( thisThrows() )
812 due to unexpected exception with messages:
813 answer := 42
814 expected exception
815
816 -------------------------------------------------------------------------------
817 #748 - captures with unexpected exceptions
818 inside REQUIRE_THROWS
819 -------------------------------------------------------------------------------
820 Exception.tests.cpp:<line number>
821 ...............................................................................
822
823 Exception.tests.cpp:<line number>: PASSED:
824 REQUIRE_THROWS( thisThrows() )
825 with message:
826 answer := 42
827
828 -------------------------------------------------------------------------------
829 #809
830 -------------------------------------------------------------------------------
831 Compilation.tests.cpp:<line number>
832 ...............................................................................
833
834 Compilation.tests.cpp:<line number>: PASSED:
835 REQUIRE( 42 == f )
836 with expansion:
837 42 == {?}
838
839 -------------------------------------------------------------------------------
840 #833
841 -------------------------------------------------------------------------------
842 Compilation.tests.cpp:<line number>
843 ...............................................................................
844
845 Compilation.tests.cpp:<line number>: PASSED:
846 REQUIRE( a == t )
847 with expansion:
848 3 == 3
849
850 Compilation.tests.cpp:<line number>: PASSED:
851 CHECK( a == t )
852 with expansion:
853 3 == 3
854
855 Compilation.tests.cpp:<line number>: PASSED:
856 REQUIRE_THROWS( throws_int(true) )
857
858 Compilation.tests.cpp:<line number>: PASSED:
859 CHECK_THROWS_AS( throws_int(true), int )
860
861 Compilation.tests.cpp:<line number>: PASSED:
862 REQUIRE_NOTHROW( throws_int(false) )
863
864 Compilation.tests.cpp:<line number>: PASSED:
865 REQUIRE_THAT( "aaa", Catch::Matchers::EndsWith("aaa") )
866 with expansion:
867 "aaa" ends with: "aaa"
868
869 Compilation.tests.cpp:<line number>: PASSED:
870 REQUIRE( templated_tests<int>(3) )
871 with expansion:
872 true
873
874 -------------------------------------------------------------------------------
875 #835 -- errno should not be touched by Catch2
876 -------------------------------------------------------------------------------
877 Misc.tests.cpp:<line number>
878 ...............................................................................
879
880 Misc.tests.cpp:<line number>: FAILED:
881 CHECK( f() == 0 )
882 with expansion:
883 1 == 0
884
885 Misc.tests.cpp:<line number>: PASSED:
886 REQUIRE( errno_after == 1 )
887 with expansion:
888 1 == 1
889
890 -------------------------------------------------------------------------------
891 #872
892 -------------------------------------------------------------------------------
893 Compilation.tests.cpp:<line number>
894 ...............................................................................
895
896 Compilation.tests.cpp:<line number>: PASSED:
897 REQUIRE( x == 4 )
898 with expansion:
899 {?} == 4
900 with message:
901 dummy := 0
902
903 -------------------------------------------------------------------------------
904 #961 -- Dynamically created sections should all be reported
905 Looped section 0
906 -------------------------------------------------------------------------------
907 Misc.tests.cpp:<line number>
908 ...............................................................................
909
910 Misc.tests.cpp:<line number>: PASSED:
911 with message:
912 Everything is OK
913
914 -------------------------------------------------------------------------------
915 #961 -- Dynamically created sections should all be reported
916 Looped section 1
917 -------------------------------------------------------------------------------
918 Misc.tests.cpp:<line number>
919 ...............................................................................
920
921 Misc.tests.cpp:<line number>: PASSED:
922 with message:
923 Everything is OK
924
925 -------------------------------------------------------------------------------
926 #961 -- Dynamically created sections should all be reported
927 Looped section 2
928 -------------------------------------------------------------------------------
929 Misc.tests.cpp:<line number>
930 ...............................................................................
931
932 Misc.tests.cpp:<line number>: PASSED:
933 with message:
934 Everything is OK
935
936 -------------------------------------------------------------------------------
937 #961 -- Dynamically created sections should all be reported
938 Looped section 3
939 -------------------------------------------------------------------------------
940 Misc.tests.cpp:<line number>
941 ...............................................................................
942
943 Misc.tests.cpp:<line number>: PASSED:
944 with message:
945 Everything is OK
946
947 -------------------------------------------------------------------------------
948 #961 -- Dynamically created sections should all be reported
949 Looped section 4
950 -------------------------------------------------------------------------------
951 Misc.tests.cpp:<line number>
952 ...............................................................................
953
954 Misc.tests.cpp:<line number>: PASSED:
955 with message:
956 Everything is OK
957
958 -------------------------------------------------------------------------------
959 'Not' checks that should fail
960 -------------------------------------------------------------------------------
961 Condition.tests.cpp:<line number>
962 ...............................................................................
963
964 Condition.tests.cpp:<line number>: FAILED:
965 CHECK( false != false )
966
967 Condition.tests.cpp:<line number>: FAILED:
968 CHECK( true != true )
969
970 Condition.tests.cpp:<line number>: FAILED:
971 CHECK( !true )
972 with expansion:
973 false
974
975 Condition.tests.cpp:<line number>: FAILED:
976 CHECK_FALSE( true )
977 with expansion:
978 !true
979
980 Condition.tests.cpp:<line number>: FAILED:
981 CHECK( !trueValue )
982 with expansion:
983 false
984
985 Condition.tests.cpp:<line number>: FAILED:
986 CHECK_FALSE( trueValue )
987 with expansion:
988 !true
989
990 Condition.tests.cpp:<line number>: FAILED:
991 CHECK( !(1 == 1) )
992 with expansion:
993 false
994
995 Condition.tests.cpp:<line number>: FAILED:
996 CHECK_FALSE( 1 == 1 )
997
998 -------------------------------------------------------------------------------
999 'Not' checks that should succeed
1000 -------------------------------------------------------------------------------
1001 Condition.tests.cpp:<line number>
1002 ...............................................................................
1003
1004 Condition.tests.cpp:<line number>: PASSED:
1005 REQUIRE( false == false )
1006
1007 Condition.tests.cpp:<line number>: PASSED:
1008 REQUIRE( true == true )
1009
1010 Condition.tests.cpp:<line number>: PASSED:
1011 REQUIRE( !false )
1012 with expansion:
1013 true
1014
1015 Condition.tests.cpp:<line number>: PASSED:
1016 REQUIRE_FALSE( false )
1017 with expansion:
1018 !false
1019
1020 Condition.tests.cpp:<line number>: PASSED:
1021 REQUIRE( !falseValue )
1022 with expansion:
1023 true
1024
1025 Condition.tests.cpp:<line number>: PASSED:
1026 REQUIRE_FALSE( falseValue )
1027 with expansion:
1028 !false
1029
1030 Condition.tests.cpp:<line number>: PASSED:
1031 REQUIRE( !(1 == 2) )
1032 with expansion:
1033 true
1034
1035 Condition.tests.cpp:<line number>: PASSED:
1036 REQUIRE_FALSE( 1 == 2 )
1037
1038 -------------------------------------------------------------------------------
1039 (unimplemented) static bools can be evaluated
1040 compare to true
1041 -------------------------------------------------------------------------------
1042 Tricky.tests.cpp:<line number>
1043 ...............................................................................
1044
1045 Tricky.tests.cpp:<line number>: PASSED:
1046 REQUIRE( is_true<true>::value == true )
1047 with expansion:
1048 true == true
1049
1050 Tricky.tests.cpp:<line number>: PASSED:
1051 REQUIRE( true == is_true<true>::value )
1052 with expansion:
1053 true == true
1054
1055 -------------------------------------------------------------------------------
1056 (unimplemented) static bools can be evaluated
1057 compare to false
1058 -------------------------------------------------------------------------------
1059 Tricky.tests.cpp:<line number>
1060 ...............................................................................
1061
1062 Tricky.tests.cpp:<line number>: PASSED:
1063 REQUIRE( is_true<false>::value == false )
1064 with expansion:
1065 false == false
1066
1067 Tricky.tests.cpp:<line number>: PASSED:
1068 REQUIRE( false == is_true<false>::value )
1069 with expansion:
1070 false == false
1071
1072 -------------------------------------------------------------------------------
1073 (unimplemented) static bools can be evaluated
1074 negation
1075 -------------------------------------------------------------------------------
1076 Tricky.tests.cpp:<line number>
1077 ...............................................................................
1078
1079 Tricky.tests.cpp:<line number>: PASSED:
1080 REQUIRE( !is_true<false>::value )
1081 with expansion:
1082 true
1083
1084 -------------------------------------------------------------------------------
1085 (unimplemented) static bools can be evaluated
1086 double negation
1087 -------------------------------------------------------------------------------
1088 Tricky.tests.cpp:<line number>
1089 ...............................................................................
1090
1091 Tricky.tests.cpp:<line number>: PASSED:
1092 REQUIRE( !!is_true<true>::value )
1093 with expansion:
1094 true
1095
1096 -------------------------------------------------------------------------------
1097 (unimplemented) static bools can be evaluated
1098 direct
1099 -------------------------------------------------------------------------------
1100 Tricky.tests.cpp:<line number>
1101 ...............................................................................
1102
1103 Tricky.tests.cpp:<line number>: PASSED:
1104 REQUIRE( is_true<true>::value )
1105 with expansion:
1106 true
1107
1108 Tricky.tests.cpp:<line number>: PASSED:
1109 REQUIRE_FALSE( is_true<false>::value )
1110 with expansion:
1111 !false
1112
1113 -------------------------------------------------------------------------------
1114 3x3x3 ints
1115 -------------------------------------------------------------------------------
1116 Generators.tests.cpp:<line number>
1117 ...............................................................................
1118
1119 Generators.tests.cpp:<line number>: PASSED:
1120 CHECK( x < y )
1121 with expansion:
1122 1 < 4
1123
1124 Generators.tests.cpp:<line number>: PASSED:
1125 CHECK( y < z )
1126 with expansion:
1127 4 < 7
1128
1129 Generators.tests.cpp:<line number>: PASSED:
1130 REQUIRE( x < z )
1131 with expansion:
1132 1 < 7
1133
1134 -------------------------------------------------------------------------------
1135 3x3x3 ints
1136 -------------------------------------------------------------------------------
1137 Generators.tests.cpp:<line number>
1138 ...............................................................................
1139
1140 Generators.tests.cpp:<line number>: PASSED:
1141 CHECK( x < y )
1142 with expansion:
1143 1 < 4
1144
1145 Generators.tests.cpp:<line number>: PASSED:
1146 CHECK( y < z )
1147 with expansion:
1148 4 < 8
1149
1150 Generators.tests.cpp:<line number>: PASSED:
1151 REQUIRE( x < z )
1152 with expansion:
1153 1 < 8
1154
1155 -------------------------------------------------------------------------------
1156 3x3x3 ints
1157 -------------------------------------------------------------------------------
1158 Generators.tests.cpp:<line number>
1159 ...............................................................................
1160
1161 Generators.tests.cpp:<line number>: PASSED:
1162 CHECK( x < y )
1163 with expansion:
1164 1 < 4
1165
1166 Generators.tests.cpp:<line number>: PASSED:
1167 CHECK( y < z )
1168 with expansion:
1169 4 < 9
1170
1171 Generators.tests.cpp:<line number>: PASSED:
1172 REQUIRE( x < z )
1173 with expansion:
1174 1 < 9
1175
1176 -------------------------------------------------------------------------------
1177 3x3x3 ints
1178 -------------------------------------------------------------------------------
1179 Generators.tests.cpp:<line number>
1180 ...............................................................................
1181
1182 Generators.tests.cpp:<line number>: PASSED:
1183 CHECK( x < y )
1184 with expansion:
1185 1 < 5
1186
1187 Generators.tests.cpp:<line number>: PASSED:
1188 CHECK( y < z )
1189 with expansion:
1190 5 < 7
1191
1192 Generators.tests.cpp:<line number>: PASSED:
1193 REQUIRE( x < z )
1194 with expansion:
1195 1 < 7
1196
1197 -------------------------------------------------------------------------------
1198 3x3x3 ints
1199 -------------------------------------------------------------------------------
1200 Generators.tests.cpp:<line number>
1201 ...............................................................................
1202
1203 Generators.tests.cpp:<line number>: PASSED:
1204 CHECK( x < y )
1205 with expansion:
1206 1 < 5
1207
1208 Generators.tests.cpp:<line number>: PASSED:
1209 CHECK( y < z )
1210 with expansion:
1211 5 < 8
1212
1213 Generators.tests.cpp:<line number>: PASSED:
1214 REQUIRE( x < z )
1215 with expansion:
1216 1 < 8
1217
1218 -------------------------------------------------------------------------------
1219 3x3x3 ints
1220 -------------------------------------------------------------------------------
1221 Generators.tests.cpp:<line number>
1222 ...............................................................................
1223
1224 Generators.tests.cpp:<line number>: PASSED:
1225 CHECK( x < y )
1226 with expansion:
1227 1 < 5
1228
1229 Generators.tests.cpp:<line number>: PASSED:
1230 CHECK( y < z )
1231 with expansion:
1232 5 < 9
1233
1234 Generators.tests.cpp:<line number>: PASSED:
1235 REQUIRE( x < z )
1236 with expansion:
1237 1 < 9
1238
1239 -------------------------------------------------------------------------------
1240 3x3x3 ints
1241 -------------------------------------------------------------------------------
1242 Generators.tests.cpp:<line number>
1243 ...............................................................................
1244
1245 Generators.tests.cpp:<line number>: PASSED:
1246 CHECK( x < y )
1247 with expansion:
1248 1 < 6
1249
1250 Generators.tests.cpp:<line number>: PASSED:
1251 CHECK( y < z )
1252 with expansion:
1253 6 < 7
1254
1255 Generators.tests.cpp:<line number>: PASSED:
1256 REQUIRE( x < z )
1257 with expansion:
1258 1 < 7
1259
1260 -------------------------------------------------------------------------------
1261 3x3x3 ints
1262 -------------------------------------------------------------------------------
1263 Generators.tests.cpp:<line number>
1264 ...............................................................................
1265
1266 Generators.tests.cpp:<line number>: PASSED:
1267 CHECK( x < y )
1268 with expansion:
1269 1 < 6
1270
1271 Generators.tests.cpp:<line number>: PASSED:
1272 CHECK( y < z )
1273 with expansion:
1274 6 < 8
1275
1276 Generators.tests.cpp:<line number>: PASSED:
1277 REQUIRE( x < z )
1278 with expansion:
1279 1 < 8
1280
1281 -------------------------------------------------------------------------------
1282 3x3x3 ints
1283 -------------------------------------------------------------------------------
1284 Generators.tests.cpp:<line number>
1285 ...............................................................................
1286
1287 Generators.tests.cpp:<line number>: PASSED:
1288 CHECK( x < y )
1289 with expansion:
1290 1 < 6
1291
1292 Generators.tests.cpp:<line number>: PASSED:
1293 CHECK( y < z )
1294 with expansion:
1295 6 < 9
1296
1297 Generators.tests.cpp:<line number>: PASSED:
1298 REQUIRE( x < z )
1299 with expansion:
1300 1 < 9
1301
1302 -------------------------------------------------------------------------------
1303 3x3x3 ints
1304 -------------------------------------------------------------------------------
1305 Generators.tests.cpp:<line number>
1306 ...............................................................................
1307
1308 Generators.tests.cpp:<line number>: PASSED:
1309 CHECK( x < y )
1310 with expansion:
1311 2 < 4
1312
1313 Generators.tests.cpp:<line number>: PASSED:
1314 CHECK( y < z )
1315 with expansion:
1316 4 < 7
1317
1318 Generators.tests.cpp:<line number>: PASSED:
1319 REQUIRE( x < z )
1320 with expansion:
1321 2 < 7
1322
1323 -------------------------------------------------------------------------------
1324 3x3x3 ints
1325 -------------------------------------------------------------------------------
1326 Generators.tests.cpp:<line number>
1327 ...............................................................................
1328
1329 Generators.tests.cpp:<line number>: PASSED:
1330 CHECK( x < y )
1331 with expansion:
1332 2 < 4
1333
1334 Generators.tests.cpp:<line number>: PASSED:
1335 CHECK( y < z )
1336 with expansion:
1337 4 < 8
1338
1339 Generators.tests.cpp:<line number>: PASSED:
1340 REQUIRE( x < z )
1341 with expansion:
1342 2 < 8
1343
1344 -------------------------------------------------------------------------------
1345 3x3x3 ints
1346 -------------------------------------------------------------------------------
1347 Generators.tests.cpp:<line number>
1348 ...............................................................................
1349
1350 Generators.tests.cpp:<line number>: PASSED:
1351 CHECK( x < y )
1352 with expansion:
1353 2 < 4
1354
1355 Generators.tests.cpp:<line number>: PASSED:
1356 CHECK( y < z )
1357 with expansion:
1358 4 < 9
1359
1360 Generators.tests.cpp:<line number>: PASSED:
1361 REQUIRE( x < z )
1362 with expansion:
1363 2 < 9
1364
1365 -------------------------------------------------------------------------------
1366 3x3x3 ints
1367 -------------------------------------------------------------------------------
1368 Generators.tests.cpp:<line number>
1369 ...............................................................................
1370
1371 Generators.tests.cpp:<line number>: PASSED:
1372 CHECK( x < y )
1373 with expansion:
1374 2 < 5
1375
1376 Generators.tests.cpp:<line number>: PASSED:
1377 CHECK( y < z )
1378 with expansion:
1379 5 < 7
1380
1381 Generators.tests.cpp:<line number>: PASSED:
1382 REQUIRE( x < z )
1383 with expansion:
1384 2 < 7
1385
1386 -------------------------------------------------------------------------------
1387 3x3x3 ints
1388 -------------------------------------------------------------------------------
1389 Generators.tests.cpp:<line number>
1390 ...............................................................................
1391
1392 Generators.tests.cpp:<line number>: PASSED:
1393 CHECK( x < y )
1394 with expansion:
1395 2 < 5
1396
1397 Generators.tests.cpp:<line number>: PASSED:
1398 CHECK( y < z )
1399 with expansion:
1400 5 < 8
1401
1402 Generators.tests.cpp:<line number>: PASSED:
1403 REQUIRE( x < z )
1404 with expansion:
1405 2 < 8
1406
1407 -------------------------------------------------------------------------------
1408 3x3x3 ints
1409 -------------------------------------------------------------------------------
1410 Generators.tests.cpp:<line number>
1411 ...............................................................................
1412
1413 Generators.tests.cpp:<line number>: PASSED:
1414 CHECK( x < y )
1415 with expansion:
1416 2 < 5
1417
1418 Generators.tests.cpp:<line number>: PASSED:
1419 CHECK( y < z )
1420 with expansion:
1421 5 < 9
1422
1423 Generators.tests.cpp:<line number>: PASSED:
1424 REQUIRE( x < z )
1425 with expansion:
1426 2 < 9
1427
1428 -------------------------------------------------------------------------------
1429 3x3x3 ints
1430 -------------------------------------------------------------------------------
1431 Generators.tests.cpp:<line number>
1432 ...............................................................................
1433
1434 Generators.tests.cpp:<line number>: PASSED:
1435 CHECK( x < y )
1436 with expansion:
1437 2 < 6
1438
1439 Generators.tests.cpp:<line number>: PASSED:
1440 CHECK( y < z )
1441 with expansion:
1442 6 < 7
1443
1444 Generators.tests.cpp:<line number>: PASSED:
1445 REQUIRE( x < z )
1446 with expansion:
1447 2 < 7
1448
1449 -------------------------------------------------------------------------------
1450 3x3x3 ints
1451 -------------------------------------------------------------------------------
1452 Generators.tests.cpp:<line number>
1453 ...............................................................................
1454
1455 Generators.tests.cpp:<line number>: PASSED:
1456 CHECK( x < y )
1457 with expansion:
1458 2 < 6
1459
1460 Generators.tests.cpp:<line number>: PASSED:
1461 CHECK( y < z )
1462 with expansion:
1463 6 < 8
1464
1465 Generators.tests.cpp:<line number>: PASSED:
1466 REQUIRE( x < z )
1467 with expansion:
1468 2 < 8
1469
1470 -------------------------------------------------------------------------------
1471 3x3x3 ints
1472 -------------------------------------------------------------------------------
1473 Generators.tests.cpp:<line number>
1474 ...............................................................................
1475
1476 Generators.tests.cpp:<line number>: PASSED:
1477 CHECK( x < y )
1478 with expansion:
1479 2 < 6
1480
1481 Generators.tests.cpp:<line number>: PASSED:
1482 CHECK( y < z )
1483 with expansion:
1484 6 < 9
1485
1486 Generators.tests.cpp:<line number>: PASSED:
1487 REQUIRE( x < z )
1488 with expansion:
1489 2 < 9
1490
1491 -------------------------------------------------------------------------------
1492 3x3x3 ints
1493 -------------------------------------------------------------------------------
1494 Generators.tests.cpp:<line number>
1495 ...............................................................................
1496
1497 Generators.tests.cpp:<line number>: PASSED:
1498 CHECK( x < y )
1499 with expansion:
1500 3 < 4
1501
1502 Generators.tests.cpp:<line number>: PASSED:
1503 CHECK( y < z )
1504 with expansion:
1505 4 < 7
1506
1507 Generators.tests.cpp:<line number>: PASSED:
1508 REQUIRE( x < z )
1509 with expansion:
1510 3 < 7
1511
1512 -------------------------------------------------------------------------------
1513 3x3x3 ints
1514 -------------------------------------------------------------------------------
1515 Generators.tests.cpp:<line number>
1516 ...............................................................................
1517
1518 Generators.tests.cpp:<line number>: PASSED:
1519 CHECK( x < y )
1520 with expansion:
1521 3 < 4
1522
1523 Generators.tests.cpp:<line number>: PASSED:
1524 CHECK( y < z )
1525 with expansion:
1526 4 < 8
1527
1528 Generators.tests.cpp:<line number>: PASSED:
1529 REQUIRE( x < z )
1530 with expansion:
1531 3 < 8
1532
1533 -------------------------------------------------------------------------------
1534 3x3x3 ints
1535 -------------------------------------------------------------------------------
1536 Generators.tests.cpp:<line number>
1537 ...............................................................................
1538
1539 Generators.tests.cpp:<line number>: PASSED:
1540 CHECK( x < y )
1541 with expansion:
1542 3 < 4
1543
1544 Generators.tests.cpp:<line number>: PASSED:
1545 CHECK( y < z )
1546 with expansion:
1547 4 < 9
1548
1549 Generators.tests.cpp:<line number>: PASSED:
1550 REQUIRE( x < z )
1551 with expansion:
1552 3 < 9
1553
1554 -------------------------------------------------------------------------------
1555 3x3x3 ints
1556 -------------------------------------------------------------------------------
1557 Generators.tests.cpp:<line number>
1558 ...............................................................................
1559
1560 Generators.tests.cpp:<line number>: PASSED:
1561 CHECK( x < y )
1562 with expansion:
1563 3 < 5
1564
1565 Generators.tests.cpp:<line number>: PASSED:
1566 CHECK( y < z )
1567 with expansion:
1568 5 < 7
1569
1570 Generators.tests.cpp:<line number>: PASSED:
1571 REQUIRE( x < z )
1572 with expansion:
1573 3 < 7
1574
1575 -------------------------------------------------------------------------------
1576 3x3x3 ints
1577 -------------------------------------------------------------------------------
1578 Generators.tests.cpp:<line number>
1579 ...............................................................................
1580
1581 Generators.tests.cpp:<line number>: PASSED:
1582 CHECK( x < y )
1583 with expansion:
1584 3 < 5
1585
1586 Generators.tests.cpp:<line number>: PASSED:
1587 CHECK( y < z )
1588 with expansion:
1589 5 < 8
1590
1591 Generators.tests.cpp:<line number>: PASSED:
1592 REQUIRE( x < z )
1593 with expansion:
1594 3 < 8
1595
1596 -------------------------------------------------------------------------------
1597 3x3x3 ints
1598 -------------------------------------------------------------------------------
1599 Generators.tests.cpp:<line number>
1600 ...............................................................................
1601
1602 Generators.tests.cpp:<line number>: PASSED:
1603 CHECK( x < y )
1604 with expansion:
1605 3 < 5
1606
1607 Generators.tests.cpp:<line number>: PASSED:
1608 CHECK( y < z )
1609 with expansion:
1610 5 < 9
1611
1612 Generators.tests.cpp:<line number>: PASSED:
1613 REQUIRE( x < z )
1614 with expansion:
1615 3 < 9
1616
1617 -------------------------------------------------------------------------------
1618 3x3x3 ints
1619 -------------------------------------------------------------------------------
1620 Generators.tests.cpp:<line number>
1621 ...............................................................................
1622
1623 Generators.tests.cpp:<line number>: PASSED:
1624 CHECK( x < y )
1625 with expansion:
1626 3 < 6
1627
1628 Generators.tests.cpp:<line number>: PASSED:
1629 CHECK( y < z )
1630 with expansion:
1631 6 < 7
1632
1633 Generators.tests.cpp:<line number>: PASSED:
1634 REQUIRE( x < z )
1635 with expansion:
1636 3 < 7
1637
1638 -------------------------------------------------------------------------------
1639 3x3x3 ints
1640 -------------------------------------------------------------------------------
1641 Generators.tests.cpp:<line number>
1642 ...............................................................................
1643
1644 Generators.tests.cpp:<line number>: PASSED:
1645 CHECK( x < y )
1646 with expansion:
1647 3 < 6
1648
1649 Generators.tests.cpp:<line number>: PASSED:
1650 CHECK( y < z )
1651 with expansion:
1652 6 < 8
1653
1654 Generators.tests.cpp:<line number>: PASSED:
1655 REQUIRE( x < z )
1656 with expansion:
1657 3 < 8
1658
1659 -------------------------------------------------------------------------------
1660 3x3x3 ints
1661 -------------------------------------------------------------------------------
1662 Generators.tests.cpp:<line number>
1663 ...............................................................................
1664
1665 Generators.tests.cpp:<line number>: PASSED:
1666 CHECK( x < y )
1667 with expansion:
1668 3 < 6
1669
1670 Generators.tests.cpp:<line number>: PASSED:
1671 CHECK( y < z )
1672 with expansion:
1673 6 < 9
1674
1675 Generators.tests.cpp:<line number>: PASSED:
1676 REQUIRE( x < z )
1677 with expansion:
1678 3 < 9
1679
1680 -------------------------------------------------------------------------------
1681 A METHOD_AS_TEST_CASE based test run that fails
1682 -------------------------------------------------------------------------------
1683 Class.tests.cpp:<line number>
1684 ...............................................................................
1685
1686 Class.tests.cpp:<line number>: FAILED:
1687 REQUIRE( s == "world" )
1688 with expansion:
1689 "hello" == "world"
1690
1691 -------------------------------------------------------------------------------
1692 A METHOD_AS_TEST_CASE based test run that succeeds
1693 -------------------------------------------------------------------------------
1694 Class.tests.cpp:<line number>
1695 ...............................................................................
1696
1697 Class.tests.cpp:<line number>: PASSED:
1698 REQUIRE( s == "hello" )
1699 with expansion:
1700 "hello" == "hello"
1701
1702 -------------------------------------------------------------------------------
1703 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
1704 <float>
1705 -------------------------------------------------------------------------------
1706 Class.tests.cpp:<line number>
1707 ...............................................................................
1708
1709 Class.tests.cpp:<line number>: FAILED:
1710 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1711 with expansion:
1712 0 == 1
1713
1714 -------------------------------------------------------------------------------
1715 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
1716 <int>
1717 -------------------------------------------------------------------------------
1718 Class.tests.cpp:<line number>
1719 ...............................................................................
1720
1721 Class.tests.cpp:<line number>: FAILED:
1722 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1723 with expansion:
1724 0 == 1
1725
1726 -------------------------------------------------------------------------------
1727 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
1728 <float>
1729 -------------------------------------------------------------------------------
1730 Class.tests.cpp:<line number>
1731 ...............................................................................
1732
1733 Class.tests.cpp:<line number>: FAILED:
1734 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1735 with expansion:
1736 0 == 1
1737
1738 -------------------------------------------------------------------------------
1739 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
1740 <int>
1741 -------------------------------------------------------------------------------
1742 Class.tests.cpp:<line number>
1743 ...............................................................................
1744
1745 Class.tests.cpp:<line number>: FAILED:
1746 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
1747 with expansion:
1748 0 == 1
1749
1750 -------------------------------------------------------------------------------
1751 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
1752 <float>
1753 -------------------------------------------------------------------------------
1754 Class.tests.cpp:<line number>
1755 ...............................................................................
1756
1757 Class.tests.cpp:<line number>: PASSED:
1758 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1759 with expansion:
1760 0 == 0
1761
1762 -------------------------------------------------------------------------------
1763 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo
1764 <int>
1765 -------------------------------------------------------------------------------
1766 Class.tests.cpp:<line number>
1767 ...............................................................................
1768
1769 Class.tests.cpp:<line number>: PASSED:
1770 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1771 with expansion:
1772 0 == 0
1773
1774 -------------------------------------------------------------------------------
1775 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
1776 <float>
1777 -------------------------------------------------------------------------------
1778 Class.tests.cpp:<line number>
1779 ...............................................................................
1780
1781 Class.tests.cpp:<line number>: PASSED:
1782 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1783 with expansion:
1784 0 == 0
1785
1786 -------------------------------------------------------------------------------
1787 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector
1788 <int>
1789 -------------------------------------------------------------------------------
1790 Class.tests.cpp:<line number>
1791 ...............................................................................
1792
1793 Class.tests.cpp:<line number>: PASSED:
1794 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 0 )
1795 with expansion:
1796 0 == 0
1797
1798 -------------------------------------------------------------------------------
1799 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
1800 Template_Foo_2<float, 6>
1801 -------------------------------------------------------------------------------
1802 Class.tests.cpp:<line number>
1803 ...............................................................................
1804
1805 Class.tests.cpp:<line number>: FAILED:
1806 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1807 with expansion:
1808 6 < 2
1809
1810 -------------------------------------------------------------------------------
1811 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
1812 Template_Foo_2<int, 2>
1813 -------------------------------------------------------------------------------
1814 Class.tests.cpp:<line number>
1815 ...............................................................................
1816
1817 Class.tests.cpp:<line number>: FAILED:
1818 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1819 with expansion:
1820 2 < 2
1821
1822 -------------------------------------------------------------------------------
1823 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
1824 <float, 6>
1825 -------------------------------------------------------------------------------
1826 Class.tests.cpp:<line number>
1827 ...............................................................................
1828
1829 Class.tests.cpp:<line number>: FAILED:
1830 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1831 with expansion:
1832 6 < 2
1833
1834 -------------------------------------------------------------------------------
1835 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
1836 <int, 2>
1837 -------------------------------------------------------------------------------
1838 Class.tests.cpp:<line number>
1839 ...............................................................................
1840
1841 Class.tests.cpp:<line number>: FAILED:
1842 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
1843 with expansion:
1844 2 < 2
1845
1846 -------------------------------------------------------------------------------
1847 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
1848 Template_Foo_2<float,6>
1849 -------------------------------------------------------------------------------
1850 Class.tests.cpp:<line number>
1851 ...............................................................................
1852
1853 Class.tests.cpp:<line number>: PASSED:
1854 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1855 with expansion:
1856 6 >= 2
1857
1858 -------------------------------------------------------------------------------
1859 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds -
1860 Template_Foo_2<int,2>
1861 -------------------------------------------------------------------------------
1862 Class.tests.cpp:<line number>
1863 ...............................................................................
1864
1865 Class.tests.cpp:<line number>: PASSED:
1866 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1867 with expansion:
1868 2 >= 2
1869
1870 -------------------------------------------------------------------------------
1871 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
1872 array<float,6>
1873 -------------------------------------------------------------------------------
1874 Class.tests.cpp:<line number>
1875 ...............................................................................
1876
1877 Class.tests.cpp:<line number>: PASSED:
1878 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1879 with expansion:
1880 6 >= 2
1881
1882 -------------------------------------------------------------------------------
1883 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::
1884 array<int,2>
1885 -------------------------------------------------------------------------------
1886 Class.tests.cpp:<line number>
1887 ...............................................................................
1888
1889 Class.tests.cpp:<line number>: PASSED:
1890 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() >= 2 )
1891 with expansion:
1892 2 >= 2
1893
1894 -------------------------------------------------------------------------------
1895 A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
1896 -------------------------------------------------------------------------------
1897 Class.tests.cpp:<line number>
1898 ...............................................................................
1899
1900 Class.tests.cpp:<line number>: FAILED:
1901 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1902 with expansion:
1903 1.0 == 2
1904
1905 -------------------------------------------------------------------------------
1906 A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
1907 -------------------------------------------------------------------------------
1908 Class.tests.cpp:<line number>
1909 ...............................................................................
1910
1911 Class.tests.cpp:<line number>: FAILED:
1912 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1913 with expansion:
1914 1.0f == 2
1915
1916 -------------------------------------------------------------------------------
1917 A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
1918 -------------------------------------------------------------------------------
1919 Class.tests.cpp:<line number>
1920 ...............................................................................
1921
1922 Class.tests.cpp:<line number>: FAILED:
1923 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
1924 with expansion:
1925 1 == 2
1926
1927 -------------------------------------------------------------------------------
1928 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double
1929 -------------------------------------------------------------------------------
1930 Class.tests.cpp:<line number>
1931 ...............................................................................
1932
1933 Class.tests.cpp:<line number>: PASSED:
1934 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1935 with expansion:
1936 1.0 == 1
1937
1938 -------------------------------------------------------------------------------
1939 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float
1940 -------------------------------------------------------------------------------
1941 Class.tests.cpp:<line number>
1942 ...............................................................................
1943
1944 Class.tests.cpp:<line number>: PASSED:
1945 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1946 with expansion:
1947 1.0f == 1
1948
1949 -------------------------------------------------------------------------------
1950 A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int
1951 -------------------------------------------------------------------------------
1952 Class.tests.cpp:<line number>
1953 ...............................................................................
1954
1955 Class.tests.cpp:<line number>: PASSED:
1956 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
1957 with expansion:
1958 1 == 1
1959
1960 -------------------------------------------------------------------------------
1961 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
1962 -------------------------------------------------------------------------------
1963 Class.tests.cpp:<line number>
1964 ...............................................................................
1965
1966 Class.tests.cpp:<line number>: FAILED:
1967 REQUIRE( Nttp_Fixture<V>::value == 0 )
1968 with expansion:
1969 1 == 0
1970
1971 -------------------------------------------------------------------------------
1972 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
1973 -------------------------------------------------------------------------------
1974 Class.tests.cpp:<line number>
1975 ...............................................................................
1976
1977 Class.tests.cpp:<line number>: FAILED:
1978 REQUIRE( Nttp_Fixture<V>::value == 0 )
1979 with expansion:
1980 3 == 0
1981
1982 -------------------------------------------------------------------------------
1983 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
1984 -------------------------------------------------------------------------------
1985 Class.tests.cpp:<line number>
1986 ...............................................................................
1987
1988 Class.tests.cpp:<line number>: FAILED:
1989 REQUIRE( Nttp_Fixture<V>::value == 0 )
1990 with expansion:
1991 6 == 0
1992
1993 -------------------------------------------------------------------------------
1994 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1
1995 -------------------------------------------------------------------------------
1996 Class.tests.cpp:<line number>
1997 ...............................................................................
1998
1999 Class.tests.cpp:<line number>: PASSED:
2000 REQUIRE( Nttp_Fixture<V>::value > 0 )
2001 with expansion:
2002 1 > 0
2003
2004 -------------------------------------------------------------------------------
2005 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3
2006 -------------------------------------------------------------------------------
2007 Class.tests.cpp:<line number>
2008 ...............................................................................
2009
2010 Class.tests.cpp:<line number>: PASSED:
2011 REQUIRE( Nttp_Fixture<V>::value > 0 )
2012 with expansion:
2013 3 > 0
2014
2015 -------------------------------------------------------------------------------
2016 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6
2017 -------------------------------------------------------------------------------
2018 Class.tests.cpp:<line number>
2019 ...............................................................................
2020
2021 Class.tests.cpp:<line number>: PASSED:
2022 REQUIRE( Nttp_Fixture<V>::value > 0 )
2023 with expansion:
2024 6 > 0
2025
2026 -------------------------------------------------------------------------------
2027 A TEST_CASE_METHOD based test run that fails
2028 -------------------------------------------------------------------------------
2029 Class.tests.cpp:<line number>
2030 ...............................................................................
2031
2032 Class.tests.cpp:<line number>: FAILED:
2033 REQUIRE( m_a == 2 )
2034 with expansion:
2035 1 == 2
2036
2037 -------------------------------------------------------------------------------
2038 A TEST_CASE_METHOD based test run that succeeds
2039 -------------------------------------------------------------------------------
2040 Class.tests.cpp:<line number>
2041 ...............................................................................
2042
2043 Class.tests.cpp:<line number>: PASSED:
2044 REQUIRE( m_a == 1 )
2045 with expansion:
2046 1 == 1
2047
2048 -------------------------------------------------------------------------------
2049 A TEST_CASE_PERSISTENT_FIXTURE based test run that fails
2050 First partial run
2051 -------------------------------------------------------------------------------
2052 Class.tests.cpp:<line number>
2053 ...............................................................................
2054
2055 Class.tests.cpp:<line number>: PASSED:
2056 REQUIRE( m_a++ == 0 )
2057 with expansion:
2058 0 == 0
2059
2060 -------------------------------------------------------------------------------
2061 A TEST_CASE_PERSISTENT_FIXTURE based test run that fails
2062 Second partial run
2063 -------------------------------------------------------------------------------
2064 Class.tests.cpp:<line number>
2065 ...............................................................................
2066
2067 Class.tests.cpp:<line number>: FAILED:
2068 REQUIRE( m_a == 0 )
2069 with expansion:
2070 1 == 0
2071
2072 -------------------------------------------------------------------------------
2073 A TEST_CASE_PERSISTENT_FIXTURE based test run that succeeds
2074 First partial run
2075 -------------------------------------------------------------------------------
2076 Class.tests.cpp:<line number>
2077 ...............................................................................
2078
2079 Class.tests.cpp:<line number>: PASSED:
2080 REQUIRE( m_a++ == 0 )
2081 with expansion:
2082 0 == 0
2083
2084 -------------------------------------------------------------------------------
2085 A TEST_CASE_PERSISTENT_FIXTURE based test run that succeeds
2086 Second partial run
2087 -------------------------------------------------------------------------------
2088 Class.tests.cpp:<line number>
2089 ...............................................................................
2090
2091 Class.tests.cpp:<line number>: PASSED:
2092 REQUIRE( m_a == 1 )
2093 with expansion:
2094 1 == 1
2095
2096 -------------------------------------------------------------------------------
2097 A Template product test case - Foo<float>
2098 -------------------------------------------------------------------------------
2099 Misc.tests.cpp:<line number>
2100 ...............................................................................
2101
2102 Misc.tests.cpp:<line number>: PASSED:
2103 REQUIRE( x.size() == 0 )
2104 with expansion:
2105 0 == 0
2106
2107 -------------------------------------------------------------------------------
2108 A Template product test case - Foo<int>
2109 -------------------------------------------------------------------------------
2110 Misc.tests.cpp:<line number>
2111 ...............................................................................
2112
2113 Misc.tests.cpp:<line number>: PASSED:
2114 REQUIRE( x.size() == 0 )
2115 with expansion:
2116 0 == 0
2117
2118 -------------------------------------------------------------------------------
2119 A Template product test case - std::vector<float>
2120 -------------------------------------------------------------------------------
2121 Misc.tests.cpp:<line number>
2122 ...............................................................................
2123
2124 Misc.tests.cpp:<line number>: PASSED:
2125 REQUIRE( x.size() == 0 )
2126 with expansion:
2127 0 == 0
2128
2129 -------------------------------------------------------------------------------
2130 A Template product test case - std::vector<int>
2131 -------------------------------------------------------------------------------
2132 Misc.tests.cpp:<line number>
2133 ...............................................................................
2134
2135 Misc.tests.cpp:<line number>: PASSED:
2136 REQUIRE( x.size() == 0 )
2137 with expansion:
2138 0 == 0
2139
2140 -------------------------------------------------------------------------------
2141 A Template product test case with array signature - Bar<float, 42>
2142 -------------------------------------------------------------------------------
2143 Misc.tests.cpp:<line number>
2144 ...............................................................................
2145
2146 Misc.tests.cpp:<line number>: PASSED:
2147 REQUIRE( x.size() > 0 )
2148 with expansion:
2149 42 > 0
2150
2151 -------------------------------------------------------------------------------
2152 A Template product test case with array signature - Bar<int, 9>
2153 -------------------------------------------------------------------------------
2154 Misc.tests.cpp:<line number>
2155 ...............................................................................
2156
2157 Misc.tests.cpp:<line number>: PASSED:
2158 REQUIRE( x.size() > 0 )
2159 with expansion:
2160 9 > 0
2161
2162 -------------------------------------------------------------------------------
2163 A Template product test case with array signature - std::array<float, 42>
2164 -------------------------------------------------------------------------------
2165 Misc.tests.cpp:<line number>
2166 ...............................................................................
2167
2168 Misc.tests.cpp:<line number>: PASSED:
2169 REQUIRE( x.size() > 0 )
2170 with expansion:
2171 42 > 0
2172
2173 -------------------------------------------------------------------------------
2174 A Template product test case with array signature - std::array<int, 9>
2175 -------------------------------------------------------------------------------
2176 Misc.tests.cpp:<line number>
2177 ...............................................................................
2178
2179 Misc.tests.cpp:<line number>: PASSED:
2180 REQUIRE( x.size() > 0 )
2181 with expansion:
2182 9 > 0
2183
2184 -------------------------------------------------------------------------------
2185 A comparison that uses literals instead of the normal constructor
2186 -------------------------------------------------------------------------------
2187 Approx.tests.cpp:<line number>
2188 ...............................................................................
2189
2190 Approx.tests.cpp:<line number>: PASSED:
2191 REQUIRE( d == 1.23_a )
2192 with expansion:
2193 1.22999999999999998
2194 ==
2195 Approx( 1.22999999999999998 )
2196
2197 Approx.tests.cpp:<line number>: PASSED:
2198 REQUIRE( d != 1.22_a )
2199 with expansion:
2200 1.22999999999999998
2201 !=
2202 Approx( 1.21999999999999997 )
2203
2204 Approx.tests.cpp:<line number>: PASSED:
2205 REQUIRE( -d == -1.23_a )
2206 with expansion:
2207 -1.22999999999999998
2208 ==
2209 Approx( -1.22999999999999998 )
2210
2211 Approx.tests.cpp:<line number>: PASSED:
2212 REQUIRE( d == 1.2_a .epsilon(.1) )
2213 with expansion:
2214 1.22999999999999998
2215 ==
2216 Approx( 1.19999999999999996 )
2217
2218 Approx.tests.cpp:<line number>: PASSED:
2219 REQUIRE( d != 1.2_a .epsilon(.001) )
2220 with expansion:
2221 1.22999999999999998
2222 !=
2223 Approx( 1.19999999999999996 )
2224
2225 Approx.tests.cpp:<line number>: PASSED:
2226 REQUIRE( d == 1_a .epsilon(.3) )
2227 with expansion:
2228 1.22999999999999998 == Approx( 1.0 )
2229
2230 -------------------------------------------------------------------------------
2231 A couple of nested sections followed by a failure
2232 Outer
2233 Inner
2234 -------------------------------------------------------------------------------
2235 Misc.tests.cpp:<line number>
2236 ...............................................................................
2237
2238 Misc.tests.cpp:<line number>: PASSED:
2239 with message:
2240 that's not flying - that's failing in style
2241
2242 -------------------------------------------------------------------------------
2243 A couple of nested sections followed by a failure
2244 -------------------------------------------------------------------------------
2245 Misc.tests.cpp:<line number>
2246 ...............................................................................
2247
2248 Misc.tests.cpp:<line number>: FAILED:
2249 explicitly with message:
2250 to infinity and beyond
2251
2252 -------------------------------------------------------------------------------
2253 A failing expression with a non streamable type is still captured
2254 -------------------------------------------------------------------------------
2255 Tricky.tests.cpp:<line number>
2256 ...............................................................................
2257
2258 Tricky.tests.cpp:<line number>: FAILED:
2259 CHECK( &o1 == &o2 )
2260 with expansion:
2261 0x<hex digits> == 0x<hex digits>
2262
2263 Tricky.tests.cpp:<line number>: FAILED:
2264 CHECK( o1 == o2 )
2265 with expansion:
2266 {?} == {?}
2267
2268 -------------------------------------------------------------------------------
2269 Absolute margin
2270 -------------------------------------------------------------------------------
2271 Approx.tests.cpp:<line number>
2272 ...............................................................................
2273
2274 Approx.tests.cpp:<line number>: PASSED:
2275 REQUIRE( 104.0 != Approx(100.0) )
2276 with expansion:
2277 104.0 != Approx( 100.0 )
2278
2279 Approx.tests.cpp:<line number>: PASSED:
2280 REQUIRE( 104.0 == Approx(100.0).margin(5) )
2281 with expansion:
2282 104.0 == Approx( 100.0 )
2283
2284 Approx.tests.cpp:<line number>: PASSED:
2285 REQUIRE( 104.0 == Approx(100.0).margin(4) )
2286 with expansion:
2287 104.0 == Approx( 100.0 )
2288
2289 Approx.tests.cpp:<line number>: PASSED:
2290 REQUIRE( 104.0 != Approx(100.0).margin(3) )
2291 with expansion:
2292 104.0 != Approx( 100.0 )
2293
2294 Approx.tests.cpp:<line number>: PASSED:
2295 REQUIRE( 100.3 != Approx(100.0) )
2296 with expansion:
2297 100.29999999999999716 != Approx( 100.0 )
2298
2299 Approx.tests.cpp:<line number>: PASSED:
2300 REQUIRE( 100.3 == Approx(100.0).margin(0.5) )
2301 with expansion:
2302 100.29999999999999716 == Approx( 100.0 )
2303
2304 -------------------------------------------------------------------------------
2305 An empty test with no assertions
2306 -------------------------------------------------------------------------------
2307 Misc.tests.cpp:<line number>
2308 ...............................................................................
2309
2310
2311 No assertions in test case 'An empty test with no assertions'
2312
2313 -------------------------------------------------------------------------------
2314 An expression with side-effects should only be evaluated once
2315 -------------------------------------------------------------------------------
2316 Tricky.tests.cpp:<line number>
2317 ...............................................................................
2318
2319 Tricky.tests.cpp:<line number>: PASSED:
2320 REQUIRE( i++ == 7 )
2321 with expansion:
2322 7 == 7
2323
2324 Tricky.tests.cpp:<line number>: PASSED:
2325 REQUIRE( i++ == 8 )
2326 with expansion:
2327 8 == 8
2328
2329 -------------------------------------------------------------------------------
2330 An unchecked exception reports the line of the last assertion
2331 -------------------------------------------------------------------------------
2332 Exception.tests.cpp:<line number>
2333 ...............................................................................
2334
2335 Exception.tests.cpp:<line number>: PASSED:
2336 CHECK( 1 == 1 )
2337
2338 Exception.tests.cpp:<line number>: FAILED:
2339 {Unknown expression after the reported line}
2340 due to unexpected exception with message:
2341 unexpected exception
2342
2343 -------------------------------------------------------------------------------
2344 Anonymous test case 1
2345 -------------------------------------------------------------------------------
2346 VariadicMacros.tests.cpp:<line number>
2347 ...............................................................................
2348
2349 VariadicMacros.tests.cpp:<line number>: PASSED:
2350 with message:
2351 anonymous test case
2352
2353 -------------------------------------------------------------------------------
2354 Approx setters validate their arguments
2355 -------------------------------------------------------------------------------
2356 Approx.tests.cpp:<line number>
2357 ...............................................................................
2358
2359 Approx.tests.cpp:<line number>: PASSED:
2360 REQUIRE_NOTHROW( Approx(0).margin(0) )
2361
2362 Approx.tests.cpp:<line number>: PASSED:
2363 REQUIRE_NOTHROW( Approx(0).margin(1234656) )
2364
2365 Approx.tests.cpp:<line number>: PASSED:
2366 REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error )
2367
2368 Approx.tests.cpp:<line number>: PASSED:
2369 REQUIRE_NOTHROW( Approx(0).epsilon(0) )
2370
2371 Approx.tests.cpp:<line number>: PASSED:
2372 REQUIRE_NOTHROW( Approx(0).epsilon(1) )
2373
2374 Approx.tests.cpp:<line number>: PASSED:
2375 REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error )
2376
2377 Approx.tests.cpp:<line number>: PASSED:
2378 REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error )
2379
2380 -------------------------------------------------------------------------------
2381 Approx with exactly-representable margin
2382 -------------------------------------------------------------------------------
2383 Approx.tests.cpp:<line number>
2384 ...............................................................................
2385
2386 Approx.tests.cpp:<line number>: PASSED:
2387 CHECK( 0.25f == Approx(0.0f).margin(0.25f) )
2388 with expansion:
2389 0.25f == Approx( 0.0 )
2390
2391 Approx.tests.cpp:<line number>: PASSED:
2392 CHECK( 0.0f == Approx(0.25f).margin(0.25f) )
2393 with expansion:
2394 0.0f == Approx( 0.25 )
2395
2396 Approx.tests.cpp:<line number>: PASSED:
2397 CHECK( 0.5f == Approx(0.25f).margin(0.25f) )
2398 with expansion:
2399 0.5f == Approx( 0.25 )
2400
2401 Approx.tests.cpp:<line number>: PASSED:
2402 CHECK( 245.0f == Approx(245.25f).margin(0.25f) )
2403 with expansion:
2404 245.0f == Approx( 245.25 )
2405
2406 Approx.tests.cpp:<line number>: PASSED:
2407 CHECK( 245.5f == Approx(245.25f).margin(0.25f) )
2408 with expansion:
2409 245.5f == Approx( 245.25 )
2410
2411 -------------------------------------------------------------------------------
2412 Approximate PI
2413 -------------------------------------------------------------------------------
2414 Approx.tests.cpp:<line number>
2415 ...............................................................................
2416
2417 Approx.tests.cpp:<line number>: PASSED:
2418 REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) )
2419 with expansion:
2420 3.14285714285714279
2421 ==
2422 Approx( 3.14100000000000001 )
2423
2424 Approx.tests.cpp:<line number>: PASSED:
2425 REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) )
2426 with expansion:
2427 3.14285714285714279
2428 !=
2429 Approx( 3.14100000000000001 )
2430
2431 -------------------------------------------------------------------------------
2432 Approximate comparisons with different epsilons
2433 -------------------------------------------------------------------------------
2434 Approx.tests.cpp:<line number>
2435 ...............................................................................
2436
2437 Approx.tests.cpp:<line number>: PASSED:
2438 REQUIRE( d != Approx( 1.231 ) )
2439 with expansion:
2440 1.22999999999999998
2441 !=
2442 Approx( 1.23100000000000009 )
2443
2444 Approx.tests.cpp:<line number>: PASSED:
2445 REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) )
2446 with expansion:
2447 1.22999999999999998
2448 ==
2449 Approx( 1.23100000000000009 )
2450
2451 -------------------------------------------------------------------------------
2452 Approximate comparisons with floats
2453 -------------------------------------------------------------------------------
2454 Approx.tests.cpp:<line number>
2455 ...............................................................................
2456
2457 Approx.tests.cpp:<line number>: PASSED:
2458 REQUIRE( 1.23f == Approx( 1.23f ) )
2459 with expansion:
2460 1.230000019f
2461 ==
2462 Approx( 1.23000001907348633 )
2463
2464 Approx.tests.cpp:<line number>: PASSED:
2465 REQUIRE( 0.0f == Approx( 0.0f ) )
2466 with expansion:
2467 0.0f == Approx( 0.0 )
2468
2469 -------------------------------------------------------------------------------
2470 Approximate comparisons with ints
2471 -------------------------------------------------------------------------------
2472 Approx.tests.cpp:<line number>
2473 ...............................................................................
2474
2475 Approx.tests.cpp:<line number>: PASSED:
2476 REQUIRE( 1 == Approx( 1 ) )
2477 with expansion:
2478 1 == Approx( 1.0 )
2479
2480 Approx.tests.cpp:<line number>: PASSED:
2481 REQUIRE( 0 == Approx( 0 ) )
2482 with expansion:
2483 0 == Approx( 0.0 )
2484
2485 -------------------------------------------------------------------------------
2486 Approximate comparisons with mixed numeric types
2487 -------------------------------------------------------------------------------
2488 Approx.tests.cpp:<line number>
2489 ...............................................................................
2490
2491 Approx.tests.cpp:<line number>: PASSED:
2492 REQUIRE( 1.0f == Approx( 1 ) )
2493 with expansion:
2494 1.0f == Approx( 1.0 )
2495
2496 Approx.tests.cpp:<line number>: PASSED:
2497 REQUIRE( 0 == Approx( dZero) )
2498 with expansion:
2499 0 == Approx( 0.0 )
2500
2501 Approx.tests.cpp:<line number>: PASSED:
2502 REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) )
2503 with expansion:
2504 0 == Approx( 0.00001 )
2505
2506 Approx.tests.cpp:<line number>: PASSED:
2507 REQUIRE( 1.234f == Approx( dMedium ) )
2508 with expansion:
2509 1.233999968f
2510 ==
2511 Approx( 1.23399999999999999 )
2512
2513 Approx.tests.cpp:<line number>: PASSED:
2514 REQUIRE( dMedium == Approx( 1.234f ) )
2515 with expansion:
2516 1.23399999999999999
2517 ==
2518 Approx( 1.23399996757507324 )
2519
2520 -------------------------------------------------------------------------------
2521 Arbitrary predicate matcher
2522 Function pointer
2523 -------------------------------------------------------------------------------
2524 Matchers.tests.cpp:<line number>
2525 ...............................................................................
2526
2527 Matchers.tests.cpp:<line number>: PASSED:
2528 REQUIRE_THAT( 1, Predicate<int>( alwaysTrue, "always true" ) )
2529 with expansion:
2530 1 matches predicate: "always true"
2531
2532 Matchers.tests.cpp:<line number>: PASSED:
2533 REQUIRE_THAT( 1, !Predicate<int>( alwaysFalse, "always false" ) )
2534 with expansion:
2535 1 not matches predicate: "always false"
2536
2537 -------------------------------------------------------------------------------
2538 Arbitrary predicate matcher
2539 Lambdas + different type
2540 -------------------------------------------------------------------------------
2541 Matchers.tests.cpp:<line number>
2542 ...............................................................................
2543
2544 Matchers.tests.cpp:<line number>: PASSED:
2545 REQUIRE_THAT( "Hello olleH", Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); }, "First and last character should be equal" ) )
2546 with expansion:
2547 "Hello olleH" matches predicate: "First and last character should be equal"
2548
2549 Matchers.tests.cpp:<line number>: PASSED:
2550 REQUIRE_THAT( "This wouldn't pass", !Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); } ) )
2551 with expansion:
2552 "This wouldn't pass" not matches undescribed predicate
2553
2554 -------------------------------------------------------------------------------
2555 Assertion macros support bit operators and bool conversions
2556 -------------------------------------------------------------------------------
2557 Compilation.tests.cpp:<line number>
2558 ...............................................................................
2559
2560 Compilation.tests.cpp:<line number>: PASSED:
2561 REQUIRE( lhs | rhs )
2562 with expansion:
2563 Val: 1 | Val: 2
2564
2565 Compilation.tests.cpp:<line number>: PASSED:
2566 REQUIRE_FALSE( lhs & rhs )
2567 with expansion:
2568 !(Val: 1 & Val: 2)
2569
2570 Compilation.tests.cpp:<line number>: PASSED:
2571 REQUIRE( HasBitOperators{ 1 } & HasBitOperators{ 1 } )
2572 with expansion:
2573 Val: 1 & Val: 1
2574
2575 Compilation.tests.cpp:<line number>: PASSED:
2576 REQUIRE( lhs ^ rhs )
2577 with expansion:
2578 Val: 1 ^ Val: 2
2579
2580 Compilation.tests.cpp:<line number>: PASSED:
2581 REQUIRE_FALSE( lhs ^ lhs )
2582 with expansion:
2583 !(Val: 1 ^ Val: 1)
2584
2585 -------------------------------------------------------------------------------
2586 Assertions can be nested - CHECK
2587 -------------------------------------------------------------------------------
2588 AssertionHandler.tests.cpp:<line number>
2589 ...............................................................................
2590
2591 AssertionHandler.tests.cpp:<line number>: FAILED:
2592 REQUIRE( i > 10 )
2593 with expansion:
2594 2 > 10
2595
2596 AssertionHandler.tests.cpp:<line number>: FAILED:
2597 CHECK( foo( 2 ) == 2 )
2598 due to unexpected exception with message:
2599 { nested assertion failed }
2600
2601 AssertionHandler.tests.cpp:<line number>: PASSED:
2602 CHECK( true )
2603
2604 -------------------------------------------------------------------------------
2605 Assertions can be nested - REQUIRE
2606 -------------------------------------------------------------------------------
2607 AssertionHandler.tests.cpp:<line number>
2608 ...............................................................................
2609
2610 AssertionHandler.tests.cpp:<line number>: FAILED:
2611 REQUIRE( i > 10 )
2612 with expansion:
2613 2 > 10
2614
2615 AssertionHandler.tests.cpp:<line number>: FAILED:
2616 REQUIRE( foo( 2 ) == 2 )
2617 due to unexpected exception with message:
2618 { nested assertion failed }
2619
2620 -------------------------------------------------------------------------------
2621 Assertions then sections
2622 -------------------------------------------------------------------------------
2623 Tricky.tests.cpp:<line number>
2624 ...............................................................................
2625
2626 Tricky.tests.cpp:<line number>: PASSED:
2627 REQUIRE( true )
2628
2629 -------------------------------------------------------------------------------
2630 Assertions then sections
2631 A section
2632 -------------------------------------------------------------------------------
2633 Tricky.tests.cpp:<line number>
2634 ...............................................................................
2635
2636 Tricky.tests.cpp:<line number>: PASSED:
2637 REQUIRE( true )
2638
2639 -------------------------------------------------------------------------------
2640 Assertions then sections
2641 A section
2642 Another section
2643 -------------------------------------------------------------------------------
2644 Tricky.tests.cpp:<line number>
2645 ...............................................................................
2646
2647 Tricky.tests.cpp:<line number>: PASSED:
2648 REQUIRE( true )
2649
2650 -------------------------------------------------------------------------------
2651 Assertions then sections
2652 -------------------------------------------------------------------------------
2653 Tricky.tests.cpp:<line number>
2654 ...............................................................................
2655
2656 Tricky.tests.cpp:<line number>: PASSED:
2657 REQUIRE( true )
2658
2659 -------------------------------------------------------------------------------
2660 Assertions then sections
2661 A section
2662 -------------------------------------------------------------------------------
2663 Tricky.tests.cpp:<line number>
2664 ...............................................................................
2665
2666 Tricky.tests.cpp:<line number>: PASSED:
2667 REQUIRE( true )
2668
2669 -------------------------------------------------------------------------------
2670 Assertions then sections
2671 A section
2672 Another other section
2673 -------------------------------------------------------------------------------
2674 Tricky.tests.cpp:<line number>
2675 ...............................................................................
2676
2677 Tricky.tests.cpp:<line number>: PASSED:
2678 REQUIRE( true )
2679
2680 -------------------------------------------------------------------------------
2681 Basic use of the Contains range matcher
2682 Different argument ranges, same element type, default comparison
2683 -------------------------------------------------------------------------------
2684 MatchersRanges.tests.cpp:<line number>
2685 ...............................................................................
2686
2687 MatchersRanges.tests.cpp:<line number>: PASSED:
2688 REQUIRE_THAT( a, Contains(1) )
2689 with expansion:
2690 { 1, 2, 3 } contains element 1
2691
2692 MatchersRanges.tests.cpp:<line number>: PASSED:
2693 REQUIRE_THAT( b, Contains(1) )
2694 with expansion:
2695 { 0, 1, 2 } contains element 1
2696
2697 MatchersRanges.tests.cpp:<line number>: PASSED:
2698 REQUIRE_THAT( c, !Contains(1) )
2699 with expansion:
2700 { 4, 5, 6 } not contains element 1
2701
2702 -------------------------------------------------------------------------------
2703 Basic use of the Contains range matcher
2704 Different argument ranges, same element type, custom comparison
2705 -------------------------------------------------------------------------------
2706 MatchersRanges.tests.cpp:<line number>
2707 ...............................................................................
2708
2709 MatchersRanges.tests.cpp:<line number>: PASSED:
2710 REQUIRE_THAT( a, Contains(0, close_enough) )
2711 with expansion:
2712 { 1, 2, 3 } contains element 0
2713
2714 MatchersRanges.tests.cpp:<line number>: PASSED:
2715 REQUIRE_THAT( b, Contains(0, close_enough) )
2716 with expansion:
2717 { 0, 1, 2 } contains element 0
2718
2719 MatchersRanges.tests.cpp:<line number>: PASSED:
2720 REQUIRE_THAT( c, !Contains(0, close_enough) )
2721 with expansion:
2722 { 4, 5, 6 } not contains element 0
2723
2724 -------------------------------------------------------------------------------
2725 Basic use of the Contains range matcher
2726 Different element type, custom comparisons
2727 -------------------------------------------------------------------------------
2728 MatchersRanges.tests.cpp:<line number>
2729 ...............................................................................
2730
2731 MatchersRanges.tests.cpp:<line number>: PASSED:
2732 REQUIRE_THAT( a, Contains(4, [](auto&& lhs, size_t sz) { return lhs.size() == sz; }) )
2733 with expansion:
2734 { "abc", "abcd", "abcde" } contains element 4
2735
2736 -------------------------------------------------------------------------------
2737 Basic use of the Contains range matcher
2738 Can handle type that requires ADL-found free function begin and end
2739 -------------------------------------------------------------------------------
2740 MatchersRanges.tests.cpp:<line number>
2741 ...............................................................................
2742
2743 MatchersRanges.tests.cpp:<line number>: PASSED:
2744 REQUIRE_THAT( in, Contains(1) )
2745 with expansion:
2746 { 1, 2, 3, 4, 5 } contains element 1
2747
2748 MatchersRanges.tests.cpp:<line number>: PASSED:
2749 REQUIRE_THAT( in, !Contains(8) )
2750 with expansion:
2751 { 1, 2, 3, 4, 5 } not contains element 8
2752
2753 -------------------------------------------------------------------------------
2754 Basic use of the Contains range matcher
2755 Initialization with move only types
2756 -------------------------------------------------------------------------------
2757 MatchersRanges.tests.cpp:<line number>
2758 ...............................................................................
2759
2760 MatchersRanges.tests.cpp:<line number>: PASSED:
2761 REQUIRE_THAT( in, Contains(MoveOnlyTestElement{ 2 }) )
2762 with expansion:
2763 { 1, 2, 3 } contains element 2
2764
2765 MatchersRanges.tests.cpp:<line number>: PASSED:
2766 REQUIRE_THAT( in, !Contains(MoveOnlyTestElement{ 9 }) )
2767 with expansion:
2768 { 1, 2, 3 } not contains element 9
2769
2770 -------------------------------------------------------------------------------
2771 Basic use of the Contains range matcher
2772 Matching using matcher
2773 -------------------------------------------------------------------------------
2774 MatchersRanges.tests.cpp:<line number>
2775 ...............................................................................
2776
2777 MatchersRanges.tests.cpp:<line number>: PASSED:
2778 REQUIRE_THAT( in, Contains(Catch::Matchers::WithinAbs(0.5, 0.5)) )
2779 with expansion:
2780 { 1.0, 2.0, 3.0, 0.0 } contains element matching is within 0.5 of 0.5
2781
2782 -------------------------------------------------------------------------------
2783 Basic use of the Empty range matcher
2784 Simple, std-provided containers
2785 -------------------------------------------------------------------------------
2786 MatchersRanges.tests.cpp:<line number>
2787 ...............................................................................
2788
2789 MatchersRanges.tests.cpp:<line number>: PASSED:
2790 REQUIRE_THAT( empty_array, IsEmpty() )
2791 with expansion:
2792 { } is empty
2793
2794 MatchersRanges.tests.cpp:<line number>: PASSED:
2795 REQUIRE_THAT( non_empty_array, !IsEmpty() )
2796 with expansion:
2797 { 0.0 } not is empty
2798
2799 MatchersRanges.tests.cpp:<line number>: PASSED:
2800 REQUIRE_THAT( empty_vec, IsEmpty() )
2801 with expansion:
2802 { } is empty
2803
2804 MatchersRanges.tests.cpp:<line number>: PASSED:
2805 REQUIRE_THAT( non_empty_vec, !IsEmpty() )
2806 with expansion:
2807 { 'a', 'b', 'c' } not is empty
2808
2809 MatchersRanges.tests.cpp:<line number>: PASSED:
2810 REQUIRE_THAT( inner_lists_are_empty, !IsEmpty() )
2811 with expansion:
2812 { { } } not is empty
2813
2814 MatchersRanges.tests.cpp:<line number>: PASSED:
2815 REQUIRE_THAT( inner_lists_are_empty.front(), IsEmpty() )
2816 with expansion:
2817 { } is empty
2818
2819 -------------------------------------------------------------------------------
2820 Basic use of the Empty range matcher
2821 Type with empty
2822 -------------------------------------------------------------------------------
2823 MatchersRanges.tests.cpp:<line number>
2824 ...............................................................................
2825
2826 MatchersRanges.tests.cpp:<line number>: PASSED:
2827 REQUIRE_THAT( has_empty{}, !IsEmpty() )
2828 with expansion:
2829 {?} not is empty
2830
2831 -------------------------------------------------------------------------------
2832 Basic use of the Empty range matcher
2833 Type requires ADL found empty free function
2834 -------------------------------------------------------------------------------
2835 MatchersRanges.tests.cpp:<line number>
2836 ...............................................................................
2837
2838 MatchersRanges.tests.cpp:<line number>: PASSED:
2839 REQUIRE_THAT( unrelated::ADL_empty{}, IsEmpty() )
2840 with expansion:
2841 {?} is empty
2842
2843 -------------------------------------------------------------------------------
2844 CAPTURE can deal with complex expressions
2845 -------------------------------------------------------------------------------
2846 Message.tests.cpp:<line number>
2847 ...............................................................................
2848
2849 Message.tests.cpp:<line number>: PASSED:
2850 with messages:
2851 a := 1
2852 b := 2
2853 c := 3
2854 a + b := 3
2855 a+b := 3
2856 c > b := true
2857 a == 1 := true
2858
2859 -------------------------------------------------------------------------------
2860 CAPTURE can deal with complex expressions involving commas
2861 -------------------------------------------------------------------------------
2862 Message.tests.cpp:<line number>
2863 ...............................................................................
2864
2865 Message.tests.cpp:<line number>: PASSED:
2866 with messages:
2867 custom_index_op<int>{1, 2, 3}[0, 1, 2] := 0
2868 custom_index_op<int>{1, 2, 3}[(0, 1)] := 0
2869 custom_index_op<int>{1, 2, 3}[0] := 0
2870 (helper_1436<int, int>{12, -12}) := { 12, -12 }
2871 (helper_1436<int, int>(-12, 12)) := { -12, 12 }
2872 (1, 2) := 2
2873 (2, 3) := 3
2874
2875 -------------------------------------------------------------------------------
2876 CAPTURE parses string and character constants
2877 -------------------------------------------------------------------------------
2878 Message.tests.cpp:<line number>
2879 ...............................................................................
2880
2881 Message.tests.cpp:<line number>: PASSED:
2882 with messages:
2883 ("comma, in string", "escaped, \", ") := "escaped, ", "
2884 "single quote in string,'," := "single quote in string,',"
2885 "some escapes, \\,\\\\" := "some escapes, \,\\"
2886 "some, ), unmatched, } prenheses {[<" := "some, ), unmatched, } prenheses {[
2887 <"
2888 '"' := '"'
2889 '\'' := '''
2890 ',' := ','
2891 '}' := '}'
2892 ')' := ')'
2893 '(' := '('
2894 '{' := '{'
2895
2896 -------------------------------------------------------------------------------
2897 Capture and info messages
2898 Capture should stringify like assertions
2899 -------------------------------------------------------------------------------
2900 ToStringGeneral.tests.cpp:<line number>
2901 ...............................................................................
2902
2903 ToStringGeneral.tests.cpp:<line number>: PASSED:
2904 REQUIRE( true )
2905 with message:
2906 i := 2
2907
2908 -------------------------------------------------------------------------------
2909 Capture and info messages
2910 Info should NOT stringify the way assertions do
2911 -------------------------------------------------------------------------------
2912 ToStringGeneral.tests.cpp:<line number>
2913 ...............................................................................
2914
2915 ToStringGeneral.tests.cpp:<line number>: PASSED:
2916 REQUIRE( true )
2917 with message:
2918 3
2919
2920 -------------------------------------------------------------------------------
2921 Captures do not leave block with an exception
2922 -------------------------------------------------------------------------------
2923 Message.tests.cpp:<line number>
2924 ...............................................................................
2925
2926 Message.tests.cpp:<line number>: FAILED:
2927 REQUIRE( false )
2928 with message:
2929 a := 1
2930
2931 -------------------------------------------------------------------------------
2932 Captures outlive section end
2933 Dummy section
2934 -------------------------------------------------------------------------------
2935 Message.tests.cpp:<line number>
2936 ...............................................................................
2937
2938 Message.tests.cpp:<line number>: PASSED:
2939 CHECK( true )
2940 with message:
2941 a := 1
2942
2943 -------------------------------------------------------------------------------
2944 Captures outlive section end
2945 -------------------------------------------------------------------------------
2946 Message.tests.cpp:<line number>
2947 ...............................................................................
2948
2949 Message.tests.cpp:<line number>: FAILED:
2950 REQUIRE( false )
2951 with message:
2952 a := 1
2953
2954 -------------------------------------------------------------------------------
2955 CaseInsensitiveEqualsTo is case insensitive
2956 Degenerate cases
2957 -------------------------------------------------------------------------------
2958 Details.tests.cpp:<line number>
2959 ...............................................................................
2960
2961 Details.tests.cpp:<line number>: PASSED:
2962 REQUIRE( eq( "", "" ) )
2963 with expansion:
2964 true
2965
2966 Details.tests.cpp:<line number>: PASSED:
2967 REQUIRE_FALSE( eq( "", "a" ) )
2968 with expansion:
2969 !false
2970
2971 -------------------------------------------------------------------------------
2972 CaseInsensitiveEqualsTo is case insensitive
2973 Plain comparisons
2974 -------------------------------------------------------------------------------
2975 Details.tests.cpp:<line number>
2976 ...............................................................................
2977
2978 Details.tests.cpp:<line number>: PASSED:
2979 REQUIRE( eq( "a", "a" ) )
2980 with expansion:
2981 true
2982
2983 Details.tests.cpp:<line number>: PASSED:
2984 REQUIRE( eq( "a", "A" ) )
2985 with expansion:
2986 true
2987
2988 Details.tests.cpp:<line number>: PASSED:
2989 REQUIRE( eq( "A", "a" ) )
2990 with expansion:
2991 true
2992
2993 Details.tests.cpp:<line number>: PASSED:
2994 REQUIRE( eq( "A", "A" ) )
2995 with expansion:
2996 true
2997
2998 Details.tests.cpp:<line number>: PASSED:
2999 REQUIRE_FALSE( eq( "a", "b" ) )
3000 with expansion:
3001 !false
3002
3003 Details.tests.cpp:<line number>: PASSED:
3004 REQUIRE_FALSE( eq( "a", "B" ) )
3005 with expansion:
3006 !false
3007
3008 -------------------------------------------------------------------------------
3009 CaseInsensitiveLess is case insensitive
3010 Degenerate cases
3011 -------------------------------------------------------------------------------
3012 Details.tests.cpp:<line number>
3013 ...............................................................................
3014
3015 Details.tests.cpp:<line number>: PASSED:
3016 REQUIRE( lt( "", "a" ) )
3017 with expansion:
3018 true
3019
3020 Details.tests.cpp:<line number>: PASSED:
3021 REQUIRE_FALSE( lt( "a", "a" ) )
3022 with expansion:
3023 !false
3024
3025 Details.tests.cpp:<line number>: PASSED:
3026 REQUIRE_FALSE( lt( "", "" ) )
3027 with expansion:
3028 !false
3029
3030 -------------------------------------------------------------------------------
3031 CaseInsensitiveLess is case insensitive
3032 Plain comparisons
3033 -------------------------------------------------------------------------------
3034 Details.tests.cpp:<line number>
3035 ...............................................................................
3036
3037 Details.tests.cpp:<line number>: PASSED:
3038 REQUIRE( lt( "a", "b" ) )
3039 with expansion:
3040 true
3041
3042 Details.tests.cpp:<line number>: PASSED:
3043 REQUIRE( lt( "a", "B" ) )
3044 with expansion:
3045 true
3046
3047 Details.tests.cpp:<line number>: PASSED:
3048 REQUIRE( lt( "A", "b" ) )
3049 with expansion:
3050 true
3051
3052 Details.tests.cpp:<line number>: PASSED:
3053 REQUIRE( lt( "A", "B" ) )
3054 with expansion:
3055 true
3056
3057 -------------------------------------------------------------------------------
3058 Character pretty printing
3059 Specifically escaped
3060 -------------------------------------------------------------------------------
3061 ToStringGeneral.tests.cpp:<line number>
3062 ...............................................................................
3063
3064 ToStringGeneral.tests.cpp:<line number>: PASSED:
3065 CHECK( ::Catch::Detail::stringify('\t') == "'\\t'" )
3066 with expansion:
3067 "'\t'" == "'\t'"
3068
3069 ToStringGeneral.tests.cpp:<line number>: PASSED:
3070 CHECK( ::Catch::Detail::stringify('\n') == "'\\n'" )
3071 with expansion:
3072 "'\n'" == "'\n'"
3073
3074 ToStringGeneral.tests.cpp:<line number>: PASSED:
3075 CHECK( ::Catch::Detail::stringify('\r') == "'\\r'" )
3076 with expansion:
3077 "'\r'" == "'\r'"
3078
3079 ToStringGeneral.tests.cpp:<line number>: PASSED:
3080 CHECK( ::Catch::Detail::stringify('\f') == "'\\f'" )
3081 with expansion:
3082 "'\f'" == "'\f'"
3083
3084 -------------------------------------------------------------------------------
3085 Character pretty printing
3086 General chars
3087 -------------------------------------------------------------------------------
3088 ToStringGeneral.tests.cpp:<line number>
3089 ...............................................................................
3090
3091 ToStringGeneral.tests.cpp:<line number>: PASSED:
3092 CHECK( ::Catch::Detail::stringify( ' ' ) == "' '" )
3093 with expansion:
3094 "' '" == "' '"
3095
3096 ToStringGeneral.tests.cpp:<line number>: PASSED:
3097 CHECK( ::Catch::Detail::stringify( 'A' ) == "'A'" )
3098 with expansion:
3099 "'A'" == "'A'"
3100
3101 ToStringGeneral.tests.cpp:<line number>: PASSED:
3102 CHECK( ::Catch::Detail::stringify( 'z' ) == "'z'" )
3103 with expansion:
3104 "'z'" == "'z'"
3105
3106 -------------------------------------------------------------------------------
3107 Character pretty printing
3108 Low ASCII
3109 -------------------------------------------------------------------------------
3110 ToStringGeneral.tests.cpp:<line number>
3111 ...............................................................................
3112
3113 ToStringGeneral.tests.cpp:<line number>: PASSED:
3114 CHECK( ::Catch::Detail::stringify( '\0' ) == "0" )
3115 with expansion:
3116 "0" == "0"
3117
3118 ToStringGeneral.tests.cpp:<line number>: PASSED:
3119 CHECK( ::Catch::Detail::stringify( static_cast<char>(2) ) == "2" )
3120 with expansion:
3121 "2" == "2"
3122
3123 ToStringGeneral.tests.cpp:<line number>: PASSED:
3124 CHECK( ::Catch::Detail::stringify( static_cast<char>(5) ) == "5" )
3125 with expansion:
3126 "5" == "5"
3127
3128 -------------------------------------------------------------------------------
3129 Clara::Arg does not crash on incomplete input
3130 -------------------------------------------------------------------------------
3131 Clara.tests.cpp:<line number>
3132 ...............................................................................
3133
3134 Clara.tests.cpp:<line number>: PASSED:
3135 CHECK( name.empty() )
3136 with expansion:
3137 true
3138
3139 Clara.tests.cpp:<line number>: PASSED:
3140 CHECK( result )
3141 with expansion:
3142 {?}
3143
3144 Clara.tests.cpp:<line number>: PASSED:
3145 CHECK( result.type() == Catch::Clara::Detail::ResultType::Ok )
3146 with expansion:
3147 0 == 0
3148
3149 Clara.tests.cpp:<line number>: PASSED:
3150 CHECK( parsed.type() == Catch::Clara::ParseResultType::NoMatch )
3151 with expansion:
3152 1 == 1
3153
3154 Clara.tests.cpp:<line number>: PASSED:
3155 CHECK( parsed.remainingTokens().count() == 2 )
3156 with expansion:
3157 2 == 2
3158
3159 Clara.tests.cpp:<line number>: PASSED:
3160 CHECK( name.empty() )
3161 with expansion:
3162 true
3163
3164 -------------------------------------------------------------------------------
3165 Clara::Arg supports single-arg parse the way Opt does
3166 -------------------------------------------------------------------------------
3167 Clara.tests.cpp:<line number>
3168 ...............................................................................
3169
3170 Clara.tests.cpp:<line number>: PASSED:
3171 CHECK( name.empty() )
3172 with expansion:
3173 true
3174
3175 Clara.tests.cpp:<line number>: PASSED:
3176 REQUIRE( name == "foo" )
3177 with expansion:
3178 "foo" == "foo"
3179
3180 -------------------------------------------------------------------------------
3181 Clara::Opt supports accept-many lambdas
3182 Parsing fails on multiple options without accept_many
3183 -------------------------------------------------------------------------------
3184 Clara.tests.cpp:<line number>
3185 ...............................................................................
3186
3187 Clara.tests.cpp:<line number>: PASSED:
3188 CHECK_FALSE( parse_result )
3189 with expansion:
3190 !{?}
3191
3192 -------------------------------------------------------------------------------
3193 Clara::Opt supports accept-many lambdas
3194 Parsing succeeds on multiple options with accept_many
3195 -------------------------------------------------------------------------------
3196 Clara.tests.cpp:<line number>
3197 ...............................................................................
3198
3199 Clara.tests.cpp:<line number>: PASSED:
3200 CHECK( parse_result )
3201 with expansion:
3202 {?}
3203
3204 Clara.tests.cpp:<line number>: PASSED:
3205 CHECK( res == std::vector<std::string>{ "aaa", "bbb" } )
3206 with expansion:
3207 { "aaa", "bbb" } == { "aaa", "bbb" }
3208
3209 -------------------------------------------------------------------------------
3210 ColourGuard behaviour
3211 ColourGuard is disengaged by default
3212 -------------------------------------------------------------------------------
3213 ColourImpl.tests.cpp:<line number>
3214 ...............................................................................
3215
3216 ColourImpl.tests.cpp:<line number>: PASSED:
3217 REQUIRE( streamWrapper.str().empty() )
3218 with expansion:
3219 true
3220
3221 -------------------------------------------------------------------------------
3222 ColourGuard behaviour
3223 ColourGuard is engaged by op<<
3224 -------------------------------------------------------------------------------
3225 ColourImpl.tests.cpp:<line number>
3226 ...............................................................................
3227
3228 ColourImpl.tests.cpp:<line number>: PASSED:
3229 REQUIRE( streamWrapper.str() == "1\nUsing code: 2\n2\nUsing code: 0\n3\n" )
3230 with expansion:
3231 "1
3232 Using code: 2
3233 2
3234 Using code: 0
3235 3
3236 "
3237 ==
3238 "1
3239 Using code: 2
3240 2
3241 Using code: 0
3242 3
3243 "
3244
3245 -------------------------------------------------------------------------------
3246 ColourGuard behaviour
3247 ColourGuard can be engaged explicitly
3248 -------------------------------------------------------------------------------
3249 ColourImpl.tests.cpp:<line number>
3250 ...............................................................................
3251
3252 ColourImpl.tests.cpp:<line number>: PASSED:
3253 REQUIRE( streamWrapper.str() == "Using code: 2\nA\nB\nUsing code: 0\nC\n" )
3254 with expansion:
3255 "Using code: 2
3256 A
3257 B
3258 Using code: 0
3259 C
3260 "
3261 ==
3262 "Using code: 2
3263 A
3264 B
3265 Using code: 0
3266 C
3267 "
3268
3269 -------------------------------------------------------------------------------
3270 Combining MatchAllOfGeneric does not nest
3271 -------------------------------------------------------------------------------
3272 Matchers.tests.cpp:<line number>
3273 ...............................................................................
3274
3275 Matchers.tests.cpp:<line number>: PASSED:
3276 with message:
3277 std::is_same< decltype( ( MatcherA() && MatcherB() ) && MatcherC() ), Catch::
3278 Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3279
3280 Matchers.tests.cpp:<line number>: PASSED:
3281 REQUIRE_THAT( 1, ( MatcherA() && MatcherB() ) && MatcherC() )
3282 with expansion:
3283 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3284 1 )
3285
3286 Matchers.tests.cpp:<line number>: PASSED:
3287 with message:
3288 std::is_same< decltype( MatcherA() && ( MatcherB() && MatcherC() ) ), Catch::
3289 Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3290
3291 Matchers.tests.cpp:<line number>: PASSED:
3292 REQUIRE_THAT( 1, MatcherA() && ( MatcherB() && MatcherC() ) )
3293 with expansion:
3294 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3295 1 )
3296
3297 Matchers.tests.cpp:<line number>: PASSED:
3298 with message:
3299 std::is_same< decltype( ( MatcherA() && MatcherB() ) && ( MatcherC() &&
3300 MatcherD() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA,
3301 MatcherB, MatcherC, MatcherD>>:: value
3302
3303 Matchers.tests.cpp:<line number>: PASSED:
3304 REQUIRE_THAT( 1, ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) )
3305 with expansion:
3306 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 and equals: (T)
3307 1 and equals: true )
3308
3309 -------------------------------------------------------------------------------
3310 Combining MatchAnyOfGeneric does not nest
3311 -------------------------------------------------------------------------------
3312 Matchers.tests.cpp:<line number>
3313 ...............................................................................
3314
3315 Matchers.tests.cpp:<line number>: PASSED:
3316 with message:
3317 std::is_same< decltype( ( MatcherA() || MatcherB() ) || MatcherC() ), Catch::
3318 Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3319
3320 Matchers.tests.cpp:<line number>: PASSED:
3321 REQUIRE_THAT( 1, ( MatcherA() || MatcherB() ) || MatcherC() )
3322 with expansion:
3323 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3324 )
3325
3326 Matchers.tests.cpp:<line number>: PASSED:
3327 with message:
3328 std::is_same< decltype( MatcherA() || ( MatcherB() || MatcherC() ) ), Catch::
3329 Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value
3330
3331 Matchers.tests.cpp:<line number>: PASSED:
3332 REQUIRE_THAT( 1, MatcherA() || ( MatcherB() || MatcherC() ) )
3333 with expansion:
3334 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3335 )
3336
3337 Matchers.tests.cpp:<line number>: PASSED:
3338 with message:
3339 std::is_same< decltype( ( MatcherA() || MatcherB() ) || ( MatcherC() ||
3340 MatcherD() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA,
3341 MatcherB, MatcherC, MatcherD>>:: value
3342
3343 Matchers.tests.cpp:<line number>: PASSED:
3344 REQUIRE_THAT( 1, ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) )
3345 with expansion:
3346 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 or equals: (T) 1
3347 or equals: true )
3348
3349 -------------------------------------------------------------------------------
3350 Combining MatchNotOfGeneric does not nest
3351 -------------------------------------------------------------------------------
3352 Matchers.tests.cpp:<line number>
3353 ...............................................................................
3354
3355 Matchers.tests.cpp:<line number>: PASSED:
3356 with message:
3357 std::is_same< decltype( !MatcherA() ), Catch::Matchers::Detail::
3358 MatchNotOfGeneric<MatcherA>>::value
3359
3360 Matchers.tests.cpp:<line number>: PASSED:
3361 REQUIRE_THAT( 0, !MatcherA() )
3362 with expansion:
3363 0 not equals: (int) 1 or (string) "1"
3364
3365 Matchers.tests.cpp:<line number>: PASSED:
3366 with message:
3367 std::is_same<decltype( !!MatcherA() ), MatcherA const&>::value
3368
3369 Matchers.tests.cpp:<line number>: PASSED:
3370 REQUIRE_THAT( 1, !!MatcherA() )
3371 with expansion:
3372 1 equals: (int) 1 or (string) "1"
3373
3374 Matchers.tests.cpp:<line number>: PASSED:
3375 with message:
3376 std::is_same< decltype( !!!MatcherA() ), Catch::Matchers::Detail::
3377 MatchNotOfGeneric<MatcherA>>::value
3378
3379 Matchers.tests.cpp:<line number>: PASSED:
3380 REQUIRE_THAT( 0, !!!MatcherA() )
3381 with expansion:
3382 0 not equals: (int) 1 or (string) "1"
3383
3384 Matchers.tests.cpp:<line number>: PASSED:
3385 with message:
3386 std::is_same<decltype( !!!!MatcherA() ), MatcherA const&>::value
3387
3388 Matchers.tests.cpp:<line number>: PASSED:
3389 REQUIRE_THAT( 1, !!!!MatcherA() )
3390 with expansion:
3391 1 equals: (int) 1 or (string) "1"
3392
3393 -------------------------------------------------------------------------------
3394 Combining concrete matchers does not use templated matchers
3395 -------------------------------------------------------------------------------
3396 Matchers.tests.cpp:<line number>
3397 ...............................................................................
3398
3399 Matchers.tests.cpp:<line number>: PASSED:
3400 with message:
3401 std::is_same<decltype( StartsWith( "foo" ) || ( StartsWith( "bar" ) &&
3402 EndsWith( "bar" ) && !EndsWith( "foo" ) ) ), Catch::Matchers::Detail::
3403 MatchAnyOf<std::string>>::value
3404
3405 -------------------------------------------------------------------------------
3406 Combining only templated matchers
3407 -------------------------------------------------------------------------------
3408 Matchers.tests.cpp:<line number>
3409 ...............................................................................
3410
3411 Matchers.tests.cpp:<line number>: PASSED:
3412 with message:
3413 std::is_same<decltype( MatcherA() || MatcherB() ), Catch::Matchers::Detail::
3414 MatchAnyOfGeneric<MatcherA, MatcherB>>::value
3415
3416 Matchers.tests.cpp:<line number>: PASSED:
3417 REQUIRE_THAT( 1, MatcherA() || MatcherB() )
3418 with expansion:
3419 1 ( equals: (int) 1 or (string) "1" or equals: (long long) 1 )
3420
3421 Matchers.tests.cpp:<line number>: PASSED:
3422 with message:
3423 std::is_same<decltype( MatcherA() && MatcherB() ), Catch::Matchers::Detail::
3424 MatchAllOfGeneric<MatcherA, MatcherB>>::value
3425
3426 Matchers.tests.cpp:<line number>: PASSED:
3427 REQUIRE_THAT( 1, MatcherA() && MatcherB() )
3428 with expansion:
3429 1 ( equals: (int) 1 or (string) "1" and equals: (long long) 1 )
3430
3431 Matchers.tests.cpp:<line number>: PASSED:
3432 with message:
3433 std::is_same< decltype( MatcherA() || !MatcherB() ), Catch::Matchers::Detail:
3434 :MatchAnyOfGeneric< MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric
3435 <MatcherB>>>::value
3436
3437 Matchers.tests.cpp:<line number>: PASSED:
3438 REQUIRE_THAT( 1, MatcherA() || !MatcherB() )
3439 with expansion:
3440 1 ( equals: (int) 1 or (string) "1" or not equals: (long long) 1 )
3441
3442 -------------------------------------------------------------------------------
3443 Combining templated and concrete matchers
3444 -------------------------------------------------------------------------------
3445 Matchers.tests.cpp:<line number>
3446 ...............................................................................
3447
3448 Matchers.tests.cpp:<line number>: PASSED:
3449 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 ) )
3450 with expansion:
3451 { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5,
3452 3, 1 } )
3453
3454 Matchers.tests.cpp:<line number>: PASSED:
3455 REQUIRE_THAT( str, StartsWith( "foo" ) && EqualsRange( arr ) && EndsWith( "bar" ) )
3456 with expansion:
3457 "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' }
3458 and ends with: "bar" )
3459
3460 Matchers.tests.cpp:<line number>: PASSED:
3461 REQUIRE_THAT( str, StartsWith( "foo" ) && !EqualsRange( bad_arr ) && EndsWith( "bar" ) )
3462 with expansion:
3463 "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r'
3464 } and ends with: "bar" )
3465
3466 Matchers.tests.cpp:<line number>: PASSED:
3467 REQUIRE_THAT( str, EqualsRange( arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) )
3468 with expansion:
3469 "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo"
3470 and ends with: "bar" )
3471
3472 Matchers.tests.cpp:<line number>: PASSED:
3473 REQUIRE_THAT( str, !EqualsRange( bad_arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) )
3474 with expansion:
3475 "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with:
3476 "foo" and ends with: "bar" )
3477
3478 Matchers.tests.cpp:<line number>: PASSED:
3479 REQUIRE_THAT( str, EqualsRange( bad_arr ) || ( StartsWith( "foo" ) && EndsWith( "bar" ) ) )
3480 with expansion:
3481 "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo"
3482 and ends with: "bar" ) )
3483
3484 Matchers.tests.cpp:<line number>: PASSED:
3485 REQUIRE_THAT( str, ( StartsWith( "foo" ) && EndsWith( "bar" ) ) || EqualsRange( bad_arr ) )
3486 with expansion:
3487 "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o',
3488 'f', 'b', 'a', 'r' } )
3489
3490 -------------------------------------------------------------------------------
3491 Combining templated matchers
3492 -------------------------------------------------------------------------------
3493 Matchers.tests.cpp:<line number>
3494 ...............................................................................
3495
3496 Matchers.tests.cpp:<line number>: PASSED:
3497 REQUIRE_THAT( container, EqualsRange( a ) || EqualsRange( b ) || EqualsRange( c ) )
3498 with expansion:
3499 { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6
3500 } )
3501
3502 -------------------------------------------------------------------------------
3503 Commas in various macros are allowed
3504 -------------------------------------------------------------------------------
3505 Tricky.tests.cpp:<line number>
3506 ...............................................................................
3507
3508 Tricky.tests.cpp:<line number>: PASSED:
3509 REQUIRE_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
3510
3511 Tricky.tests.cpp:<line number>: PASSED:
3512 CHECK_THROWS( std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} )
3513
3514 Tricky.tests.cpp:<line number>: PASSED:
3515 REQUIRE_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
3516
3517 Tricky.tests.cpp:<line number>: PASSED:
3518 CHECK_NOTHROW( std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} )
3519
3520 Tricky.tests.cpp:<line number>: PASSED:
3521 REQUIRE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3522 with expansion:
3523 { 1, 2 } == { 1, 2 }
3524
3525 Tricky.tests.cpp:<line number>: PASSED:
3526 CHECK( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3527 with expansion:
3528 { 1, 2 } == { 1, 2 }
3529
3530 Tricky.tests.cpp:<line number>: PASSED:
3531 REQUIRE_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
3532 with expansion:
3533 !({ 1, 2 } == { 1, 2, 3 })
3534
3535 Tricky.tests.cpp:<line number>: PASSED:
3536 CHECK_FALSE( std::vector<int>{1, 2} == std::vector<int>{1, 2, 3} )
3537 with expansion:
3538 !({ 1, 2 } == { 1, 2, 3 })
3539
3540 Tricky.tests.cpp:<line number>: PASSED:
3541 CHECK_NOFAIL( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3542 with expansion:
3543 { 1, 2 } == { 1, 2 }
3544
3545 Tricky.tests.cpp:<line number>: PASSED:
3546 CHECKED_IF( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3547 with expansion:
3548 { 1, 2 } == { 1, 2 }
3549
3550 Tricky.tests.cpp:<line number>: PASSED:
3551 REQUIRE( true )
3552
3553 Tricky.tests.cpp:<line number>: PASSED:
3554 CHECKED_ELSE( std::vector<int>{1, 2} == std::vector<int>{1, 2} )
3555 with expansion:
3556 { 1, 2 } == { 1, 2 }
3557
3558 -------------------------------------------------------------------------------
3559 Comparing (and stringifying) volatile pointers works
3560 -------------------------------------------------------------------------------
3561 Misc.tests.cpp:<line number>
3562 ...............................................................................
3563
3564 Misc.tests.cpp:<line number>: PASSED:
3565 REQUIRE_FALSE( ptr )
3566 with expansion:
3567 !0
3568
3569 Misc.tests.cpp:<line number>: PASSED:
3570 REQUIRE( ptr == ptr )
3571 with expansion:
3572 0 == 0
3573
3574 Misc.tests.cpp:<line number>: PASSED:
3575 REQUIRE_FALSE( ptr != ptr )
3576 with expansion:
3577 !(0 != 0)
3578
3579 Misc.tests.cpp:<line number>: PASSED:
3580 REQUIRE_FALSE( ptr < ptr )
3581 with expansion:
3582 !(0 < 0)
3583
3584 Misc.tests.cpp:<line number>: PASSED:
3585 REQUIRE( ptr <= ptr )
3586 with expansion:
3587 0 <= 0
3588
3589 Misc.tests.cpp:<line number>: PASSED:
3590 REQUIRE_FALSE( ptr > ptr )
3591 with expansion:
3592 !(0 > 0)
3593
3594 Misc.tests.cpp:<line number>: PASSED:
3595 REQUIRE( ptr >= ptr )
3596 with expansion:
3597 0 >= 0
3598
3599 -------------------------------------------------------------------------------
3600 Comparing function pointers
3601 -------------------------------------------------------------------------------
3602 Tricky.tests.cpp:<line number>
3603 ...............................................................................
3604
3605 Tricky.tests.cpp:<line number>: PASSED:
3606 REQUIRE( a )
3607 with expansion:
3608 0x<hex digits>
3609
3610 Tricky.tests.cpp:<line number>: PASSED:
3611 REQUIRE( a == &foo )
3612 with expansion:
3613 0x<hex digits> == 0x<hex digits>
3614
3615 -------------------------------------------------------------------------------
3616 Comparison ops
3617 -------------------------------------------------------------------------------
3618 RandomNumberGeneration.tests.cpp:<line number>
3619 ...............................................................................
3620
3621 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3622 REQUIRE( SimplePcg32{} == SimplePcg32{} )
3623 with expansion:
3624 {?} == {?}
3625
3626 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3627 REQUIRE( SimplePcg32{ 0 } != SimplePcg32{} )
3628 with expansion:
3629 {?} != {?}
3630
3631 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3632 REQUIRE_FALSE( SimplePcg32{ 1 } == SimplePcg32{ 2 } )
3633 with expansion:
3634 !({?} == {?})
3635
3636 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
3637 REQUIRE_FALSE( SimplePcg32{ 1 } != SimplePcg32{ 1 } )
3638 with expansion:
3639 !({?} != {?})
3640
3641 -------------------------------------------------------------------------------
3642 Comparison with explicitly convertible types
3643 -------------------------------------------------------------------------------
3644 Approx.tests.cpp:<line number>
3645 ...............................................................................
3646
3647 Approx.tests.cpp:<line number>: PASSED:
3648 REQUIRE( td == Approx(10.0) )
3649 with expansion:
3650 StrongDoubleTypedef(10) == Approx( 10.0 )
3651
3652 Approx.tests.cpp:<line number>: PASSED:
3653 REQUIRE( Approx(10.0) == td )
3654 with expansion:
3655 Approx( 10.0 ) == StrongDoubleTypedef(10)
3656
3657 Approx.tests.cpp:<line number>: PASSED:
3658 REQUIRE( td != Approx(11.0) )
3659 with expansion:
3660 StrongDoubleTypedef(10) != Approx( 11.0 )
3661
3662 Approx.tests.cpp:<line number>: PASSED:
3663 REQUIRE( Approx(11.0) != td )
3664 with expansion:
3665 Approx( 11.0 ) != StrongDoubleTypedef(10)
3666
3667 Approx.tests.cpp:<line number>: PASSED:
3668 REQUIRE( td <= Approx(10.0) )
3669 with expansion:
3670 StrongDoubleTypedef(10) <= Approx( 10.0 )
3671
3672 Approx.tests.cpp:<line number>: PASSED:
3673 REQUIRE( td <= Approx(11.0) )
3674 with expansion:
3675 StrongDoubleTypedef(10) <= Approx( 11.0 )
3676
3677 Approx.tests.cpp:<line number>: PASSED:
3678 REQUIRE( Approx(10.0) <= td )
3679 with expansion:
3680 Approx( 10.0 ) <= StrongDoubleTypedef(10)
3681
3682 Approx.tests.cpp:<line number>: PASSED:
3683 REQUIRE( Approx(9.0) <= td )
3684 with expansion:
3685 Approx( 9.0 ) <= StrongDoubleTypedef(10)
3686
3687 Approx.tests.cpp:<line number>: PASSED:
3688 REQUIRE( td >= Approx(9.0) )
3689 with expansion:
3690 StrongDoubleTypedef(10) >= Approx( 9.0 )
3691
3692 Approx.tests.cpp:<line number>: PASSED:
3693 REQUIRE( td >= Approx(td) )
3694 with expansion:
3695 StrongDoubleTypedef(10) >= Approx( 10.0 )
3696
3697 Approx.tests.cpp:<line number>: PASSED:
3698 REQUIRE( Approx(td) >= td )
3699 with expansion:
3700 Approx( 10.0 ) >= StrongDoubleTypedef(10)
3701
3702 Approx.tests.cpp:<line number>: PASSED:
3703 REQUIRE( Approx(11.0) >= td )
3704 with expansion:
3705 Approx( 11.0 ) >= StrongDoubleTypedef(10)
3706
3707 -------------------------------------------------------------------------------
3708 Comparisons between ints where one side is computed
3709 -------------------------------------------------------------------------------
3710 Condition.tests.cpp:<line number>
3711 ...............................................................................
3712
3713 Condition.tests.cpp:<line number>: PASSED:
3714 CHECK( 54 == 6*9 )
3715 with expansion:
3716 54 == 54
3717
3718 -------------------------------------------------------------------------------
3719 Comparisons between unsigned ints and negative signed ints match c++ standard
3720 behaviour
3721 -------------------------------------------------------------------------------
3722 Condition.tests.cpp:<line number>
3723 ...............................................................................
3724
3725 Condition.tests.cpp:<line number>: PASSED:
3726 CHECK( ( -1 > 2u ) )
3727 with expansion:
3728 true
3729
3730 Condition.tests.cpp:<line number>: PASSED:
3731 CHECK( -1 > 2u )
3732 with expansion:
3733 -1 > 2
3734
3735 Condition.tests.cpp:<line number>: PASSED:
3736 CHECK( ( 2u < -1 ) )
3737 with expansion:
3738 true
3739
3740 Condition.tests.cpp:<line number>: PASSED:
3741 CHECK( 2u < -1 )
3742 with expansion:
3743 2 < -1
3744
3745 Condition.tests.cpp:<line number>: PASSED:
3746 CHECK( ( minInt > 2u ) )
3747 with expansion:
3748 true
3749
3750 Condition.tests.cpp:<line number>: PASSED:
3751 CHECK( minInt > 2u )
3752 with expansion:
3753 -2147483648 > 2
3754
3755 -------------------------------------------------------------------------------
3756 Comparisons with int literals don't warn when mixing signed/ unsigned
3757 -------------------------------------------------------------------------------
3758 Condition.tests.cpp:<line number>
3759 ...............................................................................
3760
3761 Condition.tests.cpp:<line number>: PASSED:
3762 REQUIRE( i == 1 )
3763 with expansion:
3764 1 == 1
3765
3766 Condition.tests.cpp:<line number>: PASSED:
3767 REQUIRE( ui == 2 )
3768 with expansion:
3769 2 == 2
3770
3771 Condition.tests.cpp:<line number>: PASSED:
3772 REQUIRE( l == 3 )
3773 with expansion:
3774 3 == 3
3775
3776 Condition.tests.cpp:<line number>: PASSED:
3777 REQUIRE( ul == 4 )
3778 with expansion:
3779 4 == 4
3780
3781 Condition.tests.cpp:<line number>: PASSED:
3782 REQUIRE( c == 5 )
3783 with expansion:
3784 5 == 5
3785
3786 Condition.tests.cpp:<line number>: PASSED:
3787 REQUIRE( uc == 6 )
3788 with expansion:
3789 6 == 6
3790
3791 Condition.tests.cpp:<line number>: PASSED:
3792 REQUIRE( 1 == i )
3793 with expansion:
3794 1 == 1
3795
3796 Condition.tests.cpp:<line number>: PASSED:
3797 REQUIRE( 2 == ui )
3798 with expansion:
3799 2 == 2
3800
3801 Condition.tests.cpp:<line number>: PASSED:
3802 REQUIRE( 3 == l )
3803 with expansion:
3804 3 == 3
3805
3806 Condition.tests.cpp:<line number>: PASSED:
3807 REQUIRE( 4 == ul )
3808 with expansion:
3809 4 == 4
3810
3811 Condition.tests.cpp:<line number>: PASSED:
3812 REQUIRE( 5 == c )
3813 with expansion:
3814 5 == 5
3815
3816 Condition.tests.cpp:<line number>: PASSED:
3817 REQUIRE( 6 == uc )
3818 with expansion:
3819 6 == 6
3820
3821 Condition.tests.cpp:<line number>: PASSED:
3822 REQUIRE( (std::numeric_limits<uint32_t>::max)() > ul )
3823 with expansion:
3824 4294967295 (0x<hex digits>) > 4
3825
3826 -------------------------------------------------------------------------------
3827 Composed generic matchers shortcircuit
3828 MatchAllOf
3829 -------------------------------------------------------------------------------
3830 Matchers.tests.cpp:<line number>
3831 ...............................................................................
3832
3833 Matchers.tests.cpp:<line number>: PASSED:
3834 CHECK_FALSE( matcher.match( 1 ) )
3835 with expansion:
3836 !false
3837
3838 Matchers.tests.cpp:<line number>: PASSED:
3839 REQUIRE( first.matchCalled )
3840 with expansion:
3841 true
3842
3843 Matchers.tests.cpp:<line number>: PASSED:
3844 REQUIRE( !second.matchCalled )
3845 with expansion:
3846 true
3847
3848 -------------------------------------------------------------------------------
3849 Composed generic matchers shortcircuit
3850 MatchAnyOf
3851 -------------------------------------------------------------------------------
3852 Matchers.tests.cpp:<line number>
3853 ...............................................................................
3854
3855 Matchers.tests.cpp:<line number>: PASSED:
3856 CHECK( matcher.match( 1 ) )
3857 with expansion:
3858 true
3859
3860 Matchers.tests.cpp:<line number>: PASSED:
3861 REQUIRE( first.matchCalled )
3862 with expansion:
3863 true
3864
3865 Matchers.tests.cpp:<line number>: PASSED:
3866 REQUIRE( !second.matchCalled )
3867 with expansion:
3868 true
3869
3870 -------------------------------------------------------------------------------
3871 Composed matchers shortcircuit
3872 MatchAllOf
3873 -------------------------------------------------------------------------------
3874 Matchers.tests.cpp:<line number>
3875 ...............................................................................
3876
3877 Matchers.tests.cpp:<line number>: PASSED:
3878 CHECK_FALSE( matcher.match( 1 ) )
3879 with expansion:
3880 !false
3881
3882 Matchers.tests.cpp:<line number>: PASSED:
3883 REQUIRE( first.matchCalled )
3884 with expansion:
3885 true
3886
3887 Matchers.tests.cpp:<line number>: PASSED:
3888 REQUIRE( !second.matchCalled )
3889 with expansion:
3890 true
3891
3892 -------------------------------------------------------------------------------
3893 Composed matchers shortcircuit
3894 MatchAnyOf
3895 -------------------------------------------------------------------------------
3896 Matchers.tests.cpp:<line number>
3897 ...............................................................................
3898
3899 Matchers.tests.cpp:<line number>: PASSED:
3900 CHECK( matcher.match( 1 ) )
3901 with expansion:
3902 true
3903
3904 Matchers.tests.cpp:<line number>: PASSED:
3905 REQUIRE( first.matchCalled )
3906 with expansion:
3907 true
3908
3909 Matchers.tests.cpp:<line number>: PASSED:
3910 REQUIRE( !second.matchCalled )
3911 with expansion:
3912 true
3913
3914 -------------------------------------------------------------------------------
3915 Contains string matcher
3916 -------------------------------------------------------------------------------
3917 Matchers.tests.cpp:<line number>
3918 ...............................................................................
3919
3920 Matchers.tests.cpp:<line number>: FAILED:
3921 CHECK_THAT( testStringForMatching(), ContainsSubstring( "not there", Catch::CaseSensitive::No ) )
3922 with expansion:
3923 "this string contains 'abc' as a substring" contains: "not there" (case
3924 insensitive)
3925
3926 Matchers.tests.cpp:<line number>: FAILED:
3927 CHECK_THAT( testStringForMatching(), ContainsSubstring( "STRING" ) )
3928 with expansion:
3929 "this string contains 'abc' as a substring" contains: "STRING"
3930
3931 -------------------------------------------------------------------------------
3932 Copy and then generate a range
3933 from var and iterators
3934 -------------------------------------------------------------------------------
3935 Generators.tests.cpp:<line number>
3936 ...............................................................................
3937
3938 Generators.tests.cpp:<line number>: PASSED:
3939 REQUIRE( elem % 2 == 1 )
3940 with expansion:
3941 1 == 1
3942
3943 -------------------------------------------------------------------------------
3944 Copy and then generate a range
3945 from var and iterators
3946 -------------------------------------------------------------------------------
3947 Generators.tests.cpp:<line number>
3948 ...............................................................................
3949
3950 Generators.tests.cpp:<line number>: PASSED:
3951 REQUIRE( elem % 2 == 1 )
3952 with expansion:
3953 1 == 1
3954
3955 -------------------------------------------------------------------------------
3956 Copy and then generate a range
3957 from var and iterators
3958 -------------------------------------------------------------------------------
3959 Generators.tests.cpp:<line number>
3960 ...............................................................................
3961
3962 Generators.tests.cpp:<line number>: PASSED:
3963 REQUIRE( elem % 2 == 1 )
3964 with expansion:
3965 1 == 1
3966
3967 -------------------------------------------------------------------------------
3968 Copy and then generate a range
3969 from var and iterators
3970 -------------------------------------------------------------------------------
3971 Generators.tests.cpp:<line number>
3972 ...............................................................................
3973
3974 Generators.tests.cpp:<line number>: PASSED:
3975 REQUIRE( elem % 2 == 1 )
3976 with expansion:
3977 1 == 1
3978
3979 -------------------------------------------------------------------------------
3980 Copy and then generate a range
3981 from var and iterators
3982 -------------------------------------------------------------------------------
3983 Generators.tests.cpp:<line number>
3984 ...............................................................................
3985
3986 Generators.tests.cpp:<line number>: PASSED:
3987 REQUIRE( elem % 2 == 1 )
3988 with expansion:
3989 1 == 1
3990
3991 -------------------------------------------------------------------------------
3992 Copy and then generate a range
3993 from var and iterators
3994 -------------------------------------------------------------------------------
3995 Generators.tests.cpp:<line number>
3996 ...............................................................................
3997
3998 Generators.tests.cpp:<line number>: PASSED:
3999 REQUIRE( elem % 2 == 1 )
4000 with expansion:
4001 1 == 1
4002
4003 -------------------------------------------------------------------------------
4004 Copy and then generate a range
4005 From a temporary container
4006 -------------------------------------------------------------------------------
4007 Generators.tests.cpp:<line number>
4008 ...............................................................................
4009
4010 Generators.tests.cpp:<line number>: PASSED:
4011 REQUIRE( elem % 2 == 1 )
4012 with expansion:
4013 1 == 1
4014
4015 -------------------------------------------------------------------------------
4016 Copy and then generate a range
4017 From a temporary container
4018 -------------------------------------------------------------------------------
4019 Generators.tests.cpp:<line number>
4020 ...............................................................................
4021
4022 Generators.tests.cpp:<line number>: PASSED:
4023 REQUIRE( elem % 2 == 1 )
4024 with expansion:
4025 1 == 1
4026
4027 -------------------------------------------------------------------------------
4028 Copy and then generate a range
4029 From a temporary container
4030 -------------------------------------------------------------------------------
4031 Generators.tests.cpp:<line number>
4032 ...............................................................................
4033
4034 Generators.tests.cpp:<line number>: PASSED:
4035 REQUIRE( elem % 2 == 1 )
4036 with expansion:
4037 1 == 1
4038
4039 -------------------------------------------------------------------------------
4040 Copy and then generate a range
4041 From a temporary container
4042 -------------------------------------------------------------------------------
4043 Generators.tests.cpp:<line number>
4044 ...............................................................................
4045
4046 Generators.tests.cpp:<line number>: PASSED:
4047 REQUIRE( elem % 2 == 1 )
4048 with expansion:
4049 1 == 1
4050
4051 -------------------------------------------------------------------------------
4052 Copy and then generate a range
4053 From a temporary container
4054 -------------------------------------------------------------------------------
4055 Generators.tests.cpp:<line number>
4056 ...............................................................................
4057
4058 Generators.tests.cpp:<line number>: PASSED:
4059 REQUIRE( elem % 2 == 1 )
4060 with expansion:
4061 1 == 1
4062
4063 -------------------------------------------------------------------------------
4064 Copy and then generate a range
4065 From a temporary container
4066 -------------------------------------------------------------------------------
4067 Generators.tests.cpp:<line number>
4068 ...............................................................................
4069
4070 Generators.tests.cpp:<line number>: PASSED:
4071 REQUIRE( elem % 2 == 1 )
4072 with expansion:
4073 1 == 1
4074
4075 -------------------------------------------------------------------------------
4076 Copy and then generate a range
4077 Final validation
4078 -------------------------------------------------------------------------------
4079 Generators.tests.cpp:<line number>
4080 ...............................................................................
4081
4082 Generators.tests.cpp:<line number>: PASSED:
4083 REQUIRE( call_count == 1 )
4084 with expansion:
4085 1 == 1
4086
4087 Generators.tests.cpp:<line number>: PASSED:
4088 REQUIRE( make_data().size() == test_count )
4089 with expansion:
4090 6 == 6
4091
4092 -------------------------------------------------------------------------------
4093 Cout stream properly declares it writes to stdout
4094 -------------------------------------------------------------------------------
4095 Stream.tests.cpp:<line number>
4096 ...............................................................................
4097
4098 Stream.tests.cpp:<line number>: PASSED:
4099 REQUIRE( Catch::makeStream( "-" )->isConsole() )
4100 with expansion:
4101 true
4102
4103 -------------------------------------------------------------------------------
4104 Custom exceptions can be translated when testing for nothrow
4105 -------------------------------------------------------------------------------
4106 Exception.tests.cpp:<line number>
4107 ...............................................................................
4108
4109 Exception.tests.cpp:<line number>: FAILED:
4110 REQUIRE_NOTHROW( throwCustom() )
4111 due to unexpected exception with message:
4112 custom exception - not std
4113
4114 -------------------------------------------------------------------------------
4115 Custom exceptions can be translated when testing for throwing as something else
4116 -------------------------------------------------------------------------------
4117 Exception.tests.cpp:<line number>
4118 ...............................................................................
4119
4120 Exception.tests.cpp:<line number>: FAILED:
4121 REQUIRE_THROWS_AS( throwCustom(), std::exception )
4122 due to unexpected exception with message:
4123 custom exception - not std
4124
4125 -------------------------------------------------------------------------------
4126 Custom std-exceptions can be custom translated
4127 -------------------------------------------------------------------------------
4128 Exception.tests.cpp:<line number>
4129 ...............................................................................
4130
4131 Exception.tests.cpp:<line number>: FAILED:
4132 due to unexpected exception with message:
4133 custom std exception
4134
4135 -------------------------------------------------------------------------------
4136 Default scale is invisible to comparison
4137 -------------------------------------------------------------------------------
4138 Approx.tests.cpp:<line number>
4139 ...............................................................................
4140
4141 Approx.tests.cpp:<line number>: PASSED:
4142 REQUIRE( 101.000001 != Approx(100).epsilon(0.01) )
4143 with expansion:
4144 101.00000099999999748 != Approx( 100.0 )
4145
4146 Approx.tests.cpp:<line number>: PASSED:
4147 REQUIRE( std::pow(10, -5) != Approx(std::pow(10, -7)) )
4148 with expansion:
4149 0.00001 != Approx( 0.0000001 )
4150
4151 -------------------------------------------------------------------------------
4152 Directly creating an EnumInfo
4153 -------------------------------------------------------------------------------
4154 ToString.tests.cpp:<line number>
4155 ...............................................................................
4156
4157 ToString.tests.cpp:<line number>: PASSED:
4158 CHECK( enumInfo->lookup(0) == "Value1" )
4159 with expansion:
4160 Value1 == "Value1"
4161
4162 ToString.tests.cpp:<line number>: PASSED:
4163 CHECK( enumInfo->lookup(1) == "Value2" )
4164 with expansion:
4165 Value2 == "Value2"
4166
4167 ToString.tests.cpp:<line number>: PASSED:
4168 CHECK( enumInfo->lookup(3) == "{** unexpected enum value **}" )
4169 with expansion:
4170 {** unexpected enum value **}
4171 ==
4172 "{** unexpected enum value **}"
4173
4174 -------------------------------------------------------------------------------
4175 Empty generators can SKIP in constructor
4176 -------------------------------------------------------------------------------
4177 Skip.tests.cpp:<line number>
4178 ...............................................................................
4179
4180 Skip.tests.cpp:<line number>: SKIPPED:
4181 explicitly with message:
4182 This generator is empty
4183
4184 -------------------------------------------------------------------------------
4185 Empty stream name opens cout stream
4186 -------------------------------------------------------------------------------
4187 Stream.tests.cpp:<line number>
4188 ...............................................................................
4189
4190 Stream.tests.cpp:<line number>: PASSED:
4191 REQUIRE( Catch::makeStream( "" )->isConsole() )
4192 with expansion:
4193 true
4194
4195 -------------------------------------------------------------------------------
4196 EndsWith string matcher
4197 -------------------------------------------------------------------------------
4198 Matchers.tests.cpp:<line number>
4199 ...............................................................................
4200
4201 Matchers.tests.cpp:<line number>: FAILED:
4202 CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) )
4203 with expansion:
4204 "this string contains 'abc' as a substring" ends with: "Substring"
4205
4206 Matchers.tests.cpp:<line number>: FAILED:
4207 CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) )
4208 with expansion:
4209 "this string contains 'abc' as a substring" ends with: "this" (case
4210 insensitive)
4211
4212 -------------------------------------------------------------------------------
4213 Enums can quickly have stringification enabled using CATCH_REGISTER_ENUM
4214 -------------------------------------------------------------------------------
4215 EnumToString.tests.cpp:<line number>
4216 ...............................................................................
4217
4218 EnumToString.tests.cpp:<line number>: PASSED:
4219 REQUIRE( stringify( EnumClass3::Value1 ) == "Value1" )
4220 with expansion:
4221 "Value1" == "Value1"
4222
4223 EnumToString.tests.cpp:<line number>: PASSED:
4224 REQUIRE( stringify( EnumClass3::Value2 ) == "Value2" )
4225 with expansion:
4226 "Value2" == "Value2"
4227
4228 EnumToString.tests.cpp:<line number>: PASSED:
4229 REQUIRE( stringify( EnumClass3::Value3 ) == "Value3" )
4230 with expansion:
4231 "Value3" == "Value3"
4232
4233 EnumToString.tests.cpp:<line number>: PASSED:
4234 REQUIRE( stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}" )
4235 with expansion:
4236 "{** unexpected enum value **}"
4237 ==
4238 "{** unexpected enum value **}"
4239
4240 EnumToString.tests.cpp:<line number>: PASSED:
4241 REQUIRE( stringify( ec3 ) == "Value2" )
4242 with expansion:
4243 "Value2" == "Value2"
4244
4245 -------------------------------------------------------------------------------
4246 Enums in namespaces can quickly have stringification enabled using
4247 CATCH_REGISTER_ENUM
4248 -------------------------------------------------------------------------------
4249 EnumToString.tests.cpp:<line number>
4250 ...............................................................................
4251
4252 EnumToString.tests.cpp:<line number>: PASSED:
4253 REQUIRE( stringify( Bikeshed::Colours::Red ) == "Red" )
4254 with expansion:
4255 "Red" == "Red"
4256
4257 EnumToString.tests.cpp:<line number>: PASSED:
4258 REQUIRE( stringify( Bikeshed::Colours::Blue ) == "Blue" )
4259 with expansion:
4260 "Blue" == "Blue"
4261
4262 -------------------------------------------------------------------------------
4263 Epsilon only applies to Approx's value
4264 -------------------------------------------------------------------------------
4265 Approx.tests.cpp:<line number>
4266 ...............................................................................
4267
4268 Approx.tests.cpp:<line number>: PASSED:
4269 REQUIRE( 101.01 != Approx(100).epsilon(0.01) )
4270 with expansion:
4271 101.01000000000000512 != Approx( 100.0 )
4272
4273 -------------------------------------------------------------------------------
4274 Equality checks that should fail
4275 -------------------------------------------------------------------------------
4276 Condition.tests.cpp:<line number>
4277 ...............................................................................
4278
4279 Condition.tests.cpp:<line number>: FAILED:
4280 CHECK( data.int_seven == 6 )
4281 with expansion:
4282 7 == 6
4283
4284 Condition.tests.cpp:<line number>: FAILED:
4285 CHECK( data.int_seven == 8 )
4286 with expansion:
4287 7 == 8
4288
4289 Condition.tests.cpp:<line number>: FAILED:
4290 CHECK( data.int_seven == 0 )
4291 with expansion:
4292 7 == 0
4293
4294 Condition.tests.cpp:<line number>: FAILED:
4295 CHECK( data.float_nine_point_one == Approx( 9.11f ) )
4296 with expansion:
4297 9.100000381f
4298 ==
4299 Approx( 9.10999965667724609 )
4300
4301 Condition.tests.cpp:<line number>: FAILED:
4302 CHECK( data.float_nine_point_one == Approx( 9.0f ) )
4303 with expansion:
4304 9.100000381f == Approx( 9.0 )
4305
4306 Condition.tests.cpp:<line number>: FAILED:
4307 CHECK( data.float_nine_point_one == Approx( 1 ) )
4308 with expansion:
4309 9.100000381f == Approx( 1.0 )
4310
4311 Condition.tests.cpp:<line number>: FAILED:
4312 CHECK( data.float_nine_point_one == Approx( 0 ) )
4313 with expansion:
4314 9.100000381f == Approx( 0.0 )
4315
4316 Condition.tests.cpp:<line number>: FAILED:
4317 CHECK( data.double_pi == Approx( 3.1415 ) )
4318 with expansion:
4319 3.14159265350000005
4320 ==
4321 Approx( 3.14150000000000018 )
4322
4323 Condition.tests.cpp:<line number>: FAILED:
4324 CHECK( data.str_hello == "goodbye" )
4325 with expansion:
4326 "hello" == "goodbye"
4327
4328 Condition.tests.cpp:<line number>: FAILED:
4329 CHECK( data.str_hello == "hell" )
4330 with expansion:
4331 "hello" == "hell"
4332
4333 Condition.tests.cpp:<line number>: FAILED:
4334 CHECK( data.str_hello == "hello1" )
4335 with expansion:
4336 "hello" == "hello1"
4337
4338 Condition.tests.cpp:<line number>: FAILED:
4339 CHECK( data.str_hello.size() == 6 )
4340 with expansion:
4341 5 == 6
4342
4343 Condition.tests.cpp:<line number>: FAILED:
4344 CHECK( x == Approx( 1.301 ) )
4345 with expansion:
4346 1.30000000000000027
4347 ==
4348 Approx( 1.30099999999999993 )
4349
4350 -------------------------------------------------------------------------------
4351 Equality checks that should succeed
4352 -------------------------------------------------------------------------------
4353 Condition.tests.cpp:<line number>
4354 ...............................................................................
4355
4356 Condition.tests.cpp:<line number>: PASSED:
4357 REQUIRE( data.int_seven == 7 )
4358 with expansion:
4359 7 == 7
4360
4361 Condition.tests.cpp:<line number>: PASSED:
4362 REQUIRE( data.float_nine_point_one == Approx( 9.1f ) )
4363 with expansion:
4364 9.100000381f
4365 ==
4366 Approx( 9.10000038146972656 )
4367
4368 Condition.tests.cpp:<line number>: PASSED:
4369 REQUIRE( data.double_pi == Approx( 3.1415926535 ) )
4370 with expansion:
4371 3.14159265350000005
4372 ==
4373 Approx( 3.14159265350000005 )
4374
4375 Condition.tests.cpp:<line number>: PASSED:
4376 REQUIRE( data.str_hello == "hello" )
4377 with expansion:
4378 "hello" == "hello"
4379
4380 Condition.tests.cpp:<line number>: PASSED:
4381 REQUIRE( "hello" == data.str_hello )
4382 with expansion:
4383 "hello" == "hello"
4384
4385 Condition.tests.cpp:<line number>: PASSED:
4386 REQUIRE( data.str_hello.size() == 5 )
4387 with expansion:
4388 5 == 5
4389
4390 Condition.tests.cpp:<line number>: PASSED:
4391 REQUIRE( x == Approx( 1.3 ) )
4392 with expansion:
4393 1.30000000000000027
4394 ==
4395 Approx( 1.30000000000000004 )
4396
4397 -------------------------------------------------------------------------------
4398 Equals
4399 -------------------------------------------------------------------------------
4400 Matchers.tests.cpp:<line number>
4401 ...............................................................................
4402
4403 Matchers.tests.cpp:<line number>: PASSED:
4404 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) )
4405 with expansion:
4406 "this string contains 'abc' as a substring" equals: "this string contains
4407 'abc' as a substring"
4408
4409 Matchers.tests.cpp:<line number>: PASSED:
4410 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) )
4411 with expansion:
4412 "this string contains 'abc' as a substring" equals: "this string contains
4413 'abc' as a substring" (case insensitive)
4414
4415 -------------------------------------------------------------------------------
4416 Equals string matcher
4417 -------------------------------------------------------------------------------
4418 Matchers.tests.cpp:<line number>
4419 ...............................................................................
4420
4421 Matchers.tests.cpp:<line number>: FAILED:
4422 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) )
4423 with expansion:
4424 "this string contains 'abc' as a substring" equals: "this string contains
4425 'ABC' as a substring"
4426
4427 Matchers.tests.cpp:<line number>: FAILED:
4428 CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) )
4429 with expansion:
4430 "this string contains 'abc' as a substring" equals: "something else" (case
4431 insensitive)
4432
4433 -------------------------------------------------------------------------------
4434 Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
4435 -------------------------------------------------------------------------------
4436 ToStringGeneral.tests.cpp:<line number>
4437 ...............................................................................
4438
4439 ToStringGeneral.tests.cpp:<line number>: PASSED:
4440 REQUIRE( ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" )
4441 with expansion:
4442 "This exception has overridden what() method"
4443 ==
4444 "This exception has overridden what() method"
4445
4446 ToStringGeneral.tests.cpp:<line number>: PASSED:
4447 REQUIRE( ::Catch::Detail::stringify(OperatorException{}) == "OperatorException" )
4448 with expansion:
4449 "OperatorException" == "OperatorException"
4450
4451 ToStringGeneral.tests.cpp:<line number>: PASSED:
4452 REQUIRE( ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" )
4453 with expansion:
4454 "StringMakerException"
4455 ==
4456 "StringMakerException"
4457
4458 -------------------------------------------------------------------------------
4459 Exception matchers that fail
4460 No exception
4461 -------------------------------------------------------------------------------
4462 Matchers.tests.cpp:<line number>
4463 ...............................................................................
4464
4465 Matchers.tests.cpp:<line number>: FAILED:
4466 CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
4467 because no exception was thrown where one was expected:
4468
4469 Matchers.tests.cpp:<line number>: FAILED:
4470 REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
4471 because no exception was thrown where one was expected:
4472
4473 -------------------------------------------------------------------------------
4474 Exception matchers that fail
4475 Type mismatch
4476 -------------------------------------------------------------------------------
4477 Matchers.tests.cpp:<line number>
4478 ...............................................................................
4479
4480 Matchers.tests.cpp:<line number>: FAILED:
4481 CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4482 due to unexpected exception with message:
4483 Unknown exception
4484
4485 Matchers.tests.cpp:<line number>: FAILED:
4486 REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4487 due to unexpected exception with message:
4488 Unknown exception
4489
4490 -------------------------------------------------------------------------------
4491 Exception matchers that fail
4492 Contents are wrong
4493 -------------------------------------------------------------------------------
4494 Matchers.tests.cpp:<line number>
4495 ...............................................................................
4496
4497 Matchers.tests.cpp:<line number>: FAILED:
4498 CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } )
4499 with expansion:
4500 SpecialException::what special exception has value of 1
4501
4502 Matchers.tests.cpp:<line number>: FAILED:
4503 REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } )
4504 with expansion:
4505 SpecialException::what special exception has value of 1
4506
4507 -------------------------------------------------------------------------------
4508 Exception matchers that succeed
4509 -------------------------------------------------------------------------------
4510 Matchers.tests.cpp:<line number>
4511 ...............................................................................
4512
4513 Matchers.tests.cpp:<line number>: PASSED:
4514 CHECK_THROWS_MATCHES( throwsSpecialException( 1 ), SpecialException, ExceptionMatcher{ 1 } )
4515 with expansion:
4516 SpecialException::what special exception has value of 1
4517
4518 Matchers.tests.cpp:<line number>: PASSED:
4519 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, ExceptionMatcher{ 2 } )
4520 with expansion:
4521 SpecialException::what special exception has value of 2
4522
4523 -------------------------------------------------------------------------------
4524 Exception message can be matched
4525 -------------------------------------------------------------------------------
4526 Matchers.tests.cpp:<line number>
4527 ...............................................................................
4528
4529 Matchers.tests.cpp:<line number>: PASSED:
4530 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( StartsWith( "Derived" ) ) )
4531 with expansion:
4532 DerivedException::what matches "starts with: "Derived""
4533
4534 Matchers.tests.cpp:<line number>: PASSED:
4535 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( EndsWith( "::what" ) ) )
4536 with expansion:
4537 DerivedException::what matches "ends with: "::what""
4538
4539 Matchers.tests.cpp:<line number>: PASSED:
4540 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, MessageMatches( !StartsWith( "::what" ) ) )
4541 with expansion:
4542 DerivedException::what matches "not starts with: "::what""
4543
4544 Matchers.tests.cpp:<line number>: PASSED:
4545 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, MessageMatches( StartsWith( "Special" ) ) )
4546 with expansion:
4547 SpecialException::what matches "starts with: "Special""
4548
4549 -------------------------------------------------------------------------------
4550 Exception messages can be tested for
4551 exact match
4552 -------------------------------------------------------------------------------
4553 Exception.tests.cpp:<line number>
4554 ...............................................................................
4555
4556 Exception.tests.cpp:<line number>: PASSED:
4557 REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
4558 with expansion:
4559 "expected exception" equals: "expected exception"
4560
4561 -------------------------------------------------------------------------------
4562 Exception messages can be tested for
4563 different case
4564 -------------------------------------------------------------------------------
4565 Exception.tests.cpp:<line number>
4566 ...............................................................................
4567
4568 Exception.tests.cpp:<line number>: PASSED:
4569 REQUIRE_THROWS_WITH( thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) )
4570 with expansion:
4571 "expected exception" equals: "expected exception" (case insensitive)
4572
4573 -------------------------------------------------------------------------------
4574 Exception messages can be tested for
4575 wildcarded
4576 -------------------------------------------------------------------------------
4577 Exception.tests.cpp:<line number>
4578 ...............................................................................
4579
4580 Exception.tests.cpp:<line number>: PASSED:
4581 REQUIRE_THROWS_WITH( thisThrows(), StartsWith( "expected" ) )
4582 with expansion:
4583 "expected exception" starts with: "expected"
4584
4585 Exception.tests.cpp:<line number>: PASSED:
4586 REQUIRE_THROWS_WITH( thisThrows(), EndsWith( "exception" ) )
4587 with expansion:
4588 "expected exception" ends with: "exception"
4589
4590 Exception.tests.cpp:<line number>: PASSED:
4591 REQUIRE_THROWS_WITH( thisThrows(), ContainsSubstring( "except" ) )
4592 with expansion:
4593 "expected exception" contains: "except"
4594
4595 Exception.tests.cpp:<line number>: PASSED:
4596 REQUIRE_THROWS_WITH( thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) )
4597 with expansion:
4598 "expected exception" contains: "except" (case insensitive)
4599
4600 -------------------------------------------------------------------------------
4601 Exception thrown inside stringify does not fail the test
4602 -------------------------------------------------------------------------------
4603 ToString.tests.cpp:<line number>
4604 ...............................................................................
4605
4606 ToString.tests.cpp:<line number>: PASSED:
4607 CHECK( tos == tos )
4608 with expansion:
4609 { stringification failed with an exception: "Invalid" }
4610 ==
4611 { stringification failed with an exception: "Invalid" }
4612
4613 -------------------------------------------------------------------------------
4614 Exceptions matchers
4615 -------------------------------------------------------------------------------
4616 Matchers.tests.cpp:<line number>
4617 ...............................................................................
4618
4619 Matchers.tests.cpp:<line number>: PASSED:
4620 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) )
4621 with expansion:
4622 DerivedException::what exception message matches "DerivedException::what"
4623
4624 Matchers.tests.cpp:<line number>: PASSED:
4625 REQUIRE_THROWS_MATCHES( throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) )
4626 with expansion:
4627 DerivedException::what not exception message matches "derivedexception::what"
4628
4629 Matchers.tests.cpp:<line number>: PASSED:
4630 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) )
4631 with expansion:
4632 SpecialException::what not exception message matches "DerivedException::what"
4633
4634 Matchers.tests.cpp:<line number>: PASSED:
4635 REQUIRE_THROWS_MATCHES( throwsSpecialException( 2 ), SpecialException, Message( "SpecialException::what" ) )
4636 with expansion:
4637 SpecialException::what exception message matches "SpecialException::what"
4638
4639 -------------------------------------------------------------------------------
4640 Expected exceptions that don't throw or unexpected exceptions fail the test
4641 -------------------------------------------------------------------------------
4642 Exception.tests.cpp:<line number>
4643 ...............................................................................
4644
4645 Exception.tests.cpp:<line number>: FAILED:
4646 CHECK_THROWS_AS( thisThrows(), std::string )
4647 due to unexpected exception with message:
4648 expected exception
4649
4650 Exception.tests.cpp:<line number>: FAILED:
4651 CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error )
4652 because no exception was thrown where one was expected:
4653
4654 Exception.tests.cpp:<line number>: FAILED:
4655 CHECK_NOTHROW( thisThrows() )
4656 due to unexpected exception with message:
4657 expected exception
4658
4659 -------------------------------------------------------------------------------
4660 FAIL aborts the test
4661 -------------------------------------------------------------------------------
4662 Message.tests.cpp:<line number>
4663 ...............................................................................
4664
4665 Message.tests.cpp:<line number>: FAILED:
4666 explicitly with message:
4667 This is a failure
4668
4669 -------------------------------------------------------------------------------
4670 FAIL can be nested in assertion
4671 -------------------------------------------------------------------------------
4672 AssertionHandler.tests.cpp:<line number>
4673 ...............................................................................
4674
4675 AssertionHandler.tests.cpp:<line number>: FAILED:
4676 explicitly with message:
4677 Throw a Catch::TestFailureException
4678
4679 AssertionHandler.tests.cpp:<line number>: FAILED:
4680 CHECK_NOTHROW( do_fail() )
4681 due to unexpected exception with message:
4682 { nested assertion failed }
4683
4684 -------------------------------------------------------------------------------
4685 FAIL does not require an argument
4686 -------------------------------------------------------------------------------
4687 Message.tests.cpp:<line number>
4688 ...............................................................................
4689
4690 Message.tests.cpp:<line number>: FAILED:
4691
4692 -------------------------------------------------------------------------------
4693 FAIL_CHECK does not abort the test
4694 -------------------------------------------------------------------------------
4695 Message.tests.cpp:<line number>
4696 ...............................................................................
4697
4698 Message.tests.cpp:<line number>: FAILED:
4699 explicitly with message:
4700 This is a failure
4701
4702 Message.tests.cpp:<line number>: warning:
4703 This message appears in the output
4704
4705 -------------------------------------------------------------------------------
4706 Factorials are computed
4707 -------------------------------------------------------------------------------
4708 Misc.tests.cpp:<line number>
4709 ...............................................................................
4710
4711 Misc.tests.cpp:<line number>: PASSED:
4712 REQUIRE( Factorial(0) == 1 )
4713 with expansion:
4714 1 == 1
4715
4716 Misc.tests.cpp:<line number>: PASSED:
4717 REQUIRE( Factorial(1) == 1 )
4718 with expansion:
4719 1 == 1
4720
4721 Misc.tests.cpp:<line number>: PASSED:
4722 REQUIRE( Factorial(2) == 2 )
4723 with expansion:
4724 2 == 2
4725
4726 Misc.tests.cpp:<line number>: PASSED:
4727 REQUIRE( Factorial(3) == 6 )
4728 with expansion:
4729 6 == 6
4730
4731 Misc.tests.cpp:<line number>: PASSED:
4732 REQUIRE( Factorial(10) == 3628800 )
4733 with expansion:
4734 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
4735
4736 -------------------------------------------------------------------------------
4737 Filter generator throws exception for empty generator
4738 -------------------------------------------------------------------------------
4739 GeneratorsImpl.tests.cpp:<line number>
4740 ...............................................................................
4741
4742 GeneratorsImpl.tests.cpp:<line number>: PASSED:
4743 REQUIRE_THROWS_AS( filter( []( int ) { return false; }, value( 3 ) ), Catch::GeneratorException )
4744
4745 -------------------------------------------------------------------------------
4746 Floating point matchers: double
4747 Relative
4748 -------------------------------------------------------------------------------
4749 Matchers.tests.cpp:<line number>
4750 ...............................................................................
4751
4752 Matchers.tests.cpp:<line number>: PASSED:
4753 REQUIRE_THAT( 10., WithinRel( 11.1, 0.1 ) )
4754 with expansion:
4755 10.0 and 11.09999999999999964 are within 10% of each other
4756
4757 Matchers.tests.cpp:<line number>: PASSED:
4758 REQUIRE_THAT( 10., !WithinRel( 11.2, 0.1 ) )
4759 with expansion:
4760 10.0 not and 11.19999999999999929 are within 10% of each other
4761
4762 Matchers.tests.cpp:<line number>: PASSED:
4763 REQUIRE_THAT( 1., !WithinRel( 0., 0.99 ) )
4764 with expansion:
4765 1.0 not and 0.0 are within 99% of each other
4766
4767 Matchers.tests.cpp:<line number>: PASSED:
4768 REQUIRE_THAT( -0., WithinRel( 0. ) )
4769 with expansion:
4770 -0.0 and 0.0 are within 2.22045e-12% of each other
4771
4772 -------------------------------------------------------------------------------
4773 Floating point matchers: double
4774 Relative
4775 Some subnormal values
4776 -------------------------------------------------------------------------------
4777 Matchers.tests.cpp:<line number>
4778 ...............................................................................
4779
4780 Matchers.tests.cpp:<line number>: PASSED:
4781 REQUIRE_THAT( v1, WithinRel( v2 ) )
4782 with expansion:
4783 0.0 and 0.0 are within 2.22045e-12% of each other
4784
4785 -------------------------------------------------------------------------------
4786 Floating point matchers: double
4787 Margin
4788 -------------------------------------------------------------------------------
4789 Matchers.tests.cpp:<line number>
4790 ...............................................................................
4791
4792 Matchers.tests.cpp:<line number>: PASSED:
4793 REQUIRE_THAT( 1., WithinAbs( 1., 0 ) )
4794 with expansion:
4795 1.0 is within 0.0 of 1.0
4796
4797 Matchers.tests.cpp:<line number>: PASSED:
4798 REQUIRE_THAT( 0., WithinAbs( 1., 1 ) )
4799 with expansion:
4800 0.0 is within 1.0 of 1.0
4801
4802 Matchers.tests.cpp:<line number>: PASSED:
4803 REQUIRE_THAT( 0., !WithinAbs( 1., 0.99 ) )
4804 with expansion:
4805 0.0 not is within 0.98999999999999999 of 1.0
4806
4807 Matchers.tests.cpp:<line number>: PASSED:
4808 REQUIRE_THAT( 0., !WithinAbs( 1., 0.99 ) )
4809 with expansion:
4810 0.0 not is within 0.98999999999999999 of 1.0
4811
4812 Matchers.tests.cpp:<line number>: PASSED:
4813 REQUIRE_THAT( 11., !WithinAbs( 10., 0.5 ) )
4814 with expansion:
4815 11.0 not is within 0.5 of 10.0
4816
4817 Matchers.tests.cpp:<line number>: PASSED:
4818 REQUIRE_THAT( 10., !WithinAbs( 11., 0.5 ) )
4819 with expansion:
4820 10.0 not is within 0.5 of 11.0
4821
4822 Matchers.tests.cpp:<line number>: PASSED:
4823 REQUIRE_THAT( -10., WithinAbs( -10., 0.5 ) )
4824 with expansion:
4825 -10.0 is within 0.5 of -10.0
4826
4827 Matchers.tests.cpp:<line number>: PASSED:
4828 REQUIRE_THAT( -10., WithinAbs( -9.6, 0.5 ) )
4829 with expansion:
4830 -10.0 is within 0.5 of -9.59999999999999964
4831
4832 -------------------------------------------------------------------------------
4833 Floating point matchers: double
4834 ULPs
4835 -------------------------------------------------------------------------------
4836 Matchers.tests.cpp:<line number>
4837 ...............................................................................
4838
4839 Matchers.tests.cpp:<line number>: PASSED:
4840 REQUIRE_THAT( 1., WithinULP( 1., 0 ) )
4841 with expansion:
4842 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
4843 0000000000000000e+00])
4844
4845 Matchers.tests.cpp:<line number>: PASSED:
4846 REQUIRE_THAT( nextafter( 1., 2. ), WithinULP( 1., 1 ) )
4847 with expansion:
4848 1.00000000000000022 is within 1 ULPs of 1.0000000000000000e+00 ([9.
4849 9999999999999989e-01, 1.0000000000000002e+00])
4850
4851 Matchers.tests.cpp:<line number>: PASSED:
4852 REQUIRE_THAT( 0., WithinULP( nextafter( 0., 1. ), 1 ) )
4853 with expansion:
4854 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.
4855 8813129168249309e-324])
4856
4857 Matchers.tests.cpp:<line number>: PASSED:
4858 REQUIRE_THAT( 1., WithinULP( nextafter( 1., 0. ), 1 ) )
4859 with expansion:
4860 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.
4861 0000000000000000e+00])
4862
4863 Matchers.tests.cpp:<line number>: PASSED:
4864 REQUIRE_THAT( 1., !WithinULP( nextafter( 1., 2. ), 0 ) )
4865 with expansion:
4866 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00,
4867 1.0000000000000002e+00])
4868
4869 Matchers.tests.cpp:<line number>: PASSED:
4870 REQUIRE_THAT( 1., WithinULP( 1., 0 ) )
4871 with expansion:
4872 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.
4873 0000000000000000e+00])
4874
4875 Matchers.tests.cpp:<line number>: PASSED:
4876 REQUIRE_THAT( -0., WithinULP( 0., 0 ) )
4877 with expansion:
4878 -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.
4879 0000000000000000e+00])
4880
4881 -------------------------------------------------------------------------------
4882 Floating point matchers: double
4883 Composed
4884 -------------------------------------------------------------------------------
4885 Matchers.tests.cpp:<line number>
4886 ...............................................................................
4887
4888 Matchers.tests.cpp:<line number>: PASSED:
4889 REQUIRE_THAT( 1., WithinAbs( 1., 0.5 ) || WithinULP( 2., 1 ) )
4890 with expansion:
4891 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.
4892 9999999999999998e+00, 2.0000000000000004e+00]) )
4893
4894 Matchers.tests.cpp:<line number>: PASSED:
4895 REQUIRE_THAT( 1., WithinAbs( 2., 0.5 ) || WithinULP( 1., 0 ) )
4896 with expansion:
4897 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.
4898 0000000000000000e+00, 1.0000000000000000e+00]) )
4899
4900 Matchers.tests.cpp:<line number>: PASSED:
4901 REQUIRE_THAT( 0.0001, WithinAbs( 0., 0.001 ) || WithinRel( 0., 0.1 ) )
4902 with expansion:
4903 0.0001 ( is within 0.001 of 0.0 or and 0.0 are within 10% of each other )
4904
4905 -------------------------------------------------------------------------------
4906 Floating point matchers: double
4907 Constructor validation
4908 -------------------------------------------------------------------------------
4909 Matchers.tests.cpp:<line number>
4910 ...............................................................................
4911
4912 Matchers.tests.cpp:<line number>: PASSED:
4913 REQUIRE_NOTHROW( WithinAbs( 1., 0. ) )
4914
4915 Matchers.tests.cpp:<line number>: PASSED:
4916 REQUIRE_THROWS_AS( WithinAbs( 1., -1. ), std::domain_error )
4917
4918 Matchers.tests.cpp:<line number>: PASSED:
4919 REQUIRE_NOTHROW( WithinULP( 1., 0 ) )
4920
4921 Matchers.tests.cpp:<line number>: PASSED:
4922 REQUIRE_NOTHROW( WithinRel( 1., 0. ) )
4923
4924 Matchers.tests.cpp:<line number>: PASSED:
4925 REQUIRE_THROWS_AS( WithinRel( 1., -0.2 ), std::domain_error )
4926
4927 Matchers.tests.cpp:<line number>: PASSED:
4928 REQUIRE_THROWS_AS( WithinRel( 1., 1. ), std::domain_error )
4929
4930 -------------------------------------------------------------------------------
4931 Floating point matchers: double
4932 IsNaN
4933 -------------------------------------------------------------------------------
4934 Matchers.tests.cpp:<line number>
4935 ...............................................................................
4936
4937 Matchers.tests.cpp:<line number>: PASSED:
4938 REQUIRE_THAT( 1., !IsNaN() )
4939 with expansion:
4940 1.0 not is NaN
4941
4942 -------------------------------------------------------------------------------
4943 Floating point matchers: float
4944 Relative
4945 -------------------------------------------------------------------------------
4946 Matchers.tests.cpp:<line number>
4947 ...............................................................................
4948
4949 Matchers.tests.cpp:<line number>: PASSED:
4950 REQUIRE_THAT( 10.f, WithinRel( 11.1f, 0.1f ) )
4951 with expansion:
4952 10.0f and 11.10000038146972656 are within 10% of each other
4953
4954 Matchers.tests.cpp:<line number>: PASSED:
4955 REQUIRE_THAT( 10.f, !WithinRel( 11.2f, 0.1f ) )
4956 with expansion:
4957 10.0f not and 11.19999980926513672 are within 10% of each other
4958
4959 Matchers.tests.cpp:<line number>: PASSED:
4960 REQUIRE_THAT( 1.f, !WithinRel( 0.f, 0.99f ) )
4961 with expansion:
4962 1.0f not and 0.0 are within 99% of each other
4963
4964 Matchers.tests.cpp:<line number>: PASSED:
4965 REQUIRE_THAT( -0.f, WithinRel( 0.f ) )
4966 with expansion:
4967 -0.0f and 0.0 are within 0.00119209% of each other
4968
4969 -------------------------------------------------------------------------------
4970 Floating point matchers: float
4971 Relative
4972 Some subnormal values
4973 -------------------------------------------------------------------------------
4974 Matchers.tests.cpp:<line number>
4975 ...............................................................................
4976
4977 Matchers.tests.cpp:<line number>: PASSED:
4978 REQUIRE_THAT( v1, WithinRel( v2 ) )
4979 with expansion:
4980 0.0f and 0.0 are within 0.00119209% of each other
4981
4982 -------------------------------------------------------------------------------
4983 Floating point matchers: float
4984 Margin
4985 -------------------------------------------------------------------------------
4986 Matchers.tests.cpp:<line number>
4987 ...............................................................................
4988
4989 Matchers.tests.cpp:<line number>: PASSED:
4990 REQUIRE_THAT( 1.f, WithinAbs( 1.f, 0 ) )
4991 with expansion:
4992 1.0f is within 0.0 of 1.0
4993
4994 Matchers.tests.cpp:<line number>: PASSED:
4995 REQUIRE_THAT( 0.f, WithinAbs( 1.f, 1 ) )
4996 with expansion:
4997 0.0f is within 1.0 of 1.0
4998
4999 Matchers.tests.cpp:<line number>: PASSED:
5000 REQUIRE_THAT( 0.f, !WithinAbs( 1.f, 0.99f ) )
5001 with expansion:
5002 0.0f not is within 0.99000000953674316 of 1.0
5003
5004 Matchers.tests.cpp:<line number>: PASSED:
5005 REQUIRE_THAT( 0.f, !WithinAbs( 1.f, 0.99f ) )
5006 with expansion:
5007 0.0f not is within 0.99000000953674316 of 1.0
5008
5009 Matchers.tests.cpp:<line number>: PASSED:
5010 REQUIRE_THAT( 0.f, WithinAbs( -0.f, 0 ) )
5011 with expansion:
5012 0.0f is within 0.0 of -0.0
5013
5014 Matchers.tests.cpp:<line number>: PASSED:
5015 REQUIRE_THAT( 11.f, !WithinAbs( 10.f, 0.5f ) )
5016 with expansion:
5017 11.0f not is within 0.5 of 10.0
5018
5019 Matchers.tests.cpp:<line number>: PASSED:
5020 REQUIRE_THAT( 10.f, !WithinAbs( 11.f, 0.5f ) )
5021 with expansion:
5022 10.0f not is within 0.5 of 11.0
5023
5024 Matchers.tests.cpp:<line number>: PASSED:
5025 REQUIRE_THAT( -10.f, WithinAbs( -10.f, 0.5f ) )
5026 with expansion:
5027 -10.0f is within 0.5 of -10.0
5028
5029 Matchers.tests.cpp:<line number>: PASSED:
5030 REQUIRE_THAT( -10.f, WithinAbs( -9.6f, 0.5f ) )
5031 with expansion:
5032 -10.0f is within 0.5 of -9.60000038146972656
5033
5034 -------------------------------------------------------------------------------
5035 Floating point matchers: float
5036 ULPs
5037 -------------------------------------------------------------------------------
5038 Matchers.tests.cpp:<line number>
5039 ...............................................................................
5040
5041 Matchers.tests.cpp:<line number>: PASSED:
5042 REQUIRE_THAT( 1.f, WithinULP( 1.f, 0 ) )
5043 with expansion:
5044 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
5045
5046 Matchers.tests.cpp:<line number>: PASSED:
5047 REQUIRE_THAT( -1.f, WithinULP( -1.f, 0 ) )
5048 with expansion:
5049 -1.0f is within 0 ULPs of -1.00000000e+00f ([-1.00000000e+00, -1.00000000e+
5050 00])
5051
5052 Matchers.tests.cpp:<line number>: PASSED:
5053 REQUIRE_THAT( nextafter( 1.f, 2.f ), WithinULP( 1.f, 1 ) )
5054 with expansion:
5055 1.000000119f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.
5056 00000012e+00])
5057
5058 Matchers.tests.cpp:<line number>: PASSED:
5059 REQUIRE_THAT( 0.f, WithinULP( nextafter( 0.f, 1.f ), 1 ) )
5060 with expansion:
5061 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
5062
5063 Matchers.tests.cpp:<line number>: PASSED:
5064 REQUIRE_THAT( 1.f, WithinULP( nextafter( 1.f, 0.f ), 1 ) )
5065 with expansion:
5066 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
5067
5068 Matchers.tests.cpp:<line number>: PASSED:
5069 REQUIRE_THAT( 1.f, !WithinULP( nextafter( 1.f, 2.f ), 0 ) )
5070 with expansion:
5071 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+
5072 00])
5073
5074 Matchers.tests.cpp:<line number>: PASSED:
5075 REQUIRE_THAT( 1.f, WithinULP( 1.f, 0 ) )
5076 with expansion:
5077 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
5078
5079 Matchers.tests.cpp:<line number>: PASSED:
5080 REQUIRE_THAT( -0.f, WithinULP( 0.f, 0 ) )
5081 with expansion:
5082 -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
5083
5084 -------------------------------------------------------------------------------
5085 Floating point matchers: float
5086 Composed
5087 -------------------------------------------------------------------------------
5088 Matchers.tests.cpp:<line number>
5089 ...............................................................................
5090
5091 Matchers.tests.cpp:<line number>: PASSED:
5092 REQUIRE_THAT( 1.f, WithinAbs( 1.f, 0.5 ) || WithinULP( 1.f, 1 ) )
5093 with expansion:
5094 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.
5095 99999940e-01, 1.00000012e+00]) )
5096
5097 Matchers.tests.cpp:<line number>: PASSED:
5098 REQUIRE_THAT( 1.f, WithinAbs( 2.f, 0.5 ) || WithinULP( 1.f, 0 ) )
5099 with expansion:
5100 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.
5101 00000000e+00, 1.00000000e+00]) )
5102
5103 Matchers.tests.cpp:<line number>: PASSED:
5104 REQUIRE_THAT( 0.0001f, WithinAbs( 0.f, 0.001f ) || WithinRel( 0.f, 0.1f ) )
5105 with expansion:
5106 0.0001f ( is within 0.00100000004749745 of 0.0 or and 0.0 are within 10% of
5107 each other )
5108
5109 -------------------------------------------------------------------------------
5110 Floating point matchers: float
5111 Constructor validation
5112 -------------------------------------------------------------------------------
5113 Matchers.tests.cpp:<line number>
5114 ...............................................................................
5115
5116 Matchers.tests.cpp:<line number>: PASSED:
5117 REQUIRE_NOTHROW( WithinAbs( 1.f, 0.f ) )
5118
5119 Matchers.tests.cpp:<line number>: PASSED:
5120 REQUIRE_THROWS_AS( WithinAbs( 1.f, -1.f ), std::domain_error )
5121
5122 Matchers.tests.cpp:<line number>: PASSED:
5123 REQUIRE_NOTHROW( WithinULP( 1.f, 0 ) )
5124
5125 Matchers.tests.cpp:<line number>: PASSED:
5126 REQUIRE_THROWS_AS( WithinULP( 1.f, static_cast<uint64_t>( -1 ) ), std::domain_error )
5127
5128 Matchers.tests.cpp:<line number>: PASSED:
5129 REQUIRE_NOTHROW( WithinRel( 1.f, 0.f ) )
5130
5131 Matchers.tests.cpp:<line number>: PASSED:
5132 REQUIRE_THROWS_AS( WithinRel( 1.f, -0.2f ), std::domain_error )
5133
5134 Matchers.tests.cpp:<line number>: PASSED:
5135 REQUIRE_THROWS_AS( WithinRel( 1.f, 1.f ), std::domain_error )
5136
5137 -------------------------------------------------------------------------------
5138 Floating point matchers: float
5139 IsNaN
5140 -------------------------------------------------------------------------------
5141 Matchers.tests.cpp:<line number>
5142 ...............................................................................
5143
5144 Matchers.tests.cpp:<line number>: PASSED:
5145 REQUIRE_THAT( 1., !IsNaN() )
5146 with expansion:
5147 1.0 not is NaN
5148
5149 -------------------------------------------------------------------------------
5150 GENERATE can combine literals and generators
5151 -------------------------------------------------------------------------------
5152 Generators.tests.cpp:<line number>
5153 ...............................................................................
5154
5155 Generators.tests.cpp:<line number>: PASSED:
5156 REQUIRE( i % 2 == 0 )
5157 with expansion:
5158 0 == 0
5159
5160 -------------------------------------------------------------------------------
5161 GENERATE can combine literals and generators
5162 -------------------------------------------------------------------------------
5163 Generators.tests.cpp:<line number>
5164 ...............................................................................
5165
5166 Generators.tests.cpp:<line number>: PASSED:
5167 REQUIRE( i % 2 == 0 )
5168 with expansion:
5169 0 == 0
5170
5171 -------------------------------------------------------------------------------
5172 GENERATE can combine literals and generators
5173 -------------------------------------------------------------------------------
5174 Generators.tests.cpp:<line number>
5175 ...............................................................................
5176
5177 Generators.tests.cpp:<line number>: PASSED:
5178 REQUIRE( i % 2 == 0 )
5179 with expansion:
5180 0 == 0
5181
5182 -------------------------------------------------------------------------------
5183 GENERATE can combine literals and generators
5184 -------------------------------------------------------------------------------
5185 Generators.tests.cpp:<line number>
5186 ...............................................................................
5187
5188 Generators.tests.cpp:<line number>: PASSED:
5189 REQUIRE( i % 2 == 0 )
5190 with expansion:
5191 0 == 0
5192
5193 -------------------------------------------------------------------------------
5194 Generators -- adapters
5195 Filtering by predicate
5196 Basic usage
5197 -------------------------------------------------------------------------------
5198 Generators.tests.cpp:<line number>
5199 ...............................................................................
5200
5201 Generators.tests.cpp:<line number>: PASSED:
5202 REQUIRE( i % 2 == 0 )
5203 with expansion:
5204 0 == 0
5205
5206 -------------------------------------------------------------------------------
5207 Generators -- adapters
5208 Filtering by predicate
5209 Basic usage
5210 -------------------------------------------------------------------------------
5211 Generators.tests.cpp:<line number>
5212 ...............................................................................
5213
5214 Generators.tests.cpp:<line number>: PASSED:
5215 REQUIRE( i % 2 == 0 )
5216 with expansion:
5217 0 == 0
5218
5219 -------------------------------------------------------------------------------
5220 Generators -- adapters
5221 Filtering by predicate
5222 Basic usage
5223 -------------------------------------------------------------------------------
5224 Generators.tests.cpp:<line number>
5225 ...............................................................................
5226
5227 Generators.tests.cpp:<line number>: PASSED:
5228 REQUIRE( i % 2 == 0 )
5229 with expansion:
5230 0 == 0
5231
5232 -------------------------------------------------------------------------------
5233 Generators -- adapters
5234 Filtering by predicate
5235 Throws if there are no matching values
5236 -------------------------------------------------------------------------------
5237 Generators.tests.cpp:<line number>
5238 ...............................................................................
5239
5240 Generators.tests.cpp:<line number>: PASSED:
5241 REQUIRE_THROWS_AS( filter([] (int) {return false; }, value(1)), Catch::GeneratorException )
5242
5243 -------------------------------------------------------------------------------
5244 Generators -- adapters
5245 Shortening a range
5246 -------------------------------------------------------------------------------
5247 Generators.tests.cpp:<line number>
5248 ...............................................................................
5249
5250 Generators.tests.cpp:<line number>: PASSED:
5251 REQUIRE( i < 4 )
5252 with expansion:
5253 1 < 4
5254
5255 -------------------------------------------------------------------------------
5256 Generators -- adapters
5257 Shortening a range
5258 -------------------------------------------------------------------------------
5259 Generators.tests.cpp:<line number>
5260 ...............................................................................
5261
5262 Generators.tests.cpp:<line number>: PASSED:
5263 REQUIRE( i < 4 )
5264 with expansion:
5265 2 < 4
5266
5267 -------------------------------------------------------------------------------
5268 Generators -- adapters
5269 Shortening a range
5270 -------------------------------------------------------------------------------
5271 Generators.tests.cpp:<line number>
5272 ...............................................................................
5273
5274 Generators.tests.cpp:<line number>: PASSED:
5275 REQUIRE( i < 4 )
5276 with expansion:
5277 3 < 4
5278
5279 -------------------------------------------------------------------------------
5280 Generators -- adapters
5281 Transforming elements
5282 Same type
5283 -------------------------------------------------------------------------------
5284 Generators.tests.cpp:<line number>
5285 ...............................................................................
5286
5287 Generators.tests.cpp:<line number>: PASSED:
5288 REQUIRE( i % 2 == 0 )
5289 with expansion:
5290 0 == 0
5291
5292 -------------------------------------------------------------------------------
5293 Generators -- adapters
5294 Transforming elements
5295 Same type
5296 -------------------------------------------------------------------------------
5297 Generators.tests.cpp:<line number>
5298 ...............................................................................
5299
5300 Generators.tests.cpp:<line number>: PASSED:
5301 REQUIRE( i % 2 == 0 )
5302 with expansion:
5303 0 == 0
5304
5305 -------------------------------------------------------------------------------
5306 Generators -- adapters
5307 Transforming elements
5308 Same type
5309 -------------------------------------------------------------------------------
5310 Generators.tests.cpp:<line number>
5311 ...............................................................................
5312
5313 Generators.tests.cpp:<line number>: PASSED:
5314 REQUIRE( i % 2 == 0 )
5315 with expansion:
5316 0 == 0
5317
5318 -------------------------------------------------------------------------------
5319 Generators -- adapters
5320 Transforming elements
5321 Different type
5322 -------------------------------------------------------------------------------
5323 Generators.tests.cpp:<line number>
5324 ...............................................................................
5325
5326 Generators.tests.cpp:<line number>: PASSED:
5327 REQUIRE( i.size() == 1 )
5328 with expansion:
5329 1 == 1
5330
5331 -------------------------------------------------------------------------------
5332 Generators -- adapters
5333 Transforming elements
5334 Different type
5335 -------------------------------------------------------------------------------
5336 Generators.tests.cpp:<line number>
5337 ...............................................................................
5338
5339 Generators.tests.cpp:<line number>: PASSED:
5340 REQUIRE( i.size() == 1 )
5341 with expansion:
5342 1 == 1
5343
5344 -------------------------------------------------------------------------------
5345 Generators -- adapters
5346 Transforming elements
5347 Different type
5348 -------------------------------------------------------------------------------
5349 Generators.tests.cpp:<line number>
5350 ...............................................................................
5351
5352 Generators.tests.cpp:<line number>: PASSED:
5353 REQUIRE( i.size() == 1 )
5354 with expansion:
5355 1 == 1
5356
5357 -------------------------------------------------------------------------------
5358 Generators -- adapters
5359 Transforming elements
5360 Different deduced type
5361 -------------------------------------------------------------------------------
5362 Generators.tests.cpp:<line number>
5363 ...............................................................................
5364
5365 Generators.tests.cpp:<line number>: PASSED:
5366 REQUIRE( i.size() == 1 )
5367 with expansion:
5368 1 == 1
5369
5370 -------------------------------------------------------------------------------
5371 Generators -- adapters
5372 Transforming elements
5373 Different deduced type
5374 -------------------------------------------------------------------------------
5375 Generators.tests.cpp:<line number>
5376 ...............................................................................
5377
5378 Generators.tests.cpp:<line number>: PASSED:
5379 REQUIRE( i.size() == 1 )
5380 with expansion:
5381 1 == 1
5382
5383 -------------------------------------------------------------------------------
5384 Generators -- adapters
5385 Transforming elements
5386 Different deduced type
5387 -------------------------------------------------------------------------------
5388 Generators.tests.cpp:<line number>
5389 ...............................................................................
5390
5391 Generators.tests.cpp:<line number>: PASSED:
5392 REQUIRE( i.size() == 1 )
5393 with expansion:
5394 1 == 1
5395
5396 -------------------------------------------------------------------------------
5397 Generators -- adapters
5398 Repeating a generator
5399 -------------------------------------------------------------------------------
5400 Generators.tests.cpp:<line number>
5401 ...............................................................................
5402
5403 Generators.tests.cpp:<line number>: PASSED:
5404 REQUIRE( j > 0 )
5405 with expansion:
5406 1 > 0
5407
5408 -------------------------------------------------------------------------------
5409 Generators -- adapters
5410 Repeating a generator
5411 -------------------------------------------------------------------------------
5412 Generators.tests.cpp:<line number>
5413 ...............................................................................
5414
5415 Generators.tests.cpp:<line number>: PASSED:
5416 REQUIRE( j > 0 )
5417 with expansion:
5418 2 > 0
5419
5420 -------------------------------------------------------------------------------
5421 Generators -- adapters
5422 Repeating a generator
5423 -------------------------------------------------------------------------------
5424 Generators.tests.cpp:<line number>
5425 ...............................................................................
5426
5427 Generators.tests.cpp:<line number>: PASSED:
5428 REQUIRE( j > 0 )
5429 with expansion:
5430 3 > 0
5431
5432 -------------------------------------------------------------------------------
5433 Generators -- adapters
5434 Repeating a generator
5435 -------------------------------------------------------------------------------
5436 Generators.tests.cpp:<line number>
5437 ...............................................................................
5438
5439 Generators.tests.cpp:<line number>: PASSED:
5440 REQUIRE( j > 0 )
5441 with expansion:
5442 1 > 0
5443
5444 -------------------------------------------------------------------------------
5445 Generators -- adapters
5446 Repeating a generator
5447 -------------------------------------------------------------------------------
5448 Generators.tests.cpp:<line number>
5449 ...............................................................................
5450
5451 Generators.tests.cpp:<line number>: PASSED:
5452 REQUIRE( j > 0 )
5453 with expansion:
5454 2 > 0
5455
5456 -------------------------------------------------------------------------------
5457 Generators -- adapters
5458 Repeating a generator
5459 -------------------------------------------------------------------------------
5460 Generators.tests.cpp:<line number>
5461 ...............................................................................
5462
5463 Generators.tests.cpp:<line number>: PASSED:
5464 REQUIRE( j > 0 )
5465 with expansion:
5466 3 > 0
5467
5468 -------------------------------------------------------------------------------
5469 Generators -- adapters
5470 Chunking a generator into sized pieces
5471 Number of elements in source is divisible by chunk size
5472 -------------------------------------------------------------------------------
5473 Generators.tests.cpp:<line number>
5474 ...............................................................................
5475
5476 Generators.tests.cpp:<line number>: PASSED:
5477 REQUIRE( chunk2.size() == 2 )
5478 with expansion:
5479 2 == 2
5480
5481 Generators.tests.cpp:<line number>: PASSED:
5482 REQUIRE( chunk2.front() == chunk2.back() )
5483 with expansion:
5484 1 == 1
5485
5486 -------------------------------------------------------------------------------
5487 Generators -- adapters
5488 Chunking a generator into sized pieces
5489 Number of elements in source is divisible by chunk size
5490 -------------------------------------------------------------------------------
5491 Generators.tests.cpp:<line number>
5492 ...............................................................................
5493
5494 Generators.tests.cpp:<line number>: PASSED:
5495 REQUIRE( chunk2.size() == 2 )
5496 with expansion:
5497 2 == 2
5498
5499 Generators.tests.cpp:<line number>: PASSED:
5500 REQUIRE( chunk2.front() == chunk2.back() )
5501 with expansion:
5502 2 == 2
5503
5504 -------------------------------------------------------------------------------
5505 Generators -- adapters
5506 Chunking a generator into sized pieces
5507 Number of elements in source is divisible by chunk size
5508 -------------------------------------------------------------------------------
5509 Generators.tests.cpp:<line number>
5510 ...............................................................................
5511
5512 Generators.tests.cpp:<line number>: PASSED:
5513 REQUIRE( chunk2.size() == 2 )
5514 with expansion:
5515 2 == 2
5516
5517 Generators.tests.cpp:<line number>: PASSED:
5518 REQUIRE( chunk2.front() == chunk2.back() )
5519 with expansion:
5520 3 == 3
5521
5522 -------------------------------------------------------------------------------
5523 Generators -- adapters
5524 Chunking a generator into sized pieces
5525 Number of elements in source is not divisible by chunk size
5526 -------------------------------------------------------------------------------
5527 Generators.tests.cpp:<line number>
5528 ...............................................................................
5529
5530 Generators.tests.cpp:<line number>: PASSED:
5531 REQUIRE( chunk2.size() == 2 )
5532 with expansion:
5533 2 == 2
5534
5535 Generators.tests.cpp:<line number>: PASSED:
5536 REQUIRE( chunk2.front() == chunk2.back() )
5537 with expansion:
5538 1 == 1
5539
5540 Generators.tests.cpp:<line number>: PASSED:
5541 REQUIRE( chunk2.front() < 3 )
5542 with expansion:
5543 1 < 3
5544
5545 -------------------------------------------------------------------------------
5546 Generators -- adapters
5547 Chunking a generator into sized pieces
5548 Number of elements in source is not divisible by chunk size
5549 -------------------------------------------------------------------------------
5550 Generators.tests.cpp:<line number>
5551 ...............................................................................
5552
5553 Generators.tests.cpp:<line number>: PASSED:
5554 REQUIRE( chunk2.size() == 2 )
5555 with expansion:
5556 2 == 2
5557
5558 Generators.tests.cpp:<line number>: PASSED:
5559 REQUIRE( chunk2.front() == chunk2.back() )
5560 with expansion:
5561 2 == 2
5562
5563 Generators.tests.cpp:<line number>: PASSED:
5564 REQUIRE( chunk2.front() < 3 )
5565 with expansion:
5566 2 < 3
5567
5568 -------------------------------------------------------------------------------
5569 Generators -- adapters
5570 Chunking a generator into sized pieces
5571 Chunk size of zero
5572 -------------------------------------------------------------------------------
5573 Generators.tests.cpp:<line number>
5574 ...............................................................................
5575
5576 Generators.tests.cpp:<line number>: PASSED:
5577 REQUIRE( chunk2.size() == 0 )
5578 with expansion:
5579 0 == 0
5580
5581 -------------------------------------------------------------------------------
5582 Generators -- adapters
5583 Chunking a generator into sized pieces
5584 Chunk size of zero
5585 -------------------------------------------------------------------------------
5586 Generators.tests.cpp:<line number>
5587 ...............................................................................
5588
5589 Generators.tests.cpp:<line number>: PASSED:
5590 REQUIRE( chunk2.size() == 0 )
5591 with expansion:
5592 0 == 0
5593
5594 -------------------------------------------------------------------------------
5595 Generators -- adapters
5596 Chunking a generator into sized pieces
5597 Chunk size of zero
5598 -------------------------------------------------------------------------------
5599 Generators.tests.cpp:<line number>
5600 ...............................................................................
5601
5602 Generators.tests.cpp:<line number>: PASSED:
5603 REQUIRE( chunk2.size() == 0 )
5604 with expansion:
5605 0 == 0
5606
5607 -------------------------------------------------------------------------------
5608 Generators -- adapters
5609 Chunking a generator into sized pieces
5610 Throws on too small generators
5611 -------------------------------------------------------------------------------
5612 Generators.tests.cpp:<line number>
5613 ...............................................................................
5614
5615 Generators.tests.cpp:<line number>: PASSED:
5616 REQUIRE_THROWS_AS( chunk(2, value(1)), Catch::GeneratorException )
5617
5618 -------------------------------------------------------------------------------
5619 Generators -- simple
5620 one
5621 -------------------------------------------------------------------------------
5622 Generators.tests.cpp:<line number>
5623 ...............................................................................
5624
5625 Generators.tests.cpp:<line number>: PASSED:
5626 REQUIRE( j < i )
5627 with expansion:
5628 -3 < 1
5629
5630 -------------------------------------------------------------------------------
5631 Generators -- simple
5632 one
5633 -------------------------------------------------------------------------------
5634 Generators.tests.cpp:<line number>
5635 ...............................................................................
5636
5637 Generators.tests.cpp:<line number>: PASSED:
5638 REQUIRE( j < i )
5639 with expansion:
5640 -2 < 1
5641
5642 -------------------------------------------------------------------------------
5643 Generators -- simple
5644 one
5645 -------------------------------------------------------------------------------
5646 Generators.tests.cpp:<line number>
5647 ...............................................................................
5648
5649 Generators.tests.cpp:<line number>: PASSED:
5650 REQUIRE( j < i )
5651 with expansion:
5652 -1 < 1
5653
5654 -------------------------------------------------------------------------------
5655 Generators -- simple
5656 two
5657 -------------------------------------------------------------------------------
5658 Generators.tests.cpp:<line number>
5659 ...............................................................................
5660
5661 Generators.tests.cpp:<line number>: PASSED:
5662 REQUIRE( 4u * i > str.size() )
5663 with expansion:
5664 4 > 1
5665
5666 -------------------------------------------------------------------------------
5667 Generators -- simple
5668 two
5669 -------------------------------------------------------------------------------
5670 Generators.tests.cpp:<line number>
5671 ...............................................................................
5672
5673 Generators.tests.cpp:<line number>: PASSED:
5674 REQUIRE( 4u * i > str.size() )
5675 with expansion:
5676 4 > 2
5677
5678 -------------------------------------------------------------------------------
5679 Generators -- simple
5680 two
5681 -------------------------------------------------------------------------------
5682 Generators.tests.cpp:<line number>
5683 ...............................................................................
5684
5685 Generators.tests.cpp:<line number>: PASSED:
5686 REQUIRE( 4u * i > str.size() )
5687 with expansion:
5688 4 > 3
5689
5690 -------------------------------------------------------------------------------
5691 Generators -- simple
5692 one
5693 -------------------------------------------------------------------------------
5694 Generators.tests.cpp:<line number>
5695 ...............................................................................
5696
5697 Generators.tests.cpp:<line number>: PASSED:
5698 REQUIRE( j < i )
5699 with expansion:
5700 -3 < 2
5701
5702 -------------------------------------------------------------------------------
5703 Generators -- simple
5704 one
5705 -------------------------------------------------------------------------------
5706 Generators.tests.cpp:<line number>
5707 ...............................................................................
5708
5709 Generators.tests.cpp:<line number>: PASSED:
5710 REQUIRE( j < i )
5711 with expansion:
5712 -2 < 2
5713
5714 -------------------------------------------------------------------------------
5715 Generators -- simple
5716 one
5717 -------------------------------------------------------------------------------
5718 Generators.tests.cpp:<line number>
5719 ...............................................................................
5720
5721 Generators.tests.cpp:<line number>: PASSED:
5722 REQUIRE( j < i )
5723 with expansion:
5724 -1 < 2
5725
5726 -------------------------------------------------------------------------------
5727 Generators -- simple
5728 two
5729 -------------------------------------------------------------------------------
5730 Generators.tests.cpp:<line number>
5731 ...............................................................................
5732
5733 Generators.tests.cpp:<line number>: PASSED:
5734 REQUIRE( 4u * i > str.size() )
5735 with expansion:
5736 8 > 1
5737
5738 -------------------------------------------------------------------------------
5739 Generators -- simple
5740 two
5741 -------------------------------------------------------------------------------
5742 Generators.tests.cpp:<line number>
5743 ...............................................................................
5744
5745 Generators.tests.cpp:<line number>: PASSED:
5746 REQUIRE( 4u * i > str.size() )
5747 with expansion:
5748 8 > 2
5749
5750 -------------------------------------------------------------------------------
5751 Generators -- simple
5752 two
5753 -------------------------------------------------------------------------------
5754 Generators.tests.cpp:<line number>
5755 ...............................................................................
5756
5757 Generators.tests.cpp:<line number>: PASSED:
5758 REQUIRE( 4u * i > str.size() )
5759 with expansion:
5760 8 > 3
5761
5762 -------------------------------------------------------------------------------
5763 Generators -- simple
5764 one
5765 -------------------------------------------------------------------------------
5766 Generators.tests.cpp:<line number>
5767 ...............................................................................
5768
5769 Generators.tests.cpp:<line number>: PASSED:
5770 REQUIRE( j < i )
5771 with expansion:
5772 -3 < 3
5773
5774 -------------------------------------------------------------------------------
5775 Generators -- simple
5776 one
5777 -------------------------------------------------------------------------------
5778 Generators.tests.cpp:<line number>
5779 ...............................................................................
5780
5781 Generators.tests.cpp:<line number>: PASSED:
5782 REQUIRE( j < i )
5783 with expansion:
5784 -2 < 3
5785
5786 -------------------------------------------------------------------------------
5787 Generators -- simple
5788 one
5789 -------------------------------------------------------------------------------
5790 Generators.tests.cpp:<line number>
5791 ...............................................................................
5792
5793 Generators.tests.cpp:<line number>: PASSED:
5794 REQUIRE( j < i )
5795 with expansion:
5796 -1 < 3
5797
5798 -------------------------------------------------------------------------------
5799 Generators -- simple
5800 two
5801 -------------------------------------------------------------------------------
5802 Generators.tests.cpp:<line number>
5803 ...............................................................................
5804
5805 Generators.tests.cpp:<line number>: PASSED:
5806 REQUIRE( 4u * i > str.size() )
5807 with expansion:
5808 12 > 1
5809
5810 -------------------------------------------------------------------------------
5811 Generators -- simple
5812 two
5813 -------------------------------------------------------------------------------
5814 Generators.tests.cpp:<line number>
5815 ...............................................................................
5816
5817 Generators.tests.cpp:<line number>: PASSED:
5818 REQUIRE( 4u * i > str.size() )
5819 with expansion:
5820 12 > 2
5821
5822 -------------------------------------------------------------------------------
5823 Generators -- simple
5824 two
5825 -------------------------------------------------------------------------------
5826 Generators.tests.cpp:<line number>
5827 ...............................................................................
5828
5829 Generators.tests.cpp:<line number>: PASSED:
5830 REQUIRE( 4u * i > str.size() )
5831 with expansion:
5832 12 > 3
5833
5834 -------------------------------------------------------------------------------
5835 Generators internals
5836 Single value
5837 -------------------------------------------------------------------------------
5838 GeneratorsImpl.tests.cpp:<line number>
5839 ...............................................................................
5840
5841 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5842 REQUIRE( gen.get() == 123 )
5843 with expansion:
5844 123 == 123
5845
5846 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5847 REQUIRE_FALSE( gen.next() )
5848 with expansion:
5849 !false
5850
5851 -------------------------------------------------------------------------------
5852 Generators internals
5853 Preset values
5854 -------------------------------------------------------------------------------
5855 GeneratorsImpl.tests.cpp:<line number>
5856 ...............................................................................
5857
5858 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5859 REQUIRE( gen.get() == 1 )
5860 with expansion:
5861 1 == 1
5862
5863 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5864 REQUIRE( gen.next() )
5865 with expansion:
5866 true
5867
5868 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5869 REQUIRE( gen.get() == 3 )
5870 with expansion:
5871 3 == 3
5872
5873 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5874 REQUIRE( gen.next() )
5875 with expansion:
5876 true
5877
5878 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5879 REQUIRE( gen.get() == 5 )
5880 with expansion:
5881 5 == 5
5882
5883 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5884 REQUIRE_FALSE( gen.next() )
5885 with expansion:
5886 !false
5887
5888 -------------------------------------------------------------------------------
5889 Generators internals
5890 Generator combinator
5891 -------------------------------------------------------------------------------
5892 GeneratorsImpl.tests.cpp:<line number>
5893 ...............................................................................
5894
5895 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5896 REQUIRE( gen.get() == 1 )
5897 with expansion:
5898 1 == 1
5899
5900 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5901 REQUIRE( gen.next() )
5902 with expansion:
5903 true
5904
5905 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5906 REQUIRE( gen.get() == 5 )
5907 with expansion:
5908 5 == 5
5909
5910 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5911 REQUIRE( gen.next() )
5912 with expansion:
5913 true
5914
5915 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5916 REQUIRE( gen.get() == 2 )
5917 with expansion:
5918 2 == 2
5919
5920 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5921 REQUIRE( gen.next() )
5922 with expansion:
5923 true
5924
5925 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5926 REQUIRE( gen.get() == 4 )
5927 with expansion:
5928 4 == 4
5929
5930 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5931 REQUIRE( gen.next() )
5932 with expansion:
5933 true
5934
5935 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5936 REQUIRE( gen.get() == 0 )
5937 with expansion:
5938 0 == 0
5939
5940 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5941 REQUIRE_FALSE( gen.next() )
5942 with expansion:
5943 !false
5944
5945 -------------------------------------------------------------------------------
5946 Generators internals
5947 Explicitly typed generator sequence
5948 -------------------------------------------------------------------------------
5949 GeneratorsImpl.tests.cpp:<line number>
5950 ...............................................................................
5951
5952 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5953 REQUIRE( gen.get().size() == 2 )
5954 with expansion:
5955 2 == 2
5956
5957 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5958 REQUIRE( gen.get() == "aa" )
5959 with expansion:
5960 "aa" == "aa"
5961
5962 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5963 REQUIRE( gen.next() )
5964 with expansion:
5965 true
5966
5967 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5968 REQUIRE( gen.get() == "bb" )
5969 with expansion:
5970 "bb" == "bb"
5971
5972 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5973 REQUIRE( gen.next() )
5974 with expansion:
5975 true
5976
5977 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5978 REQUIRE( gen.get() == "cc" )
5979 with expansion:
5980 "cc" == "cc"
5981
5982 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5983 REQUIRE_FALSE( gen.next() )
5984 with expansion:
5985 !false
5986
5987 -------------------------------------------------------------------------------
5988 Generators internals
5989 Filter generator
5990 Simple filtering
5991 -------------------------------------------------------------------------------
5992 GeneratorsImpl.tests.cpp:<line number>
5993 ...............................................................................
5994
5995 GeneratorsImpl.tests.cpp:<line number>: PASSED:
5996 REQUIRE( gen.get() == 1 )
5997 with expansion:
5998 1 == 1
5999
6000 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6001 REQUIRE( gen.next() )
6002 with expansion:
6003 true
6004
6005 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6006 REQUIRE( gen.get() == 3 )
6007 with expansion:
6008 3 == 3
6009
6010 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6011 REQUIRE_FALSE( gen.next() )
6012 with expansion:
6013 !false
6014
6015 -------------------------------------------------------------------------------
6016 Generators internals
6017 Filter generator
6018 Filter out multiple elements at the start and end
6019 -------------------------------------------------------------------------------
6020 GeneratorsImpl.tests.cpp:<line number>
6021 ...............................................................................
6022
6023 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6024 REQUIRE( gen.get() == 1 )
6025 with expansion:
6026 1 == 1
6027
6028 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6029 REQUIRE( gen.next() )
6030 with expansion:
6031 true
6032
6033 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6034 REQUIRE( gen.get() == 3 )
6035 with expansion:
6036 3 == 3
6037
6038 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6039 REQUIRE_FALSE( gen.next() )
6040 with expansion:
6041 !false
6042
6043 -------------------------------------------------------------------------------
6044 Generators internals
6045 Filter generator
6046 Throws on construction if it can't get initial element
6047 -------------------------------------------------------------------------------
6048 GeneratorsImpl.tests.cpp:<line number>
6049 ...............................................................................
6050
6051 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6052 REQUIRE_THROWS_AS( filter([](int) { return false; }, value(1)), Catch::GeneratorException )
6053
6054 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6055 REQUIRE_THROWS_AS( filter([](int) { return false; }, values({ 1, 2, 3 })), Catch::GeneratorException )
6056
6057 -------------------------------------------------------------------------------
6058 Generators internals
6059 Filter generator
6060 Out-of-line predicates are copied into the generator
6061 -------------------------------------------------------------------------------
6062 GeneratorsImpl.tests.cpp:<line number>
6063 ...............................................................................
6064
6065 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6066 REQUIRE( gen.get() == 1 )
6067 with expansion:
6068 1 == 1
6069
6070 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6071 REQUIRE( gen.next() )
6072 with expansion:
6073 true
6074
6075 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6076 REQUIRE( gen.get() == 3 )
6077 with expansion:
6078 3 == 3
6079
6080 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6081 REQUIRE_FALSE( gen.next() )
6082 with expansion:
6083 !false
6084
6085 -------------------------------------------------------------------------------
6086 Generators internals
6087 Take generator
6088 Take less
6089 -------------------------------------------------------------------------------
6090 GeneratorsImpl.tests.cpp:<line number>
6091 ...............................................................................
6092
6093 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6094 REQUIRE( gen.get() == 1 )
6095 with expansion:
6096 1 == 1
6097
6098 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6099 REQUIRE( gen.next() )
6100 with expansion:
6101 true
6102
6103 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6104 REQUIRE( gen.get() == 2 )
6105 with expansion:
6106 2 == 2
6107
6108 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6109 REQUIRE_FALSE( gen.next() )
6110 with expansion:
6111 !false
6112
6113 -------------------------------------------------------------------------------
6114 Generators internals
6115 Take generator
6116 Take more
6117 -------------------------------------------------------------------------------
6118 GeneratorsImpl.tests.cpp:<line number>
6119 ...............................................................................
6120
6121 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6122 REQUIRE( gen.get() == 1 )
6123 with expansion:
6124 1 == 1
6125
6126 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6127 REQUIRE_FALSE( gen.next() )
6128 with expansion:
6129 !false
6130
6131 -------------------------------------------------------------------------------
6132 Generators internals
6133 Map with explicit return type
6134 -------------------------------------------------------------------------------
6135 GeneratorsImpl.tests.cpp:<line number>
6136 ...............................................................................
6137
6138 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6139 REQUIRE( gen.get() == 2.0 )
6140 with expansion:
6141 2.0 == 2.0
6142
6143 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6144 REQUIRE( gen.next() )
6145 with expansion:
6146 true
6147
6148 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6149 REQUIRE( gen.get() == 4.0 )
6150 with expansion:
6151 4.0 == 4.0
6152
6153 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6154 REQUIRE( gen.next() )
6155 with expansion:
6156 true
6157
6158 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6159 REQUIRE( gen.get() == 6.0 )
6160 with expansion:
6161 6.0 == 6.0
6162
6163 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6164 REQUIRE_FALSE( gen.next() )
6165 with expansion:
6166 !false
6167
6168 -------------------------------------------------------------------------------
6169 Generators internals
6170 Map with deduced return type
6171 -------------------------------------------------------------------------------
6172 GeneratorsImpl.tests.cpp:<line number>
6173 ...............................................................................
6174
6175 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6176 REQUIRE( gen.get() == 2.0 )
6177 with expansion:
6178 2.0 == 2.0
6179
6180 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6181 REQUIRE( gen.next() )
6182 with expansion:
6183 true
6184
6185 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6186 REQUIRE( gen.get() == 4.0 )
6187 with expansion:
6188 4.0 == 4.0
6189
6190 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6191 REQUIRE( gen.next() )
6192 with expansion:
6193 true
6194
6195 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6196 REQUIRE( gen.get() == 6.0 )
6197 with expansion:
6198 6.0 == 6.0
6199
6200 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6201 REQUIRE_FALSE( gen.next() )
6202 with expansion:
6203 !false
6204
6205 -------------------------------------------------------------------------------
6206 Generators internals
6207 Repeat
6208 Singular repeat
6209 -------------------------------------------------------------------------------
6210 GeneratorsImpl.tests.cpp:<line number>
6211 ...............................................................................
6212
6213 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6214 REQUIRE( gen.get() == 3 )
6215 with expansion:
6216 3 == 3
6217
6218 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6219 REQUIRE_FALSE( gen.next() )
6220 with expansion:
6221 !false
6222
6223 -------------------------------------------------------------------------------
6224 Generators internals
6225 Repeat
6226 Actual repeat
6227 -------------------------------------------------------------------------------
6228 GeneratorsImpl.tests.cpp:<line number>
6229 ...............................................................................
6230
6231 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6232 REQUIRE( gen.get() == 1 )
6233 with expansion:
6234 1 == 1
6235
6236 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6237 REQUIRE( gen.next() )
6238 with expansion:
6239 true
6240
6241 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6242 REQUIRE( gen.get() == 2 )
6243 with expansion:
6244 2 == 2
6245
6246 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6247 REQUIRE( gen.next() )
6248 with expansion:
6249 true
6250
6251 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6252 REQUIRE( gen.get() == 3 )
6253 with expansion:
6254 3 == 3
6255
6256 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6257 REQUIRE( gen.next() )
6258 with expansion:
6259 true
6260
6261 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6262 REQUIRE( gen.get() == 1 )
6263 with expansion:
6264 1 == 1
6265
6266 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6267 REQUIRE( gen.next() )
6268 with expansion:
6269 true
6270
6271 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6272 REQUIRE( gen.get() == 2 )
6273 with expansion:
6274 2 == 2
6275
6276 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6277 REQUIRE( gen.next() )
6278 with expansion:
6279 true
6280
6281 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6282 REQUIRE( gen.get() == 3 )
6283 with expansion:
6284 3 == 3
6285
6286 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6287 REQUIRE_FALSE( gen.next() )
6288 with expansion:
6289 !false
6290
6291 -------------------------------------------------------------------------------
6292 Generators internals
6293 Range
6294 Positive auto step
6295 Integer
6296 -------------------------------------------------------------------------------
6297 GeneratorsImpl.tests.cpp:<line number>
6298 ...............................................................................
6299
6300 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6301 REQUIRE( gen.get() == -2 )
6302 with expansion:
6303 -2 == -2
6304
6305 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6306 REQUIRE( gen.next() )
6307 with expansion:
6308 true
6309
6310 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6311 REQUIRE( gen.get() == -1 )
6312 with expansion:
6313 -1 == -1
6314
6315 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6316 REQUIRE( gen.next() )
6317 with expansion:
6318 true
6319
6320 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6321 REQUIRE( gen.get() == 0 )
6322 with expansion:
6323 0 == 0
6324
6325 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6326 REQUIRE( gen.next() )
6327 with expansion:
6328 true
6329
6330 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6331 REQUIRE( gen.get() == 1 )
6332 with expansion:
6333 1 == 1
6334
6335 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6336 REQUIRE_FALSE( gen.next() )
6337 with expansion:
6338 !false
6339
6340 -------------------------------------------------------------------------------
6341 Generators internals
6342 Range
6343 Negative auto step
6344 Integer
6345 -------------------------------------------------------------------------------
6346 GeneratorsImpl.tests.cpp:<line number>
6347 ...............................................................................
6348
6349 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6350 REQUIRE( gen.get() == 2 )
6351 with expansion:
6352 2 == 2
6353
6354 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6355 REQUIRE( gen.next() )
6356 with expansion:
6357 true
6358
6359 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6360 REQUIRE( gen.get() == 1 )
6361 with expansion:
6362 1 == 1
6363
6364 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6365 REQUIRE( gen.next() )
6366 with expansion:
6367 true
6368
6369 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6370 REQUIRE( gen.get() == 0 )
6371 with expansion:
6372 0 == 0
6373
6374 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6375 REQUIRE( gen.next() )
6376 with expansion:
6377 true
6378
6379 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6380 REQUIRE( gen.get() == -1 )
6381 with expansion:
6382 -1 == -1
6383
6384 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6385 REQUIRE_FALSE( gen.next() )
6386 with expansion:
6387 !false
6388
6389 -------------------------------------------------------------------------------
6390 Generators internals
6391 Range
6392 Positive manual step
6393 Integer
6394 Exact
6395 -------------------------------------------------------------------------------
6396 GeneratorsImpl.tests.cpp:<line number>
6397 ...............................................................................
6398
6399 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6400 REQUIRE( gen.get() == -7 )
6401 with expansion:
6402 -7 == -7
6403
6404 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6405 REQUIRE( gen.next() )
6406 with expansion:
6407 true
6408
6409 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6410 REQUIRE( gen.get() == -4 )
6411 with expansion:
6412 -4 == -4
6413
6414 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6415 REQUIRE( gen.next() )
6416 with expansion:
6417 true
6418
6419 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6420 REQUIRE( gen.get() == -1 )
6421 with expansion:
6422 -1 == -1
6423
6424 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6425 REQUIRE( gen.next() )
6426 with expansion:
6427 true
6428
6429 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6430 REQUIRE( gen.get() == 2 )
6431 with expansion:
6432 2 == 2
6433
6434 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6435 REQUIRE_FALSE( gen.next() )
6436 with expansion:
6437 !false
6438
6439 -------------------------------------------------------------------------------
6440 Generators internals
6441 Range
6442 Positive manual step
6443 Integer
6444 Slightly over end
6445 -------------------------------------------------------------------------------
6446 GeneratorsImpl.tests.cpp:<line number>
6447 ...............................................................................
6448
6449 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6450 REQUIRE( gen.get() == -7 )
6451 with expansion:
6452 -7 == -7
6453
6454 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6455 REQUIRE( gen.next() )
6456 with expansion:
6457 true
6458
6459 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6460 REQUIRE( gen.get() == -4 )
6461 with expansion:
6462 -4 == -4
6463
6464 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6465 REQUIRE( gen.next() )
6466 with expansion:
6467 true
6468
6469 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6470 REQUIRE( gen.get() == -1 )
6471 with expansion:
6472 -1 == -1
6473
6474 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6475 REQUIRE( gen.next() )
6476 with expansion:
6477 true
6478
6479 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6480 REQUIRE( gen.get() == 2 )
6481 with expansion:
6482 2 == 2
6483
6484 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6485 REQUIRE_FALSE( gen.next() )
6486 with expansion:
6487 !false
6488
6489 -------------------------------------------------------------------------------
6490 Generators internals
6491 Range
6492 Positive manual step
6493 Integer
6494 Slightly under end
6495 -------------------------------------------------------------------------------
6496 GeneratorsImpl.tests.cpp:<line number>
6497 ...............................................................................
6498
6499 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6500 REQUIRE( gen.get() == -7 )
6501 with expansion:
6502 -7 == -7
6503
6504 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6505 REQUIRE( gen.next() )
6506 with expansion:
6507 true
6508
6509 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6510 REQUIRE( gen.get() == -4 )
6511 with expansion:
6512 -4 == -4
6513
6514 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6515 REQUIRE( gen.next() )
6516 with expansion:
6517 true
6518
6519 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6520 REQUIRE( gen.get() == -1 )
6521 with expansion:
6522 -1 == -1
6523
6524 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6525 REQUIRE( gen.next() )
6526 with expansion:
6527 true
6528
6529 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6530 REQUIRE( gen.get() == 2 )
6531 with expansion:
6532 2 == 2
6533
6534 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6535 REQUIRE( gen.next() )
6536 with expansion:
6537 true
6538
6539 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6540 REQUIRE( gen.get() == 5 )
6541 with expansion:
6542 5 == 5
6543
6544 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6545 REQUIRE_FALSE( gen.next() )
6546 with expansion:
6547 !false
6548
6549 -------------------------------------------------------------------------------
6550 Generators internals
6551 Range
6552 Positive manual step
6553 Floating Point
6554 Exact
6555 -------------------------------------------------------------------------------
6556 GeneratorsImpl.tests.cpp:<line number>
6557 ...............................................................................
6558
6559 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6560 REQUIRE( gen.get() == Approx(expected) )
6561 with expansion:
6562 -1.0 == Approx( -1.0 )
6563 with message:
6564 Current expected value is -1
6565
6566 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6567 REQUIRE( gen.next() )
6568 with expansion:
6569 true
6570 with message:
6571 Current expected value is -1
6572
6573 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6574 REQUIRE( gen.get() == Approx(expected) )
6575 with expansion:
6576 -0.90000000000000002
6577 ==
6578 Approx( -0.90000000000000002 )
6579 with message:
6580 Current expected value is -0.9
6581
6582 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6583 REQUIRE( gen.next() )
6584 with expansion:
6585 true
6586 with message:
6587 Current expected value is -0.9
6588
6589 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6590 REQUIRE( gen.get() == Approx(expected) )
6591 with expansion:
6592 -0.80000000000000004
6593 ==
6594 Approx( -0.80000000000000004 )
6595 with message:
6596 Current expected value is -0.8
6597
6598 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6599 REQUIRE( gen.next() )
6600 with expansion:
6601 true
6602 with message:
6603 Current expected value is -0.8
6604
6605 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6606 REQUIRE( gen.get() == Approx(expected) )
6607 with expansion:
6608 -0.70000000000000007
6609 ==
6610 Approx( -0.70000000000000007 )
6611 with message:
6612 Current expected value is -0.7
6613
6614 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6615 REQUIRE( gen.next() )
6616 with expansion:
6617 true
6618 with message:
6619 Current expected value is -0.7
6620
6621 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6622 REQUIRE( gen.get() == Approx(expected) )
6623 with expansion:
6624 -0.60000000000000009
6625 ==
6626 Approx( -0.60000000000000009 )
6627 with message:
6628 Current expected value is -0.6
6629
6630 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6631 REQUIRE( gen.next() )
6632 with expansion:
6633 true
6634 with message:
6635 Current expected value is -0.6
6636
6637 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6638 REQUIRE( gen.get() == Approx(expected) )
6639 with expansion:
6640 -0.50000000000000011
6641 ==
6642 Approx( -0.50000000000000011 )
6643 with message:
6644 Current expected value is -0.5
6645
6646 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6647 REQUIRE( gen.next() )
6648 with expansion:
6649 true
6650 with message:
6651 Current expected value is -0.5
6652
6653 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6654 REQUIRE( gen.get() == Approx(expected) )
6655 with expansion:
6656 -0.40000000000000013
6657 ==
6658 Approx( -0.40000000000000013 )
6659 with message:
6660 Current expected value is -0.4
6661
6662 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6663 REQUIRE( gen.next() )
6664 with expansion:
6665 true
6666 with message:
6667 Current expected value is -0.4
6668
6669 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6670 REQUIRE( gen.get() == Approx(expected) )
6671 with expansion:
6672 -0.30000000000000016
6673 ==
6674 Approx( -0.30000000000000016 )
6675 with message:
6676 Current expected value is -0.3
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.3
6684
6685 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6686 REQUIRE( gen.get() == Approx(expected) )
6687 with expansion:
6688 -0.20000000000000015
6689 ==
6690 Approx( -0.20000000000000015 )
6691 with message:
6692 Current expected value is -0.2
6693
6694 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6695 REQUIRE( gen.next() )
6696 with expansion:
6697 true
6698 with message:
6699 Current expected value is -0.2
6700
6701 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6702 REQUIRE( gen.get() == Approx(expected) )
6703 with expansion:
6704 -0.10000000000000014
6705 ==
6706 Approx( -0.10000000000000014 )
6707 with message:
6708 Current expected value is -0.1
6709
6710 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6711 REQUIRE( gen.next() )
6712 with expansion:
6713 true
6714 with message:
6715 Current expected value is -0.1
6716
6717 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6718 REQUIRE( gen.get() == Approx(expected) )
6719 with expansion:
6720 -0.00000000000000014
6721 ==
6722 Approx( -0.00000000000000014 )
6723 with message:
6724 Current expected value is -1.38778e-16
6725
6726 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6727 REQUIRE( gen.next() )
6728 with expansion:
6729 true
6730 with message:
6731 Current expected value is -1.38778e-16
6732
6733 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6734 REQUIRE( gen.get() == Approx(expected) )
6735 with expansion:
6736 0.09999999999999987
6737 ==
6738 Approx( 0.09999999999999987 )
6739 with message:
6740 Current expected value is 0.1
6741
6742 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6743 REQUIRE( gen.next() )
6744 with expansion:
6745 true
6746 with message:
6747 Current expected value is 0.1
6748
6749 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6750 REQUIRE( gen.get() == Approx(expected) )
6751 with expansion:
6752 0.19999999999999987
6753 ==
6754 Approx( 0.19999999999999987 )
6755 with message:
6756 Current expected value is 0.2
6757
6758 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6759 REQUIRE( gen.next() )
6760 with expansion:
6761 true
6762 with message:
6763 Current expected value is 0.2
6764
6765 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6766 REQUIRE( gen.get() == Approx(expected) )
6767 with expansion:
6768 0.29999999999999988
6769 ==
6770 Approx( 0.29999999999999988 )
6771 with message:
6772 Current expected value is 0.3
6773
6774 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6775 REQUIRE( gen.next() )
6776 with expansion:
6777 true
6778 with message:
6779 Current expected value is 0.3
6780
6781 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6782 REQUIRE( gen.get() == Approx(expected) )
6783 with expansion:
6784 0.39999999999999991
6785 ==
6786 Approx( 0.39999999999999991 )
6787 with message:
6788 Current expected value is 0.4
6789
6790 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6791 REQUIRE( gen.next() )
6792 with expansion:
6793 true
6794 with message:
6795 Current expected value is 0.4
6796
6797 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6798 REQUIRE( gen.get() == Approx(expected) )
6799 with expansion:
6800 0.49999999999999989
6801 ==
6802 Approx( 0.49999999999999989 )
6803 with message:
6804 Current expected value is 0.5
6805
6806 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6807 REQUIRE( gen.next() )
6808 with expansion:
6809 true
6810 with message:
6811 Current expected value is 0.5
6812
6813 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6814 REQUIRE( gen.get() == Approx(expected) )
6815 with expansion:
6816 0.59999999999999987
6817 ==
6818 Approx( 0.59999999999999987 )
6819 with message:
6820 Current expected value is 0.6
6821
6822 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6823 REQUIRE( gen.next() )
6824 with expansion:
6825 true
6826 with message:
6827 Current expected value is 0.6
6828
6829 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6830 REQUIRE( gen.get() == Approx(expected) )
6831 with expansion:
6832 0.69999999999999984
6833 ==
6834 Approx( 0.69999999999999984 )
6835 with message:
6836 Current expected value is 0.7
6837
6838 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6839 REQUIRE( gen.next() )
6840 with expansion:
6841 true
6842 with message:
6843 Current expected value is 0.7
6844
6845 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6846 REQUIRE( gen.get() == Approx(expected) )
6847 with expansion:
6848 0.79999999999999982
6849 ==
6850 Approx( 0.79999999999999982 )
6851 with message:
6852 Current expected value is 0.8
6853
6854 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6855 REQUIRE( gen.next() )
6856 with expansion:
6857 true
6858 with message:
6859 Current expected value is 0.8
6860
6861 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6862 REQUIRE( gen.get() == Approx(expected) )
6863 with expansion:
6864 0.8999999999999998
6865 ==
6866 Approx( 0.8999999999999998 )
6867 with message:
6868 Current expected value is 0.9
6869
6870 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6871 REQUIRE( gen.next() )
6872 with expansion:
6873 true
6874 with message:
6875 Current expected value is 0.9
6876
6877 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6878 REQUIRE( gen.get() == Approx( rangeEnd ) )
6879 with expansion:
6880 0.99999999999999978 == Approx( 1.0 )
6881
6882 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6883 REQUIRE_FALSE( gen.next() )
6884 with expansion:
6885 !false
6886
6887 -------------------------------------------------------------------------------
6888 Generators internals
6889 Range
6890 Positive manual step
6891 Floating Point
6892 Slightly over end
6893 -------------------------------------------------------------------------------
6894 GeneratorsImpl.tests.cpp:<line number>
6895 ...............................................................................
6896
6897 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6898 REQUIRE( gen.get() == Approx(expected) )
6899 with expansion:
6900 -1.0 == Approx( -1.0 )
6901 with message:
6902 Current expected value is -1
6903
6904 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6905 REQUIRE( gen.next() )
6906 with expansion:
6907 true
6908 with message:
6909 Current expected value is -1
6910
6911 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6912 REQUIRE( gen.get() == Approx(expected) )
6913 with expansion:
6914 -0.69999999999999996
6915 ==
6916 Approx( -0.69999999999999996 )
6917 with message:
6918 Current expected value is -0.7
6919
6920 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6921 REQUIRE( gen.next() )
6922 with expansion:
6923 true
6924 with message:
6925 Current expected value is -0.7
6926
6927 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6928 REQUIRE( gen.get() == Approx(expected) )
6929 with expansion:
6930 -0.39999999999999997
6931 ==
6932 Approx( -0.39999999999999997 )
6933 with message:
6934 Current expected value is -0.4
6935
6936 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6937 REQUIRE( gen.next() )
6938 with expansion:
6939 true
6940 with message:
6941 Current expected value is -0.4
6942
6943 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6944 REQUIRE( gen.get() == Approx(expected) )
6945 with expansion:
6946 -0.09999999999999998
6947 ==
6948 Approx( -0.09999999999999998 )
6949 with message:
6950 Current expected value is -0.1
6951
6952 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6953 REQUIRE( gen.next() )
6954 with expansion:
6955 true
6956 with message:
6957 Current expected value is -0.1
6958
6959 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6960 REQUIRE( gen.get() == Approx(expected) )
6961 with expansion:
6962 0.20000000000000001
6963 ==
6964 Approx( 0.20000000000000001 )
6965 with message:
6966 Current expected value is 0.2
6967
6968 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6969 REQUIRE( gen.next() )
6970 with expansion:
6971 true
6972 with message:
6973 Current expected value is 0.2
6974
6975 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6976 REQUIRE( gen.get() == Approx(expected) )
6977 with expansion:
6978 0.5 == Approx( 0.5 )
6979 with message:
6980 Current expected value is 0.5
6981
6982 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6983 REQUIRE( gen.next() )
6984 with expansion:
6985 true
6986 with message:
6987 Current expected value is 0.5
6988
6989 GeneratorsImpl.tests.cpp:<line number>: PASSED:
6990 REQUIRE_FALSE( gen.next() )
6991 with expansion:
6992 !false
6993
6994 -------------------------------------------------------------------------------
6995 Generators internals
6996 Range
6997 Positive manual step
6998 Floating Point
6999 Slightly under end
7000 -------------------------------------------------------------------------------
7001 GeneratorsImpl.tests.cpp:<line number>
7002 ...............................................................................
7003
7004 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7005 REQUIRE( gen.get() == Approx(expected) )
7006 with expansion:
7007 -1.0 == Approx( -1.0 )
7008 with message:
7009 Current expected value is -1
7010
7011 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7012 REQUIRE( gen.next() )
7013 with expansion:
7014 true
7015 with message:
7016 Current expected value is -1
7017
7018 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7019 REQUIRE( gen.get() == Approx(expected) )
7020 with expansion:
7021 -0.69999999999999996
7022 ==
7023 Approx( -0.69999999999999996 )
7024 with message:
7025 Current expected value is -0.7
7026
7027 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7028 REQUIRE( gen.next() )
7029 with expansion:
7030 true
7031 with message:
7032 Current expected value is -0.7
7033
7034 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7035 REQUIRE( gen.get() == Approx(expected) )
7036 with expansion:
7037 -0.39999999999999997
7038 ==
7039 Approx( -0.39999999999999997 )
7040 with message:
7041 Current expected value is -0.4
7042
7043 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7044 REQUIRE( gen.next() )
7045 with expansion:
7046 true
7047 with message:
7048 Current expected value is -0.4
7049
7050 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7051 REQUIRE( gen.get() == Approx(expected) )
7052 with expansion:
7053 -0.09999999999999998
7054 ==
7055 Approx( -0.09999999999999998 )
7056 with message:
7057 Current expected value is -0.1
7058
7059 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7060 REQUIRE( gen.next() )
7061 with expansion:
7062 true
7063 with message:
7064 Current expected value is -0.1
7065
7066 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7067 REQUIRE( gen.get() == Approx(expected) )
7068 with expansion:
7069 0.20000000000000001
7070 ==
7071 Approx( 0.20000000000000001 )
7072 with message:
7073 Current expected value is 0.2
7074
7075 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7076 REQUIRE( gen.next() )
7077 with expansion:
7078 true
7079 with message:
7080 Current expected value is 0.2
7081
7082 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7083 REQUIRE( gen.get() == Approx(expected) )
7084 with expansion:
7085 0.5 == Approx( 0.5 )
7086 with message:
7087 Current expected value is 0.5
7088
7089 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7090 REQUIRE( gen.next() )
7091 with expansion:
7092 true
7093 with message:
7094 Current expected value is 0.5
7095
7096 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7097 REQUIRE_FALSE( gen.next() )
7098 with expansion:
7099 !false
7100
7101 -------------------------------------------------------------------------------
7102 Generators internals
7103 Range
7104 Negative manual step
7105 Integer
7106 Exact
7107 -------------------------------------------------------------------------------
7108 GeneratorsImpl.tests.cpp:<line number>
7109 ...............................................................................
7110
7111 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7112 REQUIRE( gen.get() == 5 )
7113 with expansion:
7114 5 == 5
7115
7116 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7117 REQUIRE( gen.next() )
7118 with expansion:
7119 true
7120
7121 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7122 REQUIRE( gen.get() == 2 )
7123 with expansion:
7124 2 == 2
7125
7126 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7127 REQUIRE( gen.next() )
7128 with expansion:
7129 true
7130
7131 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7132 REQUIRE( gen.get() == -1 )
7133 with expansion:
7134 -1 == -1
7135
7136 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7137 REQUIRE( gen.next() )
7138 with expansion:
7139 true
7140
7141 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7142 REQUIRE( gen.get() == -4 )
7143 with expansion:
7144 -4 == -4
7145
7146 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7147 REQUIRE_FALSE( gen.next() )
7148 with expansion:
7149 !false
7150
7151 -------------------------------------------------------------------------------
7152 Generators internals
7153 Range
7154 Negative manual step
7155 Integer
7156 Slightly over end
7157 -------------------------------------------------------------------------------
7158 GeneratorsImpl.tests.cpp:<line number>
7159 ...............................................................................
7160
7161 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7162 REQUIRE( gen.get() == 5 )
7163 with expansion:
7164 5 == 5
7165
7166 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7167 REQUIRE( gen.next() )
7168 with expansion:
7169 true
7170
7171 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7172 REQUIRE( gen.get() == 2 )
7173 with expansion:
7174 2 == 2
7175
7176 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7177 REQUIRE( gen.next() )
7178 with expansion:
7179 true
7180
7181 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7182 REQUIRE( gen.get() == -1 )
7183 with expansion:
7184 -1 == -1
7185
7186 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7187 REQUIRE( gen.next() )
7188 with expansion:
7189 true
7190
7191 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7192 REQUIRE( gen.get() == -4 )
7193 with expansion:
7194 -4 == -4
7195
7196 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7197 REQUIRE_FALSE( gen.next() )
7198 with expansion:
7199 !false
7200
7201 -------------------------------------------------------------------------------
7202 Generators internals
7203 Range
7204 Negative manual step
7205 Integer
7206 Slightly under end
7207 -------------------------------------------------------------------------------
7208 GeneratorsImpl.tests.cpp:<line number>
7209 ...............................................................................
7210
7211 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7212 REQUIRE( gen.get() == 5 )
7213 with expansion:
7214 5 == 5
7215
7216 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7217 REQUIRE( gen.next() )
7218 with expansion:
7219 true
7220
7221 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7222 REQUIRE( gen.get() == 2 )
7223 with expansion:
7224 2 == 2
7225
7226 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7227 REQUIRE( gen.next() )
7228 with expansion:
7229 true
7230
7231 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7232 REQUIRE( gen.get() == -1 )
7233 with expansion:
7234 -1 == -1
7235
7236 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7237 REQUIRE( gen.next() )
7238 with expansion:
7239 true
7240
7241 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7242 REQUIRE( gen.get() == -4 )
7243 with expansion:
7244 -4 == -4
7245
7246 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7247 REQUIRE( gen.next() )
7248 with expansion:
7249 true
7250
7251 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7252 REQUIRE( gen.get() == -7 )
7253 with expansion:
7254 -7 == -7
7255
7256 GeneratorsImpl.tests.cpp:<line number>: PASSED:
7257 REQUIRE_FALSE( gen.next() )
7258 with expansion:
7259 !false
7260
7261 -------------------------------------------------------------------------------
7262 Greater-than inequalities with different epsilons
7263 -------------------------------------------------------------------------------
7264 Approx.tests.cpp:<line number>
7265 ...............................................................................
7266
7267 Approx.tests.cpp:<line number>: PASSED:
7268 REQUIRE( d >= Approx( 1.22 ) )
7269 with expansion:
7270 1.22999999999999998
7271 >=
7272 Approx( 1.21999999999999997 )
7273
7274 Approx.tests.cpp:<line number>: PASSED:
7275 REQUIRE( d >= Approx( 1.23 ) )
7276 with expansion:
7277 1.22999999999999998
7278 >=
7279 Approx( 1.22999999999999998 )
7280
7281 Approx.tests.cpp:<line number>: PASSED:
7282 REQUIRE_FALSE( d >= Approx( 1.24 ) )
7283 with expansion:
7284 !(1.22999999999999998
7285 >=
7286 Approx( 1.23999999999999999 ))
7287
7288 Approx.tests.cpp:<line number>: PASSED:
7289 REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) )
7290 with expansion:
7291 1.22999999999999998
7292 >=
7293 Approx( 1.23999999999999999 )
7294
7295 -------------------------------------------------------------------------------
7296 Hashers with different seed produce different hash with same test case
7297 -------------------------------------------------------------------------------
7298 TestCaseInfoHasher.tests.cpp:<line number>
7299 ...............................................................................
7300
7301 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7302 REQUIRE( h1( dummy ) != h2( dummy ) )
7303 with expansion:
7304 3422778688 (0x<hex digits>)
7305 !=
7306 130711275 (0x<hex digits>)
7307
7308 -------------------------------------------------------------------------------
7309 Hashers with same seed produce same hash
7310 -------------------------------------------------------------------------------
7311 TestCaseInfoHasher.tests.cpp:<line number>
7312 ...............................................................................
7313
7314 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7315 REQUIRE( h1( dummy ) == h2( dummy ) )
7316 with expansion:
7317 3422778688 (0x<hex digits>)
7318 ==
7319 3422778688 (0x<hex digits>)
7320
7321 -------------------------------------------------------------------------------
7322 Hashing different test cases produces different result
7323 Different test name
7324 -------------------------------------------------------------------------------
7325 TestCaseInfoHasher.tests.cpp:<line number>
7326 ...............................................................................
7327
7328 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7329 REQUIRE( h( dummy1 ) != h( dummy2 ) )
7330 with expansion:
7331 2903002874 (0x<hex digits>)
7332 !=
7333 2668622104 (0x<hex digits>)
7334
7335 -------------------------------------------------------------------------------
7336 Hashing different test cases produces different result
7337 Different classname
7338 -------------------------------------------------------------------------------
7339 TestCaseInfoHasher.tests.cpp:<line number>
7340 ...............................................................................
7341
7342 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7343 REQUIRE( h( dummy1 ) != h( dummy2 ) )
7344 with expansion:
7345 2673152918 (0x<hex digits>)
7346 !=
7347 3916075712 (0x<hex digits>)
7348
7349 -------------------------------------------------------------------------------
7350 Hashing different test cases produces different result
7351 Different tags
7352 -------------------------------------------------------------------------------
7353 TestCaseInfoHasher.tests.cpp:<line number>
7354 ...............................................................................
7355
7356 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7357 REQUIRE( h( dummy1 ) != h( dummy2 ) )
7358 with expansion:
7359 2074929312 (0x<hex digits>)
7360 !=
7361 3429949824 (0x<hex digits>)
7362
7363 -------------------------------------------------------------------------------
7364 Hashing test case produces same hash across multiple calls
7365 -------------------------------------------------------------------------------
7366 TestCaseInfoHasher.tests.cpp:<line number>
7367 ...............................................................................
7368
7369 TestCaseInfoHasher.tests.cpp:<line number>: PASSED:
7370 REQUIRE( h( dummy ) == h( dummy ) )
7371 with expansion:
7372 3422778688 (0x<hex digits>)
7373 ==
7374 3422778688 (0x<hex digits>)
7375
7376 -------------------------------------------------------------------------------
7377 INFO and UNSCOPED_INFO can stream multiple arguments
7378 -------------------------------------------------------------------------------
7379 Message.tests.cpp:<line number>
7380 ...............................................................................
7381
7382 Message.tests.cpp:<line number>: FAILED:
7383 explicitly with messages:
7384 This info has multiple parts.
7385 This unscoped info has multiple parts.
7386 Show infos!
7387
7388 -------------------------------------------------------------------------------
7389 INFO and WARN do not abort tests
7390 -------------------------------------------------------------------------------
7391 Message.tests.cpp:<line number>
7392 ...............................................................................
7393
7394 Message.tests.cpp:<line number>: warning:
7395 this is a message
7396 this is a warning
7397
7398
7399 No assertions in test case 'INFO and WARN do not abort tests'
7400
7401 -------------------------------------------------------------------------------
7402 INFO gets logged on failure
7403 -------------------------------------------------------------------------------
7404 Message.tests.cpp:<line number>
7405 ...............................................................................
7406
7407 Message.tests.cpp:<line number>: FAILED:
7408 REQUIRE( a == 1 )
7409 with expansion:
7410 2 == 1
7411 with messages:
7412 this message should be logged
7413 so should this
7414
7415 -------------------------------------------------------------------------------
7416 INFO gets logged on failure, even if captured before successful assertions
7417 -------------------------------------------------------------------------------
7418 Message.tests.cpp:<line number>
7419 ...............................................................................
7420
7421 Message.tests.cpp:<line number>: PASSED:
7422 CHECK( a == 2 )
7423 with expansion:
7424 2 == 2
7425 with message:
7426 this message may be logged later
7427
7428 Message.tests.cpp:<line number>: FAILED:
7429 CHECK( a == 1 )
7430 with expansion:
7431 2 == 1
7432 with messages:
7433 this message may be logged later
7434 this message should be logged
7435
7436 Message.tests.cpp:<line number>: FAILED:
7437 CHECK( a == 0 )
7438 with expansion:
7439 2 == 0
7440 with messages:
7441 this message may be logged later
7442 this message should be logged
7443 and this, but later
7444
7445 Message.tests.cpp:<line number>: PASSED:
7446 CHECK( a == 2 )
7447 with expansion:
7448 2 == 2
7449 with messages:
7450 this message may be logged later
7451 this message should be logged
7452 and this, but later
7453 but not this
7454
7455 -------------------------------------------------------------------------------
7456 INFO is reset for each loop
7457 -------------------------------------------------------------------------------
7458 Message.tests.cpp:<line number>
7459 ...............................................................................
7460
7461 Message.tests.cpp:<line number>: PASSED:
7462 REQUIRE( i < 10 )
7463 with expansion:
7464 0 < 10
7465 with messages:
7466 current counter 0
7467 i := 0
7468
7469 Message.tests.cpp:<line number>: PASSED:
7470 REQUIRE( i < 10 )
7471 with expansion:
7472 1 < 10
7473 with messages:
7474 current counter 1
7475 i := 1
7476
7477 Message.tests.cpp:<line number>: PASSED:
7478 REQUIRE( i < 10 )
7479 with expansion:
7480 2 < 10
7481 with messages:
7482 current counter 2
7483 i := 2
7484
7485 Message.tests.cpp:<line number>: PASSED:
7486 REQUIRE( i < 10 )
7487 with expansion:
7488 3 < 10
7489 with messages:
7490 current counter 3
7491 i := 3
7492
7493 Message.tests.cpp:<line number>: PASSED:
7494 REQUIRE( i < 10 )
7495 with expansion:
7496 4 < 10
7497 with messages:
7498 current counter 4
7499 i := 4
7500
7501 Message.tests.cpp:<line number>: PASSED:
7502 REQUIRE( i < 10 )
7503 with expansion:
7504 5 < 10
7505 with messages:
7506 current counter 5
7507 i := 5
7508
7509 Message.tests.cpp:<line number>: PASSED:
7510 REQUIRE( i < 10 )
7511 with expansion:
7512 6 < 10
7513 with messages:
7514 current counter 6
7515 i := 6
7516
7517 Message.tests.cpp:<line number>: PASSED:
7518 REQUIRE( i < 10 )
7519 with expansion:
7520 7 < 10
7521 with messages:
7522 current counter 7
7523 i := 7
7524
7525 Message.tests.cpp:<line number>: PASSED:
7526 REQUIRE( i < 10 )
7527 with expansion:
7528 8 < 10
7529 with messages:
7530 current counter 8
7531 i := 8
7532
7533 Message.tests.cpp:<line number>: PASSED:
7534 REQUIRE( i < 10 )
7535 with expansion:
7536 9 < 10
7537 with messages:
7538 current counter 9
7539 i := 9
7540
7541 Message.tests.cpp:<line number>: FAILED:
7542 REQUIRE( i < 10 )
7543 with expansion:
7544 10 < 10
7545 with messages:
7546 current counter 10
7547 i := 10
7548
7549 -------------------------------------------------------------------------------
7550 Incomplete AssertionHandler
7551 -------------------------------------------------------------------------------
7552 AssertionHandler.tests.cpp:<line number>
7553 ...............................................................................
7554
7555 AssertionHandler.tests.cpp:<line number>: FAILED:
7556 REQUIRE( Dummy )
7557 due to unexpected exception with message:
7558 Exception translation was disabled by CATCH_CONFIG_FAST_COMPILE
7559
7560 -------------------------------------------------------------------------------
7561 Inequality checks that should fail
7562 -------------------------------------------------------------------------------
7563 Condition.tests.cpp:<line number>
7564 ...............................................................................
7565
7566 Condition.tests.cpp:<line number>: FAILED:
7567 CHECK( data.int_seven != 7 )
7568 with expansion:
7569 7 != 7
7570
7571 Condition.tests.cpp:<line number>: FAILED:
7572 CHECK( data.float_nine_point_one != Approx( 9.1f ) )
7573 with expansion:
7574 9.100000381f
7575 !=
7576 Approx( 9.10000038146972656 )
7577
7578 Condition.tests.cpp:<line number>: FAILED:
7579 CHECK( data.double_pi != Approx( 3.1415926535 ) )
7580 with expansion:
7581 3.14159265350000005
7582 !=
7583 Approx( 3.14159265350000005 )
7584
7585 Condition.tests.cpp:<line number>: FAILED:
7586 CHECK( data.str_hello != "hello" )
7587 with expansion:
7588 "hello" != "hello"
7589
7590 Condition.tests.cpp:<line number>: FAILED:
7591 CHECK( data.str_hello.size() != 5 )
7592 with expansion:
7593 5 != 5
7594
7595 -------------------------------------------------------------------------------
7596 Inequality checks that should succeed
7597 -------------------------------------------------------------------------------
7598 Condition.tests.cpp:<line number>
7599 ...............................................................................
7600
7601 Condition.tests.cpp:<line number>: PASSED:
7602 REQUIRE( data.int_seven != 6 )
7603 with expansion:
7604 7 != 6
7605
7606 Condition.tests.cpp:<line number>: PASSED:
7607 REQUIRE( data.int_seven != 8 )
7608 with expansion:
7609 7 != 8
7610
7611 Condition.tests.cpp:<line number>: PASSED:
7612 REQUIRE( data.float_nine_point_one != Approx( 9.11f ) )
7613 with expansion:
7614 9.100000381f
7615 !=
7616 Approx( 9.10999965667724609 )
7617
7618 Condition.tests.cpp:<line number>: PASSED:
7619 REQUIRE( data.float_nine_point_one != Approx( 9.0f ) )
7620 with expansion:
7621 9.100000381f != Approx( 9.0 )
7622
7623 Condition.tests.cpp:<line number>: PASSED:
7624 REQUIRE( data.float_nine_point_one != Approx( 1 ) )
7625 with expansion:
7626 9.100000381f != Approx( 1.0 )
7627
7628 Condition.tests.cpp:<line number>: PASSED:
7629 REQUIRE( data.float_nine_point_one != Approx( 0 ) )
7630 with expansion:
7631 9.100000381f != Approx( 0.0 )
7632
7633 Condition.tests.cpp:<line number>: PASSED:
7634 REQUIRE( data.double_pi != Approx( 3.1415 ) )
7635 with expansion:
7636 3.14159265350000005
7637 !=
7638 Approx( 3.14150000000000018 )
7639
7640 Condition.tests.cpp:<line number>: PASSED:
7641 REQUIRE( data.str_hello != "goodbye" )
7642 with expansion:
7643 "hello" != "goodbye"
7644
7645 Condition.tests.cpp:<line number>: PASSED:
7646 REQUIRE( data.str_hello != "hell" )
7647 with expansion:
7648 "hello" != "hell"
7649
7650 Condition.tests.cpp:<line number>: PASSED:
7651 REQUIRE( data.str_hello != "hello1" )
7652 with expansion:
7653 "hello" != "hello1"
7654
7655 Condition.tests.cpp:<line number>: PASSED:
7656 REQUIRE( data.str_hello.size() != 6 )
7657 with expansion:
7658 5 != 6
7659
7660 -------------------------------------------------------------------------------
7661 JsonWriter
7662 Newly constructed JsonWriter does nothing
7663 -------------------------------------------------------------------------------
7664 Json.tests.cpp:<line number>
7665 ...............................................................................
7666
7667 Json.tests.cpp:<line number>: PASSED:
7668 REQUIRE( stream.str() == "" )
7669 with expansion:
7670 "" == ""
7671
7672 -------------------------------------------------------------------------------
7673 JsonWriter
7674 Calling writeObject will create an empty pair of braces
7675 -------------------------------------------------------------------------------
7676 Json.tests.cpp:<line number>
7677 ...............................................................................
7678
7679 Json.tests.cpp:<line number>: PASSED:
7680 REQUIRE( stream.str() == "{\n}" )
7681 with expansion:
7682 "{
7683 }"
7684 ==
7685 "{
7686 }"
7687
7688 -------------------------------------------------------------------------------
7689 JsonWriter
7690 Calling writeObject with key will create an object to write the value
7691 -------------------------------------------------------------------------------
7692 Json.tests.cpp:<line number>
7693 ...............................................................................
7694
7695 Json.tests.cpp:<line number>: PASSED:
7696 REQUIRE_THAT( stream.str(), ContainsSubstring( "\"int\": 1," ) && ContainsSubstring( "\"double\": 1.5," ) && ContainsSubstring( "\"true\": true," ) && ContainsSubstring( "\"false\": false," ) && ContainsSubstring( "\"string\": \"this is a string\"," ) && ContainsSubstring( "\"array\": [\n 1,\n 2\n ]\n}" ) )
7697 with expansion:
7698 "{
7699 "int": 1,
7700 "double": 1.5,
7701 "true": true,
7702 "false": false,
7703 "string": "this is a string",
7704 "array": [
7705 1,
7706 2
7707 ]
7708 }" ( contains: ""int": 1," and contains: ""double": 1.5," and contains:
7709 ""true": true," and contains: ""false": false," and contains: ""string":
7710 "this is a string"," and contains: ""array": [
7711 1,
7712 2
7713 ]
7714 }" )
7715
7716 -------------------------------------------------------------------------------
7717 JsonWriter
7718 nesting objects
7719 -------------------------------------------------------------------------------
7720 Json.tests.cpp:<line number>
7721 ...............................................................................
7722
7723 Json.tests.cpp:<line number>: PASSED:
7724 REQUIRE_THAT( stream.str(), ContainsSubstring( "\"empty_object\": {\n }," ) && ContainsSubstring( "\"fully_object\": {\n \"key\": 1\n }" ) )
7725 with expansion:
7726 "{
7727 "empty_object": {
7728 },
7729 "fully_object": {
7730 "key": 1
7731 }
7732 }" ( contains: ""empty_object": {
7733 }," and contains: ""fully_object": {
7734 "key": 1
7735 }" )
7736
7737 -------------------------------------------------------------------------------
7738 JsonWriter
7739 Calling writeArray will create an empty pair of braces
7740 -------------------------------------------------------------------------------
7741 Json.tests.cpp:<line number>
7742 ...............................................................................
7743
7744 Json.tests.cpp:<line number>: PASSED:
7745 REQUIRE( stream.str() == "[\n]" )
7746 with expansion:
7747 "[
7748 ]"
7749 ==
7750 "[
7751 ]"
7752
7753 -------------------------------------------------------------------------------
7754 JsonWriter
7755 Calling writeArray creates array to write the values to
7756 -------------------------------------------------------------------------------
7757 Json.tests.cpp:<line number>
7758 ...............................................................................
7759
7760 Json.tests.cpp:<line number>: PASSED:
7761 REQUIRE( stream.str() == "[\n 1,\n 1.5,\n true,\n false,\n \"this is a string\",\n {\n \"object\": 42\n },\n [\n \"array\",\n 42.5\n ]\n]" )
7762 with expansion:
7763 "[
7764 1,
7765 1.5,
7766 true,
7767 false,
7768 "this is a string",
7769 {
7770 "object": 42
7771 },
7772 [
7773 "array",
7774 42.5
7775 ]
7776 ]"
7777 ==
7778 "[
7779 1,
7780 1.5,
7781 true,
7782 false,
7783 "this is a string",
7784 {
7785 "object": 42
7786 },
7787 [
7788 "array",
7789 42.5
7790 ]
7791 ]"
7792
7793 -------------------------------------------------------------------------------
7794 JsonWriter
7795 Moved from JsonObjectWriter shall not insert superfluous brace
7796 -------------------------------------------------------------------------------
7797 Json.tests.cpp:<line number>
7798 ...............................................................................
7799
7800 Json.tests.cpp:<line number>: PASSED:
7801 REQUIRE( stream.str() == "{\n}" )
7802 with expansion:
7803 "{
7804 }"
7805 ==
7806 "{
7807 }"
7808
7809 -------------------------------------------------------------------------------
7810 JsonWriter
7811 Moved from JsonArrayWriter shall not insert superfluous bracket
7812 -------------------------------------------------------------------------------
7813 Json.tests.cpp:<line number>
7814 ...............................................................................
7815
7816 Json.tests.cpp:<line number>: PASSED:
7817 REQUIRE( stream.str() == "[\n]" )
7818 with expansion:
7819 "[
7820 ]"
7821 ==
7822 "[
7823 ]"
7824
7825 -------------------------------------------------------------------------------
7826 JsonWriter
7827 Custom class shall be quoted
7828 -------------------------------------------------------------------------------
7829 Json.tests.cpp:<line number>
7830 ...............................................................................
7831
7832 Json.tests.cpp:<line number>: PASSED:
7833 REQUIRE( stream.str() == "\"custom\"" )
7834 with expansion:
7835 ""custom"" == ""custom""
7836
7837 -------------------------------------------------------------------------------
7838 JsonWriter escapes characters in strings properly
7839 Quote in a string is escaped
7840 -------------------------------------------------------------------------------
7841 Json.tests.cpp:<line number>
7842 ...............................................................................
7843
7844 Json.tests.cpp:<line number>: PASSED:
7845 REQUIRE( sstream.str() == "\"\\\"\"" )
7846 with expansion:
7847 ""\""" == ""\"""
7848
7849 -------------------------------------------------------------------------------
7850 JsonWriter escapes characters in strings properly
7851 Backslash in a string is escaped
7852 -------------------------------------------------------------------------------
7853 Json.tests.cpp:<line number>
7854 ...............................................................................
7855
7856 Json.tests.cpp:<line number>: PASSED:
7857 REQUIRE( sstream.str() == "\"\\\\\"" )
7858 with expansion:
7859 ""\\"" == ""\\""
7860
7861 -------------------------------------------------------------------------------
7862 JsonWriter escapes characters in strings properly
7863 Forward slash in a string is **not** escaped
7864 -------------------------------------------------------------------------------
7865 Json.tests.cpp:<line number>
7866 ...............................................................................
7867
7868 Json.tests.cpp:<line number>: PASSED:
7869 REQUIRE( sstream.str() == "\"/\"" )
7870 with expansion:
7871 ""/"" == ""/""
7872
7873 -------------------------------------------------------------------------------
7874 JsonWriter escapes characters in strings properly
7875 Backspace in a string is escaped
7876 -------------------------------------------------------------------------------
7877 Json.tests.cpp:<line number>
7878 ...............................................................................
7879
7880 Json.tests.cpp:<line number>: PASSED:
7881 REQUIRE( sstream.str() == "\"\\b\"" )
7882 with expansion:
7883 ""\b"" == ""\b""
7884
7885 -------------------------------------------------------------------------------
7886 JsonWriter escapes characters in strings properly
7887 Formfeed in a string is escaped
7888 -------------------------------------------------------------------------------
7889 Json.tests.cpp:<line number>
7890 ...............................................................................
7891
7892 Json.tests.cpp:<line number>: PASSED:
7893 REQUIRE( sstream.str() == "\"\\f\"" )
7894 with expansion:
7895 ""\f"" == ""\f""
7896
7897 -------------------------------------------------------------------------------
7898 JsonWriter escapes characters in strings properly
7899 linefeed in a string is escaped
7900 -------------------------------------------------------------------------------
7901 Json.tests.cpp:<line number>
7902 ...............................................................................
7903
7904 Json.tests.cpp:<line number>: PASSED:
7905 REQUIRE( sstream.str() == "\"\\n\"" )
7906 with expansion:
7907 ""\n"" == ""\n""
7908
7909 -------------------------------------------------------------------------------
7910 JsonWriter escapes characters in strings properly
7911 carriage return in a string is escaped
7912 -------------------------------------------------------------------------------
7913 Json.tests.cpp:<line number>
7914 ...............................................................................
7915
7916 Json.tests.cpp:<line number>: PASSED:
7917 REQUIRE( sstream.str() == "\"\\r\"" )
7918 with expansion:
7919 ""\r"" == ""\r""
7920
7921 -------------------------------------------------------------------------------
7922 JsonWriter escapes characters in strings properly
7923 tab in a string is escaped
7924 -------------------------------------------------------------------------------
7925 Json.tests.cpp:<line number>
7926 ...............................................................................
7927
7928 Json.tests.cpp:<line number>: PASSED:
7929 REQUIRE( sstream.str() == "\"\\t\"" )
7930 with expansion:
7931 ""\t"" == ""\t""
7932
7933 -------------------------------------------------------------------------------
7934 JsonWriter escapes characters in strings properly
7935 combination of characters is escaped
7936 -------------------------------------------------------------------------------
7937 Json.tests.cpp:<line number>
7938 ...............................................................................
7939
7940 Json.tests.cpp:<line number>: PASSED:
7941 REQUIRE( sstream.str() == "\"\\\\/\\t\\r\\n\"" )
7942 with expansion:
7943 ""\\/\t\r\n"" == ""\\/\t\r\n""
7944
7945 -------------------------------------------------------------------------------
7946 Lambdas in assertions
7947 -------------------------------------------------------------------------------
7948 Compilation.tests.cpp:<line number>
7949 ...............................................................................
7950
7951 Compilation.tests.cpp:<line number>: PASSED:
7952 REQUIRE( []() { return true; }() )
7953 with expansion:
7954 true
7955
7956 -------------------------------------------------------------------------------
7957 Less-than inequalities with different epsilons
7958 -------------------------------------------------------------------------------
7959 Approx.tests.cpp:<line number>
7960 ...............................................................................
7961
7962 Approx.tests.cpp:<line number>: PASSED:
7963 REQUIRE( d <= Approx( 1.24 ) )
7964 with expansion:
7965 1.22999999999999998
7966 <=
7967 Approx( 1.23999999999999999 )
7968
7969 Approx.tests.cpp:<line number>: PASSED:
7970 REQUIRE( d <= Approx( 1.23 ) )
7971 with expansion:
7972 1.22999999999999998
7973 <=
7974 Approx( 1.22999999999999998 )
7975
7976 Approx.tests.cpp:<line number>: PASSED:
7977 REQUIRE_FALSE( d <= Approx( 1.22 ) )
7978 with expansion:
7979 !(1.22999999999999998
7980 <=
7981 Approx( 1.21999999999999997 ))
7982
7983 Approx.tests.cpp:<line number>: PASSED:
7984 REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) )
7985 with expansion:
7986 1.22999999999999998
7987 <=
7988 Approx( 1.21999999999999997 )
7989
7990 -------------------------------------------------------------------------------
7991 ManuallyRegistered
7992 -------------------------------------------------------------------------------
7993 Misc.tests.cpp:<line number>
7994 ...............................................................................
7995
7996 Misc.tests.cpp:<line number>: PASSED:
7997 with message:
7998 was called
7999
8000 -------------------------------------------------------------------------------
8001 Matchers can be (AllOf) composed with the && operator
8002 -------------------------------------------------------------------------------
8003 Matchers.tests.cpp:<line number>
8004 ...............................................................................
8005
8006 Matchers.tests.cpp:<line number>: PASSED:
8007 CHECK_THAT( testStringForMatching(), ContainsSubstring( "string" ) && ContainsSubstring( "abc" ) && ContainsSubstring( "substring" ) && ContainsSubstring( "contains" ) )
8008 with expansion:
8009 "this string contains 'abc' as a substring" ( contains: "string" and
8010 contains: "abc" and contains: "substring" and contains: "contains" )
8011
8012 -------------------------------------------------------------------------------
8013 Matchers can be (AnyOf) composed with the || operator
8014 -------------------------------------------------------------------------------
8015 Matchers.tests.cpp:<line number>
8016 ...............................................................................
8017
8018 Matchers.tests.cpp:<line number>: PASSED:
8019 CHECK_THAT( testStringForMatching(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) )
8020 with expansion:
8021 "this string contains 'abc' as a substring" ( contains: "string" or contains:
8022 "different" or contains: "random" )
8023
8024 Matchers.tests.cpp:<line number>: PASSED:
8025 CHECK_THAT( testStringForMatching2(), ContainsSubstring( "string" ) || ContainsSubstring( "different" ) || ContainsSubstring( "random" ) )
8026 with expansion:
8027 "some completely different text that contains one common word" ( contains:
8028 "string" or contains: "different" or contains: "random" )
8029
8030 -------------------------------------------------------------------------------
8031 Matchers can be composed with both && and ||
8032 -------------------------------------------------------------------------------
8033 Matchers.tests.cpp:<line number>
8034 ...............................................................................
8035
8036 Matchers.tests.cpp:<line number>: PASSED:
8037 CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "substring" ) )
8038 with expansion:
8039 "this string contains 'abc' as a substring" ( ( contains: "string" or
8040 contains: "different" ) and contains: "substring" )
8041
8042 -------------------------------------------------------------------------------
8043 Matchers can be composed with both && and || - failing
8044 -------------------------------------------------------------------------------
8045 Matchers.tests.cpp:<line number>
8046 ...............................................................................
8047
8048 Matchers.tests.cpp:<line number>: FAILED:
8049 CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "random" ) )
8050 with expansion:
8051 "this string contains 'abc' as a substring" ( ( contains: "string" or
8052 contains: "different" ) and contains: "random" )
8053
8054 -------------------------------------------------------------------------------
8055 Matchers can be negated (Not) with the ! operator
8056 -------------------------------------------------------------------------------
8057 Matchers.tests.cpp:<line number>
8058 ...............................................................................
8059
8060 Matchers.tests.cpp:<line number>: PASSED:
8061 CHECK_THAT( testStringForMatching(), !ContainsSubstring( "different" ) )
8062 with expansion:
8063 "this string contains 'abc' as a substring" not contains: "different"
8064
8065 -------------------------------------------------------------------------------
8066 Matchers can be negated (Not) with the ! operator - failing
8067 -------------------------------------------------------------------------------
8068 Matchers.tests.cpp:<line number>
8069 ...............................................................................
8070
8071 Matchers.tests.cpp:<line number>: FAILED:
8072 CHECK_THAT( testStringForMatching(), !ContainsSubstring( "substring" ) )
8073 with expansion:
8074 "this string contains 'abc' as a substring" not contains: "substring"
8075
8076 -------------------------------------------------------------------------------
8077 Mayfail test case with nested sections
8078 A
8079 1
8080 -------------------------------------------------------------------------------
8081 Condition.tests.cpp:<line number>
8082 ...............................................................................
8083
8084 Condition.tests.cpp:<line number>: FAILED:
8085
8086 -------------------------------------------------------------------------------
8087 Mayfail test case with nested sections
8088 A
8089 2
8090 -------------------------------------------------------------------------------
8091 Condition.tests.cpp:<line number>
8092 ...............................................................................
8093
8094 Condition.tests.cpp:<line number>: FAILED:
8095
8096 -------------------------------------------------------------------------------
8097 Mayfail test case with nested sections
8098 B
8099 1
8100 -------------------------------------------------------------------------------
8101 Condition.tests.cpp:<line number>
8102 ...............................................................................
8103
8104 Condition.tests.cpp:<line number>: FAILED:
8105
8106 -------------------------------------------------------------------------------
8107 Mayfail test case with nested sections
8108 B
8109 2
8110 -------------------------------------------------------------------------------
8111 Condition.tests.cpp:<line number>
8112 ...............................................................................
8113
8114 Condition.tests.cpp:<line number>: FAILED:
8115
8116 -------------------------------------------------------------------------------
8117 Mismatching exception messages failing the test
8118 -------------------------------------------------------------------------------
8119 Exception.tests.cpp:<line number>
8120 ...............................................................................
8121
8122 Exception.tests.cpp:<line number>: PASSED:
8123 REQUIRE_THROWS_WITH( thisThrows(), "expected exception" )
8124 with expansion:
8125 "expected exception" equals: "expected exception"
8126
8127 Exception.tests.cpp:<line number>: FAILED:
8128 REQUIRE_THROWS_WITH( thisThrows(), "should fail" )
8129 with expansion:
8130 "expected exception" equals: "should fail"
8131
8132 -------------------------------------------------------------------------------
8133 Multireporter calls reporters and listeners in correct order
8134 -------------------------------------------------------------------------------
8135 Reporters.tests.cpp:<line number>
8136 ...............................................................................
8137
8138 Reporters.tests.cpp:<line number>: PASSED:
8139 REQUIRE( records == expected )
8140 with expansion:
8141 { "Hello", "world", "Goodbye", "world" }
8142 ==
8143 { "Hello", "world", "Goodbye", "world" }
8144
8145 -------------------------------------------------------------------------------
8146 Multireporter updates ReporterPreferences properly
8147 -------------------------------------------------------------------------------
8148 Reporters.tests.cpp:<line number>
8149 ...............................................................................
8150
8151 Reporters.tests.cpp:<line number>: PASSED:
8152 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == false )
8153 with expansion:
8154 false == false
8155
8156 Reporters.tests.cpp:<line number>: PASSED:
8157 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
8158 with expansion:
8159 false == false
8160
8161 -------------------------------------------------------------------------------
8162 Multireporter updates ReporterPreferences properly
8163 Adding listeners
8164 -------------------------------------------------------------------------------
8165 Reporters.tests.cpp:<line number>
8166 ...............................................................................
8167
8168 Reporters.tests.cpp:<line number>: PASSED:
8169 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8170 with expansion:
8171 true == true
8172
8173 Reporters.tests.cpp:<line number>: PASSED:
8174 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
8175 with expansion:
8176 false == false
8177
8178 Reporters.tests.cpp:<line number>: PASSED:
8179 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8180 with expansion:
8181 true == true
8182
8183 Reporters.tests.cpp:<line number>: PASSED:
8184 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
8185 with expansion:
8186 true == true
8187
8188 Reporters.tests.cpp:<line number>: PASSED:
8189 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8190 with expansion:
8191 true == true
8192
8193 Reporters.tests.cpp:<line number>: PASSED:
8194 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
8195 with expansion:
8196 true == true
8197
8198 -------------------------------------------------------------------------------
8199 Multireporter updates ReporterPreferences properly
8200 -------------------------------------------------------------------------------
8201 Reporters.tests.cpp:<line number>
8202 ...............................................................................
8203
8204 Reporters.tests.cpp:<line number>: PASSED:
8205 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == false )
8206 with expansion:
8207 false == false
8208
8209 Reporters.tests.cpp:<line number>: PASSED:
8210 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
8211 with expansion:
8212 false == false
8213
8214 -------------------------------------------------------------------------------
8215 Multireporter updates ReporterPreferences properly
8216 Adding reporters
8217 -------------------------------------------------------------------------------
8218 Reporters.tests.cpp:<line number>
8219 ...............................................................................
8220
8221 Reporters.tests.cpp:<line number>: PASSED:
8222 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8223 with expansion:
8224 true == true
8225
8226 Reporters.tests.cpp:<line number>: PASSED:
8227 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == false )
8228 with expansion:
8229 false == false
8230
8231 Reporters.tests.cpp:<line number>: PASSED:
8232 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8233 with expansion:
8234 true == true
8235
8236 Reporters.tests.cpp:<line number>: PASSED:
8237 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
8238 with expansion:
8239 true == true
8240
8241 Reporters.tests.cpp:<line number>: PASSED:
8242 REQUIRE( multiReporter.getPreferences().shouldRedirectStdOut == true )
8243 with expansion:
8244 true == true
8245
8246 Reporters.tests.cpp:<line number>: PASSED:
8247 REQUIRE( multiReporter.getPreferences().shouldReportAllAssertions == true )
8248 with expansion:
8249 true == true
8250
8251 -------------------------------------------------------------------------------
8252 Nested generators and captured variables
8253 -------------------------------------------------------------------------------
8254 Generators.tests.cpp:<line number>
8255 ...............................................................................
8256
8257 Generators.tests.cpp:<line number>: PASSED:
8258 REQUIRE( values > -6 )
8259 with expansion:
8260 3 > -6
8261
8262 -------------------------------------------------------------------------------
8263 Nested generators and captured variables
8264 -------------------------------------------------------------------------------
8265 Generators.tests.cpp:<line number>
8266 ...............................................................................
8267
8268 Generators.tests.cpp:<line number>: PASSED:
8269 REQUIRE( values > -6 )
8270 with expansion:
8271 4 > -6
8272
8273 -------------------------------------------------------------------------------
8274 Nested generators and captured variables
8275 -------------------------------------------------------------------------------
8276 Generators.tests.cpp:<line number>
8277 ...............................................................................
8278
8279 Generators.tests.cpp:<line number>: PASSED:
8280 REQUIRE( values > -6 )
8281 with expansion:
8282 5 > -6
8283
8284 -------------------------------------------------------------------------------
8285 Nested generators and captured variables
8286 -------------------------------------------------------------------------------
8287 Generators.tests.cpp:<line number>
8288 ...............................................................................
8289
8290 Generators.tests.cpp:<line number>: PASSED:
8291 REQUIRE( values > -6 )
8292 with expansion:
8293 6 > -6
8294
8295 -------------------------------------------------------------------------------
8296 Nested generators and captured variables
8297 -------------------------------------------------------------------------------
8298 Generators.tests.cpp:<line number>
8299 ...............................................................................
8300
8301 Generators.tests.cpp:<line number>: PASSED:
8302 REQUIRE( values > -6 )
8303 with expansion:
8304 -5 > -6
8305
8306 -------------------------------------------------------------------------------
8307 Nested generators and captured variables
8308 -------------------------------------------------------------------------------
8309 Generators.tests.cpp:<line number>
8310 ...............................................................................
8311
8312 Generators.tests.cpp:<line number>: PASSED:
8313 REQUIRE( values > -6 )
8314 with expansion:
8315 -4 > -6
8316
8317 -------------------------------------------------------------------------------
8318 Nested generators and captured variables
8319 -------------------------------------------------------------------------------
8320 Generators.tests.cpp:<line number>
8321 ...............................................................................
8322
8323 Generators.tests.cpp:<line number>: PASSED:
8324 REQUIRE( values > -6 )
8325 with expansion:
8326 90 > -6
8327
8328 -------------------------------------------------------------------------------
8329 Nested generators and captured variables
8330 -------------------------------------------------------------------------------
8331 Generators.tests.cpp:<line number>
8332 ...............................................................................
8333
8334 Generators.tests.cpp:<line number>: PASSED:
8335 REQUIRE( values > -6 )
8336 with expansion:
8337 91 > -6
8338
8339 -------------------------------------------------------------------------------
8340 Nested generators and captured variables
8341 -------------------------------------------------------------------------------
8342 Generators.tests.cpp:<line number>
8343 ...............................................................................
8344
8345 Generators.tests.cpp:<line number>: PASSED:
8346 REQUIRE( values > -6 )
8347 with expansion:
8348 92 > -6
8349
8350 -------------------------------------------------------------------------------
8351 Nested generators and captured variables
8352 -------------------------------------------------------------------------------
8353 Generators.tests.cpp:<line number>
8354 ...............................................................................
8355
8356 Generators.tests.cpp:<line number>: PASSED:
8357 REQUIRE( values > -6 )
8358 with expansion:
8359 93 > -6
8360
8361 -------------------------------------------------------------------------------
8362 Nested generators and captured variables
8363 -------------------------------------------------------------------------------
8364 Generators.tests.cpp:<line number>
8365 ...............................................................................
8366
8367 Generators.tests.cpp:<line number>: PASSED:
8368 REQUIRE( values > -6 )
8369 with expansion:
8370 94 > -6
8371
8372 -------------------------------------------------------------------------------
8373 Nested generators and captured variables
8374 -------------------------------------------------------------------------------
8375 Generators.tests.cpp:<line number>
8376 ...............................................................................
8377
8378 Generators.tests.cpp:<line number>: PASSED:
8379 REQUIRE( values > -6 )
8380 with expansion:
8381 95 > -6
8382
8383 -------------------------------------------------------------------------------
8384 Nested generators and captured variables
8385 -------------------------------------------------------------------------------
8386 Generators.tests.cpp:<line number>
8387 ...............................................................................
8388
8389 Generators.tests.cpp:<line number>: PASSED:
8390 REQUIRE( values > -6 )
8391 with expansion:
8392 96 > -6
8393
8394 -------------------------------------------------------------------------------
8395 Nested generators and captured variables
8396 -------------------------------------------------------------------------------
8397 Generators.tests.cpp:<line number>
8398 ...............................................................................
8399
8400 Generators.tests.cpp:<line number>: PASSED:
8401 REQUIRE( values > -6 )
8402 with expansion:
8403 97 > -6
8404
8405 -------------------------------------------------------------------------------
8406 Nested generators and captured variables
8407 -------------------------------------------------------------------------------
8408 Generators.tests.cpp:<line number>
8409 ...............................................................................
8410
8411 Generators.tests.cpp:<line number>: PASSED:
8412 REQUIRE( values > -6 )
8413 with expansion:
8414 98 > -6
8415
8416 -------------------------------------------------------------------------------
8417 Nested generators and captured variables
8418 -------------------------------------------------------------------------------
8419 Generators.tests.cpp:<line number>
8420 ...............................................................................
8421
8422 Generators.tests.cpp:<line number>: PASSED:
8423 REQUIRE( values > -6 )
8424 with expansion:
8425 99 > -6
8426
8427 -------------------------------------------------------------------------------
8428 Nice descriptive name
8429 -------------------------------------------------------------------------------
8430 Misc.tests.cpp:<line number>
8431 ...............................................................................
8432
8433 Misc.tests.cpp:<line number>: warning:
8434 This one ran
8435
8436
8437 No assertions in test case 'Nice descriptive name'
8438
8439 -------------------------------------------------------------------------------
8440 Non-std exceptions can be translated
8441 -------------------------------------------------------------------------------
8442 Exception.tests.cpp:<line number>
8443 ...............................................................................
8444
8445 Exception.tests.cpp:<line number>: FAILED:
8446 due to unexpected exception with message:
8447 custom exception
8448
8449 -------------------------------------------------------------------------------
8450 Objects that evaluated in boolean contexts can be checked
8451 -------------------------------------------------------------------------------
8452 Tricky.tests.cpp:<line number>
8453 ...............................................................................
8454
8455 Tricky.tests.cpp:<line number>: PASSED:
8456 CHECK( True )
8457 with expansion:
8458 {?}
8459
8460 Tricky.tests.cpp:<line number>: PASSED:
8461 CHECK( !False )
8462 with expansion:
8463 true
8464
8465 Tricky.tests.cpp:<line number>: PASSED:
8466 CHECK_FALSE( False )
8467 with expansion:
8468 !{?}
8469
8470 -------------------------------------------------------------------------------
8471 Optionally static assertions
8472 -------------------------------------------------------------------------------
8473 Compilation.tests.cpp:<line number>
8474 ...............................................................................
8475
8476 Compilation.tests.cpp:<line number>: PASSED:
8477 with message:
8478 std::is_void<void>::value
8479
8480 Compilation.tests.cpp:<line number>: PASSED:
8481 with message:
8482 !(std::is_void<int>::value)
8483
8484 Compilation.tests.cpp:<line number>: PASSED:
8485 with message:
8486 std::is_void<void>::value
8487
8488 Compilation.tests.cpp:<line number>: PASSED:
8489 with message:
8490 !(std::is_void<int>::value)
8491
8492 -------------------------------------------------------------------------------
8493 Ordering comparison checks that should fail
8494 -------------------------------------------------------------------------------
8495 Condition.tests.cpp:<line number>
8496 ...............................................................................
8497
8498 Condition.tests.cpp:<line number>: FAILED:
8499 CHECK( data.int_seven > 7 )
8500 with expansion:
8501 7 > 7
8502
8503 Condition.tests.cpp:<line number>: FAILED:
8504 CHECK( data.int_seven < 7 )
8505 with expansion:
8506 7 < 7
8507
8508 Condition.tests.cpp:<line number>: FAILED:
8509 CHECK( data.int_seven > 8 )
8510 with expansion:
8511 7 > 8
8512
8513 Condition.tests.cpp:<line number>: FAILED:
8514 CHECK( data.int_seven < 6 )
8515 with expansion:
8516 7 < 6
8517
8518 Condition.tests.cpp:<line number>: FAILED:
8519 CHECK( data.int_seven < 0 )
8520 with expansion:
8521 7 < 0
8522
8523 Condition.tests.cpp:<line number>: FAILED:
8524 CHECK( data.int_seven < -1 )
8525 with expansion:
8526 7 < -1
8527
8528 Condition.tests.cpp:<line number>: FAILED:
8529 CHECK( data.int_seven >= 8 )
8530 with expansion:
8531 7 >= 8
8532
8533 Condition.tests.cpp:<line number>: FAILED:
8534 CHECK( data.int_seven <= 6 )
8535 with expansion:
8536 7 <= 6
8537
8538 Condition.tests.cpp:<line number>: FAILED:
8539 CHECK( data.float_nine_point_one < 9 )
8540 with expansion:
8541 9.100000381f < 9
8542
8543 Condition.tests.cpp:<line number>: FAILED:
8544 CHECK( data.float_nine_point_one > 10 )
8545 with expansion:
8546 9.100000381f > 10
8547
8548 Condition.tests.cpp:<line number>: FAILED:
8549 CHECK( data.float_nine_point_one > 9.2 )
8550 with expansion:
8551 9.100000381f > 9.19999999999999929
8552
8553 Condition.tests.cpp:<line number>: FAILED:
8554 CHECK( data.str_hello > "hello" )
8555 with expansion:
8556 "hello" > "hello"
8557
8558 Condition.tests.cpp:<line number>: FAILED:
8559 CHECK( data.str_hello < "hello" )
8560 with expansion:
8561 "hello" < "hello"
8562
8563 Condition.tests.cpp:<line number>: FAILED:
8564 CHECK( data.str_hello > "hellp" )
8565 with expansion:
8566 "hello" > "hellp"
8567
8568 Condition.tests.cpp:<line number>: FAILED:
8569 CHECK( data.str_hello > "z" )
8570 with expansion:
8571 "hello" > "z"
8572
8573 Condition.tests.cpp:<line number>: FAILED:
8574 CHECK( data.str_hello < "hellm" )
8575 with expansion:
8576 "hello" < "hellm"
8577
8578 Condition.tests.cpp:<line number>: FAILED:
8579 CHECK( data.str_hello < "a" )
8580 with expansion:
8581 "hello" < "a"
8582
8583 Condition.tests.cpp:<line number>: FAILED:
8584 CHECK( data.str_hello >= "z" )
8585 with expansion:
8586 "hello" >= "z"
8587
8588 Condition.tests.cpp:<line number>: FAILED:
8589 CHECK( data.str_hello <= "a" )
8590 with expansion:
8591 "hello" <= "a"
8592
8593 -------------------------------------------------------------------------------
8594 Ordering comparison checks that should succeed
8595 -------------------------------------------------------------------------------
8596 Condition.tests.cpp:<line number>
8597 ...............................................................................
8598
8599 Condition.tests.cpp:<line number>: PASSED:
8600 REQUIRE( data.int_seven < 8 )
8601 with expansion:
8602 7 < 8
8603
8604 Condition.tests.cpp:<line number>: PASSED:
8605 REQUIRE( data.int_seven > 6 )
8606 with expansion:
8607 7 > 6
8608
8609 Condition.tests.cpp:<line number>: PASSED:
8610 REQUIRE( data.int_seven > 0 )
8611 with expansion:
8612 7 > 0
8613
8614 Condition.tests.cpp:<line number>: PASSED:
8615 REQUIRE( data.int_seven > -1 )
8616 with expansion:
8617 7 > -1
8618
8619 Condition.tests.cpp:<line number>: PASSED:
8620 REQUIRE( data.int_seven >= 7 )
8621 with expansion:
8622 7 >= 7
8623
8624 Condition.tests.cpp:<line number>: PASSED:
8625 REQUIRE( data.int_seven >= 6 )
8626 with expansion:
8627 7 >= 6
8628
8629 Condition.tests.cpp:<line number>: PASSED:
8630 REQUIRE( data.int_seven <= 7 )
8631 with expansion:
8632 7 <= 7
8633
8634 Condition.tests.cpp:<line number>: PASSED:
8635 REQUIRE( data.int_seven <= 8 )
8636 with expansion:
8637 7 <= 8
8638
8639 Condition.tests.cpp:<line number>: PASSED:
8640 REQUIRE( data.float_nine_point_one > 9 )
8641 with expansion:
8642 9.100000381f > 9
8643
8644 Condition.tests.cpp:<line number>: PASSED:
8645 REQUIRE( data.float_nine_point_one < 10 )
8646 with expansion:
8647 9.100000381f < 10
8648
8649 Condition.tests.cpp:<line number>: PASSED:
8650 REQUIRE( data.float_nine_point_one < 9.2 )
8651 with expansion:
8652 9.100000381f < 9.19999999999999929
8653
8654 Condition.tests.cpp:<line number>: PASSED:
8655 REQUIRE( data.str_hello <= "hello" )
8656 with expansion:
8657 "hello" <= "hello"
8658
8659 Condition.tests.cpp:<line number>: PASSED:
8660 REQUIRE( data.str_hello >= "hello" )
8661 with expansion:
8662 "hello" >= "hello"
8663
8664 Condition.tests.cpp:<line number>: PASSED:
8665 REQUIRE( data.str_hello < "hellp" )
8666 with expansion:
8667 "hello" < "hellp"
8668
8669 Condition.tests.cpp:<line number>: PASSED:
8670 REQUIRE( data.str_hello < "zebra" )
8671 with expansion:
8672 "hello" < "zebra"
8673
8674 Condition.tests.cpp:<line number>: PASSED:
8675 REQUIRE( data.str_hello > "hellm" )
8676 with expansion:
8677 "hello" > "hellm"
8678
8679 Condition.tests.cpp:<line number>: PASSED:
8680 REQUIRE( data.str_hello > "a" )
8681 with expansion:
8682 "hello" > "a"
8683
8684 -------------------------------------------------------------------------------
8685 Our PCG implementation provides expected results for known seeds
8686 Default seeded
8687 -------------------------------------------------------------------------------
8688 RandomNumberGeneration.tests.cpp:<line number>
8689 ...............................................................................
8690
8691 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8692 REQUIRE( rng() == 0x<hex digits> )
8693 with expansion:
8694 4242248763 (0x<hex digits>)
8695 ==
8696 4242248763 (0x<hex digits>)
8697
8698 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8699 REQUIRE( rng() == 0x<hex digits> )
8700 with expansion:
8701 1867888929 (0x<hex digits>)
8702 ==
8703 1867888929 (0x<hex digits>)
8704
8705 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8706 REQUIRE( rng() == 0x<hex digits> )
8707 with expansion:
8708 1276619030 (0x<hex digits>)
8709 ==
8710 1276619030 (0x<hex digits>)
8711
8712 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8713 REQUIRE( rng() == 0x<hex digits> )
8714 with expansion:
8715 1911218783 (0x<hex digits>)
8716 ==
8717 1911218783 (0x<hex digits>)
8718
8719 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8720 REQUIRE( rng() == 0x<hex digits> )
8721 with expansion:
8722 1827115164 (0x<hex digits>)
8723 ==
8724 1827115164 (0x<hex digits>)
8725
8726 -------------------------------------------------------------------------------
8727 Our PCG implementation provides expected results for known seeds
8728 Specific seed
8729 -------------------------------------------------------------------------------
8730 RandomNumberGeneration.tests.cpp:<line number>
8731 ...............................................................................
8732
8733 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8734 REQUIRE( rng() == 0x<hex digits> )
8735 with expansion:
8736 1472234645 (0x<hex digits>)
8737 ==
8738 1472234645 (0x<hex digits>)
8739
8740 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8741 REQUIRE( rng() == 0x<hex digits> )
8742 with expansion:
8743 868832940 (0x<hex digits>)
8744 ==
8745 868832940 (0x<hex digits>)
8746
8747 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8748 REQUIRE( rng() == 0x<hex digits> )
8749 with expansion:
8750 570883446 (0x<hex digits>)
8751 ==
8752 570883446 (0x<hex digits>)
8753
8754 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8755 REQUIRE( rng() == 0x<hex digits> )
8756 with expansion:
8757 889299803 (0x<hex digits>)
8758 ==
8759 889299803 (0x<hex digits>)
8760
8761 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8762 REQUIRE( rng() == 0x<hex digits> )
8763 with expansion:
8764 4261393167 (0x<hex digits>)
8765 ==
8766 4261393167 (0x<hex digits>)
8767
8768 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8769 REQUIRE( rng() == 0x<hex digits> )
8770 with expansion:
8771 1472234645 (0x<hex digits>)
8772 ==
8773 1472234645 (0x<hex digits>)
8774
8775 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8776 REQUIRE( rng() == 0x<hex digits> )
8777 with expansion:
8778 868832940 (0x<hex digits>)
8779 ==
8780 868832940 (0x<hex digits>)
8781
8782 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8783 REQUIRE( rng() == 0x<hex digits> )
8784 with expansion:
8785 570883446 (0x<hex digits>)
8786 ==
8787 570883446 (0x<hex digits>)
8788
8789 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8790 REQUIRE( rng() == 0x<hex digits> )
8791 with expansion:
8792 889299803 (0x<hex digits>)
8793 ==
8794 889299803 (0x<hex digits>)
8795
8796 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
8797 REQUIRE( rng() == 0x<hex digits> )
8798 with expansion:
8799 4261393167 (0x<hex digits>)
8800 ==
8801 4261393167 (0x<hex digits>)
8802
8803 -------------------------------------------------------------------------------
8804 Output from all sections is reported
8805 one
8806 -------------------------------------------------------------------------------
8807 Message.tests.cpp:<line number>
8808 ...............................................................................
8809
8810 Message.tests.cpp:<line number>: FAILED:
8811 explicitly with message:
8812 Message from section one
8813
8814 -------------------------------------------------------------------------------
8815 Output from all sections is reported
8816 two
8817 -------------------------------------------------------------------------------
8818 Message.tests.cpp:<line number>
8819 ...............................................................................
8820
8821 Message.tests.cpp:<line number>: FAILED:
8822 explicitly with message:
8823 Message from section two
8824
8825 -------------------------------------------------------------------------------
8826 Overloaded comma or address-of operators are not used
8827 -------------------------------------------------------------------------------
8828 Matchers.tests.cpp:<line number>
8829 ...............................................................................
8830
8831 Matchers.tests.cpp:<line number>: PASSED:
8832 REQUIRE_THROWS_AS( ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed )
8833
8834 Matchers.tests.cpp:<line number>: PASSED:
8835 REQUIRE_THROWS_AS( &EvilMatcher(), EvilAddressOfOperatorUsed )
8836
8837 Matchers.tests.cpp:<line number>: PASSED:
8838 REQUIRE_NOTHROW( EvilMatcher() || ( EvilMatcher() && !EvilMatcher() ) )
8839
8840 Matchers.tests.cpp:<line number>: PASSED:
8841 REQUIRE_NOTHROW( ( EvilMatcher() && EvilMatcher() ) || !EvilMatcher() )
8842
8843 -------------------------------------------------------------------------------
8844 Parse uints
8845 proper inputs
8846 -------------------------------------------------------------------------------
8847 Parse.tests.cpp:<line number>
8848 ...............................................................................
8849
8850 Parse.tests.cpp:<line number>: PASSED:
8851 REQUIRE( parseUInt( "0" ) == Optional<unsigned int>{ 0 } )
8852 with expansion:
8853 {?} == {?}
8854
8855 Parse.tests.cpp:<line number>: PASSED:
8856 REQUIRE( parseUInt( "100" ) == Optional<unsigned int>{ 100 } )
8857 with expansion:
8858 {?} == {?}
8859
8860 Parse.tests.cpp:<line number>: PASSED:
8861 REQUIRE( parseUInt( "4294967295" ) == Optional<unsigned int>{ 4294967295 } )
8862 with expansion:
8863 {?} == {?}
8864
8865 Parse.tests.cpp:<line number>: PASSED:
8866 REQUIRE( parseUInt( "0x<hex digits>", 16 ) == Optional<unsigned int>{ 255 } )
8867 with expansion:
8868 {?} == {?}
8869
8870 -------------------------------------------------------------------------------
8871 Parse uints
8872 Bad inputs
8873 -------------------------------------------------------------------------------
8874 Parse.tests.cpp:<line number>
8875 ...............................................................................
8876
8877 Parse.tests.cpp:<line number>: PASSED:
8878 REQUIRE_FALSE( parseUInt( "" ) )
8879 with expansion:
8880 !{?}
8881
8882 Parse.tests.cpp:<line number>: PASSED:
8883 REQUIRE_FALSE( parseUInt( "!!KJHF*#" ) )
8884 with expansion:
8885 !{?}
8886
8887 Parse.tests.cpp:<line number>: PASSED:
8888 REQUIRE_FALSE( parseUInt( "-1" ) )
8889 with expansion:
8890 !{?}
8891
8892 Parse.tests.cpp:<line number>: PASSED:
8893 REQUIRE_FALSE( parseUInt( "4294967296" ) )
8894 with expansion:
8895 !{?}
8896
8897 Parse.tests.cpp:<line number>: PASSED:
8898 REQUIRE_FALSE( parseUInt( "42949672964294967296429496729642949672964294967296" ) )
8899 with expansion:
8900 !{?}
8901
8902 Parse.tests.cpp:<line number>: PASSED:
8903 REQUIRE_FALSE( parseUInt( "2 4" ) )
8904 with expansion:
8905 !{?}
8906
8907 Parse.tests.cpp:<line number>: PASSED:
8908 REQUIRE_FALSE( parseUInt( "0x<hex digits>", 10 ) )
8909 with expansion:
8910 !{?}
8911
8912 -------------------------------------------------------------------------------
8913 Parsed tags are matched case insensitive
8914 -------------------------------------------------------------------------------
8915 TestSpecParser.tests.cpp:<line number>
8916 ...............................................................................
8917
8918 TestSpecParser.tests.cpp:<line number>: PASSED:
8919 REQUIRE( spec.hasFilters() )
8920 with expansion:
8921 true
8922
8923 TestSpecParser.tests.cpp:<line number>: PASSED:
8924 REQUIRE( spec.getInvalidSpecs().empty() )
8925 with expansion:
8926 true
8927
8928 TestSpecParser.tests.cpp:<line number>: PASSED:
8929 REQUIRE( spec.matches( testCase ) )
8930 with expansion:
8931 true
8932
8933 -------------------------------------------------------------------------------
8934 Parsing sharding-related cli flags
8935 shard-count
8936 -------------------------------------------------------------------------------
8937 CmdLine.tests.cpp:<line number>
8938 ...............................................................................
8939
8940 CmdLine.tests.cpp:<line number>: PASSED:
8941 CHECK( cli.parse({ "test", "--shard-count=8" }) )
8942 with expansion:
8943 {?}
8944
8945 CmdLine.tests.cpp:<line number>: PASSED:
8946 REQUIRE( config.shardCount == 8 )
8947 with expansion:
8948 8 == 8
8949
8950 -------------------------------------------------------------------------------
8951 Parsing sharding-related cli flags
8952 Negative shard count reports error
8953 -------------------------------------------------------------------------------
8954 CmdLine.tests.cpp:<line number>
8955 ...............................................................................
8956
8957 CmdLine.tests.cpp:<line number>: PASSED:
8958 CHECK_FALSE( result )
8959 with expansion:
8960 !{?}
8961
8962 CmdLine.tests.cpp:<line number>: PASSED:
8963 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Could not parse '-1' as shard count" ) )
8964 with expansion:
8965 "Could not parse '-1' as shard count" contains: "Could not parse '-1' as
8966 shard count"
8967
8968 -------------------------------------------------------------------------------
8969 Parsing sharding-related cli flags
8970 Zero shard count reports error
8971 -------------------------------------------------------------------------------
8972 CmdLine.tests.cpp:<line number>
8973 ...............................................................................
8974
8975 CmdLine.tests.cpp:<line number>: PASSED:
8976 CHECK_FALSE( result )
8977 with expansion:
8978 !{?}
8979
8980 CmdLine.tests.cpp:<line number>: PASSED:
8981 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Shard count must be positive" ) )
8982 with expansion:
8983 "Shard count must be positive" contains: "Shard count must be positive"
8984
8985 -------------------------------------------------------------------------------
8986 Parsing sharding-related cli flags
8987 shard-index
8988 -------------------------------------------------------------------------------
8989 CmdLine.tests.cpp:<line number>
8990 ...............................................................................
8991
8992 CmdLine.tests.cpp:<line number>: PASSED:
8993 CHECK( cli.parse({ "test", "--shard-index=2" }) )
8994 with expansion:
8995 {?}
8996
8997 CmdLine.tests.cpp:<line number>: PASSED:
8998 REQUIRE( config.shardIndex == 2 )
8999 with expansion:
9000 2 == 2
9001
9002 -------------------------------------------------------------------------------
9003 Parsing sharding-related cli flags
9004 Negative shard index reports error
9005 -------------------------------------------------------------------------------
9006 CmdLine.tests.cpp:<line number>
9007 ...............................................................................
9008
9009 CmdLine.tests.cpp:<line number>: PASSED:
9010 CHECK_FALSE( result )
9011 with expansion:
9012 !{?}
9013
9014 CmdLine.tests.cpp:<line number>: PASSED:
9015 REQUIRE_THAT( result.errorMessage(), ContainsSubstring( "Could not parse '-12' as shard index" ) )
9016 with expansion:
9017 "Could not parse '-12' as shard index" contains: "Could not parse '-12' as
9018 shard index"
9019
9020 -------------------------------------------------------------------------------
9021 Parsing sharding-related cli flags
9022 Shard index 0 is accepted
9023 -------------------------------------------------------------------------------
9024 CmdLine.tests.cpp:<line number>
9025 ...............................................................................
9026
9027 CmdLine.tests.cpp:<line number>: PASSED:
9028 CHECK( cli.parse({ "test", "--shard-index=0" }) )
9029 with expansion:
9030 {?}
9031
9032 CmdLine.tests.cpp:<line number>: PASSED:
9033 REQUIRE( config.shardIndex == 0 )
9034 with expansion:
9035 0 == 0
9036
9037 -------------------------------------------------------------------------------
9038 Parsing tags with non-alphabetical characters is pass-through
9039 -------------------------------------------------------------------------------
9040 TestSpecParser.tests.cpp:<line number>
9041 ...............................................................................
9042
9043 TestSpecParser.tests.cpp:<line number>: PASSED:
9044 REQUIRE( spec.hasFilters() )
9045 with expansion:
9046 true
9047 with message:
9048 tagString := "[tag with spaces]"
9049
9050 TestSpecParser.tests.cpp:<line number>: PASSED:
9051 REQUIRE( spec.getInvalidSpecs().empty() )
9052 with expansion:
9053 true
9054 with message:
9055 tagString := "[tag with spaces]"
9056
9057 TestSpecParser.tests.cpp:<line number>: PASSED:
9058 REQUIRE( spec.matches( testCase ) )
9059 with expansion:
9060 true
9061 with message:
9062 tagString := "[tag with spaces]"
9063
9064 -------------------------------------------------------------------------------
9065 Parsing tags with non-alphabetical characters is pass-through
9066 -------------------------------------------------------------------------------
9067 TestSpecParser.tests.cpp:<line number>
9068 ...............................................................................
9069
9070 TestSpecParser.tests.cpp:<line number>: PASSED:
9071 REQUIRE( spec.hasFilters() )
9072 with expansion:
9073 true
9074 with message:
9075 tagString := "[I said "good day" sir!]"
9076
9077 TestSpecParser.tests.cpp:<line number>: PASSED:
9078 REQUIRE( spec.getInvalidSpecs().empty() )
9079 with expansion:
9080 true
9081 with message:
9082 tagString := "[I said "good day" sir!]"
9083
9084 TestSpecParser.tests.cpp:<line number>: PASSED:
9085 REQUIRE( spec.matches( testCase ) )
9086 with expansion:
9087 true
9088 with message:
9089 tagString := "[I said "good day" sir!]"
9090
9091 -------------------------------------------------------------------------------
9092 Parsing warnings
9093 NoAssertions
9094 -------------------------------------------------------------------------------
9095 CmdLine.tests.cpp:<line number>
9096 ...............................................................................
9097
9098 CmdLine.tests.cpp:<line number>: PASSED:
9099 REQUIRE( cli.parse( { "test", "-w", "NoAssertions" } ) )
9100 with expansion:
9101 {?}
9102
9103 CmdLine.tests.cpp:<line number>: PASSED:
9104 REQUIRE( config.warnings == WarnAbout::NoAssertions )
9105 with expansion:
9106 1 == 1
9107
9108 -------------------------------------------------------------------------------
9109 Parsing warnings
9110 NoTests is no longer supported
9111 -------------------------------------------------------------------------------
9112 CmdLine.tests.cpp:<line number>
9113 ...............................................................................
9114
9115 CmdLine.tests.cpp:<line number>: PASSED:
9116 REQUIRE_FALSE( cli.parse( { "test", "-w", "NoTests" } ) )
9117 with expansion:
9118 !{?}
9119
9120 -------------------------------------------------------------------------------
9121 Parsing warnings
9122 Combining multiple warnings
9123 -------------------------------------------------------------------------------
9124 CmdLine.tests.cpp:<line number>
9125 ...............................................................................
9126
9127 CmdLine.tests.cpp:<line number>: PASSED:
9128 REQUIRE( cli.parse( { "test", "--warn", "NoAssertions", "--warn", "UnmatchedTestSpec" } ) )
9129 with expansion:
9130 {?}
9131
9132 CmdLine.tests.cpp:<line number>: PASSED:
9133 REQUIRE( config.warnings == ( WarnAbout::NoAssertions | WarnAbout::UnmatchedTestSpec ) )
9134 with expansion:
9135 3 == 3
9136
9137 -------------------------------------------------------------------------------
9138 Pointers can be compared to null
9139 -------------------------------------------------------------------------------
9140 Condition.tests.cpp:<line number>
9141 ...............................................................................
9142
9143 Condition.tests.cpp:<line number>: PASSED:
9144 REQUIRE( p == 0 )
9145 with expansion:
9146 0 == 0
9147
9148 Condition.tests.cpp:<line number>: PASSED:
9149 REQUIRE( p == pNULL )
9150 with expansion:
9151 0 == 0
9152
9153 Condition.tests.cpp:<line number>: PASSED:
9154 REQUIRE( p != 0 )
9155 with expansion:
9156 0x<hex digits> != 0
9157
9158 Condition.tests.cpp:<line number>: PASSED:
9159 REQUIRE( cp != 0 )
9160 with expansion:
9161 0x<hex digits> != 0
9162
9163 Condition.tests.cpp:<line number>: PASSED:
9164 REQUIRE( cpc != 0 )
9165 with expansion:
9166 0x<hex digits> != 0
9167
9168 Condition.tests.cpp:<line number>: PASSED:
9169 REQUIRE( returnsNull() == 0 )
9170 with expansion:
9171 {null string} == 0
9172
9173 Condition.tests.cpp:<line number>: PASSED:
9174 REQUIRE( returnsConstNull() == 0 )
9175 with expansion:
9176 {null string} == 0
9177
9178 Condition.tests.cpp:<line number>: PASSED:
9179 REQUIRE( 0 != p )
9180 with expansion:
9181 0 != 0x<hex digits>
9182
9183 -------------------------------------------------------------------------------
9184 Precision of floating point stringification can be set
9185 Floats
9186 -------------------------------------------------------------------------------
9187 ToStringGeneral.tests.cpp:<line number>
9188 ...............................................................................
9189
9190 ToStringGeneral.tests.cpp:<line number>: PASSED:
9191 CHECK( str1.size() == 3 + 5 )
9192 with expansion:
9193 8 == 8
9194
9195 ToStringGeneral.tests.cpp:<line number>: PASSED:
9196 REQUIRE( str2.size() == 3 + 10 )
9197 with expansion:
9198 13 == 13
9199
9200 -------------------------------------------------------------------------------
9201 Precision of floating point stringification can be set
9202 Double
9203 -------------------------------------------------------------------------------
9204 ToStringGeneral.tests.cpp:<line number>
9205 ...............................................................................
9206
9207 ToStringGeneral.tests.cpp:<line number>: PASSED:
9208 CHECK( str1.size() == 2 + 5 )
9209 with expansion:
9210 7 == 7
9211
9212 ToStringGeneral.tests.cpp:<line number>: PASSED:
9213 REQUIRE( str2.size() == 2 + 15 )
9214 with expansion:
9215 17 == 17
9216
9217 -------------------------------------------------------------------------------
9218 Predicate matcher can accept const char*
9219 -------------------------------------------------------------------------------
9220 Matchers.tests.cpp:<line number>
9221 ...............................................................................
9222
9223 Matchers.tests.cpp:<line number>: PASSED:
9224 REQUIRE_THAT( "foo", Predicate<const char*>( []( const char* const& ) { return true; } ) )
9225 with expansion:
9226 "foo" matches undescribed predicate
9227
9228 -------------------------------------------------------------------------------
9229 Process can be configured on command line
9230 empty args don't cause a crash
9231 -------------------------------------------------------------------------------
9232 CmdLine.tests.cpp:<line number>
9233 ...............................................................................
9234
9235 CmdLine.tests.cpp:<line number>: PASSED:
9236 CHECK( result )
9237 with expansion:
9238 {?}
9239
9240 CmdLine.tests.cpp:<line number>: PASSED:
9241 CHECK( config.processName == "" )
9242 with expansion:
9243 "" == ""
9244
9245 -------------------------------------------------------------------------------
9246 Process can be configured on command line
9247 default - no arguments
9248 -------------------------------------------------------------------------------
9249 CmdLine.tests.cpp:<line number>
9250 ...............................................................................
9251
9252 CmdLine.tests.cpp:<line number>: PASSED:
9253 CHECK( result )
9254 with expansion:
9255 {?}
9256
9257 CmdLine.tests.cpp:<line number>: PASSED:
9258 CHECK( config.processName == "test" )
9259 with expansion:
9260 "test" == "test"
9261
9262 CmdLine.tests.cpp:<line number>: PASSED:
9263 CHECK( config.shouldDebugBreak == false )
9264 with expansion:
9265 false == false
9266
9267 CmdLine.tests.cpp:<line number>: PASSED:
9268 CHECK( config.abortAfter == -1 )
9269 with expansion:
9270 -1 == -1
9271
9272 CmdLine.tests.cpp:<line number>: PASSED:
9273 CHECK( config.noThrow == false )
9274 with expansion:
9275 false == false
9276
9277 CmdLine.tests.cpp:<line number>: PASSED:
9278 CHECK( config.reporterSpecifications.empty() )
9279 with expansion:
9280 true
9281
9282 CmdLine.tests.cpp:<line number>: PASSED:
9283 CHECK_FALSE( cfg.hasTestFilters() )
9284 with expansion:
9285 !false
9286
9287 CmdLine.tests.cpp:<line number>: PASSED:
9288 CHECK( cfg.getReporterSpecs().size() == 1 )
9289 with expansion:
9290 1 == 1
9291
9292 CmdLine.tests.cpp:<line number>: PASSED:
9293 CHECK( cfg.getReporterSpecs()[0] == Catch::ReporterSpec{ expectedReporter, {}, {}, {} } )
9294 with expansion:
9295 {?} == {?}
9296
9297 CmdLine.tests.cpp:<line number>: PASSED:
9298 CHECK( cfg.getProcessedReporterSpecs().size() == 1 )
9299 with expansion:
9300 1 == 1
9301
9302 CmdLine.tests.cpp:<line number>: PASSED:
9303 CHECK( cfg.getProcessedReporterSpecs()[0] == Catch::ProcessedReporterSpec{ expectedReporter, std::string{}, Catch::ColourMode::PlatformDefault, {} } )
9304 with expansion:
9305 {?} == {?}
9306
9307 -------------------------------------------------------------------------------
9308 Process can be configured on command line
9309 test lists
9310 Specify one test case using
9311 -------------------------------------------------------------------------------
9312 CmdLine.tests.cpp:<line number>
9313 ...............................................................................
9314
9315 CmdLine.tests.cpp:<line number>: PASSED:
9316 CHECK( result )
9317 with expansion:
9318 {?}
9319
9320 CmdLine.tests.cpp:<line number>: PASSED:
9321 REQUIRE( cfg.hasTestFilters() )
9322 with expansion:
9323 true
9324
9325 CmdLine.tests.cpp:<line number>: PASSED:
9326 REQUIRE( cfg.testSpec().matches(*fakeTestCase("notIncluded")) == false )
9327 with expansion:
9328 false == false
9329
9330 CmdLine.tests.cpp:<line number>: PASSED:
9331 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) )
9332 with expansion:
9333 true
9334
9335 -------------------------------------------------------------------------------
9336 Process can be configured on command line
9337 test lists
9338 Specify one test case exclusion using exclude:
9339 -------------------------------------------------------------------------------
9340 CmdLine.tests.cpp:<line number>
9341 ...............................................................................
9342
9343 CmdLine.tests.cpp:<line number>: PASSED:
9344 CHECK( result )
9345 with expansion:
9346 {?}
9347
9348 CmdLine.tests.cpp:<line number>: PASSED:
9349 REQUIRE( cfg.hasTestFilters() )
9350 with expansion:
9351 true
9352
9353 CmdLine.tests.cpp:<line number>: PASSED:
9354 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) == false )
9355 with expansion:
9356 false == false
9357
9358 CmdLine.tests.cpp:<line number>: PASSED:
9359 REQUIRE( cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) )
9360 with expansion:
9361 true
9362
9363 -------------------------------------------------------------------------------
9364 Process can be configured on command line
9365 test lists
9366 Specify one test case exclusion using ~
9367 -------------------------------------------------------------------------------
9368 CmdLine.tests.cpp:<line number>
9369 ...............................................................................
9370
9371 CmdLine.tests.cpp:<line number>: PASSED:
9372 CHECK( result )
9373 with expansion:
9374 {?}
9375
9376 CmdLine.tests.cpp:<line number>: PASSED:
9377 REQUIRE( cfg.hasTestFilters() )
9378 with expansion:
9379 true
9380
9381 CmdLine.tests.cpp:<line number>: PASSED:
9382 REQUIRE( cfg.testSpec().matches(*fakeTestCase("test1")) == false )
9383 with expansion:
9384 false == false
9385
9386 CmdLine.tests.cpp:<line number>: PASSED:
9387 REQUIRE( cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) )
9388 with expansion:
9389 true
9390
9391 -------------------------------------------------------------------------------
9392 Process can be configured on command line
9393 reporter
9394 -r/console
9395 -------------------------------------------------------------------------------
9396 CmdLine.tests.cpp:<line number>
9397 ...............................................................................
9398
9399 CmdLine.tests.cpp:<line number>: PASSED:
9400 CHECK( result )
9401 with expansion:
9402 {?}
9403 with message:
9404 result.errorMessage() := ""
9405
9406 CmdLine.tests.cpp:<line number>: PASSED:
9407 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", {}, {}, {} } } )
9408 with expansion:
9409 { {?} } == { {?} }
9410 with message:
9411 result.errorMessage() := ""
9412
9413 -------------------------------------------------------------------------------
9414 Process can be configured on command line
9415 reporter
9416 -r/xml
9417 -------------------------------------------------------------------------------
9418 CmdLine.tests.cpp:<line number>
9419 ...............................................................................
9420
9421 CmdLine.tests.cpp:<line number>: PASSED:
9422 CHECK( result )
9423 with expansion:
9424 {?}
9425 with message:
9426 result.errorMessage() := ""
9427
9428 CmdLine.tests.cpp:<line number>: PASSED:
9429 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", {}, {}, {} } } )
9430 with expansion:
9431 { {?} } == { {?} }
9432 with message:
9433 result.errorMessage() := ""
9434
9435 -------------------------------------------------------------------------------
9436 Process can be configured on command line
9437 reporter
9438 --reporter/junit
9439 -------------------------------------------------------------------------------
9440 CmdLine.tests.cpp:<line number>
9441 ...............................................................................
9442
9443 CmdLine.tests.cpp:<line number>: PASSED:
9444 CHECK( result )
9445 with expansion:
9446 {?}
9447 with message:
9448 result.errorMessage() := ""
9449
9450 CmdLine.tests.cpp:<line number>: PASSED:
9451 REQUIRE( config.reporterSpecifications == vec_Specs{ { "junit", {}, {}, {} } } )
9452 with expansion:
9453 { {?} } == { {?} }
9454 with message:
9455 result.errorMessage() := ""
9456
9457 -------------------------------------------------------------------------------
9458 Process can be configured on command line
9459 reporter
9460 must match one of the available ones
9461 -------------------------------------------------------------------------------
9462 CmdLine.tests.cpp:<line number>
9463 ...............................................................................
9464
9465 CmdLine.tests.cpp:<line number>: PASSED:
9466 CHECK( !result )
9467 with expansion:
9468 true
9469
9470 CmdLine.tests.cpp:<line number>: PASSED:
9471 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Unrecognized reporter") )
9472 with expansion:
9473 "Unrecognized reporter, 'unsupported'. Check available with --list-reporters"
9474 contains: "Unrecognized reporter"
9475
9476 -------------------------------------------------------------------------------
9477 Process can be configured on command line
9478 reporter
9479 With output file
9480 -------------------------------------------------------------------------------
9481 CmdLine.tests.cpp:<line number>
9482 ...............................................................................
9483
9484 CmdLine.tests.cpp:<line number>: PASSED:
9485 CHECK( result )
9486 with expansion:
9487 {?}
9488 with message:
9489 result.errorMessage() := ""
9490
9491 CmdLine.tests.cpp:<line number>: PASSED:
9492 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", "out.txt"s, {}, {} } } )
9493 with expansion:
9494 { {?} } == { {?} }
9495 with message:
9496 result.errorMessage() := ""
9497
9498 -------------------------------------------------------------------------------
9499 Process can be configured on command line
9500 reporter
9501 With Windows-like absolute path as output file
9502 -------------------------------------------------------------------------------
9503 CmdLine.tests.cpp:<line number>
9504 ...............................................................................
9505
9506 CmdLine.tests.cpp:<line number>: PASSED:
9507 CHECK( result )
9508 with expansion:
9509 {?}
9510 with message:
9511 result.errorMessage() := ""
9512
9513 CmdLine.tests.cpp:<line number>: PASSED:
9514 REQUIRE( config.reporterSpecifications == vec_Specs{ { "console", "C:\\Temp\\out.txt"s, {}, {} } } )
9515 with expansion:
9516 { {?} } == { {?} }
9517 with message:
9518 result.errorMessage() := ""
9519
9520 -------------------------------------------------------------------------------
9521 Process can be configured on command line
9522 reporter
9523 Multiple reporters
9524 All with output files
9525 -------------------------------------------------------------------------------
9526 CmdLine.tests.cpp:<line number>
9527 ...............................................................................
9528
9529 CmdLine.tests.cpp:<line number>: PASSED:
9530 CHECK( cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "junit::out=output-junit.xml" }) )
9531 with expansion:
9532 {?}
9533
9534 CmdLine.tests.cpp:<line number>: PASSED:
9535 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "junit", "output-junit.xml"s, {}, {} } } )
9536 with expansion:
9537 { {?}, {?} } == { {?}, {?} }
9538
9539 -------------------------------------------------------------------------------
9540 Process can be configured on command line
9541 reporter
9542 Multiple reporters
9543 Mixed output files and default output
9544 -------------------------------------------------------------------------------
9545 CmdLine.tests.cpp:<line number>
9546 ...............................................................................
9547
9548 CmdLine.tests.cpp:<line number>: PASSED:
9549 CHECK( cli.parse({ "test", "-r", "xml::out=output.xml", "-r", "console" }) )
9550 with expansion:
9551 {?}
9552
9553 CmdLine.tests.cpp:<line number>: PASSED:
9554 REQUIRE( config.reporterSpecifications == vec_Specs{ { "xml", "output.xml"s, {}, {} }, { "console", {}, {}, {} } } )
9555 with expansion:
9556 { {?}, {?} } == { {?}, {?} }
9557
9558 -------------------------------------------------------------------------------
9559 Process can be configured on command line
9560 reporter
9561 Multiple reporters
9562 cannot have multiple reporters with default output
9563 -------------------------------------------------------------------------------
9564 CmdLine.tests.cpp:<line number>
9565 ...............................................................................
9566
9567 CmdLine.tests.cpp:<line number>: PASSED:
9568 CHECK( !result )
9569 with expansion:
9570 true
9571
9572 CmdLine.tests.cpp:<line number>: PASSED:
9573 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("Only one reporter may have unspecified output file.") )
9574 with expansion:
9575 "Only one reporter may have unspecified output file." contains: "Only one
9576 reporter may have unspecified output file."
9577
9578 -------------------------------------------------------------------------------
9579 Process can be configured on command line
9580 debugger
9581 -b
9582 -------------------------------------------------------------------------------
9583 CmdLine.tests.cpp:<line number>
9584 ...............................................................................
9585
9586 CmdLine.tests.cpp:<line number>: PASSED:
9587 CHECK( cli.parse({"test", "-b"}) )
9588 with expansion:
9589 {?}
9590
9591 CmdLine.tests.cpp:<line number>: PASSED:
9592 REQUIRE( config.shouldDebugBreak == true )
9593 with expansion:
9594 true == true
9595
9596 -------------------------------------------------------------------------------
9597 Process can be configured on command line
9598 debugger
9599 --break
9600 -------------------------------------------------------------------------------
9601 CmdLine.tests.cpp:<line number>
9602 ...............................................................................
9603
9604 CmdLine.tests.cpp:<line number>: PASSED:
9605 CHECK( cli.parse({"test", "--break"}) )
9606 with expansion:
9607 {?}
9608
9609 CmdLine.tests.cpp:<line number>: PASSED:
9610 REQUIRE( config.shouldDebugBreak )
9611 with expansion:
9612 true
9613
9614 -------------------------------------------------------------------------------
9615 Process can be configured on command line
9616 abort
9617 -a aborts after first failure
9618 -------------------------------------------------------------------------------
9619 CmdLine.tests.cpp:<line number>
9620 ...............................................................................
9621
9622 CmdLine.tests.cpp:<line number>: PASSED:
9623 CHECK( cli.parse({"test", "-a"}) )
9624 with expansion:
9625 {?}
9626
9627 CmdLine.tests.cpp:<line number>: PASSED:
9628 REQUIRE( config.abortAfter == 1 )
9629 with expansion:
9630 1 == 1
9631
9632 -------------------------------------------------------------------------------
9633 Process can be configured on command line
9634 abort
9635 -x 2 aborts after two failures
9636 -------------------------------------------------------------------------------
9637 CmdLine.tests.cpp:<line number>
9638 ...............................................................................
9639
9640 CmdLine.tests.cpp:<line number>: PASSED:
9641 CHECK( cli.parse({"test", "-x", "2"}) )
9642 with expansion:
9643 {?}
9644
9645 CmdLine.tests.cpp:<line number>: PASSED:
9646 REQUIRE( config.abortAfter == 2 )
9647 with expansion:
9648 2 == 2
9649
9650 -------------------------------------------------------------------------------
9651 Process can be configured on command line
9652 abort
9653 -x must be numeric
9654 -------------------------------------------------------------------------------
9655 CmdLine.tests.cpp:<line number>
9656 ...............................................................................
9657
9658 CmdLine.tests.cpp:<line number>: PASSED:
9659 CHECK( !result )
9660 with expansion:
9661 true
9662
9663 CmdLine.tests.cpp:<line number>: PASSED:
9664 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("convert") && ContainsSubstring("oops") )
9665 with expansion:
9666 "Unable to convert 'oops' to destination type" ( contains: "convert" and
9667 contains: "oops" )
9668
9669 -------------------------------------------------------------------------------
9670 Process can be configured on command line
9671 abort
9672 wait-for-keypress
9673 Accepted options
9674 -------------------------------------------------------------------------------
9675 CmdLine.tests.cpp:<line number>
9676 ...............................................................................
9677
9678 CmdLine.tests.cpp:<line number>: PASSED:
9679 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9680 with expansion:
9681 {?}
9682
9683 CmdLine.tests.cpp:<line number>: PASSED:
9684 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9685 with expansion:
9686 0 == 0
9687
9688 -------------------------------------------------------------------------------
9689 Process can be configured on command line
9690 abort
9691 wait-for-keypress
9692 Accepted options
9693 -------------------------------------------------------------------------------
9694 CmdLine.tests.cpp:<line number>
9695 ...............................................................................
9696
9697 CmdLine.tests.cpp:<line number>: PASSED:
9698 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9699 with expansion:
9700 {?}
9701
9702 CmdLine.tests.cpp:<line number>: PASSED:
9703 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9704 with expansion:
9705 1 == 1
9706
9707 -------------------------------------------------------------------------------
9708 Process can be configured on command line
9709 abort
9710 wait-for-keypress
9711 Accepted options
9712 -------------------------------------------------------------------------------
9713 CmdLine.tests.cpp:<line number>
9714 ...............................................................................
9715
9716 CmdLine.tests.cpp:<line number>: PASSED:
9717 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9718 with expansion:
9719 {?}
9720
9721 CmdLine.tests.cpp:<line number>: PASSED:
9722 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9723 with expansion:
9724 2 == 2
9725
9726 -------------------------------------------------------------------------------
9727 Process can be configured on command line
9728 abort
9729 wait-for-keypress
9730 Accepted options
9731 -------------------------------------------------------------------------------
9732 CmdLine.tests.cpp:<line number>
9733 ...............................................................................
9734
9735 CmdLine.tests.cpp:<line number>: PASSED:
9736 CHECK( cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) )
9737 with expansion:
9738 {?}
9739
9740 CmdLine.tests.cpp:<line number>: PASSED:
9741 REQUIRE( config.waitForKeypress == std::get<1>(input) )
9742 with expansion:
9743 3 == 3
9744
9745 -------------------------------------------------------------------------------
9746 Process can be configured on command line
9747 abort
9748 wait-for-keypress
9749 invalid options are reported
9750 -------------------------------------------------------------------------------
9751 CmdLine.tests.cpp:<line number>
9752 ...............................................................................
9753
9754 CmdLine.tests.cpp:<line number>: PASSED:
9755 CHECK( !result )
9756 with expansion:
9757 true
9758
9759 CmdLine.tests.cpp:<line number>: PASSED:
9760 REQUIRE_THAT( result.errorMessage(), ContainsSubstring("never") && ContainsSubstring("both") )
9761 with expansion:
9762 "keypress argument must be one of: never, start, exit or both. 'sometimes'
9763 not recognised" ( contains: "never" and contains: "both" )
9764
9765 -------------------------------------------------------------------------------
9766 Process can be configured on command line
9767 nothrow
9768 -e
9769 -------------------------------------------------------------------------------
9770 CmdLine.tests.cpp:<line number>
9771 ...............................................................................
9772
9773 CmdLine.tests.cpp:<line number>: PASSED:
9774 CHECK( cli.parse({"test", "-e"}) )
9775 with expansion:
9776 {?}
9777
9778 CmdLine.tests.cpp:<line number>: PASSED:
9779 REQUIRE( config.noThrow )
9780 with expansion:
9781 true
9782
9783 -------------------------------------------------------------------------------
9784 Process can be configured on command line
9785 nothrow
9786 --nothrow
9787 -------------------------------------------------------------------------------
9788 CmdLine.tests.cpp:<line number>
9789 ...............................................................................
9790
9791 CmdLine.tests.cpp:<line number>: PASSED:
9792 CHECK( cli.parse({"test", "--nothrow"}) )
9793 with expansion:
9794 {?}
9795
9796 CmdLine.tests.cpp:<line number>: PASSED:
9797 REQUIRE( config.noThrow )
9798 with expansion:
9799 true
9800
9801 -------------------------------------------------------------------------------
9802 Process can be configured on command line
9803 output filename
9804 -o filename
9805 -------------------------------------------------------------------------------
9806 CmdLine.tests.cpp:<line number>
9807 ...............................................................................
9808
9809 CmdLine.tests.cpp:<line number>: PASSED:
9810 CHECK( cli.parse({"test", "-o", "filename.ext"}) )
9811 with expansion:
9812 {?}
9813
9814 CmdLine.tests.cpp:<line number>: PASSED:
9815 REQUIRE( config.defaultOutputFilename == "filename.ext" )
9816 with expansion:
9817 "filename.ext" == "filename.ext"
9818
9819 -------------------------------------------------------------------------------
9820 Process can be configured on command line
9821 output filename
9822 --out
9823 -------------------------------------------------------------------------------
9824 CmdLine.tests.cpp:<line number>
9825 ...............................................................................
9826
9827 CmdLine.tests.cpp:<line number>: PASSED:
9828 CHECK( cli.parse({"test", "--out", "filename.ext"}) )
9829 with expansion:
9830 {?}
9831
9832 CmdLine.tests.cpp:<line number>: PASSED:
9833 REQUIRE( config.defaultOutputFilename == "filename.ext" )
9834 with expansion:
9835 "filename.ext" == "filename.ext"
9836
9837 -------------------------------------------------------------------------------
9838 Process can be configured on command line
9839 combinations
9840 Single character flags can be combined
9841 -------------------------------------------------------------------------------
9842 CmdLine.tests.cpp:<line number>
9843 ...............................................................................
9844
9845 CmdLine.tests.cpp:<line number>: PASSED:
9846 CHECK( cli.parse({"test", "-abe"}) )
9847 with expansion:
9848 {?}
9849
9850 CmdLine.tests.cpp:<line number>: PASSED:
9851 CHECK( config.abortAfter == 1 )
9852 with expansion:
9853 1 == 1
9854
9855 CmdLine.tests.cpp:<line number>: PASSED:
9856 CHECK( config.shouldDebugBreak )
9857 with expansion:
9858 true
9859
9860 CmdLine.tests.cpp:<line number>: PASSED:
9861 CHECK( config.noThrow == true )
9862 with expansion:
9863 true == true
9864
9865 -------------------------------------------------------------------------------
9866 Process can be configured on command line
9867 use-colour
9868 without option
9869 -------------------------------------------------------------------------------
9870 CmdLine.tests.cpp:<line number>
9871 ...............................................................................
9872
9873 CmdLine.tests.cpp:<line number>: PASSED:
9874 CHECK( cli.parse({"test"}) )
9875 with expansion:
9876 {?}
9877
9878 CmdLine.tests.cpp:<line number>: PASSED:
9879 REQUIRE( config.defaultColourMode == ColourMode::PlatformDefault )
9880 with expansion:
9881 0 == 0
9882
9883 -------------------------------------------------------------------------------
9884 Process can be configured on command line
9885 use-colour
9886 auto
9887 -------------------------------------------------------------------------------
9888 CmdLine.tests.cpp:<line number>
9889 ...............................................................................
9890
9891 CmdLine.tests.cpp:<line number>: PASSED:
9892 CHECK( cli.parse( { "test", "--colour-mode", "default" } ) )
9893 with expansion:
9894 {?}
9895
9896 CmdLine.tests.cpp:<line number>: PASSED:
9897 REQUIRE( config.defaultColourMode == ColourMode::PlatformDefault )
9898 with expansion:
9899 0 == 0
9900
9901 -------------------------------------------------------------------------------
9902 Process can be configured on command line
9903 use-colour
9904 yes
9905 -------------------------------------------------------------------------------
9906 CmdLine.tests.cpp:<line number>
9907 ...............................................................................
9908
9909 CmdLine.tests.cpp:<line number>: PASSED:
9910 CHECK( cli.parse({"test", "--colour-mode", "ansi"}) )
9911 with expansion:
9912 {?}
9913
9914 CmdLine.tests.cpp:<line number>: PASSED:
9915 REQUIRE( config.defaultColourMode == ColourMode::ANSI )
9916 with expansion:
9917 1 == 1
9918
9919 -------------------------------------------------------------------------------
9920 Process can be configured on command line
9921 use-colour
9922 no
9923 -------------------------------------------------------------------------------
9924 CmdLine.tests.cpp:<line number>
9925 ...............................................................................
9926
9927 CmdLine.tests.cpp:<line number>: PASSED:
9928 CHECK( cli.parse({"test", "--colour-mode", "none"}) )
9929 with expansion:
9930 {?}
9931
9932 CmdLine.tests.cpp:<line number>: PASSED:
9933 REQUIRE( config.defaultColourMode == ColourMode::None )
9934 with expansion:
9935 3 == 3
9936
9937 -------------------------------------------------------------------------------
9938 Process can be configured on command line
9939 use-colour
9940 error
9941 -------------------------------------------------------------------------------
9942 CmdLine.tests.cpp:<line number>
9943 ...............................................................................
9944
9945 CmdLine.tests.cpp:<line number>: PASSED:
9946 CHECK( !result )
9947 with expansion:
9948 true
9949
9950 CmdLine.tests.cpp:<line number>: PASSED:
9951 CHECK_THAT( result.errorMessage(), ContainsSubstring( "colour mode must be one of" ) )
9952 with expansion:
9953 "colour mode must be one of: default, ansi, win32, or none. 'wrong' is not
9954 recognised" contains: "colour mode must be one of"
9955
9956 -------------------------------------------------------------------------------
9957 Process can be configured on command line
9958 Benchmark options
9959 samples
9960 -------------------------------------------------------------------------------
9961 CmdLine.tests.cpp:<line number>
9962 ...............................................................................
9963
9964 CmdLine.tests.cpp:<line number>: PASSED:
9965 CHECK( cli.parse({ "test", "--benchmark-samples=200" }) )
9966 with expansion:
9967 {?}
9968
9969 CmdLine.tests.cpp:<line number>: PASSED:
9970 REQUIRE( config.benchmarkSamples == 200 )
9971 with expansion:
9972 200 == 200
9973
9974 -------------------------------------------------------------------------------
9975 Process can be configured on command line
9976 Benchmark options
9977 resamples
9978 -------------------------------------------------------------------------------
9979 CmdLine.tests.cpp:<line number>
9980 ...............................................................................
9981
9982 CmdLine.tests.cpp:<line number>: PASSED:
9983 CHECK( cli.parse({ "test", "--benchmark-resamples=20000" }) )
9984 with expansion:
9985 {?}
9986
9987 CmdLine.tests.cpp:<line number>: PASSED:
9988 REQUIRE( config.benchmarkResamples == 20000 )
9989 with expansion:
9990 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
9991
9992 -------------------------------------------------------------------------------
9993 Process can be configured on command line
9994 Benchmark options
9995 confidence-interval
9996 -------------------------------------------------------------------------------
9997 CmdLine.tests.cpp:<line number>
9998 ...............................................................................
9999
10000 CmdLine.tests.cpp:<line number>: PASSED:
10001 CHECK( cli.parse({ "test", "--benchmark-confidence-interval=0.99" }) )
10002 with expansion:
10003 {?}
10004
10005 CmdLine.tests.cpp:<line number>: PASSED:
10006 REQUIRE( config.benchmarkConfidenceInterval == Catch::Approx(0.99) )
10007 with expansion:
10008 0.98999999999999999
10009 ==
10010 Approx( 0.98999999999999999 )
10011
10012 -------------------------------------------------------------------------------
10013 Process can be configured on command line
10014 Benchmark options
10015 no-analysis
10016 -------------------------------------------------------------------------------
10017 CmdLine.tests.cpp:<line number>
10018 ...............................................................................
10019
10020 CmdLine.tests.cpp:<line number>: PASSED:
10021 CHECK( cli.parse({ "test", "--benchmark-no-analysis" }) )
10022 with expansion:
10023 {?}
10024
10025 CmdLine.tests.cpp:<line number>: PASSED:
10026 REQUIRE( config.benchmarkNoAnalysis )
10027 with expansion:
10028 true
10029
10030 -------------------------------------------------------------------------------
10031 Process can be configured on command line
10032 Benchmark options
10033 warmup-time
10034 -------------------------------------------------------------------------------
10035 CmdLine.tests.cpp:<line number>
10036 ...............................................................................
10037
10038 CmdLine.tests.cpp:<line number>: PASSED:
10039 CHECK( cli.parse({ "test", "--benchmark-warmup-time=10" }) )
10040 with expansion:
10041 {?}
10042
10043 CmdLine.tests.cpp:<line number>: PASSED:
10044 REQUIRE( config.benchmarkWarmupTime == 10 )
10045 with expansion:
10046 10 == 10
10047
10048 -------------------------------------------------------------------------------
10049 Product with differing arities - std::tuple<int, double, float>
10050 -------------------------------------------------------------------------------
10051 Misc.tests.cpp:<line number>
10052 ...............................................................................
10053
10054 Misc.tests.cpp:<line number>: PASSED:
10055 REQUIRE( std::tuple_size<TestType>::value >= 1 )
10056 with expansion:
10057 3 >= 1
10058
10059 -------------------------------------------------------------------------------
10060 Product with differing arities - std::tuple<int, double>
10061 -------------------------------------------------------------------------------
10062 Misc.tests.cpp:<line number>
10063 ...............................................................................
10064
10065 Misc.tests.cpp:<line number>: PASSED:
10066 REQUIRE( std::tuple_size<TestType>::value >= 1 )
10067 with expansion:
10068 2 >= 1
10069
10070 -------------------------------------------------------------------------------
10071 Product with differing arities - std::tuple<int>
10072 -------------------------------------------------------------------------------
10073 Misc.tests.cpp:<line number>
10074 ...............................................................................
10075
10076 Misc.tests.cpp:<line number>: PASSED:
10077 REQUIRE( std::tuple_size<TestType>::value >= 1 )
10078 with expansion:
10079 1 >= 1
10080
10081 -------------------------------------------------------------------------------
10082 Random seed generation accepts known methods
10083 -------------------------------------------------------------------------------
10084 RandomNumberGeneration.tests.cpp:<line number>
10085 ...............................................................................
10086
10087 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
10088 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
10089
10090 -------------------------------------------------------------------------------
10091 Random seed generation accepts known methods
10092 -------------------------------------------------------------------------------
10093 RandomNumberGeneration.tests.cpp:<line number>
10094 ...............................................................................
10095
10096 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
10097 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
10098
10099 -------------------------------------------------------------------------------
10100 Random seed generation accepts known methods
10101 -------------------------------------------------------------------------------
10102 RandomNumberGeneration.tests.cpp:<line number>
10103 ...............................................................................
10104
10105 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
10106 REQUIRE_NOTHROW( Catch::generateRandomSeed(method) )
10107
10108 -------------------------------------------------------------------------------
10109 Random seed generation reports unknown methods
10110 -------------------------------------------------------------------------------
10111 RandomNumberGeneration.tests.cpp:<line number>
10112 ...............................................................................
10113
10114 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
10115 REQUIRE_THROWS( Catch::generateRandomSeed(static_cast<Catch::GenerateFrom>(77)) )
10116
10117 -------------------------------------------------------------------------------
10118 Range type with sentinel
10119 -------------------------------------------------------------------------------
10120 ToString.tests.cpp:<line number>
10121 ...............................................................................
10122
10123 ToString.tests.cpp:<line number>: PASSED:
10124 CHECK( Catch::Detail::stringify(UsesSentinel{}) == "{ }" )
10125 with expansion:
10126 "{ }" == "{ }"
10127
10128 -------------------------------------------------------------------------------
10129 Reconstruction should be based on stringification: #914
10130 -------------------------------------------------------------------------------
10131 Decomposition.tests.cpp:<line number>
10132 ...............................................................................
10133
10134 Decomposition.tests.cpp:<line number>: FAILED:
10135 CHECK( truthy(false) )
10136 with expansion:
10137 Hey, its truthy!
10138
10139 -------------------------------------------------------------------------------
10140 Regex string matcher
10141 -------------------------------------------------------------------------------
10142 Matchers.tests.cpp:<line number>
10143 ...............................................................................
10144
10145 Matchers.tests.cpp:<line number>: FAILED:
10146 CHECK_THAT( testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) )
10147 with expansion:
10148 "this string contains 'abc' as a substring" matches "this STRING contains
10149 'abc' as a substring" case sensitively
10150
10151 Matchers.tests.cpp:<line number>: FAILED:
10152 CHECK_THAT( testStringForMatching(), Matches( "contains 'abc' as a substring" ) )
10153 with expansion:
10154 "this string contains 'abc' as a substring" matches "contains 'abc' as a
10155 substring" case sensitively
10156
10157 Matchers.tests.cpp:<line number>: FAILED:
10158 CHECK_THAT( testStringForMatching(), Matches( "this string contains 'abc' as a" ) )
10159 with expansion:
10160 "this string contains 'abc' as a substring" matches "this string contains
10161 'abc' as a" case sensitively
10162
10163 -------------------------------------------------------------------------------
10164 Registering reporter with '::' in name fails
10165 -------------------------------------------------------------------------------
10166 Reporters.tests.cpp:<line number>
10167 ...............................................................................
10168
10169 Reporters.tests.cpp:<line number>: PASSED:
10170 REQUIRE_THROWS_WITH( registry.registerReporter( "with::doublecolons", Catch::Detail::make_unique<TestReporterFactory>() ), "'::' is not allowed in reporter name: 'with::doublecolons'" )
10171 with expansion:
10172 "'::' is not allowed in reporter name: 'with::doublecolons'" equals: "'::' is
10173 not allowed in reporter name: 'with::doublecolons'"
10174
10175 -------------------------------------------------------------------------------
10176 Regression test #1
10177 -------------------------------------------------------------------------------
10178 Matchers.tests.cpp:<line number>
10179 ...............................................................................
10180
10181 Matchers.tests.cpp:<line number>: PASSED:
10182 CHECK_THAT( actual, !UnorderedEquals( expected ) )
10183 with expansion:
10184 { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
10185
10186 -------------------------------------------------------------------------------
10187 Reporter's write listings to provided stream
10188 -------------------------------------------------------------------------------
10189 Reporters.tests.cpp:<line number>
10190 ...............................................................................
10191
10192 Reporters.tests.cpp:<line number>: PASSED:
10193 REQUIRE_FALSE( factories.empty() )
10194 with expansion:
10195 !false
10196
10197 -------------------------------------------------------------------------------
10198 Reporter's write listings to provided stream
10199 Automake reporter lists tags
10200 -------------------------------------------------------------------------------
10201 Reporters.tests.cpp:<line number>
10202 ...............................................................................
10203
10204 Reporters.tests.cpp:<line number>: PASSED:
10205 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10206 with expansion:
10207 "All available tags:
10208 1 [fakeTag]
10209 1 tag
10210
10211 " contains: "fakeTag"
10212 with message:
10213 Tested reporter: Automake
10214
10215 -------------------------------------------------------------------------------
10216 Reporter's write listings to provided stream
10217 -------------------------------------------------------------------------------
10218 Reporters.tests.cpp:<line number>
10219 ...............................................................................
10220
10221 Reporters.tests.cpp:<line number>: PASSED:
10222 REQUIRE_FALSE( factories.empty() )
10223 with expansion:
10224 !false
10225
10226 -------------------------------------------------------------------------------
10227 Reporter's write listings to provided stream
10228 Automake reporter lists reporters
10229 -------------------------------------------------------------------------------
10230 Reporters.tests.cpp:<line number>
10231 ...............................................................................
10232
10233 Reporters.tests.cpp:<line number>: PASSED:
10234 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10235 with expansion:
10236 "Available reporters:
10237 fake reporter: fake description
10238
10239 " contains: "fake reporter"
10240 with message:
10241 Tested reporter: Automake
10242
10243 -------------------------------------------------------------------------------
10244 Reporter's write listings to provided stream
10245 -------------------------------------------------------------------------------
10246 Reporters.tests.cpp:<line number>
10247 ...............................................................................
10248
10249 Reporters.tests.cpp:<line number>: PASSED:
10250 REQUIRE_FALSE( factories.empty() )
10251 with expansion:
10252 !false
10253
10254 -------------------------------------------------------------------------------
10255 Reporter's write listings to provided stream
10256 Automake reporter lists tests
10257 -------------------------------------------------------------------------------
10258 Reporters.tests.cpp:<line number>
10259 ...............................................................................
10260
10261 Reporters.tests.cpp:<line number>: PASSED:
10262 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10263 with expansion:
10264 "All available test cases:
10265 fake test name
10266 [fakeTestTag]
10267 1 test case
10268
10269 " ( contains: "fake test name" and contains: "fakeTestTag" )
10270 with message:
10271 Tested reporter: Automake
10272
10273 -------------------------------------------------------------------------------
10274 Reporter's write listings to provided stream
10275 -------------------------------------------------------------------------------
10276 Reporters.tests.cpp:<line number>
10277 ...............................................................................
10278
10279 Reporters.tests.cpp:<line number>: PASSED:
10280 REQUIRE_FALSE( factories.empty() )
10281 with expansion:
10282 !false
10283
10284 -------------------------------------------------------------------------------
10285 Reporter's write listings to provided stream
10286 compact reporter lists tags
10287 -------------------------------------------------------------------------------
10288 Reporters.tests.cpp:<line number>
10289 ...............................................................................
10290
10291 Reporters.tests.cpp:<line number>: PASSED:
10292 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10293 with expansion:
10294 "All available tags:
10295 1 [fakeTag]
10296 1 tag
10297
10298 " contains: "fakeTag"
10299 with message:
10300 Tested reporter: compact
10301
10302 -------------------------------------------------------------------------------
10303 Reporter's write listings to provided stream
10304 -------------------------------------------------------------------------------
10305 Reporters.tests.cpp:<line number>
10306 ...............................................................................
10307
10308 Reporters.tests.cpp:<line number>: PASSED:
10309 REQUIRE_FALSE( factories.empty() )
10310 with expansion:
10311 !false
10312
10313 -------------------------------------------------------------------------------
10314 Reporter's write listings to provided stream
10315 compact reporter lists reporters
10316 -------------------------------------------------------------------------------
10317 Reporters.tests.cpp:<line number>
10318 ...............................................................................
10319
10320 Reporters.tests.cpp:<line number>: PASSED:
10321 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10322 with expansion:
10323 "Available reporters:
10324 fake reporter: fake description
10325
10326 " contains: "fake reporter"
10327 with message:
10328 Tested reporter: compact
10329
10330 -------------------------------------------------------------------------------
10331 Reporter's write listings to provided stream
10332 -------------------------------------------------------------------------------
10333 Reporters.tests.cpp:<line number>
10334 ...............................................................................
10335
10336 Reporters.tests.cpp:<line number>: PASSED:
10337 REQUIRE_FALSE( factories.empty() )
10338 with expansion:
10339 !false
10340
10341 -------------------------------------------------------------------------------
10342 Reporter's write listings to provided stream
10343 compact reporter lists tests
10344 -------------------------------------------------------------------------------
10345 Reporters.tests.cpp:<line number>
10346 ...............................................................................
10347
10348 Reporters.tests.cpp:<line number>: PASSED:
10349 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10350 with expansion:
10351 "All available test cases:
10352 fake test name
10353 [fakeTestTag]
10354 1 test case
10355
10356 " ( contains: "fake test name" and contains: "fakeTestTag" )
10357 with message:
10358 Tested reporter: compact
10359
10360 -------------------------------------------------------------------------------
10361 Reporter's write listings to provided stream
10362 -------------------------------------------------------------------------------
10363 Reporters.tests.cpp:<line number>
10364 ...............................................................................
10365
10366 Reporters.tests.cpp:<line number>: PASSED:
10367 REQUIRE_FALSE( factories.empty() )
10368 with expansion:
10369 !false
10370
10371 -------------------------------------------------------------------------------
10372 Reporter's write listings to provided stream
10373 console reporter lists tags
10374 -------------------------------------------------------------------------------
10375 Reporters.tests.cpp:<line number>
10376 ...............................................................................
10377
10378 Reporters.tests.cpp:<line number>: PASSED:
10379 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10380 with expansion:
10381 "All available tags:
10382 1 [fakeTag]
10383 1 tag
10384
10385 " contains: "fakeTag"
10386 with message:
10387 Tested reporter: console
10388
10389 -------------------------------------------------------------------------------
10390 Reporter's write listings to provided stream
10391 -------------------------------------------------------------------------------
10392 Reporters.tests.cpp:<line number>
10393 ...............................................................................
10394
10395 Reporters.tests.cpp:<line number>: PASSED:
10396 REQUIRE_FALSE( factories.empty() )
10397 with expansion:
10398 !false
10399
10400 -------------------------------------------------------------------------------
10401 Reporter's write listings to provided stream
10402 console reporter lists reporters
10403 -------------------------------------------------------------------------------
10404 Reporters.tests.cpp:<line number>
10405 ...............................................................................
10406
10407 Reporters.tests.cpp:<line number>: PASSED:
10408 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10409 with expansion:
10410 "Available reporters:
10411 fake reporter: fake description
10412
10413 " contains: "fake reporter"
10414 with message:
10415 Tested reporter: console
10416
10417 -------------------------------------------------------------------------------
10418 Reporter's write listings to provided stream
10419 -------------------------------------------------------------------------------
10420 Reporters.tests.cpp:<line number>
10421 ...............................................................................
10422
10423 Reporters.tests.cpp:<line number>: PASSED:
10424 REQUIRE_FALSE( factories.empty() )
10425 with expansion:
10426 !false
10427
10428 -------------------------------------------------------------------------------
10429 Reporter's write listings to provided stream
10430 console reporter lists tests
10431 -------------------------------------------------------------------------------
10432 Reporters.tests.cpp:<line number>
10433 ...............................................................................
10434
10435 Reporters.tests.cpp:<line number>: PASSED:
10436 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10437 with expansion:
10438 "All available test cases:
10439 fake test name
10440 [fakeTestTag]
10441 1 test case
10442
10443 " ( contains: "fake test name" and contains: "fakeTestTag" )
10444 with message:
10445 Tested reporter: console
10446
10447 -------------------------------------------------------------------------------
10448 Reporter's write listings to provided stream
10449 -------------------------------------------------------------------------------
10450 Reporters.tests.cpp:<line number>
10451 ...............................................................................
10452
10453 Reporters.tests.cpp:<line number>: PASSED:
10454 REQUIRE_FALSE( factories.empty() )
10455 with expansion:
10456 !false
10457
10458 -------------------------------------------------------------------------------
10459 Reporter's write listings to provided stream
10460 JSON reporter lists tags
10461 -------------------------------------------------------------------------------
10462 Reporters.tests.cpp:<line number>
10463 ...............................................................................
10464
10465 Reporters.tests.cpp:<line number>: PASSED:
10466 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10467 with expansion:
10468 "{
10469 "version": 1,
10470 "metadata": {
10471 "name": "",
10472 "rng-seed": 1234,
10473 "catch2-version": "<version>"
10474 },
10475 "listings": {
10476 "tags": [
10477 {
10478 "aliases": [
10479 "fakeTag"
10480 ],
10481 "count": 1
10482 }
10483 ]" contains: "fakeTag"
10484 with message:
10485 Tested reporter: JSON
10486
10487 -------------------------------------------------------------------------------
10488 Reporter's write listings to provided stream
10489 -------------------------------------------------------------------------------
10490 Reporters.tests.cpp:<line number>
10491 ...............................................................................
10492
10493 Reporters.tests.cpp:<line number>: PASSED:
10494 REQUIRE_FALSE( factories.empty() )
10495 with expansion:
10496 !false
10497
10498 -------------------------------------------------------------------------------
10499 Reporter's write listings to provided stream
10500 JSON reporter lists reporters
10501 -------------------------------------------------------------------------------
10502 Reporters.tests.cpp:<line number>
10503 ...............................................................................
10504
10505 Reporters.tests.cpp:<line number>: PASSED:
10506 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10507 with expansion:
10508 "{
10509 "version": 1,
10510 "metadata": {
10511 "name": "",
10512 "rng-seed": 1234,
10513 "catch2-version": "<version>"
10514 },
10515 "listings": {
10516 "reporters": [
10517 {
10518 "name": "fake reporter",
10519 "description": "fake description"
10520 }
10521 ]" contains: "fake reporter"
10522 with message:
10523 Tested reporter: JSON
10524
10525 -------------------------------------------------------------------------------
10526 Reporter's write listings to provided stream
10527 -------------------------------------------------------------------------------
10528 Reporters.tests.cpp:<line number>
10529 ...............................................................................
10530
10531 Reporters.tests.cpp:<line number>: PASSED:
10532 REQUIRE_FALSE( factories.empty() )
10533 with expansion:
10534 !false
10535
10536 -------------------------------------------------------------------------------
10537 Reporter's write listings to provided stream
10538 JSON reporter lists tests
10539 -------------------------------------------------------------------------------
10540 Reporters.tests.cpp:<line number>
10541 ...............................................................................
10542
10543 Reporters.tests.cpp:<line number>: PASSED:
10544 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10545 with expansion:
10546 "{
10547 "version": 1,
10548 "metadata": {
10549 "name": "",
10550 "rng-seed": 1234,
10551 "catch2-version": "<version>"
10552 },
10553 "listings": {
10554 "tests": [
10555 {
10556 "name": "fake test name",
10557 "class-name": "",
10558 "tags": [
10559 "fakeTestTag"
10560 ],
10561 "source-location": {
10562 "filename": "fake-file.cpp",
10563 "line": 123456789
10564 }
10565 }
10566 ]" ( contains: "fake test name" and contains: "fakeTestTag" )
10567 with message:
10568 Tested reporter: JSON
10569
10570 -------------------------------------------------------------------------------
10571 Reporter's write listings to provided stream
10572 -------------------------------------------------------------------------------
10573 Reporters.tests.cpp:<line number>
10574 ...............................................................................
10575
10576 Reporters.tests.cpp:<line number>: PASSED:
10577 REQUIRE_FALSE( factories.empty() )
10578 with expansion:
10579 !false
10580
10581 -------------------------------------------------------------------------------
10582 Reporter's write listings to provided stream
10583 JUnit reporter lists tags
10584 -------------------------------------------------------------------------------
10585 Reporters.tests.cpp:<line number>
10586 ...............................................................................
10587
10588 Reporters.tests.cpp:<line number>: PASSED:
10589 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10590 with expansion:
10591 "<?xml version="1.0" encoding="UTF-8"?>
10592 All available tags:
10593 1 [fakeTag]
10594 1 tag
10595
10596 " contains: "fakeTag"
10597 with message:
10598 Tested reporter: JUnit
10599
10600 -------------------------------------------------------------------------------
10601 Reporter's write listings to provided stream
10602 -------------------------------------------------------------------------------
10603 Reporters.tests.cpp:<line number>
10604 ...............................................................................
10605
10606 Reporters.tests.cpp:<line number>: PASSED:
10607 REQUIRE_FALSE( factories.empty() )
10608 with expansion:
10609 !false
10610
10611 -------------------------------------------------------------------------------
10612 Reporter's write listings to provided stream
10613 JUnit reporter lists reporters
10614 -------------------------------------------------------------------------------
10615 Reporters.tests.cpp:<line number>
10616 ...............................................................................
10617
10618 Reporters.tests.cpp:<line number>: PASSED:
10619 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10620 with expansion:
10621 "<?xml version="1.0" encoding="UTF-8"?>
10622 Available reporters:
10623 fake reporter: fake description
10624
10625 " contains: "fake reporter"
10626 with message:
10627 Tested reporter: JUnit
10628
10629 -------------------------------------------------------------------------------
10630 Reporter's write listings to provided stream
10631 -------------------------------------------------------------------------------
10632 Reporters.tests.cpp:<line number>
10633 ...............................................................................
10634
10635 Reporters.tests.cpp:<line number>: PASSED:
10636 REQUIRE_FALSE( factories.empty() )
10637 with expansion:
10638 !false
10639
10640 -------------------------------------------------------------------------------
10641 Reporter's write listings to provided stream
10642 JUnit reporter lists tests
10643 -------------------------------------------------------------------------------
10644 Reporters.tests.cpp:<line number>
10645 ...............................................................................
10646
10647 Reporters.tests.cpp:<line number>: PASSED:
10648 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10649 with expansion:
10650 "<?xml version="1.0" encoding="UTF-8"?>
10651 All available test cases:
10652 fake test name
10653 [fakeTestTag]
10654 1 test case
10655
10656 " ( contains: "fake test name" and contains: "fakeTestTag" )
10657 with message:
10658 Tested reporter: JUnit
10659
10660 -------------------------------------------------------------------------------
10661 Reporter's write listings to provided stream
10662 -------------------------------------------------------------------------------
10663 Reporters.tests.cpp:<line number>
10664 ...............................................................................
10665
10666 Reporters.tests.cpp:<line number>: PASSED:
10667 REQUIRE_FALSE( factories.empty() )
10668 with expansion:
10669 !false
10670
10671 -------------------------------------------------------------------------------
10672 Reporter's write listings to provided stream
10673 SonarQube reporter lists tags
10674 -------------------------------------------------------------------------------
10675 Reporters.tests.cpp:<line number>
10676 ...............................................................................
10677
10678 Reporters.tests.cpp:<line number>: PASSED:
10679 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10680 with expansion:
10681 "<?xml version="1.0" encoding="UTF-8"?>
10682 All available tags:
10683 1 [fakeTag]
10684 1 tag
10685
10686 " contains: "fakeTag"
10687 with message:
10688 Tested reporter: SonarQube
10689
10690 -------------------------------------------------------------------------------
10691 Reporter's write listings to provided stream
10692 -------------------------------------------------------------------------------
10693 Reporters.tests.cpp:<line number>
10694 ...............................................................................
10695
10696 Reporters.tests.cpp:<line number>: PASSED:
10697 REQUIRE_FALSE( factories.empty() )
10698 with expansion:
10699 !false
10700
10701 -------------------------------------------------------------------------------
10702 Reporter's write listings to provided stream
10703 SonarQube reporter lists reporters
10704 -------------------------------------------------------------------------------
10705 Reporters.tests.cpp:<line number>
10706 ...............................................................................
10707
10708 Reporters.tests.cpp:<line number>: PASSED:
10709 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10710 with expansion:
10711 "<?xml version="1.0" encoding="UTF-8"?>
10712 Available reporters:
10713 fake reporter: fake description
10714
10715 " contains: "fake reporter"
10716 with message:
10717 Tested reporter: SonarQube
10718
10719 -------------------------------------------------------------------------------
10720 Reporter's write listings to provided stream
10721 -------------------------------------------------------------------------------
10722 Reporters.tests.cpp:<line number>
10723 ...............................................................................
10724
10725 Reporters.tests.cpp:<line number>: PASSED:
10726 REQUIRE_FALSE( factories.empty() )
10727 with expansion:
10728 !false
10729
10730 -------------------------------------------------------------------------------
10731 Reporter's write listings to provided stream
10732 SonarQube reporter lists tests
10733 -------------------------------------------------------------------------------
10734 Reporters.tests.cpp:<line number>
10735 ...............................................................................
10736
10737 Reporters.tests.cpp:<line number>: PASSED:
10738 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10739 with expansion:
10740 "<?xml version="1.0" encoding="UTF-8"?>
10741 All available test cases:
10742 fake test name
10743 [fakeTestTag]
10744 1 test case
10745
10746 " ( contains: "fake test name" and contains: "fakeTestTag" )
10747 with message:
10748 Tested reporter: SonarQube
10749
10750 -------------------------------------------------------------------------------
10751 Reporter's write listings to provided stream
10752 -------------------------------------------------------------------------------
10753 Reporters.tests.cpp:<line number>
10754 ...............................................................................
10755
10756 Reporters.tests.cpp:<line number>: PASSED:
10757 REQUIRE_FALSE( factories.empty() )
10758 with expansion:
10759 !false
10760
10761 -------------------------------------------------------------------------------
10762 Reporter's write listings to provided stream
10763 TAP reporter lists tags
10764 -------------------------------------------------------------------------------
10765 Reporters.tests.cpp:<line number>
10766 ...............................................................................
10767
10768 Reporters.tests.cpp:<line number>: PASSED:
10769 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10770 with expansion:
10771 "All available tags:
10772 1 [fakeTag]
10773 1 tag
10774
10775 " contains: "fakeTag"
10776 with message:
10777 Tested reporter: TAP
10778
10779 -------------------------------------------------------------------------------
10780 Reporter's write listings to provided stream
10781 -------------------------------------------------------------------------------
10782 Reporters.tests.cpp:<line number>
10783 ...............................................................................
10784
10785 Reporters.tests.cpp:<line number>: PASSED:
10786 REQUIRE_FALSE( factories.empty() )
10787 with expansion:
10788 !false
10789
10790 -------------------------------------------------------------------------------
10791 Reporter's write listings to provided stream
10792 TAP reporter lists reporters
10793 -------------------------------------------------------------------------------
10794 Reporters.tests.cpp:<line number>
10795 ...............................................................................
10796
10797 Reporters.tests.cpp:<line number>: PASSED:
10798 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10799 with expansion:
10800 "Available reporters:
10801 fake reporter: fake description
10802
10803 " contains: "fake reporter"
10804 with message:
10805 Tested reporter: TAP
10806
10807 -------------------------------------------------------------------------------
10808 Reporter's write listings to provided stream
10809 -------------------------------------------------------------------------------
10810 Reporters.tests.cpp:<line number>
10811 ...............................................................................
10812
10813 Reporters.tests.cpp:<line number>: PASSED:
10814 REQUIRE_FALSE( factories.empty() )
10815 with expansion:
10816 !false
10817
10818 -------------------------------------------------------------------------------
10819 Reporter's write listings to provided stream
10820 TAP reporter lists tests
10821 -------------------------------------------------------------------------------
10822 Reporters.tests.cpp:<line number>
10823 ...............................................................................
10824
10825 Reporters.tests.cpp:<line number>: PASSED:
10826 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10827 with expansion:
10828 "All available test cases:
10829 fake test name
10830 [fakeTestTag]
10831 1 test case
10832
10833 " ( contains: "fake test name" and contains: "fakeTestTag" )
10834 with message:
10835 Tested reporter: TAP
10836
10837 -------------------------------------------------------------------------------
10838 Reporter's write listings to provided stream
10839 -------------------------------------------------------------------------------
10840 Reporters.tests.cpp:<line number>
10841 ...............................................................................
10842
10843 Reporters.tests.cpp:<line number>: PASSED:
10844 REQUIRE_FALSE( factories.empty() )
10845 with expansion:
10846 !false
10847
10848 -------------------------------------------------------------------------------
10849 Reporter's write listings to provided stream
10850 TeamCity reporter lists tags
10851 -------------------------------------------------------------------------------
10852 Reporters.tests.cpp:<line number>
10853 ...............................................................................
10854
10855 Reporters.tests.cpp:<line number>: PASSED:
10856 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10857 with expansion:
10858 "All available tags:
10859 1 [fakeTag]
10860 1 tag
10861
10862 " contains: "fakeTag"
10863 with message:
10864 Tested reporter: TeamCity
10865
10866 -------------------------------------------------------------------------------
10867 Reporter's write listings to provided stream
10868 -------------------------------------------------------------------------------
10869 Reporters.tests.cpp:<line number>
10870 ...............................................................................
10871
10872 Reporters.tests.cpp:<line number>: PASSED:
10873 REQUIRE_FALSE( factories.empty() )
10874 with expansion:
10875 !false
10876
10877 -------------------------------------------------------------------------------
10878 Reporter's write listings to provided stream
10879 TeamCity reporter lists reporters
10880 -------------------------------------------------------------------------------
10881 Reporters.tests.cpp:<line number>
10882 ...............................................................................
10883
10884 Reporters.tests.cpp:<line number>: PASSED:
10885 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10886 with expansion:
10887 "Available reporters:
10888 fake reporter: fake description
10889
10890 " contains: "fake reporter"
10891 with message:
10892 Tested reporter: TeamCity
10893
10894 -------------------------------------------------------------------------------
10895 Reporter's write listings to provided stream
10896 -------------------------------------------------------------------------------
10897 Reporters.tests.cpp:<line number>
10898 ...............................................................................
10899
10900 Reporters.tests.cpp:<line number>: PASSED:
10901 REQUIRE_FALSE( factories.empty() )
10902 with expansion:
10903 !false
10904
10905 -------------------------------------------------------------------------------
10906 Reporter's write listings to provided stream
10907 TeamCity reporter lists tests
10908 -------------------------------------------------------------------------------
10909 Reporters.tests.cpp:<line number>
10910 ...............................................................................
10911
10912 Reporters.tests.cpp:<line number>: PASSED:
10913 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
10914 with expansion:
10915 "All available test cases:
10916 fake test name
10917 [fakeTestTag]
10918 1 test case
10919
10920 " ( contains: "fake test name" and contains: "fakeTestTag" )
10921 with message:
10922 Tested reporter: TeamCity
10923
10924 -------------------------------------------------------------------------------
10925 Reporter's write listings to provided stream
10926 -------------------------------------------------------------------------------
10927 Reporters.tests.cpp:<line number>
10928 ...............................................................................
10929
10930 Reporters.tests.cpp:<line number>: PASSED:
10931 REQUIRE_FALSE( factories.empty() )
10932 with expansion:
10933 !false
10934
10935 -------------------------------------------------------------------------------
10936 Reporter's write listings to provided stream
10937 XML reporter lists tags
10938 -------------------------------------------------------------------------------
10939 Reporters.tests.cpp:<line number>
10940 ...............................................................................
10941
10942 Reporters.tests.cpp:<line number>: PASSED:
10943 REQUIRE_THAT( listingString, ContainsSubstring("fakeTag"s) )
10944 with expansion:
10945 "<?xml version="1.0" encoding="UTF-8"?>
10946 <TagsFromMatchingTests>
10947 <Tag>
10948 <Count>1</Count>
10949 <Aliases>
10950 <Alias>fakeTag</Alias>
10951 </Aliases>
10952 </Tag>
10953 </TagsFromMatchingTests>" contains: "fakeTag"
10954 with message:
10955 Tested reporter: XML
10956
10957 -------------------------------------------------------------------------------
10958 Reporter's write listings to provided stream
10959 -------------------------------------------------------------------------------
10960 Reporters.tests.cpp:<line number>
10961 ...............................................................................
10962
10963 Reporters.tests.cpp:<line number>: PASSED:
10964 REQUIRE_FALSE( factories.empty() )
10965 with expansion:
10966 !false
10967
10968 -------------------------------------------------------------------------------
10969 Reporter's write listings to provided stream
10970 XML reporter lists reporters
10971 -------------------------------------------------------------------------------
10972 Reporters.tests.cpp:<line number>
10973 ...............................................................................
10974
10975 Reporters.tests.cpp:<line number>: PASSED:
10976 REQUIRE_THAT( listingString, ContainsSubstring("fake reporter"s) )
10977 with expansion:
10978 "<?xml version="1.0" encoding="UTF-8"?>
10979 <AvailableReporters>
10980 <Reporter>
10981 <Name>fake reporter</Name>
10982 <Description>fake description</Description>
10983 </Reporter>
10984 </AvailableReporters>" contains: "fake reporter"
10985 with message:
10986 Tested reporter: XML
10987
10988 -------------------------------------------------------------------------------
10989 Reporter's write listings to provided stream
10990 -------------------------------------------------------------------------------
10991 Reporters.tests.cpp:<line number>
10992 ...............................................................................
10993
10994 Reporters.tests.cpp:<line number>: PASSED:
10995 REQUIRE_FALSE( factories.empty() )
10996 with expansion:
10997 !false
10998
10999 -------------------------------------------------------------------------------
11000 Reporter's write listings to provided stream
11001 XML reporter lists tests
11002 -------------------------------------------------------------------------------
11003 Reporters.tests.cpp:<line number>
11004 ...............................................................................
11005
11006 Reporters.tests.cpp:<line number>: PASSED:
11007 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
11008 with expansion:
11009 "<?xml version="1.0" encoding="UTF-8"?>
11010 <MatchingTests>
11011 <TestCase>
11012 <Name>fake test name</Name>
11013 <ClassName/>
11014 <Tags>[fakeTestTag]</Tags>
11015 <SourceInfo>
11016 <File>fake-file.cpp</File>
11017 <Line>123456789</Line>
11018 </SourceInfo>
11019 </TestCase>
11020 </MatchingTests>" ( contains: "fake test name" and contains: "fakeTestTag" )
11021 with message:
11022 Tested reporter: XML
11023
11024 -------------------------------------------------------------------------------
11025 Reproducer for #2309 - a very long description past 80 chars (default console
11026 width) with a late colon : blablabla
11027 -------------------------------------------------------------------------------
11028 Reporters.tests.cpp:<line number>
11029 ...............................................................................
11030
11031 Reporters.tests.cpp:<line number>: PASSED:
11032
11033 -------------------------------------------------------------------------------
11034 SUCCEED counts as a test pass
11035 -------------------------------------------------------------------------------
11036 Message.tests.cpp:<line number>
11037 ...............................................................................
11038
11039 Message.tests.cpp:<line number>: PASSED:
11040 with message:
11041 this is a success
11042
11043 -------------------------------------------------------------------------------
11044 SUCCEED does not require an argument
11045 -------------------------------------------------------------------------------
11046 Message.tests.cpp:<line number>
11047 ...............................................................................
11048
11049 Message.tests.cpp:<line number>: PASSED:
11050
11051 -------------------------------------------------------------------------------
11052 Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
11053 methods
11054 Given: No operations precede me
11055 -------------------------------------------------------------------------------
11056 BDD.tests.cpp:<line number>
11057 ...............................................................................
11058
11059 BDD.tests.cpp:<line number>: PASSED:
11060 REQUIRE( before == 0 )
11061 with expansion:
11062 0 == 0
11063
11064 -------------------------------------------------------------------------------
11065 Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or
11066 methods
11067 Given: No operations precede me
11068 When: We get the count
11069 Then: Subsequently values are higher
11070 -------------------------------------------------------------------------------
11071 BDD.tests.cpp:<line number>
11072 ...............................................................................
11073
11074 BDD.tests.cpp:<line number>: PASSED:
11075 REQUIRE( after > before )
11076 with expansion:
11077 1 > 0
11078
11079 -------------------------------------------------------------------------------
11080 Scenario: Do that thing with the thing
11081 Given: This stuff exists
11082 And given: And some assumption
11083 When: I do this
11084 Then: it should do this
11085 -------------------------------------------------------------------------------
11086 BDD.tests.cpp:<line number>
11087 ...............................................................................
11088
11089 BDD.tests.cpp:<line number>: PASSED:
11090 REQUIRE( itDoesThis() )
11091 with expansion:
11092 true
11093
11094 -------------------------------------------------------------------------------
11095 Scenario: Do that thing with the thing
11096 Given: This stuff exists
11097 And given: And some assumption
11098 When: I do this
11099 Then: it should do this
11100 And: do that
11101 -------------------------------------------------------------------------------
11102 BDD.tests.cpp:<line number>
11103 ...............................................................................
11104
11105 BDD.tests.cpp:<line number>: PASSED:
11106 REQUIRE( itDoesThat() )
11107 with expansion:
11108 true
11109
11110 -------------------------------------------------------------------------------
11111 Scenario: This is a really long scenario name to see how the list command deals
11112 with wrapping
11113 Given: A section name that is so long that it cannot fit in a single
11114 console width
11115 When: The test headers are printed as part of the normal running of the
11116 scenario
11117 Then: The, deliberately very long and overly verbose (you see what I did
11118 there?) section names must wrap, along with an indent
11119 -------------------------------------------------------------------------------
11120 BDD.tests.cpp:<line number>
11121 ...............................................................................
11122
11123 BDD.tests.cpp:<line number>: PASSED:
11124 with message:
11125 boo!
11126
11127 -------------------------------------------------------------------------------
11128 Scenario: Vector resizing affects size and capacity
11129 Given: an empty vector
11130 -------------------------------------------------------------------------------
11131 BDD.tests.cpp:<line number>
11132 ...............................................................................
11133
11134 BDD.tests.cpp:<line number>: PASSED:
11135 REQUIRE( v.size() == 0 )
11136 with expansion:
11137 0 == 0
11138
11139 -------------------------------------------------------------------------------
11140 Scenario: Vector resizing affects size and capacity
11141 Given: an empty vector
11142 When: it is made larger
11143 Then: the size and capacity go up
11144 -------------------------------------------------------------------------------
11145 BDD.tests.cpp:<line number>
11146 ...............................................................................
11147
11148 BDD.tests.cpp:<line number>: PASSED:
11149 REQUIRE( v.size() == 10 )
11150 with expansion:
11151 10 == 10
11152
11153 BDD.tests.cpp:<line number>: PASSED:
11154 REQUIRE( v.capacity() >= 10 )
11155 with expansion:
11156 10 >= 10
11157
11158 -------------------------------------------------------------------------------
11159 Scenario: Vector resizing affects size and capacity
11160 Given: an empty vector
11161 When: it is made larger
11162 Then: the size and capacity go up
11163 And when: it is made smaller again
11164 Then: the size goes down but the capacity stays the same
11165 -------------------------------------------------------------------------------
11166 BDD.tests.cpp:<line number>
11167 ...............................................................................
11168
11169 BDD.tests.cpp:<line number>: PASSED:
11170 REQUIRE( v.size() == 5 )
11171 with expansion:
11172 5 == 5
11173
11174 BDD.tests.cpp:<line number>: PASSED:
11175 REQUIRE( v.capacity() >= 10 )
11176 with expansion:
11177 10 >= 10
11178
11179 -------------------------------------------------------------------------------
11180 Scenario: Vector resizing affects size and capacity
11181 Given: an empty vector
11182 -------------------------------------------------------------------------------
11183 BDD.tests.cpp:<line number>
11184 ...............................................................................
11185
11186 BDD.tests.cpp:<line number>: PASSED:
11187 REQUIRE( v.size() == 0 )
11188 with expansion:
11189 0 == 0
11190
11191 -------------------------------------------------------------------------------
11192 Scenario: Vector resizing affects size and capacity
11193 Given: an empty vector
11194 When: we reserve more space
11195 Then: The capacity is increased but the size remains the same
11196 -------------------------------------------------------------------------------
11197 BDD.tests.cpp:<line number>
11198 ...............................................................................
11199
11200 BDD.tests.cpp:<line number>: PASSED:
11201 REQUIRE( v.capacity() >= 10 )
11202 with expansion:
11203 10 >= 10
11204
11205 BDD.tests.cpp:<line number>: PASSED:
11206 REQUIRE( v.size() == 0 )
11207 with expansion:
11208 0 == 0
11209
11210 -------------------------------------------------------------------------------
11211 Scoped message applies to all assertions in scope
11212 -------------------------------------------------------------------------------
11213 Message.tests.cpp:<line number>
11214 ...............................................................................
11215
11216 Message.tests.cpp:<line number>: FAILED:
11217 CHECK( false )
11218 with message:
11219 This will be reported multiple times
11220
11221 Message.tests.cpp:<line number>: FAILED:
11222 CHECK( false )
11223 with message:
11224 This will be reported multiple times
11225
11226 -------------------------------------------------------------------------------
11227 Scoped messages do not leave block with an exception
11228 -------------------------------------------------------------------------------
11229 Message.tests.cpp:<line number>
11230 ...............................................................................
11231
11232 Message.tests.cpp:<line number>: FAILED:
11233 REQUIRE( false )
11234 with message:
11235 Should be in scope at the end
11236
11237 -------------------------------------------------------------------------------
11238 Scoped messages outlive section end
11239 Dummy section
11240 -------------------------------------------------------------------------------
11241 Message.tests.cpp:<line number>
11242 ...............................................................................
11243
11244 Message.tests.cpp:<line number>: PASSED:
11245 CHECK( true )
11246 with message:
11247 Should survive a section end
11248
11249 -------------------------------------------------------------------------------
11250 Scoped messages outlive section end
11251 -------------------------------------------------------------------------------
11252 Message.tests.cpp:<line number>
11253 ...............................................................................
11254
11255 Message.tests.cpp:<line number>: FAILED:
11256 REQUIRE( false )
11257 with message:
11258 Should survive a section end
11259
11260 A string sent directly to stdout
11261 A string sent directly to stderr
11262 A string sent to stderr via clog
11263 -------------------------------------------------------------------------------
11264 Sends stuff to stdout and stderr
11265 -------------------------------------------------------------------------------
11266 Misc.tests.cpp:<line number>
11267 ...............................................................................
11268
11269
11270 No assertions in test case 'Sends stuff to stdout and stderr'
11271
11272 -------------------------------------------------------------------------------
11273 Some simple comparisons between doubles
11274 -------------------------------------------------------------------------------
11275 Approx.tests.cpp:<line number>
11276 ...............................................................................
11277
11278 Approx.tests.cpp:<line number>: PASSED:
11279 REQUIRE( d == Approx( 1.23 ) )
11280 with expansion:
11281 1.22999999999999998
11282 ==
11283 Approx( 1.22999999999999998 )
11284
11285 Approx.tests.cpp:<line number>: PASSED:
11286 REQUIRE( d != Approx( 1.22 ) )
11287 with expansion:
11288 1.22999999999999998
11289 !=
11290 Approx( 1.21999999999999997 )
11291
11292 Approx.tests.cpp:<line number>: PASSED:
11293 REQUIRE( d != Approx( 1.24 ) )
11294 with expansion:
11295 1.22999999999999998
11296 !=
11297 Approx( 1.23999999999999999 )
11298
11299 Approx.tests.cpp:<line number>: PASSED:
11300 REQUIRE( d == 1.23_a )
11301 with expansion:
11302 1.22999999999999998
11303 ==
11304 Approx( 1.22999999999999998 )
11305
11306 Approx.tests.cpp:<line number>: PASSED:
11307 REQUIRE( d != 1.22_a )
11308 with expansion:
11309 1.22999999999999998
11310 !=
11311 Approx( 1.21999999999999997 )
11312
11313 Approx.tests.cpp:<line number>: PASSED:
11314 REQUIRE( Approx( d ) == 1.23 )
11315 with expansion:
11316 Approx( 1.22999999999999998 )
11317 ==
11318 1.22999999999999998
11319
11320 Approx.tests.cpp:<line number>: PASSED:
11321 REQUIRE( Approx( d ) != 1.22 )
11322 with expansion:
11323 Approx( 1.22999999999999998 )
11324 !=
11325 1.21999999999999997
11326
11327 Approx.tests.cpp:<line number>: PASSED:
11328 REQUIRE( Approx( d ) != 1.24 )
11329 with expansion:
11330 Approx( 1.22999999999999998 )
11331 !=
11332 1.23999999999999999
11333
11334 Message from section one
11335 -------------------------------------------------------------------------------
11336 Standard output from all sections is reported
11337 one
11338 -------------------------------------------------------------------------------
11339 Message.tests.cpp:<line number>
11340 ...............................................................................
11341
11342
11343 No assertions in section 'one'
11344
11345 Message from section two
11346 -------------------------------------------------------------------------------
11347 Standard output from all sections is reported
11348 two
11349 -------------------------------------------------------------------------------
11350 Message.tests.cpp:<line number>
11351 ...............................................................................
11352
11353
11354 No assertions in section 'two'
11355
11356 -------------------------------------------------------------------------------
11357 StartsWith string matcher
11358 -------------------------------------------------------------------------------
11359 Matchers.tests.cpp:<line number>
11360 ...............................................................................
11361
11362 Matchers.tests.cpp:<line number>: FAILED:
11363 CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) )
11364 with expansion:
11365 "this string contains 'abc' as a substring" starts with: "This String"
11366
11367 Matchers.tests.cpp:<line number>: FAILED:
11368 CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) )
11369 with expansion:
11370 "this string contains 'abc' as a substring" starts with: "string" (case
11371 insensitive)
11372
11373 -------------------------------------------------------------------------------
11374 Static arrays are convertible to string
11375 Single item
11376 -------------------------------------------------------------------------------
11377 ToStringGeneral.tests.cpp:<line number>
11378 ...............................................................................
11379
11380 ToStringGeneral.tests.cpp:<line number>: PASSED:
11381 REQUIRE( Catch::Detail::stringify(singular) == "{ 1 }" )
11382 with expansion:
11383 "{ 1 }" == "{ 1 }"
11384
11385 -------------------------------------------------------------------------------
11386 Static arrays are convertible to string
11387 Multiple
11388 -------------------------------------------------------------------------------
11389 ToStringGeneral.tests.cpp:<line number>
11390 ...............................................................................
11391
11392 ToStringGeneral.tests.cpp:<line number>: PASSED:
11393 REQUIRE( Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" )
11394 with expansion:
11395 "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
11396
11397 -------------------------------------------------------------------------------
11398 Static arrays are convertible to string
11399 Non-trivial inner items
11400 -------------------------------------------------------------------------------
11401 ToStringGeneral.tests.cpp:<line number>
11402 ...............................................................................
11403
11404 ToStringGeneral.tests.cpp:<line number>: PASSED:
11405 REQUIRE( Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" )
11406 with expansion:
11407 "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
11408 ==
11409 "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
11410
11411 -------------------------------------------------------------------------------
11412 String matchers
11413 -------------------------------------------------------------------------------
11414 Matchers.tests.cpp:<line number>
11415 ...............................................................................
11416
11417 Matchers.tests.cpp:<line number>: PASSED:
11418 REQUIRE_THAT( testStringForMatching(), ContainsSubstring( "string" ) )
11419 with expansion:
11420 "this string contains 'abc' as a substring" contains: "string"
11421
11422 Matchers.tests.cpp:<line number>: PASSED:
11423 REQUIRE_THAT( testStringForMatching(), ContainsSubstring( "string", Catch::CaseSensitive::No ) )
11424 with expansion:
11425 "this string contains 'abc' as a substring" contains: "string" (case
11426 insensitive)
11427
11428 Matchers.tests.cpp:<line number>: PASSED:
11429 CHECK_THAT( testStringForMatching(), ContainsSubstring( "abc" ) )
11430 with expansion:
11431 "this string contains 'abc' as a substring" contains: "abc"
11432
11433 Matchers.tests.cpp:<line number>: PASSED:
11434 CHECK_THAT( testStringForMatching(), ContainsSubstring( "aBC", Catch::CaseSensitive::No ) )
11435 with expansion:
11436 "this string contains 'abc' as a substring" contains: "abc" (case
11437 insensitive)
11438
11439 Matchers.tests.cpp:<line number>: PASSED:
11440 CHECK_THAT( testStringForMatching(), StartsWith( "this" ) )
11441 with expansion:
11442 "this string contains 'abc' as a substring" starts with: "this"
11443
11444 Matchers.tests.cpp:<line number>: PASSED:
11445 CHECK_THAT( testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) )
11446 with expansion:
11447 "this string contains 'abc' as a substring" starts with: "this" (case
11448 insensitive)
11449
11450 Matchers.tests.cpp:<line number>: PASSED:
11451 CHECK_THAT( testStringForMatching(), EndsWith( "substring" ) )
11452 with expansion:
11453 "this string contains 'abc' as a substring" ends with: "substring"
11454
11455 Matchers.tests.cpp:<line number>: PASSED:
11456 CHECK_THAT( testStringForMatching(), EndsWith( " SuBsTrInG", Catch::CaseSensitive::No ) )
11457 with expansion:
11458 "this string contains 'abc' as a substring" ends with: " substring" (case
11459 insensitive)
11460
11461 -------------------------------------------------------------------------------
11462 StringRef
11463 Empty string
11464 -------------------------------------------------------------------------------
11465 String.tests.cpp:<line number>
11466 ...............................................................................
11467
11468 String.tests.cpp:<line number>: PASSED:
11469 REQUIRE( empty.empty() )
11470 with expansion:
11471 true
11472
11473 String.tests.cpp:<line number>: PASSED:
11474 REQUIRE( empty.size() == 0 )
11475 with expansion:
11476 0 == 0
11477
11478 String.tests.cpp:<line number>: PASSED:
11479 REQUIRE( std::strcmp( empty.data(), "" ) == 0 )
11480 with expansion:
11481 0 == 0
11482
11483 -------------------------------------------------------------------------------
11484 StringRef
11485 From string literal
11486 -------------------------------------------------------------------------------
11487 String.tests.cpp:<line number>
11488 ...............................................................................
11489
11490 String.tests.cpp:<line number>: PASSED:
11491 REQUIRE( s.empty() == false )
11492 with expansion:
11493 false == false
11494
11495 String.tests.cpp:<line number>: PASSED:
11496 REQUIRE( s.size() == 5 )
11497 with expansion:
11498 5 == 5
11499
11500 String.tests.cpp:<line number>: PASSED:
11501 REQUIRE( std::strcmp( rawChars, "hello" ) == 0 )
11502 with expansion:
11503 0 == 0
11504
11505 String.tests.cpp:<line number>: PASSED:
11506 REQUIRE( s.data() == rawChars )
11507 with expansion:
11508 "hello" == "hello"
11509
11510 -------------------------------------------------------------------------------
11511 StringRef
11512 From sub-string
11513 -------------------------------------------------------------------------------
11514 String.tests.cpp:<line number>
11515 ...............................................................................
11516
11517 String.tests.cpp:<line number>: PASSED:
11518 REQUIRE( original == "original" )
11519
11520 String.tests.cpp:<line number>: PASSED:
11521 REQUIRE_NOTHROW( original.data() )
11522
11523 -------------------------------------------------------------------------------
11524 StringRef
11525 Copy construction is shallow
11526 -------------------------------------------------------------------------------
11527 String.tests.cpp:<line number>
11528 ...............................................................................
11529
11530 String.tests.cpp:<line number>: PASSED:
11531 REQUIRE( original.begin() == copy.begin() )
11532 with expansion:
11533 "original string" == "original string"
11534
11535 -------------------------------------------------------------------------------
11536 StringRef
11537 Copy assignment is shallow
11538 -------------------------------------------------------------------------------
11539 String.tests.cpp:<line number>
11540 ...............................................................................
11541
11542 String.tests.cpp:<line number>: PASSED:
11543 REQUIRE( original.begin() == copy.begin() )
11544 with expansion:
11545 "original string" == "original string"
11546
11547 -------------------------------------------------------------------------------
11548 StringRef
11549 Substrings
11550 zero-based substring
11551 -------------------------------------------------------------------------------
11552 String.tests.cpp:<line number>
11553 ...............................................................................
11554
11555 String.tests.cpp:<line number>: PASSED:
11556 REQUIRE( ss.empty() == false )
11557 with expansion:
11558 false == false
11559
11560 String.tests.cpp:<line number>: PASSED:
11561 REQUIRE( ss.size() == 5 )
11562 with expansion:
11563 5 == 5
11564
11565 String.tests.cpp:<line number>: PASSED:
11566 REQUIRE( std::strncmp( ss.data(), "hello", 5 ) == 0 )
11567 with expansion:
11568 0 == 0
11569
11570 String.tests.cpp:<line number>: PASSED:
11571 REQUIRE( ss == "hello" )
11572 with expansion:
11573 hello == "hello"
11574
11575 -------------------------------------------------------------------------------
11576 StringRef
11577 Substrings
11578 non-zero-based substring
11579 -------------------------------------------------------------------------------
11580 String.tests.cpp:<line number>
11581 ...............................................................................
11582
11583 String.tests.cpp:<line number>: PASSED:
11584 REQUIRE( ss.size() == 6 )
11585 with expansion:
11586 6 == 6
11587
11588 String.tests.cpp:<line number>: PASSED:
11589 REQUIRE( std::strcmp( ss.data(), "world!" ) == 0 )
11590 with expansion:
11591 0 == 0
11592
11593 -------------------------------------------------------------------------------
11594 StringRef
11595 Substrings
11596 Pointer values of full refs should match
11597 -------------------------------------------------------------------------------
11598 String.tests.cpp:<line number>
11599 ...............................................................................
11600
11601 String.tests.cpp:<line number>: PASSED:
11602 REQUIRE( s.data() == s2.data() )
11603 with expansion:
11604 "hello world!" == "hello world!"
11605
11606 -------------------------------------------------------------------------------
11607 StringRef
11608 Substrings
11609 Pointer values of substring refs should also match
11610 -------------------------------------------------------------------------------
11611 String.tests.cpp:<line number>
11612 ...............................................................................
11613
11614 String.tests.cpp:<line number>: PASSED:
11615 REQUIRE( s.data() == ss.data() )
11616 with expansion:
11617 "hello world!" == "hello world!"
11618
11619 -------------------------------------------------------------------------------
11620 StringRef
11621 Substrings
11622 Past the end substring
11623 -------------------------------------------------------------------------------
11624 String.tests.cpp:<line number>
11625 ...............................................................................
11626
11627 String.tests.cpp:<line number>: PASSED:
11628 REQUIRE( s.substr(s.size() + 1, 123).empty() )
11629 with expansion:
11630 true
11631
11632 -------------------------------------------------------------------------------
11633 StringRef
11634 Substrings
11635 Substring off the end are trimmed
11636 -------------------------------------------------------------------------------
11637 String.tests.cpp:<line number>
11638 ...............................................................................
11639
11640 String.tests.cpp:<line number>: PASSED:
11641 REQUIRE( std::strcmp(ss.data(), "world!") == 0 )
11642 with expansion:
11643 0 == 0
11644
11645 -------------------------------------------------------------------------------
11646 StringRef
11647 Substrings
11648 substring start after the end is empty
11649 -------------------------------------------------------------------------------
11650 String.tests.cpp:<line number>
11651 ...............................................................................
11652
11653 String.tests.cpp:<line number>: PASSED:
11654 REQUIRE( s.substr(1'000'000, 1).empty() )
11655 with expansion:
11656 true
11657
11658 -------------------------------------------------------------------------------
11659 StringRef
11660 Comparisons are deep
11661 -------------------------------------------------------------------------------
11662 String.tests.cpp:<line number>
11663 ...............................................................................
11664
11665 String.tests.cpp:<line number>: PASSED:
11666 CHECK( reinterpret_cast<char*>(buffer1) != reinterpret_cast<char*>(buffer2) )
11667 with expansion:
11668 "Hello" != "Hello"
11669
11670 String.tests.cpp:<line number>: PASSED:
11671 REQUIRE( left == right )
11672 with expansion:
11673 Hello == Hello
11674
11675 String.tests.cpp:<line number>: PASSED:
11676 REQUIRE( left != left.substr(0, 3) )
11677 with expansion:
11678 Hello != Hel
11679
11680 -------------------------------------------------------------------------------
11681 StringRef
11682 from std::string
11683 implicitly constructed
11684 -------------------------------------------------------------------------------
11685 String.tests.cpp:<line number>
11686 ...............................................................................
11687
11688 String.tests.cpp:<line number>: PASSED:
11689 REQUIRE( sr == "a standard string" )
11690 with expansion:
11691 a standard string == "a standard string"
11692
11693 String.tests.cpp:<line number>: PASSED:
11694 REQUIRE( sr.size() == stdStr.size() )
11695 with expansion:
11696 17 == 17
11697
11698 -------------------------------------------------------------------------------
11699 StringRef
11700 from std::string
11701 explicitly constructed
11702 -------------------------------------------------------------------------------
11703 String.tests.cpp:<line number>
11704 ...............................................................................
11705
11706 String.tests.cpp:<line number>: PASSED:
11707 REQUIRE( sr == "a standard string" )
11708 with expansion:
11709 a standard string == "a standard string"
11710
11711 String.tests.cpp:<line number>: PASSED:
11712 REQUIRE( sr.size() == stdStr.size() )
11713 with expansion:
11714 17 == 17
11715
11716 -------------------------------------------------------------------------------
11717 StringRef
11718 from std::string
11719 assigned
11720 -------------------------------------------------------------------------------
11721 String.tests.cpp:<line number>
11722 ...............................................................................
11723
11724 String.tests.cpp:<line number>: PASSED:
11725 REQUIRE( sr == "a standard string" )
11726 with expansion:
11727 a standard string == "a standard string"
11728
11729 String.tests.cpp:<line number>: PASSED:
11730 REQUIRE( sr.size() == stdStr.size() )
11731 with expansion:
11732 17 == 17
11733
11734 -------------------------------------------------------------------------------
11735 StringRef
11736 to std::string
11737 explicitly constructed
11738 -------------------------------------------------------------------------------
11739 String.tests.cpp:<line number>
11740 ...............................................................................
11741
11742 String.tests.cpp:<line number>: PASSED:
11743 REQUIRE( stdStr == "a stringref" )
11744 with expansion:
11745 "a stringref" == "a stringref"
11746
11747 String.tests.cpp:<line number>: PASSED:
11748 REQUIRE( stdStr.size() == sr.size() )
11749 with expansion:
11750 11 == 11
11751
11752 -------------------------------------------------------------------------------
11753 StringRef
11754 to std::string
11755 assigned
11756 -------------------------------------------------------------------------------
11757 String.tests.cpp:<line number>
11758 ...............................................................................
11759
11760 String.tests.cpp:<line number>: PASSED:
11761 REQUIRE( stdStr == "a stringref" )
11762 with expansion:
11763 "a stringref" == "a stringref"
11764
11765 String.tests.cpp:<line number>: PASSED:
11766 REQUIRE( stdStr.size() == sr.size() )
11767 with expansion:
11768 11 == 11
11769
11770 -------------------------------------------------------------------------------
11771 StringRef
11772 std::string += StringRef
11773 -------------------------------------------------------------------------------
11774 String.tests.cpp:<line number>
11775 ...............................................................................
11776
11777 String.tests.cpp:<line number>: PASSED:
11778 REQUIRE( lhs == "some string += the stringref contents" )
11779 with expansion:
11780 "some string += the stringref contents"
11781 ==
11782 "some string += the stringref contents"
11783
11784 -------------------------------------------------------------------------------
11785 StringRef
11786 StringRef + StringRef
11787 -------------------------------------------------------------------------------
11788 String.tests.cpp:<line number>
11789 ...............................................................................
11790
11791 String.tests.cpp:<line number>: PASSED:
11792 REQUIRE( together == "abrakadabra" )
11793 with expansion:
11794 "abrakadabra" == "abrakadabra"
11795
11796 -------------------------------------------------------------------------------
11797 StringRef at compilation time
11798 Simple constructors
11799 -------------------------------------------------------------------------------
11800 String.tests.cpp:<line number>
11801 ...............................................................................
11802
11803 String.tests.cpp:<line number>: PASSED:
11804 with message:
11805 empty.size() == 0
11806
11807 String.tests.cpp:<line number>: PASSED:
11808 with message:
11809 empty.begin() == empty.end()
11810
11811 String.tests.cpp:<line number>: PASSED:
11812 with message:
11813 stringref.size() == 3
11814
11815 String.tests.cpp:<line number>: PASSED:
11816 with message:
11817 stringref.data() == abc
11818
11819 String.tests.cpp:<line number>: PASSED:
11820 with message:
11821 stringref.begin() == abc
11822
11823 String.tests.cpp:<line number>: PASSED:
11824 with message:
11825 stringref.begin() != stringref.end()
11826
11827 String.tests.cpp:<line number>: PASSED:
11828 with message:
11829 stringref.substr(10, 0).empty()
11830
11831 String.tests.cpp:<line number>: PASSED:
11832 with message:
11833 stringref.substr(2, 1).data() == abc + 2
11834
11835 String.tests.cpp:<line number>: PASSED:
11836 with message:
11837 stringref[1] == 'b'
11838
11839 String.tests.cpp:<line number>: PASSED:
11840 with message:
11841 shortened.size() == 2
11842
11843 String.tests.cpp:<line number>: PASSED:
11844 with message:
11845 shortened.data() == abc
11846
11847 String.tests.cpp:<line number>: PASSED:
11848 with message:
11849 shortened.begin() != shortened.end()
11850
11851 -------------------------------------------------------------------------------
11852 StringRef at compilation time
11853 UDL construction
11854 -------------------------------------------------------------------------------
11855 String.tests.cpp:<line number>
11856 ...............................................................................
11857
11858 String.tests.cpp:<line number>: PASSED:
11859 with message:
11860 !(sr1.empty())
11861
11862 String.tests.cpp:<line number>: PASSED:
11863 with message:
11864 sr1.size() == 3
11865
11866 String.tests.cpp:<line number>: PASSED:
11867 with message:
11868 sr2.empty()
11869
11870 String.tests.cpp:<line number>: PASSED:
11871 with message:
11872 sr2.size() == 0
11873
11874 -------------------------------------------------------------------------------
11875 Stringifying char arrays with statically known sizes - char
11876 -------------------------------------------------------------------------------
11877 ToString.tests.cpp:<line number>
11878 ...............................................................................
11879
11880 ToString.tests.cpp:<line number>: PASSED:
11881 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
11882 with expansion:
11883 ""abc"" == ""abc""
11884
11885 ToString.tests.cpp:<line number>: PASSED:
11886 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
11887 with expansion:
11888 ""abc"" == ""abc""
11889
11890 -------------------------------------------------------------------------------
11891 Stringifying char arrays with statically known sizes - signed char
11892 -------------------------------------------------------------------------------
11893 ToString.tests.cpp:<line number>
11894 ...............................................................................
11895
11896 ToString.tests.cpp:<line number>: PASSED:
11897 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
11898 with expansion:
11899 ""abc"" == ""abc""
11900
11901 ToString.tests.cpp:<line number>: PASSED:
11902 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
11903 with expansion:
11904 ""abc"" == ""abc""
11905
11906 -------------------------------------------------------------------------------
11907 Stringifying char arrays with statically known sizes - unsigned char
11908 -------------------------------------------------------------------------------
11909 ToString.tests.cpp:<line number>
11910 ...............................................................................
11911
11912 ToString.tests.cpp:<line number>: PASSED:
11913 CHECK( ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s )
11914 with expansion:
11915 ""abc"" == ""abc""
11916
11917 ToString.tests.cpp:<line number>: PASSED:
11918 CHECK( ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s )
11919 with expansion:
11920 ""abc"" == ""abc""
11921
11922 -------------------------------------------------------------------------------
11923 Stringifying std::chrono::duration helpers
11924 -------------------------------------------------------------------------------
11925 ToStringChrono.tests.cpp:<line number>
11926 ...............................................................................
11927
11928 ToStringChrono.tests.cpp:<line number>: PASSED:
11929 REQUIRE( minute == seconds )
11930 with expansion:
11931 1 m == 60 s
11932
11933 ToStringChrono.tests.cpp:<line number>: PASSED:
11934 REQUIRE( hour != seconds )
11935 with expansion:
11936 1 h != 60 s
11937
11938 ToStringChrono.tests.cpp:<line number>: PASSED:
11939 REQUIRE( micro != milli )
11940 with expansion:
11941 1 us != 1 ms
11942
11943 ToStringChrono.tests.cpp:<line number>: PASSED:
11944 REQUIRE( nano != micro )
11945 with expansion:
11946 1 ns != 1 us
11947
11948 -------------------------------------------------------------------------------
11949 Stringifying std::chrono::duration with weird ratios
11950 -------------------------------------------------------------------------------
11951 ToStringChrono.tests.cpp:<line number>
11952 ...............................................................................
11953
11954 ToStringChrono.tests.cpp:<line number>: PASSED:
11955 REQUIRE( half_minute != femto_second )
11956 with expansion:
11957 1 [30/1]s != 1 fs
11958
11959 ToStringChrono.tests.cpp:<line number>: PASSED:
11960 REQUIRE( pico_second != atto_second )
11961 with expansion:
11962 1 ps != 1 as
11963
11964 -------------------------------------------------------------------------------
11965 Stringifying std::chrono::time_point<system_clock>
11966 -------------------------------------------------------------------------------
11967 ToStringChrono.tests.cpp:<line number>
11968 ...............................................................................
11969
11970 ToStringChrono.tests.cpp:<line number>: PASSED:
11971 REQUIRE( now != later )
11972 with expansion:
11973 {iso8601-timestamp}
11974 !=
11975 {iso8601-timestamp}
11976
11977 -------------------------------------------------------------------------------
11978 Tabs and newlines show in output
11979 -------------------------------------------------------------------------------
11980 Misc.tests.cpp:<line number>
11981 ...............................................................................
11982
11983 Misc.tests.cpp:<line number>: FAILED:
11984 CHECK( s1 == s2 )
11985 with expansion:
11986 "if ($b == 10) {
11987 $a = 20;
11988 }"
11989 ==
11990 "if ($b == 10) {
11991 $a = 20;
11992 }
11993 "
11994
11995 -------------------------------------------------------------------------------
11996 Tag alias can be registered against tag patterns
11997 The same tag alias can only be registered once
11998 -------------------------------------------------------------------------------
11999 Tag.tests.cpp:<line number>
12000 ...............................................................................
12001
12002 Tag.tests.cpp:<line number>: PASSED:
12003 CHECK_THAT( what, ContainsSubstring( "[@zzz]" ) )
12004 with expansion:
12005 "error: tag alias, '[@zzz]' already registered.
12006 First seen at: file:2
12007 Redefined at: file:10" contains: "[@zzz]"
12008
12009 Tag.tests.cpp:<line number>: PASSED:
12010 CHECK_THAT( what, ContainsSubstring( "file" ) )
12011 with expansion:
12012 "error: tag alias, '[@zzz]' already registered.
12013 First seen at: file:2
12014 Redefined at: file:10" contains: "file"
12015
12016 Tag.tests.cpp:<line number>: PASSED:
12017 CHECK_THAT( what, ContainsSubstring( "2" ) )
12018 with expansion:
12019 "error: tag alias, '[@zzz]' already registered.
12020 First seen at: file:2
12021 Redefined at: file:10" contains: "2"
12022
12023 Tag.tests.cpp:<line number>: PASSED:
12024 CHECK_THAT( what, ContainsSubstring( "10" ) )
12025 with expansion:
12026 "error: tag alias, '[@zzz]' already registered.
12027 First seen at: file:2
12028 Redefined at: file:10" contains: "10"
12029
12030 -------------------------------------------------------------------------------
12031 Tag alias can be registered against tag patterns
12032 Tag aliases must be of the form [@name]
12033 -------------------------------------------------------------------------------
12034 Tag.tests.cpp:<line number>
12035 ...............................................................................
12036
12037 Tag.tests.cpp:<line number>: PASSED:
12038 CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) )
12039
12040 Tag.tests.cpp:<line number>: PASSED:
12041 CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
12042
12043 Tag.tests.cpp:<line number>: PASSED:
12044 CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) )
12045
12046 Tag.tests.cpp:<line number>: PASSED:
12047 CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) )
12048
12049 -------------------------------------------------------------------------------
12050 Tags with spaces and non-alphanumerical characters are accepted
12051 -------------------------------------------------------------------------------
12052 Tag.tests.cpp:<line number>
12053 ...............................................................................
12054
12055 Tag.tests.cpp:<line number>: PASSED:
12056 REQUIRE( testCase.tags.size() == 2 )
12057 with expansion:
12058 2 == 2
12059
12060 Tag.tests.cpp:<line number>: PASSED:
12061 REQUIRE_THAT( testCase.tags, VectorContains( Tag( "tag with spaces" ) ) && VectorContains( Tag( "I said \"good day\" sir!"_catch_sr ) ) )
12062 with expansion:
12063 { {?}, {?} } ( Contains: {?} and Contains: {?} )
12064
12065 -------------------------------------------------------------------------------
12066 Template test case method with test types specified inside std::tuple - MyTypes
12067 - 0
12068 -------------------------------------------------------------------------------
12069 Class.tests.cpp:<line number>
12070 ...............................................................................
12071
12072 Class.tests.cpp:<line number>: PASSED:
12073 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
12074 with expansion:
12075 1 == 1
12076
12077 -------------------------------------------------------------------------------
12078 Template test case method with test types specified inside std::tuple - MyTypes
12079 - 1
12080 -------------------------------------------------------------------------------
12081 Class.tests.cpp:<line number>
12082 ...............................................................................
12083
12084 Class.tests.cpp:<line number>: PASSED:
12085 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
12086 with expansion:
12087 1 == 1
12088
12089 -------------------------------------------------------------------------------
12090 Template test case method with test types specified inside std::tuple - MyTypes
12091 - 2
12092 -------------------------------------------------------------------------------
12093 Class.tests.cpp:<line number>
12094 ...............................................................................
12095
12096 Class.tests.cpp:<line number>: PASSED:
12097 REQUIRE( Template_Fixture<TestType>::m_a == 1 )
12098 with expansion:
12099 1.0 == 1
12100
12101 -------------------------------------------------------------------------------
12102 Template test case with test types specified inside non-copyable and non-
12103 movable std::tuple - NonCopyableAndNonMovableTypes - 0
12104 -------------------------------------------------------------------------------
12105 Misc.tests.cpp:<line number>
12106 ...............................................................................
12107
12108 Misc.tests.cpp:<line number>: PASSED:
12109 REQUIRE( std::is_default_constructible<TestType>::value )
12110 with expansion:
12111 true
12112
12113 -------------------------------------------------------------------------------
12114 Template test case with test types specified inside non-copyable and non-
12115 movable std::tuple - NonCopyableAndNonMovableTypes - 1
12116 -------------------------------------------------------------------------------
12117 Misc.tests.cpp:<line number>
12118 ...............................................................................
12119
12120 Misc.tests.cpp:<line number>: PASSED:
12121 REQUIRE( std::is_default_constructible<TestType>::value )
12122 with expansion:
12123 true
12124
12125 -------------------------------------------------------------------------------
12126 Template test case with test types specified inside non-default-constructible
12127 std::tuple - MyNonDefaultConstructibleTypes - 0
12128 -------------------------------------------------------------------------------
12129 Misc.tests.cpp:<line number>
12130 ...............................................................................
12131
12132 Misc.tests.cpp:<line number>: PASSED:
12133 REQUIRE( std::is_trivially_copyable<TestType>::value )
12134 with expansion:
12135 true
12136
12137 -------------------------------------------------------------------------------
12138 Template test case with test types specified inside non-default-constructible
12139 std::tuple - MyNonDefaultConstructibleTypes - 1
12140 -------------------------------------------------------------------------------
12141 Misc.tests.cpp:<line number>
12142 ...............................................................................
12143
12144 Misc.tests.cpp:<line number>: PASSED:
12145 REQUIRE( std::is_trivially_copyable<TestType>::value )
12146 with expansion:
12147 true
12148
12149 -------------------------------------------------------------------------------
12150 Template test case with test types specified inside std::tuple - MyTypes - 0
12151 -------------------------------------------------------------------------------
12152 Misc.tests.cpp:<line number>
12153 ...............................................................................
12154
12155 Misc.tests.cpp:<line number>: PASSED:
12156 REQUIRE( std::is_arithmetic<TestType>::value )
12157 with expansion:
12158 true
12159
12160 -------------------------------------------------------------------------------
12161 Template test case with test types specified inside std::tuple - MyTypes - 1
12162 -------------------------------------------------------------------------------
12163 Misc.tests.cpp:<line number>
12164 ...............................................................................
12165
12166 Misc.tests.cpp:<line number>: PASSED:
12167 REQUIRE( std::is_arithmetic<TestType>::value )
12168 with expansion:
12169 true
12170
12171 -------------------------------------------------------------------------------
12172 Template test case with test types specified inside std::tuple - MyTypes - 2
12173 -------------------------------------------------------------------------------
12174 Misc.tests.cpp:<line number>
12175 ...............................................................................
12176
12177 Misc.tests.cpp:<line number>: PASSED:
12178 REQUIRE( std::is_arithmetic<TestType>::value )
12179 with expansion:
12180 true
12181
12182 -------------------------------------------------------------------------------
12183 TemplateTest: vectors can be sized and resized - float
12184 -------------------------------------------------------------------------------
12185 Misc.tests.cpp:<line number>
12186 ...............................................................................
12187
12188 Misc.tests.cpp:<line number>: PASSED:
12189 REQUIRE( v.size() == 5 )
12190 with expansion:
12191 5 == 5
12192
12193 Misc.tests.cpp:<line number>: PASSED:
12194 REQUIRE( v.capacity() >= 5 )
12195 with expansion:
12196 5 >= 5
12197
12198 -------------------------------------------------------------------------------
12199 TemplateTest: vectors can be sized and resized - float
12200 resizing bigger changes size and capacity
12201 -------------------------------------------------------------------------------
12202 Misc.tests.cpp:<line number>
12203 ...............................................................................
12204
12205 Misc.tests.cpp:<line number>: PASSED:
12206 REQUIRE( v.size() == 10 )
12207 with expansion:
12208 10 == 10
12209
12210 Misc.tests.cpp:<line number>: PASSED:
12211 REQUIRE( v.capacity() >= 10 )
12212 with expansion:
12213 10 >= 10
12214
12215 -------------------------------------------------------------------------------
12216 TemplateTest: vectors can be sized and resized - float
12217 -------------------------------------------------------------------------------
12218 Misc.tests.cpp:<line number>
12219 ...............................................................................
12220
12221 Misc.tests.cpp:<line number>: PASSED:
12222 REQUIRE( v.size() == 5 )
12223 with expansion:
12224 5 == 5
12225
12226 Misc.tests.cpp:<line number>: PASSED:
12227 REQUIRE( v.capacity() >= 5 )
12228 with expansion:
12229 5 >= 5
12230
12231 -------------------------------------------------------------------------------
12232 TemplateTest: vectors can be sized and resized - float
12233 resizing smaller changes size but not capacity
12234 -------------------------------------------------------------------------------
12235 Misc.tests.cpp:<line number>
12236 ...............................................................................
12237
12238 Misc.tests.cpp:<line number>: PASSED:
12239 REQUIRE( v.size() == 0 )
12240 with expansion:
12241 0 == 0
12242
12243 Misc.tests.cpp:<line number>: PASSED:
12244 REQUIRE( v.capacity() >= 5 )
12245 with expansion:
12246 5 >= 5
12247
12248 -------------------------------------------------------------------------------
12249 TemplateTest: vectors can be sized and resized - float
12250 resizing smaller changes size but not capacity
12251 We can use the 'swap trick' to reset the capacity
12252 -------------------------------------------------------------------------------
12253 Misc.tests.cpp:<line number>
12254 ...............................................................................
12255
12256 Misc.tests.cpp:<line number>: PASSED:
12257 REQUIRE( v.capacity() == 0 )
12258 with expansion:
12259 0 == 0
12260
12261 -------------------------------------------------------------------------------
12262 TemplateTest: vectors can be sized and resized - float
12263 -------------------------------------------------------------------------------
12264 Misc.tests.cpp:<line number>
12265 ...............................................................................
12266
12267 Misc.tests.cpp:<line number>: PASSED:
12268 REQUIRE( v.size() == 5 )
12269 with expansion:
12270 5 == 5
12271
12272 Misc.tests.cpp:<line number>: PASSED:
12273 REQUIRE( v.capacity() >= 5 )
12274 with expansion:
12275 5 >= 5
12276
12277 -------------------------------------------------------------------------------
12278 TemplateTest: vectors can be sized and resized - float
12279 reserving bigger changes capacity but not size
12280 -------------------------------------------------------------------------------
12281 Misc.tests.cpp:<line number>
12282 ...............................................................................
12283
12284 Misc.tests.cpp:<line number>: PASSED:
12285 REQUIRE( v.size() == 5 )
12286 with expansion:
12287 5 == 5
12288
12289 Misc.tests.cpp:<line number>: PASSED:
12290 REQUIRE( v.capacity() >= 10 )
12291 with expansion:
12292 10 >= 10
12293
12294 -------------------------------------------------------------------------------
12295 TemplateTest: vectors can be sized and resized - float
12296 -------------------------------------------------------------------------------
12297 Misc.tests.cpp:<line number>
12298 ...............................................................................
12299
12300 Misc.tests.cpp:<line number>: PASSED:
12301 REQUIRE( v.size() == 5 )
12302 with expansion:
12303 5 == 5
12304
12305 Misc.tests.cpp:<line number>: PASSED:
12306 REQUIRE( v.capacity() >= 5 )
12307 with expansion:
12308 5 >= 5
12309
12310 -------------------------------------------------------------------------------
12311 TemplateTest: vectors can be sized and resized - float
12312 reserving smaller does not change size or capacity
12313 -------------------------------------------------------------------------------
12314 Misc.tests.cpp:<line number>
12315 ...............................................................................
12316
12317 Misc.tests.cpp:<line number>: PASSED:
12318 REQUIRE( v.size() == 5 )
12319 with expansion:
12320 5 == 5
12321
12322 Misc.tests.cpp:<line number>: PASSED:
12323 REQUIRE( v.capacity() >= 5 )
12324 with expansion:
12325 5 >= 5
12326
12327 -------------------------------------------------------------------------------
12328 TemplateTest: vectors can be sized and resized - int
12329 -------------------------------------------------------------------------------
12330 Misc.tests.cpp:<line number>
12331 ...............................................................................
12332
12333 Misc.tests.cpp:<line number>: PASSED:
12334 REQUIRE( v.size() == 5 )
12335 with expansion:
12336 5 == 5
12337
12338 Misc.tests.cpp:<line number>: PASSED:
12339 REQUIRE( v.capacity() >= 5 )
12340 with expansion:
12341 5 >= 5
12342
12343 -------------------------------------------------------------------------------
12344 TemplateTest: vectors can be sized and resized - int
12345 resizing bigger changes size and capacity
12346 -------------------------------------------------------------------------------
12347 Misc.tests.cpp:<line number>
12348 ...............................................................................
12349
12350 Misc.tests.cpp:<line number>: PASSED:
12351 REQUIRE( v.size() == 10 )
12352 with expansion:
12353 10 == 10
12354
12355 Misc.tests.cpp:<line number>: PASSED:
12356 REQUIRE( v.capacity() >= 10 )
12357 with expansion:
12358 10 >= 10
12359
12360 -------------------------------------------------------------------------------
12361 TemplateTest: vectors can be sized and resized - int
12362 -------------------------------------------------------------------------------
12363 Misc.tests.cpp:<line number>
12364 ...............................................................................
12365
12366 Misc.tests.cpp:<line number>: PASSED:
12367 REQUIRE( v.size() == 5 )
12368 with expansion:
12369 5 == 5
12370
12371 Misc.tests.cpp:<line number>: PASSED:
12372 REQUIRE( v.capacity() >= 5 )
12373 with expansion:
12374 5 >= 5
12375
12376 -------------------------------------------------------------------------------
12377 TemplateTest: vectors can be sized and resized - int
12378 resizing smaller changes size but not capacity
12379 -------------------------------------------------------------------------------
12380 Misc.tests.cpp:<line number>
12381 ...............................................................................
12382
12383 Misc.tests.cpp:<line number>: PASSED:
12384 REQUIRE( v.size() == 0 )
12385 with expansion:
12386 0 == 0
12387
12388 Misc.tests.cpp:<line number>: PASSED:
12389 REQUIRE( v.capacity() >= 5 )
12390 with expansion:
12391 5 >= 5
12392
12393 -------------------------------------------------------------------------------
12394 TemplateTest: vectors can be sized and resized - int
12395 resizing smaller changes size but not capacity
12396 We can use the 'swap trick' to reset the capacity
12397 -------------------------------------------------------------------------------
12398 Misc.tests.cpp:<line number>
12399 ...............................................................................
12400
12401 Misc.tests.cpp:<line number>: PASSED:
12402 REQUIRE( v.capacity() == 0 )
12403 with expansion:
12404 0 == 0
12405
12406 -------------------------------------------------------------------------------
12407 TemplateTest: vectors can be sized and resized - int
12408 -------------------------------------------------------------------------------
12409 Misc.tests.cpp:<line number>
12410 ...............................................................................
12411
12412 Misc.tests.cpp:<line number>: PASSED:
12413 REQUIRE( v.size() == 5 )
12414 with expansion:
12415 5 == 5
12416
12417 Misc.tests.cpp:<line number>: PASSED:
12418 REQUIRE( v.capacity() >= 5 )
12419 with expansion:
12420 5 >= 5
12421
12422 -------------------------------------------------------------------------------
12423 TemplateTest: vectors can be sized and resized - int
12424 reserving bigger changes capacity but not size
12425 -------------------------------------------------------------------------------
12426 Misc.tests.cpp:<line number>
12427 ...............................................................................
12428
12429 Misc.tests.cpp:<line number>: PASSED:
12430 REQUIRE( v.size() == 5 )
12431 with expansion:
12432 5 == 5
12433
12434 Misc.tests.cpp:<line number>: PASSED:
12435 REQUIRE( v.capacity() >= 10 )
12436 with expansion:
12437 10 >= 10
12438
12439 -------------------------------------------------------------------------------
12440 TemplateTest: vectors can be sized and resized - int
12441 -------------------------------------------------------------------------------
12442 Misc.tests.cpp:<line number>
12443 ...............................................................................
12444
12445 Misc.tests.cpp:<line number>: PASSED:
12446 REQUIRE( v.size() == 5 )
12447 with expansion:
12448 5 == 5
12449
12450 Misc.tests.cpp:<line number>: PASSED:
12451 REQUIRE( v.capacity() >= 5 )
12452 with expansion:
12453 5 >= 5
12454
12455 -------------------------------------------------------------------------------
12456 TemplateTest: vectors can be sized and resized - int
12457 reserving smaller does not change size or capacity
12458 -------------------------------------------------------------------------------
12459 Misc.tests.cpp:<line number>
12460 ...............................................................................
12461
12462 Misc.tests.cpp:<line number>: PASSED:
12463 REQUIRE( v.size() == 5 )
12464 with expansion:
12465 5 == 5
12466
12467 Misc.tests.cpp:<line number>: PASSED:
12468 REQUIRE( v.capacity() >= 5 )
12469 with expansion:
12470 5 >= 5
12471
12472 -------------------------------------------------------------------------------
12473 TemplateTest: vectors can be sized and resized - std::string
12474 -------------------------------------------------------------------------------
12475 Misc.tests.cpp:<line number>
12476 ...............................................................................
12477
12478 Misc.tests.cpp:<line number>: PASSED:
12479 REQUIRE( v.size() == 5 )
12480 with expansion:
12481 5 == 5
12482
12483 Misc.tests.cpp:<line number>: PASSED:
12484 REQUIRE( v.capacity() >= 5 )
12485 with expansion:
12486 5 >= 5
12487
12488 -------------------------------------------------------------------------------
12489 TemplateTest: vectors can be sized and resized - std::string
12490 resizing bigger changes size and capacity
12491 -------------------------------------------------------------------------------
12492 Misc.tests.cpp:<line number>
12493 ...............................................................................
12494
12495 Misc.tests.cpp:<line number>: PASSED:
12496 REQUIRE( v.size() == 10 )
12497 with expansion:
12498 10 == 10
12499
12500 Misc.tests.cpp:<line number>: PASSED:
12501 REQUIRE( v.capacity() >= 10 )
12502 with expansion:
12503 10 >= 10
12504
12505 -------------------------------------------------------------------------------
12506 TemplateTest: vectors can be sized and resized - std::string
12507 -------------------------------------------------------------------------------
12508 Misc.tests.cpp:<line number>
12509 ...............................................................................
12510
12511 Misc.tests.cpp:<line number>: PASSED:
12512 REQUIRE( v.size() == 5 )
12513 with expansion:
12514 5 == 5
12515
12516 Misc.tests.cpp:<line number>: PASSED:
12517 REQUIRE( v.capacity() >= 5 )
12518 with expansion:
12519 5 >= 5
12520
12521 -------------------------------------------------------------------------------
12522 TemplateTest: vectors can be sized and resized - std::string
12523 resizing smaller changes size but not capacity
12524 -------------------------------------------------------------------------------
12525 Misc.tests.cpp:<line number>
12526 ...............................................................................
12527
12528 Misc.tests.cpp:<line number>: PASSED:
12529 REQUIRE( v.size() == 0 )
12530 with expansion:
12531 0 == 0
12532
12533 Misc.tests.cpp:<line number>: PASSED:
12534 REQUIRE( v.capacity() >= 5 )
12535 with expansion:
12536 5 >= 5
12537
12538 -------------------------------------------------------------------------------
12539 TemplateTest: vectors can be sized and resized - std::string
12540 resizing smaller changes size but not capacity
12541 We can use the 'swap trick' to reset the capacity
12542 -------------------------------------------------------------------------------
12543 Misc.tests.cpp:<line number>
12544 ...............................................................................
12545
12546 Misc.tests.cpp:<line number>: PASSED:
12547 REQUIRE( v.capacity() == 0 )
12548 with expansion:
12549 0 == 0
12550
12551 -------------------------------------------------------------------------------
12552 TemplateTest: vectors can be sized and resized - std::string
12553 -------------------------------------------------------------------------------
12554 Misc.tests.cpp:<line number>
12555 ...............................................................................
12556
12557 Misc.tests.cpp:<line number>: PASSED:
12558 REQUIRE( v.size() == 5 )
12559 with expansion:
12560 5 == 5
12561
12562 Misc.tests.cpp:<line number>: PASSED:
12563 REQUIRE( v.capacity() >= 5 )
12564 with expansion:
12565 5 >= 5
12566
12567 -------------------------------------------------------------------------------
12568 TemplateTest: vectors can be sized and resized - std::string
12569 reserving bigger changes capacity but not size
12570 -------------------------------------------------------------------------------
12571 Misc.tests.cpp:<line number>
12572 ...............................................................................
12573
12574 Misc.tests.cpp:<line number>: PASSED:
12575 REQUIRE( v.size() == 5 )
12576 with expansion:
12577 5 == 5
12578
12579 Misc.tests.cpp:<line number>: PASSED:
12580 REQUIRE( v.capacity() >= 10 )
12581 with expansion:
12582 10 >= 10
12583
12584 -------------------------------------------------------------------------------
12585 TemplateTest: vectors can be sized and resized - std::string
12586 -------------------------------------------------------------------------------
12587 Misc.tests.cpp:<line number>
12588 ...............................................................................
12589
12590 Misc.tests.cpp:<line number>: PASSED:
12591 REQUIRE( v.size() == 5 )
12592 with expansion:
12593 5 == 5
12594
12595 Misc.tests.cpp:<line number>: PASSED:
12596 REQUIRE( v.capacity() >= 5 )
12597 with expansion:
12598 5 >= 5
12599
12600 -------------------------------------------------------------------------------
12601 TemplateTest: vectors can be sized and resized - std::string
12602 reserving smaller does not change size or capacity
12603 -------------------------------------------------------------------------------
12604 Misc.tests.cpp:<line number>
12605 ...............................................................................
12606
12607 Misc.tests.cpp:<line number>: PASSED:
12608 REQUIRE( v.size() == 5 )
12609 with expansion:
12610 5 == 5
12611
12612 Misc.tests.cpp:<line number>: PASSED:
12613 REQUIRE( v.capacity() >= 5 )
12614 with expansion:
12615 5 >= 5
12616
12617 -------------------------------------------------------------------------------
12618 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12619 -------------------------------------------------------------------------------
12620 Misc.tests.cpp:<line number>
12621 ...............................................................................
12622
12623 Misc.tests.cpp:<line number>: PASSED:
12624 REQUIRE( v.size() == 5 )
12625 with expansion:
12626 5 == 5
12627
12628 Misc.tests.cpp:<line number>: PASSED:
12629 REQUIRE( v.capacity() >= 5 )
12630 with expansion:
12631 5 >= 5
12632
12633 -------------------------------------------------------------------------------
12634 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12635 resizing bigger changes size and capacity
12636 -------------------------------------------------------------------------------
12637 Misc.tests.cpp:<line number>
12638 ...............................................................................
12639
12640 Misc.tests.cpp:<line number>: PASSED:
12641 REQUIRE( v.size() == 10 )
12642 with expansion:
12643 10 == 10
12644
12645 Misc.tests.cpp:<line number>: PASSED:
12646 REQUIRE( v.capacity() >= 10 )
12647 with expansion:
12648 10 >= 10
12649
12650 -------------------------------------------------------------------------------
12651 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12652 -------------------------------------------------------------------------------
12653 Misc.tests.cpp:<line number>
12654 ...............................................................................
12655
12656 Misc.tests.cpp:<line number>: PASSED:
12657 REQUIRE( v.size() == 5 )
12658 with expansion:
12659 5 == 5
12660
12661 Misc.tests.cpp:<line number>: PASSED:
12662 REQUIRE( v.capacity() >= 5 )
12663 with expansion:
12664 5 >= 5
12665
12666 -------------------------------------------------------------------------------
12667 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12668 resizing smaller changes size but not capacity
12669 -------------------------------------------------------------------------------
12670 Misc.tests.cpp:<line number>
12671 ...............................................................................
12672
12673 Misc.tests.cpp:<line number>: PASSED:
12674 REQUIRE( v.size() == 0 )
12675 with expansion:
12676 0 == 0
12677
12678 Misc.tests.cpp:<line number>: PASSED:
12679 REQUIRE( v.capacity() >= 5 )
12680 with expansion:
12681 5 >= 5
12682
12683 -------------------------------------------------------------------------------
12684 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12685 resizing smaller changes size but not capacity
12686 We can use the 'swap trick' to reset the capacity
12687 -------------------------------------------------------------------------------
12688 Misc.tests.cpp:<line number>
12689 ...............................................................................
12690
12691 Misc.tests.cpp:<line number>: PASSED:
12692 REQUIRE( v.capacity() == 0 )
12693 with expansion:
12694 0 == 0
12695
12696 -------------------------------------------------------------------------------
12697 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12698 -------------------------------------------------------------------------------
12699 Misc.tests.cpp:<line number>
12700 ...............................................................................
12701
12702 Misc.tests.cpp:<line number>: PASSED:
12703 REQUIRE( v.size() == 5 )
12704 with expansion:
12705 5 == 5
12706
12707 Misc.tests.cpp:<line number>: PASSED:
12708 REQUIRE( v.capacity() >= 5 )
12709 with expansion:
12710 5 >= 5
12711
12712 -------------------------------------------------------------------------------
12713 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12714 reserving bigger changes capacity but not size
12715 -------------------------------------------------------------------------------
12716 Misc.tests.cpp:<line number>
12717 ...............................................................................
12718
12719 Misc.tests.cpp:<line number>: PASSED:
12720 REQUIRE( v.size() == 5 )
12721 with expansion:
12722 5 == 5
12723
12724 Misc.tests.cpp:<line number>: PASSED:
12725 REQUIRE( v.capacity() >= 10 )
12726 with expansion:
12727 10 >= 10
12728
12729 -------------------------------------------------------------------------------
12730 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12731 -------------------------------------------------------------------------------
12732 Misc.tests.cpp:<line number>
12733 ...............................................................................
12734
12735 Misc.tests.cpp:<line number>: PASSED:
12736 REQUIRE( v.size() == 5 )
12737 with expansion:
12738 5 == 5
12739
12740 Misc.tests.cpp:<line number>: PASSED:
12741 REQUIRE( v.capacity() >= 5 )
12742 with expansion:
12743 5 >= 5
12744
12745 -------------------------------------------------------------------------------
12746 TemplateTest: vectors can be sized and resized - std::tuple<int,float>
12747 reserving smaller does not change size or capacity
12748 -------------------------------------------------------------------------------
12749 Misc.tests.cpp:<line number>
12750 ...............................................................................
12751
12752 Misc.tests.cpp:<line number>: PASSED:
12753 REQUIRE( v.size() == 5 )
12754 with expansion:
12755 5 == 5
12756
12757 Misc.tests.cpp:<line number>: PASSED:
12758 REQUIRE( v.capacity() >= 5 )
12759 with expansion:
12760 5 >= 5
12761
12762 -------------------------------------------------------------------------------
12763 TemplateTestSig: compiles with a single int parameter - 1
12764 -------------------------------------------------------------------------------
12765 Misc.tests.cpp:<line number>
12766 ...............................................................................
12767
12768
12769 No assertions in test case 'TemplateTestSig: compiles with a single int parameter - 1'
12770
12771 -------------------------------------------------------------------------------
12772 TemplateTestSig: compiles with a single int parameter - 3
12773 -------------------------------------------------------------------------------
12774 Misc.tests.cpp:<line number>
12775 ...............................................................................
12776
12777
12778 No assertions in test case 'TemplateTestSig: compiles with a single int parameter - 3'
12779
12780 -------------------------------------------------------------------------------
12781 TemplateTestSig: compiles with a single int parameter - 6
12782 -------------------------------------------------------------------------------
12783 Misc.tests.cpp:<line number>
12784 ...............................................................................
12785
12786
12787 No assertions in test case 'TemplateTestSig: compiles with a single int parameter - 6'
12788
12789 -------------------------------------------------------------------------------
12790 TemplateTestSig: compiles with two type parameters - int,int
12791 -------------------------------------------------------------------------------
12792 Misc.tests.cpp:<line number>
12793 ...............................................................................
12794
12795
12796 No assertions in test case 'TemplateTestSig: compiles with two type parameters - int,int'
12797
12798 -------------------------------------------------------------------------------
12799 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12800 -------------------------------------------------------------------------------
12801 Misc.tests.cpp:<line number>
12802 ...............................................................................
12803
12804 Misc.tests.cpp:<line number>: PASSED:
12805 REQUIRE( v.size() == V )
12806 with expansion:
12807 6 == 6
12808
12809 Misc.tests.cpp:<line number>: PASSED:
12810 REQUIRE( v.capacity() >= V )
12811 with expansion:
12812 6 >= 6
12813
12814 -------------------------------------------------------------------------------
12815 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12816 resizing bigger changes size and capacity
12817 -------------------------------------------------------------------------------
12818 Misc.tests.cpp:<line number>
12819 ...............................................................................
12820
12821 Misc.tests.cpp:<line number>: PASSED:
12822 REQUIRE( v.size() == 2 * V )
12823 with expansion:
12824 12 == 12
12825
12826 Misc.tests.cpp:<line number>: PASSED:
12827 REQUIRE( v.capacity() >= 2 * V )
12828 with expansion:
12829 12 >= 12
12830
12831 -------------------------------------------------------------------------------
12832 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12833 -------------------------------------------------------------------------------
12834 Misc.tests.cpp:<line number>
12835 ...............................................................................
12836
12837 Misc.tests.cpp:<line number>: PASSED:
12838 REQUIRE( v.size() == V )
12839 with expansion:
12840 6 == 6
12841
12842 Misc.tests.cpp:<line number>: PASSED:
12843 REQUIRE( v.capacity() >= V )
12844 with expansion:
12845 6 >= 6
12846
12847 -------------------------------------------------------------------------------
12848 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12849 resizing smaller changes size but not capacity
12850 -------------------------------------------------------------------------------
12851 Misc.tests.cpp:<line number>
12852 ...............................................................................
12853
12854 Misc.tests.cpp:<line number>: PASSED:
12855 REQUIRE( v.size() == 0 )
12856 with expansion:
12857 0 == 0
12858
12859 Misc.tests.cpp:<line number>: PASSED:
12860 REQUIRE( v.capacity() >= V )
12861 with expansion:
12862 6 >= 6
12863
12864 -------------------------------------------------------------------------------
12865 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12866 resizing smaller changes size but not capacity
12867 We can use the 'swap trick' to reset the capacity
12868 -------------------------------------------------------------------------------
12869 Misc.tests.cpp:<line number>
12870 ...............................................................................
12871
12872 Misc.tests.cpp:<line number>: PASSED:
12873 REQUIRE( v.capacity() == 0 )
12874 with expansion:
12875 0 == 0
12876
12877 -------------------------------------------------------------------------------
12878 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12879 -------------------------------------------------------------------------------
12880 Misc.tests.cpp:<line number>
12881 ...............................................................................
12882
12883 Misc.tests.cpp:<line number>: PASSED:
12884 REQUIRE( v.size() == V )
12885 with expansion:
12886 6 == 6
12887
12888 Misc.tests.cpp:<line number>: PASSED:
12889 REQUIRE( v.capacity() >= V )
12890 with expansion:
12891 6 >= 6
12892
12893 -------------------------------------------------------------------------------
12894 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12895 reserving bigger changes capacity but not size
12896 -------------------------------------------------------------------------------
12897 Misc.tests.cpp:<line number>
12898 ...............................................................................
12899
12900 Misc.tests.cpp:<line number>: PASSED:
12901 REQUIRE( v.size() == V )
12902 with expansion:
12903 6 == 6
12904
12905 Misc.tests.cpp:<line number>: PASSED:
12906 REQUIRE( v.capacity() >= 2 * V )
12907 with expansion:
12908 12 >= 12
12909
12910 -------------------------------------------------------------------------------
12911 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12912 -------------------------------------------------------------------------------
12913 Misc.tests.cpp:<line number>
12914 ...............................................................................
12915
12916 Misc.tests.cpp:<line number>: PASSED:
12917 REQUIRE( v.size() == V )
12918 with expansion:
12919 6 == 6
12920
12921 Misc.tests.cpp:<line number>: PASSED:
12922 REQUIRE( v.capacity() >= V )
12923 with expansion:
12924 6 >= 6
12925
12926 -------------------------------------------------------------------------------
12927 TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
12928 reserving smaller does not change size or capacity
12929 -------------------------------------------------------------------------------
12930 Misc.tests.cpp:<line number>
12931 ...............................................................................
12932
12933 Misc.tests.cpp:<line number>: PASSED:
12934 REQUIRE( v.size() == V )
12935 with expansion:
12936 6 == 6
12937
12938 Misc.tests.cpp:<line number>: PASSED:
12939 REQUIRE( v.capacity() >= V )
12940 with expansion:
12941 6 >= 6
12942
12943 -------------------------------------------------------------------------------
12944 TemplateTestSig: vectors can be sized and resized - float,4
12945 -------------------------------------------------------------------------------
12946 Misc.tests.cpp:<line number>
12947 ...............................................................................
12948
12949 Misc.tests.cpp:<line number>: PASSED:
12950 REQUIRE( v.size() == V )
12951 with expansion:
12952 4 == 4
12953
12954 Misc.tests.cpp:<line number>: PASSED:
12955 REQUIRE( v.capacity() >= V )
12956 with expansion:
12957 4 >= 4
12958
12959 -------------------------------------------------------------------------------
12960 TemplateTestSig: vectors can be sized and resized - float,4
12961 resizing bigger changes size and capacity
12962 -------------------------------------------------------------------------------
12963 Misc.tests.cpp:<line number>
12964 ...............................................................................
12965
12966 Misc.tests.cpp:<line number>: PASSED:
12967 REQUIRE( v.size() == 2 * V )
12968 with expansion:
12969 8 == 8
12970
12971 Misc.tests.cpp:<line number>: PASSED:
12972 REQUIRE( v.capacity() >= 2 * V )
12973 with expansion:
12974 8 >= 8
12975
12976 -------------------------------------------------------------------------------
12977 TemplateTestSig: vectors can be sized and resized - float,4
12978 -------------------------------------------------------------------------------
12979 Misc.tests.cpp:<line number>
12980 ...............................................................................
12981
12982 Misc.tests.cpp:<line number>: PASSED:
12983 REQUIRE( v.size() == V )
12984 with expansion:
12985 4 == 4
12986
12987 Misc.tests.cpp:<line number>: PASSED:
12988 REQUIRE( v.capacity() >= V )
12989 with expansion:
12990 4 >= 4
12991
12992 -------------------------------------------------------------------------------
12993 TemplateTestSig: vectors can be sized and resized - float,4
12994 resizing smaller changes size but not capacity
12995 -------------------------------------------------------------------------------
12996 Misc.tests.cpp:<line number>
12997 ...............................................................................
12998
12999 Misc.tests.cpp:<line number>: PASSED:
13000 REQUIRE( v.size() == 0 )
13001 with expansion:
13002 0 == 0
13003
13004 Misc.tests.cpp:<line number>: PASSED:
13005 REQUIRE( v.capacity() >= V )
13006 with expansion:
13007 4 >= 4
13008
13009 -------------------------------------------------------------------------------
13010 TemplateTestSig: vectors can be sized and resized - float,4
13011 resizing smaller changes size but not capacity
13012 We can use the 'swap trick' to reset the capacity
13013 -------------------------------------------------------------------------------
13014 Misc.tests.cpp:<line number>
13015 ...............................................................................
13016
13017 Misc.tests.cpp:<line number>: PASSED:
13018 REQUIRE( v.capacity() == 0 )
13019 with expansion:
13020 0 == 0
13021
13022 -------------------------------------------------------------------------------
13023 TemplateTestSig: vectors can be sized and resized - float,4
13024 -------------------------------------------------------------------------------
13025 Misc.tests.cpp:<line number>
13026 ...............................................................................
13027
13028 Misc.tests.cpp:<line number>: PASSED:
13029 REQUIRE( v.size() == V )
13030 with expansion:
13031 4 == 4
13032
13033 Misc.tests.cpp:<line number>: PASSED:
13034 REQUIRE( v.capacity() >= V )
13035 with expansion:
13036 4 >= 4
13037
13038 -------------------------------------------------------------------------------
13039 TemplateTestSig: vectors can be sized and resized - float,4
13040 reserving bigger changes capacity but not size
13041 -------------------------------------------------------------------------------
13042 Misc.tests.cpp:<line number>
13043 ...............................................................................
13044
13045 Misc.tests.cpp:<line number>: PASSED:
13046 REQUIRE( v.size() == V )
13047 with expansion:
13048 4 == 4
13049
13050 Misc.tests.cpp:<line number>: PASSED:
13051 REQUIRE( v.capacity() >= 2 * V )
13052 with expansion:
13053 8 >= 8
13054
13055 -------------------------------------------------------------------------------
13056 TemplateTestSig: vectors can be sized and resized - float,4
13057 -------------------------------------------------------------------------------
13058 Misc.tests.cpp:<line number>
13059 ...............................................................................
13060
13061 Misc.tests.cpp:<line number>: PASSED:
13062 REQUIRE( v.size() == V )
13063 with expansion:
13064 4 == 4
13065
13066 Misc.tests.cpp:<line number>: PASSED:
13067 REQUIRE( v.capacity() >= V )
13068 with expansion:
13069 4 >= 4
13070
13071 -------------------------------------------------------------------------------
13072 TemplateTestSig: vectors can be sized and resized - float,4
13073 reserving smaller does not change size or capacity
13074 -------------------------------------------------------------------------------
13075 Misc.tests.cpp:<line number>
13076 ...............................................................................
13077
13078 Misc.tests.cpp:<line number>: PASSED:
13079 REQUIRE( v.size() == V )
13080 with expansion:
13081 4 == 4
13082
13083 Misc.tests.cpp:<line number>: PASSED:
13084 REQUIRE( v.capacity() >= V )
13085 with expansion:
13086 4 >= 4
13087
13088 -------------------------------------------------------------------------------
13089 TemplateTestSig: vectors can be sized and resized - int,5
13090 -------------------------------------------------------------------------------
13091 Misc.tests.cpp:<line number>
13092 ...............................................................................
13093
13094 Misc.tests.cpp:<line number>: PASSED:
13095 REQUIRE( v.size() == V )
13096 with expansion:
13097 5 == 5
13098
13099 Misc.tests.cpp:<line number>: PASSED:
13100 REQUIRE( v.capacity() >= V )
13101 with expansion:
13102 5 >= 5
13103
13104 -------------------------------------------------------------------------------
13105 TemplateTestSig: vectors can be sized and resized - int,5
13106 resizing bigger changes size and capacity
13107 -------------------------------------------------------------------------------
13108 Misc.tests.cpp:<line number>
13109 ...............................................................................
13110
13111 Misc.tests.cpp:<line number>: PASSED:
13112 REQUIRE( v.size() == 2 * V )
13113 with expansion:
13114 10 == 10
13115
13116 Misc.tests.cpp:<line number>: PASSED:
13117 REQUIRE( v.capacity() >= 2 * V )
13118 with expansion:
13119 10 >= 10
13120
13121 -------------------------------------------------------------------------------
13122 TemplateTestSig: vectors can be sized and resized - int,5
13123 -------------------------------------------------------------------------------
13124 Misc.tests.cpp:<line number>
13125 ...............................................................................
13126
13127 Misc.tests.cpp:<line number>: PASSED:
13128 REQUIRE( v.size() == V )
13129 with expansion:
13130 5 == 5
13131
13132 Misc.tests.cpp:<line number>: PASSED:
13133 REQUIRE( v.capacity() >= V )
13134 with expansion:
13135 5 >= 5
13136
13137 -------------------------------------------------------------------------------
13138 TemplateTestSig: vectors can be sized and resized - int,5
13139 resizing smaller changes size but not capacity
13140 -------------------------------------------------------------------------------
13141 Misc.tests.cpp:<line number>
13142 ...............................................................................
13143
13144 Misc.tests.cpp:<line number>: PASSED:
13145 REQUIRE( v.size() == 0 )
13146 with expansion:
13147 0 == 0
13148
13149 Misc.tests.cpp:<line number>: PASSED:
13150 REQUIRE( v.capacity() >= V )
13151 with expansion:
13152 5 >= 5
13153
13154 -------------------------------------------------------------------------------
13155 TemplateTestSig: vectors can be sized and resized - int,5
13156 resizing smaller changes size but not capacity
13157 We can use the 'swap trick' to reset the capacity
13158 -------------------------------------------------------------------------------
13159 Misc.tests.cpp:<line number>
13160 ...............................................................................
13161
13162 Misc.tests.cpp:<line number>: PASSED:
13163 REQUIRE( v.capacity() == 0 )
13164 with expansion:
13165 0 == 0
13166
13167 -------------------------------------------------------------------------------
13168 TemplateTestSig: vectors can be sized and resized - int,5
13169 -------------------------------------------------------------------------------
13170 Misc.tests.cpp:<line number>
13171 ...............................................................................
13172
13173 Misc.tests.cpp:<line number>: PASSED:
13174 REQUIRE( v.size() == V )
13175 with expansion:
13176 5 == 5
13177
13178 Misc.tests.cpp:<line number>: PASSED:
13179 REQUIRE( v.capacity() >= V )
13180 with expansion:
13181 5 >= 5
13182
13183 -------------------------------------------------------------------------------
13184 TemplateTestSig: vectors can be sized and resized - int,5
13185 reserving bigger changes capacity but not size
13186 -------------------------------------------------------------------------------
13187 Misc.tests.cpp:<line number>
13188 ...............................................................................
13189
13190 Misc.tests.cpp:<line number>: PASSED:
13191 REQUIRE( v.size() == V )
13192 with expansion:
13193 5 == 5
13194
13195 Misc.tests.cpp:<line number>: PASSED:
13196 REQUIRE( v.capacity() >= 2 * V )
13197 with expansion:
13198 10 >= 10
13199
13200 -------------------------------------------------------------------------------
13201 TemplateTestSig: vectors can be sized and resized - int,5
13202 -------------------------------------------------------------------------------
13203 Misc.tests.cpp:<line number>
13204 ...............................................................................
13205
13206 Misc.tests.cpp:<line number>: PASSED:
13207 REQUIRE( v.size() == V )
13208 with expansion:
13209 5 == 5
13210
13211 Misc.tests.cpp:<line number>: PASSED:
13212 REQUIRE( v.capacity() >= V )
13213 with expansion:
13214 5 >= 5
13215
13216 -------------------------------------------------------------------------------
13217 TemplateTestSig: vectors can be sized and resized - int,5
13218 reserving smaller does not change size or capacity
13219 -------------------------------------------------------------------------------
13220 Misc.tests.cpp:<line number>
13221 ...............................................................................
13222
13223 Misc.tests.cpp:<line number>: PASSED:
13224 REQUIRE( v.size() == V )
13225 with expansion:
13226 5 == 5
13227
13228 Misc.tests.cpp:<line number>: PASSED:
13229 REQUIRE( v.capacity() >= V )
13230 with expansion:
13231 5 >= 5
13232
13233 -------------------------------------------------------------------------------
13234 TemplateTestSig: vectors can be sized and resized - std::string,15
13235 -------------------------------------------------------------------------------
13236 Misc.tests.cpp:<line number>
13237 ...............................................................................
13238
13239 Misc.tests.cpp:<line number>: PASSED:
13240 REQUIRE( v.size() == V )
13241 with expansion:
13242 15 == 15
13243
13244 Misc.tests.cpp:<line number>: PASSED:
13245 REQUIRE( v.capacity() >= V )
13246 with expansion:
13247 15 >= 15
13248
13249 -------------------------------------------------------------------------------
13250 TemplateTestSig: vectors can be sized and resized - std::string,15
13251 resizing bigger changes size and capacity
13252 -------------------------------------------------------------------------------
13253 Misc.tests.cpp:<line number>
13254 ...............................................................................
13255
13256 Misc.tests.cpp:<line number>: PASSED:
13257 REQUIRE( v.size() == 2 * V )
13258 with expansion:
13259 30 == 30
13260
13261 Misc.tests.cpp:<line number>: PASSED:
13262 REQUIRE( v.capacity() >= 2 * V )
13263 with expansion:
13264 30 >= 30
13265
13266 -------------------------------------------------------------------------------
13267 TemplateTestSig: vectors can be sized and resized - std::string,15
13268 -------------------------------------------------------------------------------
13269 Misc.tests.cpp:<line number>
13270 ...............................................................................
13271
13272 Misc.tests.cpp:<line number>: PASSED:
13273 REQUIRE( v.size() == V )
13274 with expansion:
13275 15 == 15
13276
13277 Misc.tests.cpp:<line number>: PASSED:
13278 REQUIRE( v.capacity() >= V )
13279 with expansion:
13280 15 >= 15
13281
13282 -------------------------------------------------------------------------------
13283 TemplateTestSig: vectors can be sized and resized - std::string,15
13284 resizing smaller changes size but not capacity
13285 -------------------------------------------------------------------------------
13286 Misc.tests.cpp:<line number>
13287 ...............................................................................
13288
13289 Misc.tests.cpp:<line number>: PASSED:
13290 REQUIRE( v.size() == 0 )
13291 with expansion:
13292 0 == 0
13293
13294 Misc.tests.cpp:<line number>: PASSED:
13295 REQUIRE( v.capacity() >= V )
13296 with expansion:
13297 15 >= 15
13298
13299 -------------------------------------------------------------------------------
13300 TemplateTestSig: vectors can be sized and resized - std::string,15
13301 resizing smaller changes size but not capacity
13302 We can use the 'swap trick' to reset the capacity
13303 -------------------------------------------------------------------------------
13304 Misc.tests.cpp:<line number>
13305 ...............................................................................
13306
13307 Misc.tests.cpp:<line number>: PASSED:
13308 REQUIRE( v.capacity() == 0 )
13309 with expansion:
13310 0 == 0
13311
13312 -------------------------------------------------------------------------------
13313 TemplateTestSig: vectors can be sized and resized - std::string,15
13314 -------------------------------------------------------------------------------
13315 Misc.tests.cpp:<line number>
13316 ...............................................................................
13317
13318 Misc.tests.cpp:<line number>: PASSED:
13319 REQUIRE( v.size() == V )
13320 with expansion:
13321 15 == 15
13322
13323 Misc.tests.cpp:<line number>: PASSED:
13324 REQUIRE( v.capacity() >= V )
13325 with expansion:
13326 15 >= 15
13327
13328 -------------------------------------------------------------------------------
13329 TemplateTestSig: vectors can be sized and resized - std::string,15
13330 reserving bigger changes capacity but not size
13331 -------------------------------------------------------------------------------
13332 Misc.tests.cpp:<line number>
13333 ...............................................................................
13334
13335 Misc.tests.cpp:<line number>: PASSED:
13336 REQUIRE( v.size() == V )
13337 with expansion:
13338 15 == 15
13339
13340 Misc.tests.cpp:<line number>: PASSED:
13341 REQUIRE( v.capacity() >= 2 * V )
13342 with expansion:
13343 30 >= 30
13344
13345 -------------------------------------------------------------------------------
13346 TemplateTestSig: vectors can be sized and resized - std::string,15
13347 -------------------------------------------------------------------------------
13348 Misc.tests.cpp:<line number>
13349 ...............................................................................
13350
13351 Misc.tests.cpp:<line number>: PASSED:
13352 REQUIRE( v.size() == V )
13353 with expansion:
13354 15 == 15
13355
13356 Misc.tests.cpp:<line number>: PASSED:
13357 REQUIRE( v.capacity() >= V )
13358 with expansion:
13359 15 >= 15
13360
13361 -------------------------------------------------------------------------------
13362 TemplateTestSig: vectors can be sized and resized - std::string,15
13363 reserving smaller does not change size or capacity
13364 -------------------------------------------------------------------------------
13365 Misc.tests.cpp:<line number>
13366 ...............................................................................
13367
13368 Misc.tests.cpp:<line number>: PASSED:
13369 REQUIRE( v.size() == V )
13370 with expansion:
13371 15 == 15
13372
13373 Misc.tests.cpp:<line number>: PASSED:
13374 REQUIRE( v.capacity() >= V )
13375 with expansion:
13376 15 >= 15
13377
13378 -------------------------------------------------------------------------------
13379 Test case with identical tags keeps just one
13380 -------------------------------------------------------------------------------
13381 Tag.tests.cpp:<line number>
13382 ...............................................................................
13383
13384 Tag.tests.cpp:<line number>: PASSED:
13385 REQUIRE( testCase.tags.size() == 1 )
13386 with expansion:
13387 1 == 1
13388
13389 Tag.tests.cpp:<line number>: PASSED:
13390 REQUIRE( testCase.tags[0] == Tag( "tag1" ) )
13391 with expansion:
13392 {?} == {?}
13393
13394 -------------------------------------------------------------------------------
13395 Test case with one argument
13396 -------------------------------------------------------------------------------
13397 VariadicMacros.tests.cpp:<line number>
13398 ...............................................................................
13399
13400 VariadicMacros.tests.cpp:<line number>: PASSED:
13401 with message:
13402 no assertions
13403
13404 -------------------------------------------------------------------------------
13405 Test enum bit values
13406 -------------------------------------------------------------------------------
13407 Tricky.tests.cpp:<line number>
13408 ...............................................................................
13409
13410 Tricky.tests.cpp:<line number>: PASSED:
13411 REQUIRE( 0x<hex digits> == bit30and31 )
13412 with expansion:
13413 3221225472 (0x<hex digits>) == 3221225472
13414
13415 -------------------------------------------------------------------------------
13416 Test with special, characters "in name
13417 -------------------------------------------------------------------------------
13418 CmdLine.tests.cpp:<line number>
13419 ...............................................................................
13420
13421 CmdLine.tests.cpp:<line number>: PASSED:
13422
13423 -------------------------------------------------------------------------------
13424 Testing checked-if
13425 -------------------------------------------------------------------------------
13426 Misc.tests.cpp:<line number>
13427 ...............................................................................
13428
13429 Misc.tests.cpp:<line number>: PASSED:
13430 CHECKED_IF( true )
13431
13432 Misc.tests.cpp:<line number>: PASSED:
13433
13434 Misc.tests.cpp:<line number>: FAILED - but was ok:
13435 CHECKED_IF( false )
13436
13437 Misc.tests.cpp:<line number>: PASSED:
13438 CHECKED_ELSE( true )
13439
13440 Misc.tests.cpp:<line number>: FAILED - but was ok:
13441 CHECKED_ELSE( false )
13442
13443 Misc.tests.cpp:<line number>: PASSED:
13444
13445 -------------------------------------------------------------------------------
13446 Testing checked-if 2
13447 -------------------------------------------------------------------------------
13448 Misc.tests.cpp:<line number>
13449 ...............................................................................
13450
13451 Misc.tests.cpp:<line number>: PASSED:
13452 CHECKED_IF( true )
13453
13454 Misc.tests.cpp:<line number>: FAILED:
13455
13456 -------------------------------------------------------------------------------
13457 Testing checked-if 3
13458 -------------------------------------------------------------------------------
13459 Misc.tests.cpp:<line number>
13460 ...............................................................................
13461
13462 Misc.tests.cpp:<line number>: FAILED - but was ok:
13463 CHECKED_ELSE( false )
13464
13465 Misc.tests.cpp:<line number>: FAILED:
13466
13467 -------------------------------------------------------------------------------
13468 Testing checked-if 4
13469 -------------------------------------------------------------------------------
13470 Misc.tests.cpp:<line number>
13471 ...............................................................................
13472
13473 Misc.tests.cpp:<line number>: PASSED:
13474 CHECKED_ELSE( true )
13475
13476 Misc.tests.cpp:<line number>: FAILED:
13477 {Unknown expression after the reported line}
13478 due to unexpected exception with message:
13479 Uncaught exception should fail!
13480
13481 -------------------------------------------------------------------------------
13482 Testing checked-if 5
13483 -------------------------------------------------------------------------------
13484 Misc.tests.cpp:<line number>
13485 ...............................................................................
13486
13487 Misc.tests.cpp:<line number>: FAILED - but was ok:
13488 CHECKED_ELSE( false )
13489
13490 Misc.tests.cpp:<line number>: FAILED:
13491 {Unknown expression after the reported line}
13492 due to unexpected exception with message:
13493 Uncaught exception should fail!
13494
13495 -------------------------------------------------------------------------------
13496 The NO_FAIL macro reports a failure but does not fail the test
13497 -------------------------------------------------------------------------------
13498 Message.tests.cpp:<line number>
13499 ...............................................................................
13500
13501 Message.tests.cpp:<line number>: FAILED - but was ok:
13502 CHECK_NOFAIL( 1 == 2 )
13503
13504
13505 No assertions in test case 'The NO_FAIL macro reports a failure but does not fail the test'
13506
13507 -------------------------------------------------------------------------------
13508 The default listing implementation write to provided stream
13509 Listing tags
13510 -------------------------------------------------------------------------------
13511 Reporters.tests.cpp:<line number>
13512 ...............................................................................
13513
13514 Reporters.tests.cpp:<line number>: PASSED:
13515 REQUIRE_THAT( listingString, ContainsSubstring("[fakeTag]"s) )
13516 with expansion:
13517 "All available tags:
13518 1 [fakeTag]
13519 1 tag
13520
13521 " contains: "[fakeTag]"
13522
13523 -------------------------------------------------------------------------------
13524 The default listing implementation write to provided stream
13525 Listing reporters
13526 -------------------------------------------------------------------------------
13527 Reporters.tests.cpp:<line number>
13528 ...............................................................................
13529
13530 Reporters.tests.cpp:<line number>: PASSED:
13531 REQUIRE_THAT( listingString, ContainsSubstring( "fake reporter"s ) && ContainsSubstring( "fake description"s ) )
13532 with expansion:
13533 "Available reporters:
13534 fake reporter: fake description
13535
13536 " ( contains: "fake reporter" and contains: "fake description" )
13537
13538 -------------------------------------------------------------------------------
13539 The default listing implementation write to provided stream
13540 Listing tests
13541 -------------------------------------------------------------------------------
13542 Reporters.tests.cpp:<line number>
13543 ...............................................................................
13544
13545 Reporters.tests.cpp:<line number>: PASSED:
13546 REQUIRE_THAT( listingString, ContainsSubstring( "fake test name"s ) && ContainsSubstring( "fakeTestTag"s ) )
13547 with expansion:
13548 "All available test cases:
13549 fake test name
13550 [fakeTestTag]
13551 1 test case
13552
13553 " ( contains: "fake test name" and contains: "fakeTestTag" )
13554
13555 -------------------------------------------------------------------------------
13556 The default listing implementation write to provided stream
13557 Listing listeners
13558 -------------------------------------------------------------------------------
13559 Reporters.tests.cpp:<line number>
13560 ...............................................................................
13561
13562 Reporters.tests.cpp:<line number>: PASSED:
13563 REQUIRE_THAT( listingString, ContainsSubstring( "fakeListener"s ) && ContainsSubstring( "fake description"s ) )
13564 with expansion:
13565 "Registered listeners:
13566 fakeListener: fake description
13567
13568 " ( contains: "fakeListener" and contains: "fake description" )
13569
13570 -------------------------------------------------------------------------------
13571 This test 'should' fail but doesn't
13572 -------------------------------------------------------------------------------
13573 Misc.tests.cpp:<line number>
13574 ...............................................................................
13575
13576 Misc.tests.cpp:<line number>: PASSED:
13577 with message:
13578 oops!
13579
13580 -------------------------------------------------------------------------------
13581 Thrown string literals are translated
13582 -------------------------------------------------------------------------------
13583 Exception.tests.cpp:<line number>
13584 ...............................................................................
13585
13586 Exception.tests.cpp:<line number>: FAILED:
13587 due to unexpected exception with message:
13588 For some reason someone is throwing a string literal!
13589
13590 -------------------------------------------------------------------------------
13591 Tracker
13592 -------------------------------------------------------------------------------
13593 PartTracker.tests.cpp:<line number>
13594 ...............................................................................
13595
13596 PartTracker.tests.cpp:<line number>: PASSED:
13597 REQUIRE( testCase.isOpen() )
13598 with expansion:
13599 true
13600
13601 PartTracker.tests.cpp:<line number>: PASSED:
13602 REQUIRE( s1.isOpen() )
13603 with expansion:
13604 true
13605
13606 -------------------------------------------------------------------------------
13607 Tracker
13608 successfully close one section
13609 -------------------------------------------------------------------------------
13610 PartTracker.tests.cpp:<line number>
13611 ...............................................................................
13612
13613 PartTracker.tests.cpp:<line number>: PASSED:
13614 REQUIRE( s1.isSuccessfullyCompleted() )
13615 with expansion:
13616 true
13617
13618 PartTracker.tests.cpp:<line number>: PASSED:
13619 REQUIRE( testCase.isComplete() == false )
13620 with expansion:
13621 false == false
13622
13623 PartTracker.tests.cpp:<line number>: PASSED:
13624 REQUIRE( ctx.completedCycle() )
13625 with expansion:
13626 true
13627
13628 PartTracker.tests.cpp:<line number>: PASSED:
13629 REQUIRE( testCase.isSuccessfullyCompleted() )
13630 with expansion:
13631 true
13632
13633 -------------------------------------------------------------------------------
13634 Tracker
13635 -------------------------------------------------------------------------------
13636 PartTracker.tests.cpp:<line number>
13637 ...............................................................................
13638
13639 PartTracker.tests.cpp:<line number>: PASSED:
13640 REQUIRE( testCase.isOpen() )
13641 with expansion:
13642 true
13643
13644 PartTracker.tests.cpp:<line number>: PASSED:
13645 REQUIRE( s1.isOpen() )
13646 with expansion:
13647 true
13648
13649 -------------------------------------------------------------------------------
13650 Tracker
13651 fail one section
13652 -------------------------------------------------------------------------------
13653 PartTracker.tests.cpp:<line number>
13654 ...............................................................................
13655
13656 PartTracker.tests.cpp:<line number>: PASSED:
13657 REQUIRE( s1.isComplete() )
13658 with expansion:
13659 true
13660
13661 PartTracker.tests.cpp:<line number>: PASSED:
13662 REQUIRE( s1.isSuccessfullyCompleted() == false )
13663 with expansion:
13664 false == false
13665
13666 PartTracker.tests.cpp:<line number>: PASSED:
13667 REQUIRE( testCase.isComplete() == false )
13668 with expansion:
13669 false == false
13670
13671 PartTracker.tests.cpp:<line number>: PASSED:
13672 REQUIRE( ctx.completedCycle() )
13673 with expansion:
13674 true
13675
13676 PartTracker.tests.cpp:<line number>: PASSED:
13677 REQUIRE( testCase.isSuccessfullyCompleted() == false )
13678 with expansion:
13679 false == false
13680
13681 -------------------------------------------------------------------------------
13682 Tracker
13683 fail one section
13684 re-enter after failed section
13685 -------------------------------------------------------------------------------
13686 PartTracker.tests.cpp:<line number>
13687 ...............................................................................
13688
13689 PartTracker.tests.cpp:<line number>: PASSED:
13690 REQUIRE( testCase2.isOpen() )
13691 with expansion:
13692 true
13693
13694 PartTracker.tests.cpp:<line number>: PASSED:
13695 REQUIRE( s1b.isOpen() == false )
13696 with expansion:
13697 false == false
13698
13699 PartTracker.tests.cpp:<line number>: PASSED:
13700 REQUIRE( ctx.completedCycle() )
13701 with expansion:
13702 true
13703
13704 PartTracker.tests.cpp:<line number>: PASSED:
13705 REQUIRE( testCase.isComplete() )
13706 with expansion:
13707 true
13708
13709 PartTracker.tests.cpp:<line number>: PASSED:
13710 REQUIRE( testCase.isSuccessfullyCompleted() )
13711 with expansion:
13712 true
13713
13714 -------------------------------------------------------------------------------
13715 Tracker
13716 -------------------------------------------------------------------------------
13717 PartTracker.tests.cpp:<line number>
13718 ...............................................................................
13719
13720 PartTracker.tests.cpp:<line number>: PASSED:
13721 REQUIRE( testCase.isOpen() )
13722 with expansion:
13723 true
13724
13725 PartTracker.tests.cpp:<line number>: PASSED:
13726 REQUIRE( s1.isOpen() )
13727 with expansion:
13728 true
13729
13730 -------------------------------------------------------------------------------
13731 Tracker
13732 fail one section
13733 -------------------------------------------------------------------------------
13734 PartTracker.tests.cpp:<line number>
13735 ...............................................................................
13736
13737 PartTracker.tests.cpp:<line number>: PASSED:
13738 REQUIRE( s1.isComplete() )
13739 with expansion:
13740 true
13741
13742 PartTracker.tests.cpp:<line number>: PASSED:
13743 REQUIRE( s1.isSuccessfullyCompleted() == false )
13744 with expansion:
13745 false == false
13746
13747 PartTracker.tests.cpp:<line number>: PASSED:
13748 REQUIRE( testCase.isComplete() == false )
13749 with expansion:
13750 false == false
13751
13752 PartTracker.tests.cpp:<line number>: PASSED:
13753 REQUIRE( ctx.completedCycle() )
13754 with expansion:
13755 true
13756
13757 PartTracker.tests.cpp:<line number>: PASSED:
13758 REQUIRE( testCase.isSuccessfullyCompleted() == false )
13759 with expansion:
13760 false == false
13761
13762 -------------------------------------------------------------------------------
13763 Tracker
13764 fail one section
13765 re-enter after failed section and find next section
13766 -------------------------------------------------------------------------------
13767 PartTracker.tests.cpp:<line number>
13768 ...............................................................................
13769
13770 PartTracker.tests.cpp:<line number>: PASSED:
13771 REQUIRE( testCase2.isOpen() )
13772 with expansion:
13773 true
13774
13775 PartTracker.tests.cpp:<line number>: PASSED:
13776 REQUIRE( s1b.isOpen() == false )
13777 with expansion:
13778 false == false
13779
13780 PartTracker.tests.cpp:<line number>: PASSED:
13781 REQUIRE( s2.isOpen() )
13782 with expansion:
13783 true
13784
13785 PartTracker.tests.cpp:<line number>: PASSED:
13786 REQUIRE( ctx.completedCycle() )
13787 with expansion:
13788 true
13789
13790 PartTracker.tests.cpp:<line number>: PASSED:
13791 REQUIRE( testCase.isComplete() )
13792 with expansion:
13793 true
13794
13795 PartTracker.tests.cpp:<line number>: PASSED:
13796 REQUIRE( testCase.isSuccessfullyCompleted() )
13797 with expansion:
13798 true
13799
13800 -------------------------------------------------------------------------------
13801 Tracker
13802 -------------------------------------------------------------------------------
13803 PartTracker.tests.cpp:<line number>
13804 ...............................................................................
13805
13806 PartTracker.tests.cpp:<line number>: PASSED:
13807 REQUIRE( testCase.isOpen() )
13808 with expansion:
13809 true
13810
13811 PartTracker.tests.cpp:<line number>: PASSED:
13812 REQUIRE( s1.isOpen() )
13813 with expansion:
13814 true
13815
13816 -------------------------------------------------------------------------------
13817 Tracker
13818 successfully close one section, then find another
13819 -------------------------------------------------------------------------------
13820 PartTracker.tests.cpp:<line number>
13821 ...............................................................................
13822
13823 PartTracker.tests.cpp:<line number>: PASSED:
13824 REQUIRE( s2.isOpen() == false )
13825 with expansion:
13826 false == false
13827
13828 PartTracker.tests.cpp:<line number>: PASSED:
13829 REQUIRE( testCase.isComplete() == false )
13830 with expansion:
13831 false == false
13832
13833 -------------------------------------------------------------------------------
13834 Tracker
13835 successfully close one section, then find another
13836 Re-enter - skips S1 and enters S2
13837 -------------------------------------------------------------------------------
13838 PartTracker.tests.cpp:<line number>
13839 ...............................................................................
13840
13841 PartTracker.tests.cpp:<line number>: PASSED:
13842 REQUIRE( testCase2.isOpen() )
13843 with expansion:
13844 true
13845
13846 PartTracker.tests.cpp:<line number>: PASSED:
13847 REQUIRE( s1b.isOpen() == false )
13848 with expansion:
13849 false == false
13850
13851 PartTracker.tests.cpp:<line number>: PASSED:
13852 REQUIRE( s2b.isOpen() )
13853 with expansion:
13854 true
13855
13856 PartTracker.tests.cpp:<line number>: PASSED:
13857 REQUIRE( ctx.completedCycle() == false )
13858 with expansion:
13859 false == false
13860
13861 -------------------------------------------------------------------------------
13862 Tracker
13863 successfully close one section, then find another
13864 Re-enter - skips S1 and enters S2
13865 Successfully close S2
13866 -------------------------------------------------------------------------------
13867 PartTracker.tests.cpp:<line number>
13868 ...............................................................................
13869
13870 PartTracker.tests.cpp:<line number>: PASSED:
13871 REQUIRE( ctx.completedCycle() )
13872 with expansion:
13873 true
13874
13875 PartTracker.tests.cpp:<line number>: PASSED:
13876 REQUIRE( s2b.isSuccessfullyCompleted() )
13877 with expansion:
13878 true
13879
13880 PartTracker.tests.cpp:<line number>: PASSED:
13881 REQUIRE( testCase2.isComplete() == false )
13882 with expansion:
13883 false == false
13884
13885 PartTracker.tests.cpp:<line number>: PASSED:
13886 REQUIRE( testCase2.isSuccessfullyCompleted() )
13887 with expansion:
13888 true
13889
13890 -------------------------------------------------------------------------------
13891 Tracker
13892 -------------------------------------------------------------------------------
13893 PartTracker.tests.cpp:<line number>
13894 ...............................................................................
13895
13896 PartTracker.tests.cpp:<line number>: PASSED:
13897 REQUIRE( testCase.isOpen() )
13898 with expansion:
13899 true
13900
13901 PartTracker.tests.cpp:<line number>: PASSED:
13902 REQUIRE( s1.isOpen() )
13903 with expansion:
13904 true
13905
13906 -------------------------------------------------------------------------------
13907 Tracker
13908 successfully close one section, then find another
13909 -------------------------------------------------------------------------------
13910 PartTracker.tests.cpp:<line number>
13911 ...............................................................................
13912
13913 PartTracker.tests.cpp:<line number>: PASSED:
13914 REQUIRE( s2.isOpen() == false )
13915 with expansion:
13916 false == false
13917
13918 PartTracker.tests.cpp:<line number>: PASSED:
13919 REQUIRE( testCase.isComplete() == false )
13920 with expansion:
13921 false == false
13922
13923 -------------------------------------------------------------------------------
13924 Tracker
13925 successfully close one section, then find another
13926 Re-enter - skips S1 and enters S2
13927 -------------------------------------------------------------------------------
13928 PartTracker.tests.cpp:<line number>
13929 ...............................................................................
13930
13931 PartTracker.tests.cpp:<line number>: PASSED:
13932 REQUIRE( testCase2.isOpen() )
13933 with expansion:
13934 true
13935
13936 PartTracker.tests.cpp:<line number>: PASSED:
13937 REQUIRE( s1b.isOpen() == false )
13938 with expansion:
13939 false == false
13940
13941 PartTracker.tests.cpp:<line number>: PASSED:
13942 REQUIRE( s2b.isOpen() )
13943 with expansion:
13944 true
13945
13946 PartTracker.tests.cpp:<line number>: PASSED:
13947 REQUIRE( ctx.completedCycle() == false )
13948 with expansion:
13949 false == false
13950
13951 -------------------------------------------------------------------------------
13952 Tracker
13953 successfully close one section, then find another
13954 Re-enter - skips S1 and enters S2
13955 fail S2
13956 -------------------------------------------------------------------------------
13957 PartTracker.tests.cpp:<line number>
13958 ...............................................................................
13959
13960 PartTracker.tests.cpp:<line number>: PASSED:
13961 REQUIRE( ctx.completedCycle() )
13962 with expansion:
13963 true
13964
13965 PartTracker.tests.cpp:<line number>: PASSED:
13966 REQUIRE( s2b.isComplete() )
13967 with expansion:
13968 true
13969
13970 PartTracker.tests.cpp:<line number>: PASSED:
13971 REQUIRE( s2b.isSuccessfullyCompleted() == false )
13972 with expansion:
13973 false == false
13974
13975 PartTracker.tests.cpp:<line number>: PASSED:
13976 REQUIRE( testCase2.isSuccessfullyCompleted() == false )
13977 with expansion:
13978 false == false
13979
13980 PartTracker.tests.cpp:<line number>: PASSED:
13981 REQUIRE( testCase3.isOpen() )
13982 with expansion:
13983 true
13984
13985 PartTracker.tests.cpp:<line number>: PASSED:
13986 REQUIRE( s1c.isOpen() == false )
13987 with expansion:
13988 false == false
13989
13990 PartTracker.tests.cpp:<line number>: PASSED:
13991 REQUIRE( s2c.isOpen() == false )
13992 with expansion:
13993 false == false
13994
13995 PartTracker.tests.cpp:<line number>: PASSED:
13996 REQUIRE( testCase3.isSuccessfullyCompleted() )
13997 with expansion:
13998 true
13999
14000 -------------------------------------------------------------------------------
14001 Tracker
14002 -------------------------------------------------------------------------------
14003 PartTracker.tests.cpp:<line number>
14004 ...............................................................................
14005
14006 PartTracker.tests.cpp:<line number>: PASSED:
14007 REQUIRE( testCase.isOpen() )
14008 with expansion:
14009 true
14010
14011 PartTracker.tests.cpp:<line number>: PASSED:
14012 REQUIRE( s1.isOpen() )
14013 with expansion:
14014 true
14015
14016 -------------------------------------------------------------------------------
14017 Tracker
14018 open a nested section
14019 -------------------------------------------------------------------------------
14020 PartTracker.tests.cpp:<line number>
14021 ...............................................................................
14022
14023 PartTracker.tests.cpp:<line number>: PASSED:
14024 REQUIRE( s2.isOpen() )
14025 with expansion:
14026 true
14027
14028 PartTracker.tests.cpp:<line number>: PASSED:
14029 REQUIRE( s2.isComplete() )
14030 with expansion:
14031 true
14032
14033 PartTracker.tests.cpp:<line number>: PASSED:
14034 REQUIRE( s1.isComplete() == false )
14035 with expansion:
14036 false == false
14037
14038 PartTracker.tests.cpp:<line number>: PASSED:
14039 REQUIRE( s1.isComplete() )
14040 with expansion:
14041 true
14042
14043 PartTracker.tests.cpp:<line number>: PASSED:
14044 REQUIRE( testCase.isComplete() == false )
14045 with expansion:
14046 false == false
14047
14048 PartTracker.tests.cpp:<line number>: PASSED:
14049 REQUIRE( testCase.isComplete() )
14050 with expansion:
14051 true
14052
14053 -------------------------------------------------------------------------------
14054 Trim strings
14055 -------------------------------------------------------------------------------
14056 StringManip.tests.cpp:<line number>
14057 ...............................................................................
14058
14059 StringManip.tests.cpp:<line number>: PASSED:
14060 REQUIRE( trim(std::string(no_whitespace)) == no_whitespace )
14061 with expansion:
14062 "There is no extra whitespace here"
14063 ==
14064 "There is no extra whitespace here"
14065
14066 StringManip.tests.cpp:<line number>: PASSED:
14067 REQUIRE( trim(std::string(leading_whitespace)) == no_whitespace )
14068 with expansion:
14069 "There is no extra whitespace here"
14070 ==
14071 "There is no extra whitespace here"
14072
14073 StringManip.tests.cpp:<line number>: PASSED:
14074 REQUIRE( trim(std::string(trailing_whitespace)) == no_whitespace )
14075 with expansion:
14076 "There is no extra whitespace here"
14077 ==
14078 "There is no extra whitespace here"
14079
14080 StringManip.tests.cpp:<line number>: PASSED:
14081 REQUIRE( trim(std::string(whitespace_at_both_ends)) == no_whitespace )
14082 with expansion:
14083 "There is no extra whitespace here"
14084 ==
14085 "There is no extra whitespace here"
14086
14087 StringManip.tests.cpp:<line number>: PASSED:
14088 REQUIRE( trim(StringRef(no_whitespace)) == StringRef(no_whitespace) )
14089 with expansion:
14090 There is no extra whitespace here
14091 ==
14092 There is no extra whitespace here
14093
14094 StringManip.tests.cpp:<line number>: PASSED:
14095 REQUIRE( trim(StringRef(leading_whitespace)) == StringRef(no_whitespace) )
14096 with expansion:
14097 There is no extra whitespace here
14098 ==
14099 There is no extra whitespace here
14100
14101 StringManip.tests.cpp:<line number>: PASSED:
14102 REQUIRE( trim(StringRef(trailing_whitespace)) == StringRef(no_whitespace) )
14103 with expansion:
14104 There is no extra whitespace here
14105 ==
14106 There is no extra whitespace here
14107
14108 StringManip.tests.cpp:<line number>: PASSED:
14109 REQUIRE( trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace) )
14110 with expansion:
14111 There is no extra whitespace here
14112 ==
14113 There is no extra whitespace here
14114
14115 -------------------------------------------------------------------------------
14116 Type conversions of RangeEquals and similar
14117 Container conversions
14118 Two equal containers of different container types
14119 -------------------------------------------------------------------------------
14120 MatchersRanges.tests.cpp:<line number>
14121 ...............................................................................
14122
14123 MatchersRanges.tests.cpp:<line number>: PASSED:
14124 CHECK_THAT( array_int_a, RangeEquals( c_array ) )
14125 with expansion:
14126 { 1, 2, 3 } elements are { 1, 2, 3 }
14127
14128 MatchersRanges.tests.cpp:<line number>: PASSED:
14129 CHECK_THAT( array_int_a, UnorderedRangeEquals( c_array ) )
14130 with expansion:
14131 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
14132
14133 -------------------------------------------------------------------------------
14134 Type conversions of RangeEquals and similar
14135 Container conversions
14136 Two equal containers of different container types (differ in array N)
14137 -------------------------------------------------------------------------------
14138 MatchersRanges.tests.cpp:<line number>
14139 ...............................................................................
14140
14141 MatchersRanges.tests.cpp:<line number>: PASSED:
14142 CHECK_THAT( array_int_3, !RangeEquals( array_int_4 ) )
14143 with expansion:
14144 { 1, 2, 3 } not elements are { 1, 2, 3, 4 }
14145
14146 MatchersRanges.tests.cpp:<line number>: PASSED:
14147 CHECK_THAT( array_int_3, !UnorderedRangeEquals( array_int_4 ) )
14148 with expansion:
14149 { 1, 2, 3 } not unordered elements are { 1, 2, 3, 4 }
14150
14151 -------------------------------------------------------------------------------
14152 Type conversions of RangeEquals and similar
14153 Container conversions
14154 Two equal containers of different container types and value types
14155 -------------------------------------------------------------------------------
14156 MatchersRanges.tests.cpp:<line number>
14157 ...............................................................................
14158
14159 MatchersRanges.tests.cpp:<line number>: PASSED:
14160 CHECK_THAT( array_int_a, RangeEquals( vector_char_a ) )
14161 with expansion:
14162 { 1, 2, 3 } elements are { 1, 2, 3 }
14163
14164 MatchersRanges.tests.cpp:<line number>: PASSED:
14165 CHECK_THAT( array_int_a, UnorderedRangeEquals( vector_char_a ) )
14166 with expansion:
14167 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
14168
14169 -------------------------------------------------------------------------------
14170 Type conversions of RangeEquals and similar
14171 Container conversions
14172 Two equal containers, one random access, one not
14173 -------------------------------------------------------------------------------
14174 MatchersRanges.tests.cpp:<line number>
14175 ...............................................................................
14176
14177 MatchersRanges.tests.cpp:<line number>: PASSED:
14178 with message:
14179 ContainerIsRandomAccess( array_int_a ) != ContainerIsRandomAccess(
14180 list_char_a )
14181
14182 MatchersRanges.tests.cpp:<line number>: PASSED:
14183 CHECK_THAT( array_int_a, RangeEquals( list_char_a ) )
14184 with expansion:
14185 { 1, 2, 3 } elements are { 1, 2, 3 }
14186
14187 MatchersRanges.tests.cpp:<line number>: PASSED:
14188 CHECK_THAT( array_int_a, UnorderedRangeEquals( list_char_a ) )
14189 with expansion:
14190 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
14191
14192 -------------------------------------------------------------------------------
14193 Type conversions of RangeEquals and similar
14194 Value type
14195 Two equal containers of different value types
14196 -------------------------------------------------------------------------------
14197 MatchersRanges.tests.cpp:<line number>
14198 ...............................................................................
14199
14200 MatchersRanges.tests.cpp:<line number>: PASSED:
14201 CHECK_THAT( vector_int_a, RangeEquals( vector_char_a ) )
14202 with expansion:
14203 { 1, 2, 3 } elements are { 1, 2, 3 }
14204
14205 MatchersRanges.tests.cpp:<line number>: PASSED:
14206 CHECK_THAT( vector_int_a, UnorderedRangeEquals( vector_char_a ) )
14207 with expansion:
14208 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
14209
14210 -------------------------------------------------------------------------------
14211 Type conversions of RangeEquals and similar
14212 Value type
14213 Two non-equal containers of different value types
14214 -------------------------------------------------------------------------------
14215 MatchersRanges.tests.cpp:<line number>
14216 ...............................................................................
14217
14218 MatchersRanges.tests.cpp:<line number>: PASSED:
14219 CHECK_THAT( vector_int_a, !RangeEquals( vector_char_b ) )
14220 with expansion:
14221 { 1, 2, 3 } not elements are { 1, 2, 2 }
14222
14223 MatchersRanges.tests.cpp:<line number>: PASSED:
14224 CHECK_THAT( vector_int_a, !UnorderedRangeEquals( vector_char_b ) )
14225 with expansion:
14226 { 1, 2, 3 } not unordered elements are { 1, 2, 2 }
14227
14228 -------------------------------------------------------------------------------
14229 Type conversions of RangeEquals and similar
14230 Ranges with begin that needs ADL
14231 -------------------------------------------------------------------------------
14232 MatchersRanges.tests.cpp:<line number>
14233 ...............................................................................
14234
14235 MatchersRanges.tests.cpp:<line number>: PASSED:
14236 REQUIRE_THAT( a, !RangeEquals( b ) )
14237 with expansion:
14238 { 1, 2, 3 } not elements are { 3, 2, 1 }
14239
14240 MatchersRanges.tests.cpp:<line number>: PASSED:
14241 REQUIRE_THAT( a, UnorderedRangeEquals( b ) )
14242 with expansion:
14243 { 1, 2, 3 } unordered elements are { 3, 2, 1 }
14244
14245 -------------------------------------------------------------------------------
14246 Type conversions of RangeEquals and similar
14247 Custom predicate
14248 Two equal non-empty containers (close enough)
14249 -------------------------------------------------------------------------------
14250 MatchersRanges.tests.cpp:<line number>
14251 ...............................................................................
14252
14253 MatchersRanges.tests.cpp:<line number>: PASSED:
14254 CHECK_THAT( vector_a, RangeEquals( array_a_plus_1, close_enough ) )
14255 with expansion:
14256 { 1, 2, 3 } elements are { 2, 3, 4 }
14257
14258 MatchersRanges.tests.cpp:<line number>: PASSED:
14259 CHECK_THAT( vector_a, UnorderedRangeEquals( array_a_plus_1, close_enough ) )
14260 with expansion:
14261 { 1, 2, 3 } unordered elements are { 2, 3, 4 }
14262
14263 -------------------------------------------------------------------------------
14264 Unexpected exceptions can be translated
14265 -------------------------------------------------------------------------------
14266 Exception.tests.cpp:<line number>
14267 ...............................................................................
14268
14269 Exception.tests.cpp:<line number>: FAILED:
14270 due to unexpected exception with message:
14271 3.14000000000000012
14272
14273 -------------------------------------------------------------------------------
14274 Upcasting special member functions
14275 Move constructor
14276 -------------------------------------------------------------------------------
14277 UniquePtr.tests.cpp:<line number>
14278 ...............................................................................
14279
14280 UniquePtr.tests.cpp:<line number>: PASSED:
14281 REQUIRE( bptr->i == 3 )
14282 with expansion:
14283 3 == 3
14284
14285 -------------------------------------------------------------------------------
14286 Upcasting special member functions
14287 move assignment
14288 -------------------------------------------------------------------------------
14289 UniquePtr.tests.cpp:<line number>
14290 ...............................................................................
14291
14292 UniquePtr.tests.cpp:<line number>: PASSED:
14293 REQUIRE( bptr->i == 3 )
14294 with expansion:
14295 3 == 3
14296
14297 -------------------------------------------------------------------------------
14298 Usage of AllMatch range matcher
14299 Basic usage
14300 -------------------------------------------------------------------------------
14301 MatchersRanges.tests.cpp:<line number>
14302 ...............................................................................
14303
14304 MatchersRanges.tests.cpp:<line number>: PASSED:
14305 REQUIRE_THAT( data, AllMatch(SizeIs(5)) )
14306 with expansion:
14307 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14308 }, { 1, 0, 0, -1, 5 } } all match has size == 5
14309
14310 MatchersRanges.tests.cpp:<line number>: PASSED:
14311 REQUIRE_THAT( data, !AllMatch(Contains(0) && Contains(1)) )
14312 with expansion:
14313 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14314 }, { 1, 0, 0, -1, 5 } } not all match ( contains element 0 and contains
14315 element 1 )
14316
14317 -------------------------------------------------------------------------------
14318 Usage of AllMatch range matcher
14319 Type requires ADL found begin and end
14320 -------------------------------------------------------------------------------
14321 MatchersRanges.tests.cpp:<line number>
14322 ...............................................................................
14323
14324 MatchersRanges.tests.cpp:<line number>: PASSED:
14325 REQUIRE_THAT( needs_adl, AllMatch( Predicate<int>( []( int elem ) { return elem < 6; } ) ) )
14326 with expansion:
14327 { 1, 2, 3, 4, 5 } all match matches undescribed predicate
14328
14329 -------------------------------------------------------------------------------
14330 Usage of AllMatch range matcher
14331 Shortcircuiting
14332 All are read
14333 -------------------------------------------------------------------------------
14334 MatchersRanges.tests.cpp:<line number>
14335 ...............................................................................
14336
14337 MatchersRanges.tests.cpp:<line number>: PASSED:
14338 REQUIRE_THAT( mocked, allMatch )
14339 with expansion:
14340 { 1, 2, 3, 4, 5 } all match matches undescribed predicate
14341
14342 MatchersRanges.tests.cpp:<line number>: PASSED:
14343 REQUIRE( mocked.m_derefed[0] )
14344 with expansion:
14345 true
14346
14347 MatchersRanges.tests.cpp:<line number>: PASSED:
14348 REQUIRE( mocked.m_derefed[1] )
14349 with expansion:
14350 true
14351
14352 MatchersRanges.tests.cpp:<line number>: PASSED:
14353 REQUIRE( mocked.m_derefed[2] )
14354 with expansion:
14355 true
14356
14357 MatchersRanges.tests.cpp:<line number>: PASSED:
14358 REQUIRE( mocked.m_derefed[3] )
14359 with expansion:
14360 true
14361
14362 MatchersRanges.tests.cpp:<line number>: PASSED:
14363 REQUIRE( mocked.m_derefed[4] )
14364 with expansion:
14365 true
14366
14367 -------------------------------------------------------------------------------
14368 Usage of AllMatch range matcher
14369 Shortcircuiting
14370 Short-circuited
14371 -------------------------------------------------------------------------------
14372 MatchersRanges.tests.cpp:<line number>
14373 ...............................................................................
14374
14375 MatchersRanges.tests.cpp:<line number>: PASSED:
14376 REQUIRE_THAT( mocked, !allMatch )
14377 with expansion:
14378 { 1, 2, 3, 4, 5 } not all match matches undescribed predicate
14379
14380 MatchersRanges.tests.cpp:<line number>: PASSED:
14381 REQUIRE( mocked.m_derefed[0] )
14382 with expansion:
14383 true
14384
14385 MatchersRanges.tests.cpp:<line number>: PASSED:
14386 REQUIRE( mocked.m_derefed[1] )
14387 with expansion:
14388 true
14389
14390 MatchersRanges.tests.cpp:<line number>: PASSED:
14391 REQUIRE( mocked.m_derefed[2] )
14392 with expansion:
14393 true
14394
14395 MatchersRanges.tests.cpp:<line number>: PASSED:
14396 REQUIRE_FALSE( mocked.m_derefed[3] )
14397 with expansion:
14398 !false
14399
14400 MatchersRanges.tests.cpp:<line number>: PASSED:
14401 REQUIRE_FALSE( mocked.m_derefed[4] )
14402 with expansion:
14403 !false
14404
14405 -------------------------------------------------------------------------------
14406 Usage of AllTrue range matcher
14407 Basic usage
14408 All true evaluates to true
14409 -------------------------------------------------------------------------------
14410 MatchersRanges.tests.cpp:<line number>
14411 ...............................................................................
14412
14413 MatchersRanges.tests.cpp:<line number>: PASSED:
14414 REQUIRE_THAT( data, AllTrue() )
14415 with expansion:
14416 { true, true, true, true, true } contains only true
14417
14418 -------------------------------------------------------------------------------
14419 Usage of AllTrue range matcher
14420 Basic usage
14421 Empty evaluates to true
14422 -------------------------------------------------------------------------------
14423 MatchersRanges.tests.cpp:<line number>
14424 ...............................................................................
14425
14426 MatchersRanges.tests.cpp:<line number>: PASSED:
14427 REQUIRE_THAT( data, AllTrue() )
14428 with expansion:
14429 { } contains only true
14430
14431 -------------------------------------------------------------------------------
14432 Usage of AllTrue range matcher
14433 Basic usage
14434 One false evaluates to false
14435 -------------------------------------------------------------------------------
14436 MatchersRanges.tests.cpp:<line number>
14437 ...............................................................................
14438
14439 MatchersRanges.tests.cpp:<line number>: PASSED:
14440 REQUIRE_THAT( data, !AllTrue() )
14441 with expansion:
14442 { true, true, false, true, true } not contains only true
14443
14444 -------------------------------------------------------------------------------
14445 Usage of AllTrue range matcher
14446 Basic usage
14447 All false evaluates to false
14448 -------------------------------------------------------------------------------
14449 MatchersRanges.tests.cpp:<line number>
14450 ...............................................................................
14451
14452 MatchersRanges.tests.cpp:<line number>: PASSED:
14453 REQUIRE_THAT( data, !AllTrue() )
14454 with expansion:
14455 { false, false, false, false, false } not contains only true
14456
14457 -------------------------------------------------------------------------------
14458 Usage of AllTrue range matcher
14459 Contained type is convertible to bool
14460 All true evaluates to true
14461 -------------------------------------------------------------------------------
14462 MatchersRanges.tests.cpp:<line number>
14463 ...............................................................................
14464
14465 MatchersRanges.tests.cpp:<line number>: PASSED:
14466 REQUIRE_THAT( data, AllTrue() )
14467 with expansion:
14468 { true, true, true, true, true } contains only true
14469
14470 -------------------------------------------------------------------------------
14471 Usage of AllTrue range matcher
14472 Contained type is convertible to bool
14473 One false evaluates to false
14474 -------------------------------------------------------------------------------
14475 MatchersRanges.tests.cpp:<line number>
14476 ...............................................................................
14477
14478 MatchersRanges.tests.cpp:<line number>: PASSED:
14479 REQUIRE_THAT( data, !AllTrue() )
14480 with expansion:
14481 { true, true, false, true, true } not contains only true
14482
14483 -------------------------------------------------------------------------------
14484 Usage of AllTrue range matcher
14485 Contained type is convertible to bool
14486 All false evaluates to false
14487 -------------------------------------------------------------------------------
14488 MatchersRanges.tests.cpp:<line number>
14489 ...............................................................................
14490
14491 MatchersRanges.tests.cpp:<line number>: PASSED:
14492 REQUIRE_THAT( data, !AllTrue() )
14493 with expansion:
14494 { false, false, false, false, false } not contains only true
14495
14496 -------------------------------------------------------------------------------
14497 Usage of AllTrue range matcher
14498 Shortcircuiting
14499 All are read
14500 -------------------------------------------------------------------------------
14501 MatchersRanges.tests.cpp:<line number>
14502 ...............................................................................
14503
14504 MatchersRanges.tests.cpp:<line number>: PASSED:
14505 REQUIRE_THAT( mocked, AllTrue() )
14506 with expansion:
14507 { true, true, true, true, true } contains only true
14508
14509 MatchersRanges.tests.cpp:<line number>: PASSED:
14510 REQUIRE( mocked.m_derefed[0] )
14511 with expansion:
14512 true
14513
14514 MatchersRanges.tests.cpp:<line number>: PASSED:
14515 REQUIRE( mocked.m_derefed[1] )
14516 with expansion:
14517 true
14518
14519 MatchersRanges.tests.cpp:<line number>: PASSED:
14520 REQUIRE( mocked.m_derefed[2] )
14521 with expansion:
14522 true
14523
14524 MatchersRanges.tests.cpp:<line number>: PASSED:
14525 REQUIRE( mocked.m_derefed[3] )
14526 with expansion:
14527 true
14528
14529 MatchersRanges.tests.cpp:<line number>: PASSED:
14530 REQUIRE( mocked.m_derefed[4] )
14531 with expansion:
14532 true
14533
14534 -------------------------------------------------------------------------------
14535 Usage of AllTrue range matcher
14536 Shortcircuiting
14537 Short-circuited
14538 -------------------------------------------------------------------------------
14539 MatchersRanges.tests.cpp:<line number>
14540 ...............................................................................
14541
14542 MatchersRanges.tests.cpp:<line number>: PASSED:
14543 REQUIRE_THAT( mocked, !AllTrue() )
14544 with expansion:
14545 { true, true, false, true, true } not contains only true
14546
14547 MatchersRanges.tests.cpp:<line number>: PASSED:
14548 REQUIRE( mocked.m_derefed[0] )
14549 with expansion:
14550 true
14551
14552 MatchersRanges.tests.cpp:<line number>: PASSED:
14553 REQUIRE( mocked.m_derefed[1] )
14554 with expansion:
14555 true
14556
14557 MatchersRanges.tests.cpp:<line number>: PASSED:
14558 REQUIRE( mocked.m_derefed[2] )
14559 with expansion:
14560 true
14561
14562 MatchersRanges.tests.cpp:<line number>: PASSED:
14563 REQUIRE_FALSE( mocked.m_derefed[3] )
14564 with expansion:
14565 !false
14566
14567 MatchersRanges.tests.cpp:<line number>: PASSED:
14568 REQUIRE_FALSE( mocked.m_derefed[4] )
14569 with expansion:
14570 !false
14571
14572 -------------------------------------------------------------------------------
14573 Usage of AnyMatch range matcher
14574 Basic usage
14575 -------------------------------------------------------------------------------
14576 MatchersRanges.tests.cpp:<line number>
14577 ...............................................................................
14578
14579 MatchersRanges.tests.cpp:<line number>: PASSED:
14580 REQUIRE_THAT( data, AnyMatch(SizeIs(5)) )
14581 with expansion:
14582 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14583 }, { 1, 0, 0, -1, 5 } } any match has size == 5
14584
14585 MatchersRanges.tests.cpp:<line number>: PASSED:
14586 REQUIRE_THAT( data, !AnyMatch(Contains(0) && Contains(10)) )
14587 with expansion:
14588 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14589 }, { 1, 0, 0, -1, 5 } } not any match ( contains element 0 and contains
14590 element 10 )
14591
14592 -------------------------------------------------------------------------------
14593 Usage of AnyMatch range matcher
14594 Type requires ADL found begin and end
14595 -------------------------------------------------------------------------------
14596 MatchersRanges.tests.cpp:<line number>
14597 ...............................................................................
14598
14599 MatchersRanges.tests.cpp:<line number>: PASSED:
14600 REQUIRE_THAT( needs_adl, AnyMatch( Predicate<int>( []( int elem ) { return elem < 3; } ) ) )
14601 with expansion:
14602 { 1, 2, 3, 4, 5 } any match matches undescribed predicate
14603
14604 -------------------------------------------------------------------------------
14605 Usage of AnyMatch range matcher
14606 Shortcircuiting
14607 All are read
14608 -------------------------------------------------------------------------------
14609 MatchersRanges.tests.cpp:<line number>
14610 ...............................................................................
14611
14612 MatchersRanges.tests.cpp:<line number>: PASSED:
14613 REQUIRE_THAT( mocked, !anyMatch )
14614 with expansion:
14615 { 1, 2, 3, 4, 5 } not any match matches undescribed predicate
14616
14617 MatchersRanges.tests.cpp:<line number>: PASSED:
14618 REQUIRE( mocked.m_derefed[0] )
14619 with expansion:
14620 true
14621
14622 MatchersRanges.tests.cpp:<line number>: PASSED:
14623 REQUIRE( mocked.m_derefed[1] )
14624 with expansion:
14625 true
14626
14627 MatchersRanges.tests.cpp:<line number>: PASSED:
14628 REQUIRE( mocked.m_derefed[2] )
14629 with expansion:
14630 true
14631
14632 MatchersRanges.tests.cpp:<line number>: PASSED:
14633 REQUIRE( mocked.m_derefed[3] )
14634 with expansion:
14635 true
14636
14637 MatchersRanges.tests.cpp:<line number>: PASSED:
14638 REQUIRE( mocked.m_derefed[4] )
14639 with expansion:
14640 true
14641
14642 -------------------------------------------------------------------------------
14643 Usage of AnyMatch range matcher
14644 Shortcircuiting
14645 Short-circuited
14646 -------------------------------------------------------------------------------
14647 MatchersRanges.tests.cpp:<line number>
14648 ...............................................................................
14649
14650 MatchersRanges.tests.cpp:<line number>: PASSED:
14651 REQUIRE_THAT( mocked, anyMatch )
14652 with expansion:
14653 { 1, 2, 3, 4, 5 } any match matches undescribed predicate
14654
14655 MatchersRanges.tests.cpp:<line number>: PASSED:
14656 REQUIRE( mocked.m_derefed[0] )
14657 with expansion:
14658 true
14659
14660 MatchersRanges.tests.cpp:<line number>: PASSED:
14661 REQUIRE_FALSE( mocked.m_derefed[1] )
14662 with expansion:
14663 !false
14664
14665 MatchersRanges.tests.cpp:<line number>: PASSED:
14666 REQUIRE_FALSE( mocked.m_derefed[2] )
14667 with expansion:
14668 !false
14669
14670 MatchersRanges.tests.cpp:<line number>: PASSED:
14671 REQUIRE_FALSE( mocked.m_derefed[3] )
14672 with expansion:
14673 !false
14674
14675 MatchersRanges.tests.cpp:<line number>: PASSED:
14676 REQUIRE_FALSE( mocked.m_derefed[4] )
14677 with expansion:
14678 !false
14679
14680 -------------------------------------------------------------------------------
14681 Usage of AnyTrue range matcher
14682 Basic usage
14683 All true evaluates to true
14684 -------------------------------------------------------------------------------
14685 MatchersRanges.tests.cpp:<line number>
14686 ...............................................................................
14687
14688 MatchersRanges.tests.cpp:<line number>: PASSED:
14689 REQUIRE_THAT( data, AnyTrue() )
14690 with expansion:
14691 { true, true, true, true, true } contains at least one true
14692
14693 -------------------------------------------------------------------------------
14694 Usage of AnyTrue range matcher
14695 Basic usage
14696 Empty evaluates to false
14697 -------------------------------------------------------------------------------
14698 MatchersRanges.tests.cpp:<line number>
14699 ...............................................................................
14700
14701 MatchersRanges.tests.cpp:<line number>: PASSED:
14702 REQUIRE_THAT( data, !AnyTrue() )
14703 with expansion:
14704 { } not contains at least one true
14705
14706 -------------------------------------------------------------------------------
14707 Usage of AnyTrue range matcher
14708 Basic usage
14709 One true evaluates to true
14710 -------------------------------------------------------------------------------
14711 MatchersRanges.tests.cpp:<line number>
14712 ...............................................................................
14713
14714 MatchersRanges.tests.cpp:<line number>: PASSED:
14715 REQUIRE_THAT( data, AnyTrue() )
14716 with expansion:
14717 { false, false, true, false, false } contains at least one true
14718
14719 -------------------------------------------------------------------------------
14720 Usage of AnyTrue range matcher
14721 Basic usage
14722 All false evaluates to false
14723 -------------------------------------------------------------------------------
14724 MatchersRanges.tests.cpp:<line number>
14725 ...............................................................................
14726
14727 MatchersRanges.tests.cpp:<line number>: PASSED:
14728 REQUIRE_THAT( data, !AnyTrue() )
14729 with expansion:
14730 { false, false, false, false, false } not contains at least one true
14731
14732 -------------------------------------------------------------------------------
14733 Usage of AnyTrue range matcher
14734 Contained type is convertible to bool
14735 All true evaluates to true
14736 -------------------------------------------------------------------------------
14737 MatchersRanges.tests.cpp:<line number>
14738 ...............................................................................
14739
14740 MatchersRanges.tests.cpp:<line number>: PASSED:
14741 REQUIRE_THAT( data, AnyTrue() )
14742 with expansion:
14743 { true, true, true, true, true } contains at least one true
14744
14745 -------------------------------------------------------------------------------
14746 Usage of AnyTrue range matcher
14747 Contained type is convertible to bool
14748 One true evaluates to true
14749 -------------------------------------------------------------------------------
14750 MatchersRanges.tests.cpp:<line number>
14751 ...............................................................................
14752
14753 MatchersRanges.tests.cpp:<line number>: PASSED:
14754 REQUIRE_THAT( data, AnyTrue() )
14755 with expansion:
14756 { false, false, true, false, false } contains at least one true
14757
14758 -------------------------------------------------------------------------------
14759 Usage of AnyTrue range matcher
14760 Contained type is convertible to bool
14761 All false evaluates to false
14762 -------------------------------------------------------------------------------
14763 MatchersRanges.tests.cpp:<line number>
14764 ...............................................................................
14765
14766 MatchersRanges.tests.cpp:<line number>: PASSED:
14767 REQUIRE_THAT( data, !AnyTrue() )
14768 with expansion:
14769 { false, false, false, false, false } not contains at least one true
14770
14771 -------------------------------------------------------------------------------
14772 Usage of AnyTrue range matcher
14773 Shortcircuiting
14774 All are read
14775 -------------------------------------------------------------------------------
14776 MatchersRanges.tests.cpp:<line number>
14777 ...............................................................................
14778
14779 MatchersRanges.tests.cpp:<line number>: PASSED:
14780 REQUIRE_THAT( mocked, AnyTrue() )
14781 with expansion:
14782 { false, false, false, false, true } contains at least one true
14783
14784 MatchersRanges.tests.cpp:<line number>: PASSED:
14785 REQUIRE( mocked.m_derefed[0] )
14786 with expansion:
14787 true
14788
14789 MatchersRanges.tests.cpp:<line number>: PASSED:
14790 REQUIRE( mocked.m_derefed[1] )
14791 with expansion:
14792 true
14793
14794 MatchersRanges.tests.cpp:<line number>: PASSED:
14795 REQUIRE( mocked.m_derefed[2] )
14796 with expansion:
14797 true
14798
14799 MatchersRanges.tests.cpp:<line number>: PASSED:
14800 REQUIRE( mocked.m_derefed[3] )
14801 with expansion:
14802 true
14803
14804 MatchersRanges.tests.cpp:<line number>: PASSED:
14805 REQUIRE( mocked.m_derefed[4] )
14806 with expansion:
14807 true
14808
14809 -------------------------------------------------------------------------------
14810 Usage of AnyTrue range matcher
14811 Shortcircuiting
14812 Short-circuited
14813 -------------------------------------------------------------------------------
14814 MatchersRanges.tests.cpp:<line number>
14815 ...............................................................................
14816
14817 MatchersRanges.tests.cpp:<line number>: PASSED:
14818 REQUIRE_THAT( mocked, AnyTrue() )
14819 with expansion:
14820 { false, false, true, true, true } contains at least one true
14821
14822 MatchersRanges.tests.cpp:<line number>: PASSED:
14823 REQUIRE( mocked.m_derefed[0] )
14824 with expansion:
14825 true
14826
14827 MatchersRanges.tests.cpp:<line number>: PASSED:
14828 REQUIRE( mocked.m_derefed[1] )
14829 with expansion:
14830 true
14831
14832 MatchersRanges.tests.cpp:<line number>: PASSED:
14833 REQUIRE( mocked.m_derefed[2] )
14834 with expansion:
14835 true
14836
14837 MatchersRanges.tests.cpp:<line number>: PASSED:
14838 REQUIRE_FALSE( mocked.m_derefed[3] )
14839 with expansion:
14840 !false
14841
14842 MatchersRanges.tests.cpp:<line number>: PASSED:
14843 REQUIRE_FALSE( mocked.m_derefed[4] )
14844 with expansion:
14845 !false
14846
14847 -------------------------------------------------------------------------------
14848 Usage of NoneMatch range matcher
14849 Basic usage
14850 -------------------------------------------------------------------------------
14851 MatchersRanges.tests.cpp:<line number>
14852 ...............................................................................
14853
14854 MatchersRanges.tests.cpp:<line number>: PASSED:
14855 REQUIRE_THAT( data, NoneMatch(SizeIs(6)) )
14856 with expansion:
14857 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14858 }, { 1, 0, 0, -1, 5 } } none match has size == 6
14859
14860 MatchersRanges.tests.cpp:<line number>: PASSED:
14861 REQUIRE_THAT( data, !NoneMatch(Contains(0) && Contains(1)) )
14862 with expansion:
14863 { { 0, 1, 2, 3, 5 }, { 4, -3, -2, 5, 0 }, { 0, 0, 0, 5, 0 }, { 0, -5, 0, 5, 0
14864 }, { 1, 0, 0, -1, 5 } } not none match ( contains element 0 and contains
14865 element 1 )
14866
14867 -------------------------------------------------------------------------------
14868 Usage of NoneMatch range matcher
14869 Type requires ADL found begin and end
14870 -------------------------------------------------------------------------------
14871 MatchersRanges.tests.cpp:<line number>
14872 ...............................................................................
14873
14874 MatchersRanges.tests.cpp:<line number>: PASSED:
14875 REQUIRE_THAT( needs_adl, NoneMatch( Predicate<int>( []( int elem ) { return elem > 6; } ) ) )
14876 with expansion:
14877 { 1, 2, 3, 4, 5 } none match matches undescribed predicate
14878
14879 -------------------------------------------------------------------------------
14880 Usage of NoneMatch range matcher
14881 Shortcircuiting
14882 All are read
14883 -------------------------------------------------------------------------------
14884 MatchersRanges.tests.cpp:<line number>
14885 ...............................................................................
14886
14887 MatchersRanges.tests.cpp:<line number>: PASSED:
14888 REQUIRE_THAT( mocked, noneMatch )
14889 with expansion:
14890 { 1, 2, 3, 4, 5 } none match matches undescribed predicate
14891
14892 MatchersRanges.tests.cpp:<line number>: PASSED:
14893 REQUIRE( mocked.m_derefed[0] )
14894 with expansion:
14895 true
14896
14897 MatchersRanges.tests.cpp:<line number>: PASSED:
14898 REQUIRE( mocked.m_derefed[1] )
14899 with expansion:
14900 true
14901
14902 MatchersRanges.tests.cpp:<line number>: PASSED:
14903 REQUIRE( mocked.m_derefed[2] )
14904 with expansion:
14905 true
14906
14907 MatchersRanges.tests.cpp:<line number>: PASSED:
14908 REQUIRE( mocked.m_derefed[3] )
14909 with expansion:
14910 true
14911
14912 MatchersRanges.tests.cpp:<line number>: PASSED:
14913 REQUIRE( mocked.m_derefed[4] )
14914 with expansion:
14915 true
14916
14917 -------------------------------------------------------------------------------
14918 Usage of NoneMatch range matcher
14919 Shortcircuiting
14920 Short-circuited
14921 -------------------------------------------------------------------------------
14922 MatchersRanges.tests.cpp:<line number>
14923 ...............................................................................
14924
14925 MatchersRanges.tests.cpp:<line number>: PASSED:
14926 REQUIRE_THAT( mocked, !noneMatch )
14927 with expansion:
14928 { 1, 2, 3, 4, 5 } not none match matches undescribed predicate
14929
14930 MatchersRanges.tests.cpp:<line number>: PASSED:
14931 REQUIRE( mocked.m_derefed[0] )
14932 with expansion:
14933 true
14934
14935 MatchersRanges.tests.cpp:<line number>: PASSED:
14936 REQUIRE_FALSE( mocked.m_derefed[1] )
14937 with expansion:
14938 !false
14939
14940 MatchersRanges.tests.cpp:<line number>: PASSED:
14941 REQUIRE_FALSE( mocked.m_derefed[2] )
14942 with expansion:
14943 !false
14944
14945 MatchersRanges.tests.cpp:<line number>: PASSED:
14946 REQUIRE_FALSE( mocked.m_derefed[3] )
14947 with expansion:
14948 !false
14949
14950 MatchersRanges.tests.cpp:<line number>: PASSED:
14951 REQUIRE_FALSE( mocked.m_derefed[4] )
14952 with expansion:
14953 !false
14954
14955 -------------------------------------------------------------------------------
14956 Usage of NoneTrue range matcher
14957 Basic usage
14958 All true evaluates to false
14959 -------------------------------------------------------------------------------
14960 MatchersRanges.tests.cpp:<line number>
14961 ...............................................................................
14962
14963 MatchersRanges.tests.cpp:<line number>: PASSED:
14964 REQUIRE_THAT( data, !NoneTrue() )
14965 with expansion:
14966 { true, true, true, true, true } not contains no true
14967
14968 -------------------------------------------------------------------------------
14969 Usage of NoneTrue range matcher
14970 Basic usage
14971 Empty evaluates to true
14972 -------------------------------------------------------------------------------
14973 MatchersRanges.tests.cpp:<line number>
14974 ...............................................................................
14975
14976 MatchersRanges.tests.cpp:<line number>: PASSED:
14977 REQUIRE_THAT( data, NoneTrue() )
14978 with expansion:
14979 { } contains no true
14980
14981 -------------------------------------------------------------------------------
14982 Usage of NoneTrue range matcher
14983 Basic usage
14984 One true evaluates to false
14985 -------------------------------------------------------------------------------
14986 MatchersRanges.tests.cpp:<line number>
14987 ...............................................................................
14988
14989 MatchersRanges.tests.cpp:<line number>: PASSED:
14990 REQUIRE_THAT( data, !NoneTrue() )
14991 with expansion:
14992 { false, false, true, false, false } not contains no true
14993
14994 -------------------------------------------------------------------------------
14995 Usage of NoneTrue range matcher
14996 Basic usage
14997 All false evaluates to true
14998 -------------------------------------------------------------------------------
14999 MatchersRanges.tests.cpp:<line number>
15000 ...............................................................................
15001
15002 MatchersRanges.tests.cpp:<line number>: PASSED:
15003 REQUIRE_THAT( data, NoneTrue() )
15004 with expansion:
15005 { false, false, false, false, false } contains no true
15006
15007 -------------------------------------------------------------------------------
15008 Usage of NoneTrue range matcher
15009 Contained type is convertible to bool
15010 All true evaluates to false
15011 -------------------------------------------------------------------------------
15012 MatchersRanges.tests.cpp:<line number>
15013 ...............................................................................
15014
15015 MatchersRanges.tests.cpp:<line number>: PASSED:
15016 REQUIRE_THAT( data, !NoneTrue() )
15017 with expansion:
15018 { true, true, true, true, true } not contains no true
15019
15020 -------------------------------------------------------------------------------
15021 Usage of NoneTrue range matcher
15022 Contained type is convertible to bool
15023 One true evaluates to false
15024 -------------------------------------------------------------------------------
15025 MatchersRanges.tests.cpp:<line number>
15026 ...............................................................................
15027
15028 MatchersRanges.tests.cpp:<line number>: PASSED:
15029 REQUIRE_THAT( data, !NoneTrue() )
15030 with expansion:
15031 { false, false, true, false, false } not contains no true
15032
15033 -------------------------------------------------------------------------------
15034 Usage of NoneTrue range matcher
15035 Contained type is convertible to bool
15036 All false evaluates to true
15037 -------------------------------------------------------------------------------
15038 MatchersRanges.tests.cpp:<line number>
15039 ...............................................................................
15040
15041 MatchersRanges.tests.cpp:<line number>: PASSED:
15042 REQUIRE_THAT( data, NoneTrue() )
15043 with expansion:
15044 { false, false, false, false, false } contains no true
15045
15046 -------------------------------------------------------------------------------
15047 Usage of NoneTrue range matcher
15048 Shortcircuiting
15049 All are read
15050 -------------------------------------------------------------------------------
15051 MatchersRanges.tests.cpp:<line number>
15052 ...............................................................................
15053
15054 MatchersRanges.tests.cpp:<line number>: PASSED:
15055 REQUIRE_THAT( mocked, NoneTrue() )
15056 with expansion:
15057 { false, false, false, false, false } contains no true
15058
15059 MatchersRanges.tests.cpp:<line number>: PASSED:
15060 REQUIRE( mocked.m_derefed[0] )
15061 with expansion:
15062 true
15063
15064 MatchersRanges.tests.cpp:<line number>: PASSED:
15065 REQUIRE( mocked.m_derefed[1] )
15066 with expansion:
15067 true
15068
15069 MatchersRanges.tests.cpp:<line number>: PASSED:
15070 REQUIRE( mocked.m_derefed[2] )
15071 with expansion:
15072 true
15073
15074 MatchersRanges.tests.cpp:<line number>: PASSED:
15075 REQUIRE( mocked.m_derefed[3] )
15076 with expansion:
15077 true
15078
15079 MatchersRanges.tests.cpp:<line number>: PASSED:
15080 REQUIRE( mocked.m_derefed[4] )
15081 with expansion:
15082 true
15083
15084 -------------------------------------------------------------------------------
15085 Usage of NoneTrue range matcher
15086 Shortcircuiting
15087 Short-circuited
15088 -------------------------------------------------------------------------------
15089 MatchersRanges.tests.cpp:<line number>
15090 ...............................................................................
15091
15092 MatchersRanges.tests.cpp:<line number>: PASSED:
15093 REQUIRE_THAT( mocked, !NoneTrue() )
15094 with expansion:
15095 { false, false, true, true, true } not contains no true
15096
15097 MatchersRanges.tests.cpp:<line number>: PASSED:
15098 REQUIRE( mocked.m_derefed[0] )
15099 with expansion:
15100 true
15101
15102 MatchersRanges.tests.cpp:<line number>: PASSED:
15103 REQUIRE( mocked.m_derefed[1] )
15104 with expansion:
15105 true
15106
15107 MatchersRanges.tests.cpp:<line number>: PASSED:
15108 REQUIRE( mocked.m_derefed[2] )
15109 with expansion:
15110 true
15111
15112 MatchersRanges.tests.cpp:<line number>: PASSED:
15113 REQUIRE_FALSE( mocked.m_derefed[3] )
15114 with expansion:
15115 !false
15116
15117 MatchersRanges.tests.cpp:<line number>: PASSED:
15118 REQUIRE_FALSE( mocked.m_derefed[4] )
15119 with expansion:
15120 !false
15121
15122 -------------------------------------------------------------------------------
15123 Usage of RangeEquals range matcher
15124 Basic usage
15125 Empty container matches empty container
15126 -------------------------------------------------------------------------------
15127 MatchersRanges.tests.cpp:<line number>
15128 ...............................................................................
15129
15130 MatchersRanges.tests.cpp:<line number>: PASSED:
15131 CHECK_THAT( empty_vector, RangeEquals( empty_vector ) )
15132 with expansion:
15133 { } elements are { }
15134
15135 -------------------------------------------------------------------------------
15136 Usage of RangeEquals range matcher
15137 Basic usage
15138 Empty container does not match non-empty container
15139 -------------------------------------------------------------------------------
15140 MatchersRanges.tests.cpp:<line number>
15141 ...............................................................................
15142
15143 MatchersRanges.tests.cpp:<line number>: PASSED:
15144 CHECK_THAT( empty_vector, !RangeEquals( non_empty_vector ) )
15145 with expansion:
15146 { } not elements are { 1 }
15147
15148 MatchersRanges.tests.cpp:<line number>: PASSED:
15149 CHECK_THAT( non_empty_vector, !RangeEquals( empty_vector ) )
15150 with expansion:
15151 { 1 } not elements are { }
15152
15153 -------------------------------------------------------------------------------
15154 Usage of RangeEquals range matcher
15155 Basic usage
15156 Two equal 1-length non-empty containers
15157 -------------------------------------------------------------------------------
15158 MatchersRanges.tests.cpp:<line number>
15159 ...............................................................................
15160
15161 MatchersRanges.tests.cpp:<line number>: PASSED:
15162 CHECK_THAT( non_empty_array, RangeEquals( non_empty_array ) )
15163 with expansion:
15164 { 1 } elements are { 1 }
15165
15166 -------------------------------------------------------------------------------
15167 Usage of RangeEquals range matcher
15168 Basic usage
15169 Two equal-sized, equal, non-empty containers
15170 -------------------------------------------------------------------------------
15171 MatchersRanges.tests.cpp:<line number>
15172 ...............................................................................
15173
15174 MatchersRanges.tests.cpp:<line number>: PASSED:
15175 CHECK_THAT( array_a, RangeEquals( array_a ) )
15176 with expansion:
15177 { 1, 2, 3 } elements are { 1, 2, 3 }
15178
15179 -------------------------------------------------------------------------------
15180 Usage of RangeEquals range matcher
15181 Basic usage
15182 Two equal-sized, non-equal, non-empty containers
15183 -------------------------------------------------------------------------------
15184 MatchersRanges.tests.cpp:<line number>
15185 ...............................................................................
15186
15187 MatchersRanges.tests.cpp:<line number>: PASSED:
15188 CHECK_THAT( array_a, !RangeEquals( array_b ) )
15189 with expansion:
15190 { 1, 2, 3 } not elements are { 2, 2, 3 }
15191
15192 MatchersRanges.tests.cpp:<line number>: PASSED:
15193 CHECK_THAT( array_a, !RangeEquals( array_c ) )
15194 with expansion:
15195 { 1, 2, 3 } not elements are { 1, 2, 2 }
15196
15197 -------------------------------------------------------------------------------
15198 Usage of RangeEquals range matcher
15199 Basic usage
15200 Two non-equal-sized, non-empty containers (with same first elements)
15201 -------------------------------------------------------------------------------
15202 MatchersRanges.tests.cpp:<line number>
15203 ...............................................................................
15204
15205 MatchersRanges.tests.cpp:<line number>: PASSED:
15206 CHECK_THAT( vector_a, !RangeEquals( vector_b ) )
15207 with expansion:
15208 { 1, 2, 3 } not elements are { 1, 2, 3, 4 }
15209
15210 -------------------------------------------------------------------------------
15211 Usage of RangeEquals range matcher
15212 Custom predicate
15213 Two equal non-empty containers (close enough)
15214 -------------------------------------------------------------------------------
15215 MatchersRanges.tests.cpp:<line number>
15216 ...............................................................................
15217
15218 MatchersRanges.tests.cpp:<line number>: PASSED:
15219 CHECK_THAT( vector_a, RangeEquals( vector_a_plus_1, close_enough ) )
15220 with expansion:
15221 { 1, 2, 3 } elements are { 2, 3, 4 }
15222
15223 -------------------------------------------------------------------------------
15224 Usage of RangeEquals range matcher
15225 Custom predicate
15226 Two non-equal non-empty containers (close enough)
15227 -------------------------------------------------------------------------------
15228 MatchersRanges.tests.cpp:<line number>
15229 ...............................................................................
15230
15231 MatchersRanges.tests.cpp:<line number>: PASSED:
15232 CHECK_THAT( vector_a, !RangeEquals( vector_b, close_enough ) )
15233 with expansion:
15234 { 1, 2, 3 } not elements are { 3, 3, 4 }
15235
15236 -------------------------------------------------------------------------------
15237 Usage of RangeEquals range matcher
15238 Ranges that need ADL begin/end
15239 -------------------------------------------------------------------------------
15240 MatchersRanges.tests.cpp:<line number>
15241 ...............................................................................
15242
15243 MatchersRanges.tests.cpp:<line number>: PASSED:
15244 REQUIRE_THAT( needs_adl1, RangeEquals( needs_adl2 ) )
15245 with expansion:
15246 { 1, 2, 3, 4, 5 } elements are { 1, 2, 3, 4, 5 }
15247
15248 MatchersRanges.tests.cpp:<line number>: PASSED:
15249 REQUIRE_THAT( needs_adl1, RangeEquals( needs_adl3, []( int l, int r ) { return l + 1 == r; } ) )
15250 with expansion:
15251 { 1, 2, 3, 4, 5 } elements are { 2, 3, 4, 5, 6 }
15252
15253 -------------------------------------------------------------------------------
15254 Usage of RangeEquals range matcher
15255 Compare against std::initializer_list
15256 -------------------------------------------------------------------------------
15257 MatchersRanges.tests.cpp:<line number>
15258 ...............................................................................
15259
15260 MatchersRanges.tests.cpp:<line number>: PASSED:
15261 REQUIRE_THAT( array_a, RangeEquals( { 1, 2, 3 } ) )
15262 with expansion:
15263 { 1, 2, 3 } elements are { 1, 2, 3 }
15264
15265 MatchersRanges.tests.cpp:<line number>: PASSED:
15266 REQUIRE_THAT( array_a, RangeEquals( { 2, 4, 6 }, []( int l, int r ) { return l * 2 == r; } ) )
15267 with expansion:
15268 { 1, 2, 3 } elements are { 2, 4, 6 }
15269
15270 -------------------------------------------------------------------------------
15271 Usage of RangeEquals range matcher
15272 Check short-circuiting behaviour
15273 Check short-circuits on failure
15274 -------------------------------------------------------------------------------
15275 MatchersRanges.tests.cpp:<line number>
15276 ...............................................................................
15277
15278 MatchersRanges.tests.cpp:<line number>: PASSED:
15279 REQUIRE_THAT( mocked1, !RangeEquals( arr ) )
15280 with expansion:
15281 { 1, 2, 3, 4 } not elements are { 1, 2, 4, 4 }
15282
15283 MatchersRanges.tests.cpp:<line number>: PASSED:
15284 REQUIRE( mocked1.m_derefed[0] )
15285 with expansion:
15286 true
15287
15288 MatchersRanges.tests.cpp:<line number>: PASSED:
15289 REQUIRE( mocked1.m_derefed[1] )
15290 with expansion:
15291 true
15292
15293 MatchersRanges.tests.cpp:<line number>: PASSED:
15294 REQUIRE( mocked1.m_derefed[2] )
15295 with expansion:
15296 true
15297
15298 MatchersRanges.tests.cpp:<line number>: PASSED:
15299 REQUIRE_FALSE( mocked1.m_derefed[3] )
15300 with expansion:
15301 !false
15302
15303 -------------------------------------------------------------------------------
15304 Usage of RangeEquals range matcher
15305 Check short-circuiting behaviour
15306 All elements are checked on success
15307 -------------------------------------------------------------------------------
15308 MatchersRanges.tests.cpp:<line number>
15309 ...............................................................................
15310
15311 MatchersRanges.tests.cpp:<line number>: PASSED:
15312 REQUIRE_THAT( mocked1, RangeEquals( arr ) )
15313 with expansion:
15314 { 1, 2, 3, 4 } elements are { 1, 2, 3, 4 }
15315
15316 MatchersRanges.tests.cpp:<line number>: PASSED:
15317 REQUIRE( mocked1.m_derefed[0] )
15318 with expansion:
15319 true
15320
15321 MatchersRanges.tests.cpp:<line number>: PASSED:
15322 REQUIRE( mocked1.m_derefed[1] )
15323 with expansion:
15324 true
15325
15326 MatchersRanges.tests.cpp:<line number>: PASSED:
15327 REQUIRE( mocked1.m_derefed[2] )
15328 with expansion:
15329 true
15330
15331 MatchersRanges.tests.cpp:<line number>: PASSED:
15332 REQUIRE( mocked1.m_derefed[3] )
15333 with expansion:
15334 true
15335
15336 -------------------------------------------------------------------------------
15337 Usage of UnorderedRangeEquals range matcher
15338 Basic usage
15339 Empty container matches empty container
15340 -------------------------------------------------------------------------------
15341 MatchersRanges.tests.cpp:<line number>
15342 ...............................................................................
15343
15344 MatchersRanges.tests.cpp:<line number>: PASSED:
15345 CHECK_THAT( empty_vector, UnorderedRangeEquals( empty_vector ) )
15346 with expansion:
15347 { } unordered elements are { }
15348
15349 -------------------------------------------------------------------------------
15350 Usage of UnorderedRangeEquals range matcher
15351 Basic usage
15352 Empty container does not match non-empty container
15353 -------------------------------------------------------------------------------
15354 MatchersRanges.tests.cpp:<line number>
15355 ...............................................................................
15356
15357 MatchersRanges.tests.cpp:<line number>: PASSED:
15358 CHECK_THAT( empty_vector, !UnorderedRangeEquals( non_empty_vector ) )
15359 with expansion:
15360 { } not unordered elements are { 1 }
15361
15362 MatchersRanges.tests.cpp:<line number>: PASSED:
15363 CHECK_THAT( non_empty_vector, !UnorderedRangeEquals( empty_vector ) )
15364 with expansion:
15365 { 1 } not unordered elements are { }
15366
15367 -------------------------------------------------------------------------------
15368 Usage of UnorderedRangeEquals range matcher
15369 Basic usage
15370 Two equal 1-length non-empty containers
15371 -------------------------------------------------------------------------------
15372 MatchersRanges.tests.cpp:<line number>
15373 ...............................................................................
15374
15375 MatchersRanges.tests.cpp:<line number>: PASSED:
15376 CHECK_THAT( non_empty_array, UnorderedRangeEquals( non_empty_array ) )
15377 with expansion:
15378 { 1 } unordered elements are { 1 }
15379
15380 -------------------------------------------------------------------------------
15381 Usage of UnorderedRangeEquals range matcher
15382 Basic usage
15383 Two equal-sized, equal, non-empty containers
15384 -------------------------------------------------------------------------------
15385 MatchersRanges.tests.cpp:<line number>
15386 ...............................................................................
15387
15388 MatchersRanges.tests.cpp:<line number>: PASSED:
15389 CHECK_THAT( array_a, UnorderedRangeEquals( array_a ) )
15390 with expansion:
15391 { 1, 2, 3 } unordered elements are { 1, 2, 3 }
15392
15393 -------------------------------------------------------------------------------
15394 Usage of UnorderedRangeEquals range matcher
15395 Basic usage
15396 Two equal-sized, non-equal, non-empty containers
15397 -------------------------------------------------------------------------------
15398 MatchersRanges.tests.cpp:<line number>
15399 ...............................................................................
15400
15401 MatchersRanges.tests.cpp:<line number>: PASSED:
15402 CHECK_THAT( array_a, !UnorderedRangeEquals( array_b ) )
15403 with expansion:
15404 { 1, 2, 3 } not unordered elements are { 2, 2, 3 }
15405
15406 -------------------------------------------------------------------------------
15407 Usage of UnorderedRangeEquals range matcher
15408 Basic usage
15409 Two non-equal-sized, non-empty containers
15410 -------------------------------------------------------------------------------
15411 MatchersRanges.tests.cpp:<line number>
15412 ...............................................................................
15413
15414 MatchersRanges.tests.cpp:<line number>: PASSED:
15415 CHECK_THAT( vector_a, !UnorderedRangeEquals( vector_b ) )
15416 with expansion:
15417 { 1, 2, 3 } not unordered elements are { 1, 2, 3, 4 }
15418
15419 -------------------------------------------------------------------------------
15420 Usage of UnorderedRangeEquals range matcher
15421 Custom predicate
15422 Two equal non-empty containers (close enough)
15423 -------------------------------------------------------------------------------
15424 MatchersRanges.tests.cpp:<line number>
15425 ...............................................................................
15426
15427 MatchersRanges.tests.cpp:<line number>: PASSED:
15428 CHECK_THAT( vector_a, UnorderedRangeEquals( vector_a_plus_1, close_enough ) )
15429 with expansion:
15430 { 1, 10, 20 } unordered elements are { 11, 21, 2 }
15431
15432 -------------------------------------------------------------------------------
15433 Usage of UnorderedRangeEquals range matcher
15434 Custom predicate
15435 Two non-equal non-empty containers (close enough)
15436 -------------------------------------------------------------------------------
15437 MatchersRanges.tests.cpp:<line number>
15438 ...............................................................................
15439
15440 MatchersRanges.tests.cpp:<line number>: PASSED:
15441 CHECK_THAT( vector_a, !UnorderedRangeEquals( vector_b, close_enough ) )
15442 with expansion:
15443 { 1, 10, 21 } not unordered elements are { 11, 21, 3 }
15444
15445 -------------------------------------------------------------------------------
15446 Usage of UnorderedRangeEquals range matcher
15447 Ranges that need ADL begin/end
15448 -------------------------------------------------------------------------------
15449 MatchersRanges.tests.cpp:<line number>
15450 ...............................................................................
15451
15452 MatchersRanges.tests.cpp:<line number>: PASSED:
15453 REQUIRE_THAT( needs_adl1, UnorderedRangeEquals( needs_adl2 ) )
15454 with expansion:
15455 { 1, 2, 3, 4, 5 } unordered elements are { 1, 2, 3, 4, 5 }
15456
15457 -------------------------------------------------------------------------------
15458 Usage of UnorderedRangeEquals range matcher
15459 Compare against std::initializer_list
15460 -------------------------------------------------------------------------------
15461 MatchersRanges.tests.cpp:<line number>
15462 ...............................................................................
15463
15464 MatchersRanges.tests.cpp:<line number>: PASSED:
15465 REQUIRE_THAT( array_a, UnorderedRangeEquals( { 10, 20, 1 } ) )
15466 with expansion:
15467 { 1, 10, 20 } unordered elements are { 10, 20, 1 }
15468
15469 MatchersRanges.tests.cpp:<line number>: PASSED:
15470 REQUIRE_THAT( array_a, UnorderedRangeEquals( { 11, 21, 2 }, []( int l, int r ) { return std::abs( l - r ) <= 1; } ) )
15471 with expansion:
15472 { 1, 10, 20 } unordered elements are { 11, 21, 2 }
15473
15474 -------------------------------------------------------------------------------
15475 Usage of the SizeIs range matcher
15476 Some with stdlib containers
15477 -------------------------------------------------------------------------------
15478 MatchersRanges.tests.cpp:<line number>
15479 ...............................................................................
15480
15481 MatchersRanges.tests.cpp:<line number>: PASSED:
15482 REQUIRE_THAT( empty_vec, SizeIs(0) )
15483 with expansion:
15484 { } has size == 0
15485
15486 MatchersRanges.tests.cpp:<line number>: PASSED:
15487 REQUIRE_THAT( empty_vec, !SizeIs(2) )
15488 with expansion:
15489 { } not has size == 2
15490
15491 MatchersRanges.tests.cpp:<line number>: PASSED:
15492 REQUIRE_THAT( empty_vec, SizeIs(Lt(2)) )
15493 with expansion:
15494 { } size matches is less than 2
15495
15496 MatchersRanges.tests.cpp:<line number>: PASSED:
15497 REQUIRE_THAT( arr, SizeIs(2) )
15498 with expansion:
15499 { 0, 0 } has size == 2
15500
15501 MatchersRanges.tests.cpp:<line number>: PASSED:
15502 REQUIRE_THAT( arr, SizeIs( Lt(3)) )
15503 with expansion:
15504 { 0, 0 } size matches is less than 3
15505
15506 MatchersRanges.tests.cpp:<line number>: PASSED:
15507 REQUIRE_THAT( arr, !SizeIs(!Lt(3)) )
15508 with expansion:
15509 { 0, 0 } not size matches not is less than 3
15510
15511 MatchersRanges.tests.cpp:<line number>: PASSED:
15512 REQUIRE_THAT( map, SizeIs(3) )
15513 with expansion:
15514 { {?}, {?}, {?} } has size == 3
15515
15516 -------------------------------------------------------------------------------
15517 Usage of the SizeIs range matcher
15518 Type requires ADL found size free function
15519 -------------------------------------------------------------------------------
15520 MatchersRanges.tests.cpp:<line number>
15521 ...............................................................................
15522
15523 MatchersRanges.tests.cpp:<line number>: PASSED:
15524 REQUIRE_THAT( unrelated::ADL_size{}, SizeIs(12) )
15525 with expansion:
15526 {?} has size == 12
15527
15528 -------------------------------------------------------------------------------
15529 Usage of the SizeIs range matcher
15530 Type has size member
15531 -------------------------------------------------------------------------------
15532 MatchersRanges.tests.cpp:<line number>
15533 ...............................................................................
15534
15535 MatchersRanges.tests.cpp:<line number>: PASSED:
15536 REQUIRE_THAT( has_size{}, SizeIs(13) )
15537 with expansion:
15538 {?} has size == 13
15539
15540 -------------------------------------------------------------------------------
15541 Use a custom approx
15542 -------------------------------------------------------------------------------
15543 Approx.tests.cpp:<line number>
15544 ...............................................................................
15545
15546 Approx.tests.cpp:<line number>: PASSED:
15547 REQUIRE( d == approx( 1.23 ) )
15548 with expansion:
15549 1.22999999999999998
15550 ==
15551 Approx( 1.22999999999999998 )
15552
15553 Approx.tests.cpp:<line number>: PASSED:
15554 REQUIRE( d == approx( 1.22 ) )
15555 with expansion:
15556 1.22999999999999998
15557 ==
15558 Approx( 1.21999999999999997 )
15559
15560 Approx.tests.cpp:<line number>: PASSED:
15561 REQUIRE( d == approx( 1.24 ) )
15562 with expansion:
15563 1.22999999999999998
15564 ==
15565 Approx( 1.23999999999999999 )
15566
15567 Approx.tests.cpp:<line number>: PASSED:
15568 REQUIRE( d != approx( 1.25 ) )
15569 with expansion:
15570 1.22999999999999998 != Approx( 1.25 )
15571
15572 Approx.tests.cpp:<line number>: PASSED:
15573 REQUIRE( approx( d ) == 1.23 )
15574 with expansion:
15575 Approx( 1.22999999999999998 )
15576 ==
15577 1.22999999999999998
15578
15579 Approx.tests.cpp:<line number>: PASSED:
15580 REQUIRE( approx( d ) == 1.22 )
15581 with expansion:
15582 Approx( 1.22999999999999998 )
15583 ==
15584 1.21999999999999997
15585
15586 Approx.tests.cpp:<line number>: PASSED:
15587 REQUIRE( approx( d ) == 1.24 )
15588 with expansion:
15589 Approx( 1.22999999999999998 )
15590 ==
15591 1.23999999999999999
15592
15593 Approx.tests.cpp:<line number>: PASSED:
15594 REQUIRE( approx( d ) != 1.25 )
15595 with expansion:
15596 Approx( 1.22999999999999998 ) != 1.25
15597
15598 -------------------------------------------------------------------------------
15599 Variadic macros
15600 Section with one argument
15601 -------------------------------------------------------------------------------
15602 VariadicMacros.tests.cpp:<line number>
15603 ...............................................................................
15604
15605 VariadicMacros.tests.cpp:<line number>: PASSED:
15606 with message:
15607 no assertions
15608
15609 -------------------------------------------------------------------------------
15610 Vector Approx matcher
15611 Empty vector is roughly equal to an empty vector
15612 -------------------------------------------------------------------------------
15613 Matchers.tests.cpp:<line number>
15614 ...............................................................................
15615
15616 Matchers.tests.cpp:<line number>: PASSED:
15617 REQUIRE_THAT( empty, Approx( empty ) )
15618 with expansion:
15619 { } is approx: { }
15620
15621 -------------------------------------------------------------------------------
15622 Vector Approx matcher
15623 Vectors with elements
15624 A vector is approx equal to itself
15625 -------------------------------------------------------------------------------
15626 Matchers.tests.cpp:<line number>
15627 ...............................................................................
15628
15629 Matchers.tests.cpp:<line number>: PASSED:
15630 REQUIRE_THAT( v1, Approx( v1 ) )
15631 with expansion:
15632 { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
15633
15634 Matchers.tests.cpp:<line number>: PASSED:
15635 REQUIRE_THAT( v1, Approx<double>( { 1., 2., 3. } ) )
15636 with expansion:
15637 { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
15638
15639 -------------------------------------------------------------------------------
15640 Vector Approx matcher
15641 Vectors with elements
15642 Different length
15643 -------------------------------------------------------------------------------
15644 Matchers.tests.cpp:<line number>
15645 ...............................................................................
15646
15647 Matchers.tests.cpp:<line number>: PASSED:
15648 REQUIRE_THAT( v1, !Approx( temp ) )
15649 with expansion:
15650 { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
15651
15652 -------------------------------------------------------------------------------
15653 Vector Approx matcher
15654 Vectors with elements
15655 Same length, different elements
15656 -------------------------------------------------------------------------------
15657 Matchers.tests.cpp:<line number>
15658 ...............................................................................
15659
15660 Matchers.tests.cpp:<line number>: PASSED:
15661 REQUIRE_THAT( v1, !Approx( v2 ) )
15662 with expansion:
15663 { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
15664
15665 Matchers.tests.cpp:<line number>: PASSED:
15666 REQUIRE_THAT( v1, Approx( v2 ).margin( 0.5 ) )
15667 with expansion:
15668 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
15669
15670 Matchers.tests.cpp:<line number>: PASSED:
15671 REQUIRE_THAT( v1, Approx( v2 ).epsilon( 0.5 ) )
15672 with expansion:
15673 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
15674
15675 Matchers.tests.cpp:<line number>: PASSED:
15676 REQUIRE_THAT( v1, Approx( v2 ).epsilon( 0.1 ).scale( 500 ) )
15677 with expansion:
15678 { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
15679
15680 -------------------------------------------------------------------------------
15681 Vector Approx matcher -- failing
15682 Empty and non empty vectors are not approx equal
15683 -------------------------------------------------------------------------------
15684 Matchers.tests.cpp:<line number>
15685 ...............................................................................
15686
15687 Matchers.tests.cpp:<line number>: FAILED:
15688 CHECK_THAT( empty, Approx( t1 ) )
15689 with expansion:
15690 { } is approx: { 1.0, 2.0 }
15691
15692 -------------------------------------------------------------------------------
15693 Vector Approx matcher -- failing
15694 Just different vectors
15695 -------------------------------------------------------------------------------
15696 Matchers.tests.cpp:<line number>
15697 ...............................................................................
15698
15699 Matchers.tests.cpp:<line number>: FAILED:
15700 CHECK_THAT( v1, Approx( v2 ) )
15701 with expansion:
15702 { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
15703
15704 -------------------------------------------------------------------------------
15705 Vector matchers
15706 Contains (element)
15707 -------------------------------------------------------------------------------
15708 Matchers.tests.cpp:<line number>
15709 ...............................................................................
15710
15711 Matchers.tests.cpp:<line number>: PASSED:
15712 CHECK_THAT( v, VectorContains( 1 ) )
15713 with expansion:
15714 { 1, 2, 3 } Contains: 1
15715
15716 Matchers.tests.cpp:<line number>: PASSED:
15717 CHECK_THAT( v, VectorContains( 2 ) )
15718 with expansion:
15719 { 1, 2, 3 } Contains: 2
15720
15721 Matchers.tests.cpp:<line number>: PASSED:
15722 CHECK_THAT( v5, ( VectorContains<int, CustomAllocator<int>>( 2 ) ) )
15723 with expansion:
15724 { 1, 2, 3 } Contains: 2
15725
15726 -------------------------------------------------------------------------------
15727 Vector matchers
15728 Contains (vector)
15729 -------------------------------------------------------------------------------
15730 Matchers.tests.cpp:<line number>
15731 ...............................................................................
15732
15733 Matchers.tests.cpp:<line number>: PASSED:
15734 CHECK_THAT( v, Contains( v2 ) )
15735 with expansion:
15736 { 1, 2, 3 } Contains: { 1, 2 }
15737
15738 Matchers.tests.cpp:<line number>: PASSED:
15739 CHECK_THAT( v, Contains<int>( { 1, 2 } ) )
15740 with expansion:
15741 { 1, 2, 3 } Contains: { 1, 2 }
15742
15743 Matchers.tests.cpp:<line number>: PASSED:
15744 CHECK_THAT( v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
15745 with expansion:
15746 { 1, 2, 3 } Contains: { 1, 2 }
15747
15748 Matchers.tests.cpp:<line number>: PASSED:
15749 CHECK_THAT( v, Contains( v2 ) )
15750 with expansion:
15751 { 1, 2, 3 } Contains: { 1, 2, 3 }
15752
15753 Matchers.tests.cpp:<line number>: PASSED:
15754 CHECK_THAT( v, Contains( empty ) )
15755 with expansion:
15756 { 1, 2, 3 } Contains: { }
15757
15758 Matchers.tests.cpp:<line number>: PASSED:
15759 CHECK_THAT( empty, Contains( empty ) )
15760 with expansion:
15761 { } Contains: { }
15762
15763 Matchers.tests.cpp:<line number>: PASSED:
15764 CHECK_THAT( v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
15765 with expansion:
15766 { 1, 2, 3 } Contains: { 1, 2, 3 }
15767
15768 Matchers.tests.cpp:<line number>: PASSED:
15769 CHECK_THAT( v5, Contains( v6 ) )
15770 with expansion:
15771 { 1, 2, 3 } Contains: { 1, 2 }
15772
15773 -------------------------------------------------------------------------------
15774 Vector matchers
15775 Contains (element), composed
15776 -------------------------------------------------------------------------------
15777 Matchers.tests.cpp:<line number>
15778 ...............................................................................
15779
15780 Matchers.tests.cpp:<line number>: PASSED:
15781 CHECK_THAT( v, VectorContains( 1 ) && VectorContains( 2 ) )
15782 with expansion:
15783 { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
15784
15785 -------------------------------------------------------------------------------
15786 Vector matchers
15787 Equals
15788 -------------------------------------------------------------------------------
15789 Matchers.tests.cpp:<line number>
15790 ...............................................................................
15791
15792 Matchers.tests.cpp:<line number>: PASSED:
15793 CHECK_THAT( v, Equals( v ) )
15794 with expansion:
15795 { 1, 2, 3 } Equals: { 1, 2, 3 }
15796
15797 Matchers.tests.cpp:<line number>: PASSED:
15798 CHECK_THAT( empty, Equals( empty ) )
15799 with expansion:
15800 { } Equals: { }
15801
15802 Matchers.tests.cpp:<line number>: PASSED:
15803 CHECK_THAT( v, Equals<int>( { 1, 2, 3 } ) )
15804 with expansion:
15805 { 1, 2, 3 } Equals: { 1, 2, 3 }
15806
15807 Matchers.tests.cpp:<line number>: PASSED:
15808 CHECK_THAT( v, Equals( v2 ) )
15809 with expansion:
15810 { 1, 2, 3 } Equals: { 1, 2, 3 }
15811
15812 Matchers.tests.cpp:<line number>: PASSED:
15813 CHECK_THAT( v5, ( Equals<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) )
15814 with expansion:
15815 { 1, 2, 3 } Equals: { 1, 2, 3 }
15816
15817 Matchers.tests.cpp:<line number>: PASSED:
15818 CHECK_THAT( v5, Equals( v6 ) )
15819 with expansion:
15820 { 1, 2, 3 } Equals: { 1, 2, 3 }
15821
15822 -------------------------------------------------------------------------------
15823 Vector matchers
15824 UnorderedEquals
15825 -------------------------------------------------------------------------------
15826 Matchers.tests.cpp:<line number>
15827 ...............................................................................
15828
15829 Matchers.tests.cpp:<line number>: PASSED:
15830 CHECK_THAT( v, UnorderedEquals( v ) )
15831 with expansion:
15832 { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
15833
15834 Matchers.tests.cpp:<line number>: PASSED:
15835 CHECK_THAT( v, UnorderedEquals<int>( { 3, 2, 1 } ) )
15836 with expansion:
15837 { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
15838
15839 Matchers.tests.cpp:<line number>: PASSED:
15840 CHECK_THAT( empty, UnorderedEquals( empty ) )
15841 with expansion:
15842 { } UnorderedEquals: { }
15843
15844 Matchers.tests.cpp:<line number>: PASSED:
15845 REQUIRE_THAT( permuted, UnorderedEquals( v ) )
15846 with expansion:
15847 { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
15848
15849 Matchers.tests.cpp:<line number>: PASSED:
15850 REQUIRE_THAT( permuted, UnorderedEquals( v ) )
15851 with expansion:
15852 { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
15853
15854 Matchers.tests.cpp:<line number>: PASSED:
15855 CHECK_THAT( v5, ( UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>( permuted ) ) )
15856 with expansion:
15857 { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
15858
15859 Matchers.tests.cpp:<line number>: PASSED:
15860 CHECK_THAT( v5_permuted, UnorderedEquals( v5 ) )
15861 with expansion:
15862 { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
15863
15864 -------------------------------------------------------------------------------
15865 Vector matchers that fail
15866 Contains (element)
15867 -------------------------------------------------------------------------------
15868 Matchers.tests.cpp:<line number>
15869 ...............................................................................
15870
15871 Matchers.tests.cpp:<line number>: FAILED:
15872 CHECK_THAT( v, VectorContains( -1 ) )
15873 with expansion:
15874 { 1, 2, 3 } Contains: -1
15875
15876 Matchers.tests.cpp:<line number>: FAILED:
15877 CHECK_THAT( empty, VectorContains( 1 ) )
15878 with expansion:
15879 { } Contains: 1
15880
15881 -------------------------------------------------------------------------------
15882 Vector matchers that fail
15883 Contains (vector)
15884 -------------------------------------------------------------------------------
15885 Matchers.tests.cpp:<line number>
15886 ...............................................................................
15887
15888 Matchers.tests.cpp:<line number>: FAILED:
15889 CHECK_THAT( empty, Contains( v ) )
15890 with expansion:
15891 { } Contains: { 1, 2, 3 }
15892
15893 Matchers.tests.cpp:<line number>: FAILED:
15894 CHECK_THAT( v, Contains( v2 ) )
15895 with expansion:
15896 { 1, 2, 3 } Contains: { 1, 2, 4 }
15897
15898 -------------------------------------------------------------------------------
15899 Vector matchers that fail
15900 Equals
15901 -------------------------------------------------------------------------------
15902 Matchers.tests.cpp:<line number>
15903 ...............................................................................
15904
15905 Matchers.tests.cpp:<line number>: FAILED:
15906 CHECK_THAT( v, Equals( v2 ) )
15907 with expansion:
15908 { 1, 2, 3 } Equals: { 1, 2 }
15909
15910 Matchers.tests.cpp:<line number>: FAILED:
15911 CHECK_THAT( v2, Equals( v ) )
15912 with expansion:
15913 { 1, 2 } Equals: { 1, 2, 3 }
15914
15915 Matchers.tests.cpp:<line number>: FAILED:
15916 CHECK_THAT( empty, Equals( v ) )
15917 with expansion:
15918 { } Equals: { 1, 2, 3 }
15919
15920 Matchers.tests.cpp:<line number>: FAILED:
15921 CHECK_THAT( v, Equals( empty ) )
15922 with expansion:
15923 { 1, 2, 3 } Equals: { }
15924
15925 -------------------------------------------------------------------------------
15926 Vector matchers that fail
15927 UnorderedEquals
15928 -------------------------------------------------------------------------------
15929 Matchers.tests.cpp:<line number>
15930 ...............................................................................
15931
15932 Matchers.tests.cpp:<line number>: FAILED:
15933 CHECK_THAT( v, UnorderedEquals( empty ) )
15934 with expansion:
15935 { 1, 2, 3 } UnorderedEquals: { }
15936
15937 Matchers.tests.cpp:<line number>: FAILED:
15938 CHECK_THAT( empty, UnorderedEquals( v ) )
15939 with expansion:
15940 { } UnorderedEquals: { 1, 2, 3 }
15941
15942 Matchers.tests.cpp:<line number>: FAILED:
15943 CHECK_THAT( permuted, UnorderedEquals( v ) )
15944 with expansion:
15945 { 1, 3 } UnorderedEquals: { 1, 2, 3 }
15946
15947 Matchers.tests.cpp:<line number>: FAILED:
15948 CHECK_THAT( permuted, UnorderedEquals( v ) )
15949 with expansion:
15950 { 3, 1 } UnorderedEquals: { 1, 2, 3 }
15951
15952 -------------------------------------------------------------------------------
15953 When checked exceptions are thrown they can be expected or unexpected
15954 -------------------------------------------------------------------------------
15955 Exception.tests.cpp:<line number>
15956 ...............................................................................
15957
15958 Exception.tests.cpp:<line number>: PASSED:
15959 REQUIRE_THROWS_AS( thisThrows(), std::domain_error )
15960
15961 Exception.tests.cpp:<line number>: PASSED:
15962 REQUIRE_NOTHROW( thisDoesntThrow() )
15963
15964 Exception.tests.cpp:<line number>: PASSED:
15965 REQUIRE_THROWS( thisThrows() )
15966
15967 -------------------------------------------------------------------------------
15968 When unchecked exceptions are thrown directly they are always failures
15969 -------------------------------------------------------------------------------
15970 Exception.tests.cpp:<line number>
15971 ...............................................................................
15972
15973 Exception.tests.cpp:<line number>: FAILED:
15974 due to unexpected exception with message:
15975 unexpected exception
15976
15977 -------------------------------------------------------------------------------
15978 When unchecked exceptions are thrown during a CHECK the test should continue
15979 -------------------------------------------------------------------------------
15980 Exception.tests.cpp:<line number>
15981 ...............................................................................
15982
15983 Exception.tests.cpp:<line number>: FAILED:
15984 CHECK( thisThrows() == 0 )
15985 due to unexpected exception with message:
15986 expected exception
15987
15988 -------------------------------------------------------------------------------
15989 When unchecked exceptions are thrown during a REQUIRE the test should abort
15990 fail
15991 -------------------------------------------------------------------------------
15992 Exception.tests.cpp:<line number>
15993 ...............................................................................
15994
15995 Exception.tests.cpp:<line number>: FAILED:
15996 REQUIRE( thisThrows() == 0 )
15997 due to unexpected exception with message:
15998 expected exception
15999
16000 -------------------------------------------------------------------------------
16001 When unchecked exceptions are thrown from functions they are always failures
16002 -------------------------------------------------------------------------------
16003 Exception.tests.cpp:<line number>
16004 ...............................................................................
16005
16006 Exception.tests.cpp:<line number>: FAILED:
16007 CHECK( thisThrows() == 0 )
16008 due to unexpected exception with message:
16009 expected exception
16010
16011 -------------------------------------------------------------------------------
16012 When unchecked exceptions are thrown from sections they are always failures
16013 section name
16014 -------------------------------------------------------------------------------
16015 Exception.tests.cpp:<line number>
16016 ...............................................................................
16017
16018 Exception.tests.cpp:<line number>: FAILED:
16019 {Unknown expression after the reported line}
16020 due to unexpected exception with message:
16021 unexpected exception
16022
16023 -------------------------------------------------------------------------------
16024 When unchecked exceptions are thrown, but caught, they do not affect the test
16025 -------------------------------------------------------------------------------
16026 Exception.tests.cpp:<line number>
16027 ...............................................................................
16028
16029
16030 No assertions in test case 'When unchecked exceptions are thrown, but caught, they do not affect the test'
16031
16032 -------------------------------------------------------------------------------
16033 X/level/0/a
16034 -------------------------------------------------------------------------------
16035 Tricky.tests.cpp:<line number>
16036 ...............................................................................
16037
16038 Tricky.tests.cpp:<line number>: PASSED:
16039
16040 -------------------------------------------------------------------------------
16041 X/level/0/b
16042 -------------------------------------------------------------------------------
16043 Tricky.tests.cpp:<line number>
16044 ...............................................................................
16045
16046 Tricky.tests.cpp:<line number>: PASSED:
16047
16048 -------------------------------------------------------------------------------
16049 X/level/1/a
16050 -------------------------------------------------------------------------------
16051 Tricky.tests.cpp:<line number>
16052 ...............................................................................
16053
16054 Tricky.tests.cpp:<line number>: PASSED:
16055
16056 -------------------------------------------------------------------------------
16057 X/level/1/b
16058 -------------------------------------------------------------------------------
16059 Tricky.tests.cpp:<line number>
16060 ...............................................................................
16061
16062 Tricky.tests.cpp:<line number>: PASSED:
16063
16064 -------------------------------------------------------------------------------
16065 XmlEncode
16066 normal string
16067 -------------------------------------------------------------------------------
16068 Xml.tests.cpp:<line number>
16069 ...............................................................................
16070
16071 Xml.tests.cpp:<line number>: PASSED:
16072 REQUIRE( encode( "normal string" ) == "normal string" )
16073 with expansion:
16074 "normal string" == "normal string"
16075
16076 -------------------------------------------------------------------------------
16077 XmlEncode
16078 empty string
16079 -------------------------------------------------------------------------------
16080 Xml.tests.cpp:<line number>
16081 ...............................................................................
16082
16083 Xml.tests.cpp:<line number>: PASSED:
16084 REQUIRE( encode( "" ) == "" )
16085 with expansion:
16086 "" == ""
16087
16088 -------------------------------------------------------------------------------
16089 XmlEncode
16090 string with ampersand
16091 -------------------------------------------------------------------------------
16092 Xml.tests.cpp:<line number>
16093 ...............................................................................
16094
16095 Xml.tests.cpp:<line number>: PASSED:
16096 REQUIRE( encode( "smith & jones" ) == "smith &amp; jones" )
16097 with expansion:
16098 "smith &amp; jones" == "smith &amp; jones"
16099
16100 -------------------------------------------------------------------------------
16101 XmlEncode
16102 string with less-than
16103 -------------------------------------------------------------------------------
16104 Xml.tests.cpp:<line number>
16105 ...............................................................................
16106
16107 Xml.tests.cpp:<line number>: PASSED:
16108 REQUIRE( encode( "smith < jones" ) == "smith &lt; jones" )
16109 with expansion:
16110 "smith &lt; jones" == "smith &lt; jones"
16111
16112 -------------------------------------------------------------------------------
16113 XmlEncode
16114 string with greater-than
16115 -------------------------------------------------------------------------------
16116 Xml.tests.cpp:<line number>
16117 ...............................................................................
16118
16119 Xml.tests.cpp:<line number>: PASSED:
16120 REQUIRE( encode( "smith > jones" ) == "smith > jones" )
16121 with expansion:
16122 "smith > jones" == "smith > jones"
16123
16124 Xml.tests.cpp:<line number>: PASSED:
16125 REQUIRE( encode( "smith ]]> jones" ) == "smith ]]&gt; jones" )
16126 with expansion:
16127 "smith ]]&gt; jones"
16128 ==
16129 "smith ]]&gt; jones"
16130
16131 -------------------------------------------------------------------------------
16132 XmlEncode
16133 string with quotes
16134 -------------------------------------------------------------------------------
16135 Xml.tests.cpp:<line number>
16136 ...............................................................................
16137
16138 Xml.tests.cpp:<line number>: PASSED:
16139 REQUIRE( encode( stringWithQuotes ) == stringWithQuotes )
16140 with expansion:
16141 "don't "quote" me on that"
16142 ==
16143 "don't "quote" me on that"
16144
16145 Xml.tests.cpp:<line number>: PASSED:
16146 REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" )
16147 with expansion:
16148 "don't &quot;quote&quot; me on that"
16149 ==
16150 "don't &quot;quote&quot; me on that"
16151
16152 -------------------------------------------------------------------------------
16153 XmlEncode
16154 string with control char (1)
16155 -------------------------------------------------------------------------------
16156 Xml.tests.cpp:<line number>
16157 ...............................................................................
16158
16159 Xml.tests.cpp:<line number>: PASSED:
16160 REQUIRE( encode( "[\x01]" ) == "[\\x01]" )
16161 with expansion:
16162 "[\x01]" == "[\x01]"
16163
16164 -------------------------------------------------------------------------------
16165 XmlEncode
16166 string with control char (x7F)
16167 -------------------------------------------------------------------------------
16168 Xml.tests.cpp:<line number>
16169 ...............................................................................
16170
16171 Xml.tests.cpp:<line number>: PASSED:
16172 REQUIRE( encode( "[\x7F]" ) == "[\\x7F]" )
16173 with expansion:
16174 "[\x7F]" == "[\x7F]"
16175
16176 -------------------------------------------------------------------------------
16177 XmlWriter writes boolean attributes as true/false
16178 -------------------------------------------------------------------------------
16179 Xml.tests.cpp:<line number>
16180 ...............................................................................
16181
16182 Xml.tests.cpp:<line number>: PASSED:
16183 REQUIRE_THAT( stream.str(), ContainsSubstring(R"(attr1="true")") && ContainsSubstring(R"(attr2="false")") )
16184 with expansion:
16185 "<?xml version="1.0" encoding="UTF-8"?>
16186 <Element1 attr1="true" attr2="false"/>
16187 " ( contains: "attr1="true"" and contains: "attr2="false"" )
16188
16189 -------------------------------------------------------------------------------
16190 a succeeding test can still be skipped
16191 -------------------------------------------------------------------------------
16192 Skip.tests.cpp:<line number>
16193 ...............................................................................
16194
16195 Skip.tests.cpp:<line number>: PASSED:
16196
16197 Skip.tests.cpp:<line number>: SKIPPED:
16198
16199 -------------------------------------------------------------------------------
16200 analyse no analysis
16201 -------------------------------------------------------------------------------
16202 InternalBenchmark.tests.cpp:<line number>
16203 ...............................................................................
16204
16205 InternalBenchmark.tests.cpp:<line number>: PASSED:
16206 CHECK( analysis.mean.point.count() == 23 )
16207 with expansion:
16208 23.0 == 23
16209
16210 InternalBenchmark.tests.cpp:<line number>: PASSED:
16211 CHECK( analysis.mean.lower_bound.count() == 23 )
16212 with expansion:
16213 23.0 == 23
16214
16215 InternalBenchmark.tests.cpp:<line number>: PASSED:
16216 CHECK( analysis.mean.upper_bound.count() == 23 )
16217 with expansion:
16218 23.0 == 23
16219
16220 InternalBenchmark.tests.cpp:<line number>: PASSED:
16221 CHECK( analysis.standard_deviation.point.count() == 0 )
16222 with expansion:
16223 0.0 == 0
16224
16225 InternalBenchmark.tests.cpp:<line number>: PASSED:
16226 CHECK( analysis.standard_deviation.lower_bound.count() == 0 )
16227 with expansion:
16228 0.0 == 0
16229
16230 InternalBenchmark.tests.cpp:<line number>: PASSED:
16231 CHECK( analysis.standard_deviation.upper_bound.count() == 0 )
16232 with expansion:
16233 0.0 == 0
16234
16235 InternalBenchmark.tests.cpp:<line number>: PASSED:
16236 CHECK( analysis.outliers.total() == 0 )
16237 with expansion:
16238 0 == 0
16239
16240 InternalBenchmark.tests.cpp:<line number>: PASSED:
16241 CHECK( analysis.outliers.low_mild == 0 )
16242 with expansion:
16243 0 == 0
16244
16245 InternalBenchmark.tests.cpp:<line number>: PASSED:
16246 CHECK( analysis.outliers.low_severe == 0 )
16247 with expansion:
16248 0 == 0
16249
16250 InternalBenchmark.tests.cpp:<line number>: PASSED:
16251 CHECK( analysis.outliers.high_mild == 0 )
16252 with expansion:
16253 0 == 0
16254
16255 InternalBenchmark.tests.cpp:<line number>: PASSED:
16256 CHECK( analysis.outliers.high_severe == 0 )
16257 with expansion:
16258 0 == 0
16259
16260 InternalBenchmark.tests.cpp:<line number>: PASSED:
16261 CHECK( analysis.outliers.samples_seen == 0 )
16262 with expansion:
16263 0 == 0
16264
16265 InternalBenchmark.tests.cpp:<line number>: PASSED:
16266 CHECK( analysis.outlier_variance == 0 )
16267 with expansion:
16268 0.0 == 0
16269
16270 -------------------------------------------------------------------------------
16271 array<int, N> -> toString
16272 -------------------------------------------------------------------------------
16273 ToStringVector.tests.cpp:<line number>
16274 ...............................................................................
16275
16276 ToStringVector.tests.cpp:<line number>: PASSED:
16277 REQUIRE( Catch::Detail::stringify( empty ) == "{ }" )
16278 with expansion:
16279 "{ }" == "{ }"
16280
16281 ToStringVector.tests.cpp:<line number>: PASSED:
16282 REQUIRE( Catch::Detail::stringify( oneValue ) == "{ 42 }" )
16283 with expansion:
16284 "{ 42 }" == "{ 42 }"
16285
16286 ToStringVector.tests.cpp:<line number>: PASSED:
16287 REQUIRE( Catch::Detail::stringify( twoValues ) == "{ 42, 250 }" )
16288 with expansion:
16289 "{ 42, 250 }" == "{ 42, 250 }"
16290
16291 -------------------------------------------------------------------------------
16292 benchmark function call
16293 without chronometer
16294 -------------------------------------------------------------------------------
16295 InternalBenchmark.tests.cpp:<line number>
16296 ...............................................................................
16297
16298 InternalBenchmark.tests.cpp:<line number>: PASSED:
16299 CHECK( model.started == 1 )
16300 with expansion:
16301 1 == 1
16302
16303 InternalBenchmark.tests.cpp:<line number>: PASSED:
16304 CHECK( model.finished == 0 )
16305 with expansion:
16306 0 == 0
16307
16308 InternalBenchmark.tests.cpp:<line number>: PASSED:
16309 CHECK( model.started == 1 )
16310 with expansion:
16311 1 == 1
16312
16313 InternalBenchmark.tests.cpp:<line number>: PASSED:
16314 CHECK( model.finished == 1 )
16315 with expansion:
16316 1 == 1
16317
16318 InternalBenchmark.tests.cpp:<line number>: PASSED:
16319 CHECK( called == 1 )
16320 with expansion:
16321 1 == 1
16322
16323 -------------------------------------------------------------------------------
16324 benchmark function call
16325 with chronometer
16326 -------------------------------------------------------------------------------
16327 InternalBenchmark.tests.cpp:<line number>
16328 ...............................................................................
16329
16330 InternalBenchmark.tests.cpp:<line number>: PASSED:
16331 CHECK( model.started == 0 )
16332 with expansion:
16333 0 == 0
16334
16335 InternalBenchmark.tests.cpp:<line number>: PASSED:
16336 CHECK( model.finished == 0 )
16337 with expansion:
16338 0 == 0
16339
16340 InternalBenchmark.tests.cpp:<line number>: PASSED:
16341 CHECK( model.started == 0 )
16342 with expansion:
16343 0 == 0
16344
16345 InternalBenchmark.tests.cpp:<line number>: PASSED:
16346 CHECK( model.finished == 0 )
16347 with expansion:
16348 0 == 0
16349
16350 InternalBenchmark.tests.cpp:<line number>: PASSED:
16351 CHECK( called == 1 )
16352 with expansion:
16353 1 == 1
16354
16355 -------------------------------------------------------------------------------
16356 boolean member
16357 -------------------------------------------------------------------------------
16358 Tricky.tests.cpp:<line number>
16359 ...............................................................................
16360
16361 Tricky.tests.cpp:<line number>: PASSED:
16362 REQUIRE( obj.prop != 0 )
16363 with expansion:
16364 0x<hex digits> != 0
16365
16366 -------------------------------------------------------------------------------
16367 checkedElse
16368 -------------------------------------------------------------------------------
16369 Misc.tests.cpp:<line number>
16370 ...............................................................................
16371
16372 Misc.tests.cpp:<line number>: PASSED:
16373 CHECKED_ELSE( flag )
16374 with expansion:
16375 true
16376
16377 Misc.tests.cpp:<line number>: PASSED:
16378 REQUIRE( testCheckedElse( true ) )
16379 with expansion:
16380 true
16381
16382 -------------------------------------------------------------------------------
16383 checkedElse, failing
16384 -------------------------------------------------------------------------------
16385 Misc.tests.cpp:<line number>
16386 ...............................................................................
16387
16388 Misc.tests.cpp:<line number>: FAILED - but was ok:
16389 CHECKED_ELSE( flag )
16390 with expansion:
16391 false
16392
16393 Misc.tests.cpp:<line number>: FAILED:
16394 REQUIRE( testCheckedElse( false ) )
16395 with expansion:
16396 false
16397
16398 -------------------------------------------------------------------------------
16399 checkedIf
16400 -------------------------------------------------------------------------------
16401 Misc.tests.cpp:<line number>
16402 ...............................................................................
16403
16404 Misc.tests.cpp:<line number>: PASSED:
16405 CHECKED_IF( flag )
16406 with expansion:
16407 true
16408
16409 Misc.tests.cpp:<line number>: PASSED:
16410 REQUIRE( testCheckedIf( true ) )
16411 with expansion:
16412 true
16413
16414 -------------------------------------------------------------------------------
16415 checkedIf, failing
16416 -------------------------------------------------------------------------------
16417 Misc.tests.cpp:<line number>
16418 ...............................................................................
16419
16420 Misc.tests.cpp:<line number>: FAILED - but was ok:
16421 CHECKED_IF( flag )
16422 with expansion:
16423 false
16424
16425 Misc.tests.cpp:<line number>: FAILED:
16426 REQUIRE( testCheckedIf( false ) )
16427 with expansion:
16428 false
16429
16430 -------------------------------------------------------------------------------
16431 classify_outliers
16432 none
16433 -------------------------------------------------------------------------------
16434 InternalBenchmark.tests.cpp:<line number>
16435 ...............................................................................
16436
16437 InternalBenchmark.tests.cpp:<line number>: PASSED:
16438 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16439 with expansion:
16440 6 == 6
16441
16442 InternalBenchmark.tests.cpp:<line number>: PASSED:
16443 REQUIRE( o.low_severe == los )
16444 with expansion:
16445 0 == 0
16446
16447 InternalBenchmark.tests.cpp:<line number>: PASSED:
16448 REQUIRE( o.low_mild == lom )
16449 with expansion:
16450 0 == 0
16451
16452 InternalBenchmark.tests.cpp:<line number>: PASSED:
16453 REQUIRE( o.high_mild == him )
16454 with expansion:
16455 0 == 0
16456
16457 InternalBenchmark.tests.cpp:<line number>: PASSED:
16458 REQUIRE( o.high_severe == his )
16459 with expansion:
16460 0 == 0
16461
16462 InternalBenchmark.tests.cpp:<line number>: PASSED:
16463 REQUIRE( o.total() == los + lom + him + his )
16464 with expansion:
16465 0 == 0
16466
16467 -------------------------------------------------------------------------------
16468 classify_outliers
16469 low severe
16470 -------------------------------------------------------------------------------
16471 InternalBenchmark.tests.cpp:<line number>
16472 ...............................................................................
16473
16474 InternalBenchmark.tests.cpp:<line number>: PASSED:
16475 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16476 with expansion:
16477 6 == 6
16478
16479 InternalBenchmark.tests.cpp:<line number>: PASSED:
16480 REQUIRE( o.low_severe == los )
16481 with expansion:
16482 1 == 1
16483
16484 InternalBenchmark.tests.cpp:<line number>: PASSED:
16485 REQUIRE( o.low_mild == lom )
16486 with expansion:
16487 0 == 0
16488
16489 InternalBenchmark.tests.cpp:<line number>: PASSED:
16490 REQUIRE( o.high_mild == him )
16491 with expansion:
16492 0 == 0
16493
16494 InternalBenchmark.tests.cpp:<line number>: PASSED:
16495 REQUIRE( o.high_severe == his )
16496 with expansion:
16497 0 == 0
16498
16499 InternalBenchmark.tests.cpp:<line number>: PASSED:
16500 REQUIRE( o.total() == los + lom + him + his )
16501 with expansion:
16502 1 == 1
16503
16504 -------------------------------------------------------------------------------
16505 classify_outliers
16506 low mild
16507 -------------------------------------------------------------------------------
16508 InternalBenchmark.tests.cpp:<line number>
16509 ...............................................................................
16510
16511 InternalBenchmark.tests.cpp:<line number>: PASSED:
16512 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16513 with expansion:
16514 6 == 6
16515
16516 InternalBenchmark.tests.cpp:<line number>: PASSED:
16517 REQUIRE( o.low_severe == los )
16518 with expansion:
16519 0 == 0
16520
16521 InternalBenchmark.tests.cpp:<line number>: PASSED:
16522 REQUIRE( o.low_mild == lom )
16523 with expansion:
16524 1 == 1
16525
16526 InternalBenchmark.tests.cpp:<line number>: PASSED:
16527 REQUIRE( o.high_mild == him )
16528 with expansion:
16529 0 == 0
16530
16531 InternalBenchmark.tests.cpp:<line number>: PASSED:
16532 REQUIRE( o.high_severe == his )
16533 with expansion:
16534 0 == 0
16535
16536 InternalBenchmark.tests.cpp:<line number>: PASSED:
16537 REQUIRE( o.total() == los + lom + him + his )
16538 with expansion:
16539 1 == 1
16540
16541 -------------------------------------------------------------------------------
16542 classify_outliers
16543 high mild
16544 -------------------------------------------------------------------------------
16545 InternalBenchmark.tests.cpp:<line number>
16546 ...............................................................................
16547
16548 InternalBenchmark.tests.cpp:<line number>: PASSED:
16549 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16550 with expansion:
16551 6 == 6
16552
16553 InternalBenchmark.tests.cpp:<line number>: PASSED:
16554 REQUIRE( o.low_severe == los )
16555 with expansion:
16556 0 == 0
16557
16558 InternalBenchmark.tests.cpp:<line number>: PASSED:
16559 REQUIRE( o.low_mild == lom )
16560 with expansion:
16561 0 == 0
16562
16563 InternalBenchmark.tests.cpp:<line number>: PASSED:
16564 REQUIRE( o.high_mild == him )
16565 with expansion:
16566 1 == 1
16567
16568 InternalBenchmark.tests.cpp:<line number>: PASSED:
16569 REQUIRE( o.high_severe == his )
16570 with expansion:
16571 0 == 0
16572
16573 InternalBenchmark.tests.cpp:<line number>: PASSED:
16574 REQUIRE( o.total() == los + lom + him + his )
16575 with expansion:
16576 1 == 1
16577
16578 -------------------------------------------------------------------------------
16579 classify_outliers
16580 high severe
16581 -------------------------------------------------------------------------------
16582 InternalBenchmark.tests.cpp:<line number>
16583 ...............................................................................
16584
16585 InternalBenchmark.tests.cpp:<line number>: PASSED:
16586 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16587 with expansion:
16588 6 == 6
16589
16590 InternalBenchmark.tests.cpp:<line number>: PASSED:
16591 REQUIRE( o.low_severe == los )
16592 with expansion:
16593 0 == 0
16594
16595 InternalBenchmark.tests.cpp:<line number>: PASSED:
16596 REQUIRE( o.low_mild == lom )
16597 with expansion:
16598 0 == 0
16599
16600 InternalBenchmark.tests.cpp:<line number>: PASSED:
16601 REQUIRE( o.high_mild == him )
16602 with expansion:
16603 0 == 0
16604
16605 InternalBenchmark.tests.cpp:<line number>: PASSED:
16606 REQUIRE( o.high_severe == his )
16607 with expansion:
16608 1 == 1
16609
16610 InternalBenchmark.tests.cpp:<line number>: PASSED:
16611 REQUIRE( o.total() == los + lom + him + his )
16612 with expansion:
16613 1 == 1
16614
16615 -------------------------------------------------------------------------------
16616 classify_outliers
16617 mixed
16618 -------------------------------------------------------------------------------
16619 InternalBenchmark.tests.cpp:<line number>
16620 ...............................................................................
16621
16622 InternalBenchmark.tests.cpp:<line number>: PASSED:
16623 REQUIRE( o.samples_seen == static_cast<int>(x.size()) )
16624 with expansion:
16625 6 == 6
16626
16627 InternalBenchmark.tests.cpp:<line number>: PASSED:
16628 REQUIRE( o.low_severe == los )
16629 with expansion:
16630 1 == 1
16631
16632 InternalBenchmark.tests.cpp:<line number>: PASSED:
16633 REQUIRE( o.low_mild == lom )
16634 with expansion:
16635 0 == 0
16636
16637 InternalBenchmark.tests.cpp:<line number>: PASSED:
16638 REQUIRE( o.high_mild == him )
16639 with expansion:
16640 1 == 1
16641
16642 InternalBenchmark.tests.cpp:<line number>: PASSED:
16643 REQUIRE( o.high_severe == his )
16644 with expansion:
16645 0 == 0
16646
16647 InternalBenchmark.tests.cpp:<line number>: PASSED:
16648 REQUIRE( o.total() == los + lom + him + his )
16649 with expansion:
16650 2 == 2
16651
16652 -------------------------------------------------------------------------------
16653 comparisons between const int variables
16654 -------------------------------------------------------------------------------
16655 Condition.tests.cpp:<line number>
16656 ...............................................................................
16657
16658 Condition.tests.cpp:<line number>: PASSED:
16659 REQUIRE( unsigned_char_var == 1 )
16660 with expansion:
16661 1 == 1
16662
16663 Condition.tests.cpp:<line number>: PASSED:
16664 REQUIRE( unsigned_short_var == 1 )
16665 with expansion:
16666 1 == 1
16667
16668 Condition.tests.cpp:<line number>: PASSED:
16669 REQUIRE( unsigned_int_var == 1 )
16670 with expansion:
16671 1 == 1
16672
16673 Condition.tests.cpp:<line number>: PASSED:
16674 REQUIRE( unsigned_long_var == 1 )
16675 with expansion:
16676 1 == 1
16677
16678 -------------------------------------------------------------------------------
16679 comparisons between int variables
16680 -------------------------------------------------------------------------------
16681 Condition.tests.cpp:<line number>
16682 ...............................................................................
16683
16684 Condition.tests.cpp:<line number>: PASSED:
16685 REQUIRE( long_var == unsigned_char_var )
16686 with expansion:
16687 1 == 1
16688
16689 Condition.tests.cpp:<line number>: PASSED:
16690 REQUIRE( long_var == unsigned_short_var )
16691 with expansion:
16692 1 == 1
16693
16694 Condition.tests.cpp:<line number>: PASSED:
16695 REQUIRE( long_var == unsigned_int_var )
16696 with expansion:
16697 1 == 1
16698
16699 Condition.tests.cpp:<line number>: PASSED:
16700 REQUIRE( long_var == unsigned_long_var )
16701 with expansion:
16702 1 == 1
16703
16704 -------------------------------------------------------------------------------
16705 convertToBits
16706 -------------------------------------------------------------------------------
16707 FloatingPoint.tests.cpp:<line number>
16708 ...............................................................................
16709
16710 FloatingPoint.tests.cpp:<line number>: PASSED:
16711 CHECK( convertToBits( 0.f ) == 0 )
16712 with expansion:
16713 0 == 0
16714
16715 FloatingPoint.tests.cpp:<line number>: PASSED:
16716 CHECK( convertToBits( -0.f ) == ( 1ULL << 31 ) )
16717 with expansion:
16718 2147483648 (0x<hex digits>)
16719 ==
16720 2147483648 (0x<hex digits>)
16721
16722 FloatingPoint.tests.cpp:<line number>: PASSED:
16723 CHECK( convertToBits( 0. ) == 0 )
16724 with expansion:
16725 0 == 0
16726
16727 FloatingPoint.tests.cpp:<line number>: PASSED:
16728 CHECK( convertToBits( -0. ) == ( 1ULL << 63 ) )
16729 with expansion:
16730 9223372036854775808 (0x<hex digits>)
16731 ==
16732 9223372036854775808 (0x<hex digits>)
16733
16734 FloatingPoint.tests.cpp:<line number>: PASSED:
16735 CHECK( convertToBits( std::numeric_limits<float>::denorm_min() ) == 1 )
16736 with expansion:
16737 1 == 1
16738
16739 FloatingPoint.tests.cpp:<line number>: PASSED:
16740 CHECK( convertToBits( std::numeric_limits<double>::denorm_min() ) == 1 )
16741 with expansion:
16742 1 == 1
16743
16744 -------------------------------------------------------------------------------
16745 dynamic skipping works with generators
16746 -------------------------------------------------------------------------------
16747 Skip.tests.cpp:<line number>
16748 ...............................................................................
16749
16750 Skip.tests.cpp:<line number>: SKIPPED:
16751 explicitly with message:
16752 skipping because answer = 41
16753
16754 -------------------------------------------------------------------------------
16755 dynamic skipping works with generators
16756 -------------------------------------------------------------------------------
16757 Skip.tests.cpp:<line number>
16758 ...............................................................................
16759
16760 Skip.tests.cpp:<line number>: PASSED:
16761
16762 -------------------------------------------------------------------------------
16763 dynamic skipping works with generators
16764 -------------------------------------------------------------------------------
16765 Skip.tests.cpp:<line number>
16766 ...............................................................................
16767
16768 Skip.tests.cpp:<line number>: SKIPPED:
16769 explicitly with message:
16770 skipping because answer = 43
16771
16772 -------------------------------------------------------------------------------
16773 empty tags are not allowed
16774 -------------------------------------------------------------------------------
16775 Tag.tests.cpp:<line number>
16776 ...............................................................................
16777
16778 Tag.tests.cpp:<line number>: PASSED:
16779 REQUIRE_THROWS( Catch::TestCaseInfo("", { "test with an empty tag", "[]" }, dummySourceLineInfo) )
16780
16781 -------------------------------------------------------------------------------
16782 erfc_inv
16783 -------------------------------------------------------------------------------
16784 InternalBenchmark.tests.cpp:<line number>
16785 ...............................................................................
16786
16787 InternalBenchmark.tests.cpp:<line number>: PASSED:
16788 CHECK( erfc_inv(1.103560) == Approx(-0.09203687623843015) )
16789 with expansion:
16790 -0.09203687623843014
16791 ==
16792 Approx( -0.09203687623843015 )
16793
16794 InternalBenchmark.tests.cpp:<line number>: PASSED:
16795 CHECK( erfc_inv(1.067400) == Approx(-0.05980291115763361) )
16796 with expansion:
16797 -0.05980291115763361
16798 ==
16799 Approx( -0.05980291115763361 )
16800
16801 InternalBenchmark.tests.cpp:<line number>: PASSED:
16802 CHECK( erfc_inv(0.050000) == Approx(1.38590382434967796) )
16803 with expansion:
16804 1.38590382434967774
16805 ==
16806 Approx( 1.38590382434967796 )
16807
16808 -------------------------------------------------------------------------------
16809 estimate_clock_resolution
16810 -------------------------------------------------------------------------------
16811 InternalBenchmark.tests.cpp:<line number>
16812 ...............................................................................
16813
16814 InternalBenchmark.tests.cpp:<line number>: PASSED:
16815 REQUIRE( res.mean.count() == rate )
16816 with expansion:
16817 2000.0 == 2000 (0x<hex digits>)
16818
16819 InternalBenchmark.tests.cpp:<line number>: PASSED:
16820 REQUIRE( res.outliers.total() == 0 )
16821 with expansion:
16822 0 == 0
16823
16824 -------------------------------------------------------------------------------
16825 even more nested SECTION tests
16826 c
16827 d (leaf)
16828 -------------------------------------------------------------------------------
16829 Misc.tests.cpp:<line number>
16830 ...............................................................................
16831
16832 Misc.tests.cpp:<line number>: PASSED:
16833
16834 -------------------------------------------------------------------------------
16835 even more nested SECTION tests
16836 c
16837 e (leaf)
16838 -------------------------------------------------------------------------------
16839 Misc.tests.cpp:<line number>
16840 ...............................................................................
16841
16842 Misc.tests.cpp:<line number>: PASSED:
16843
16844 -------------------------------------------------------------------------------
16845 even more nested SECTION tests
16846 f (leaf)
16847 -------------------------------------------------------------------------------
16848 Misc.tests.cpp:<line number>
16849 ...............................................................................
16850
16851 Misc.tests.cpp:<line number>: PASSED:
16852
16853 -------------------------------------------------------------------------------
16854 failed assertions before SKIP cause test case to fail
16855 -------------------------------------------------------------------------------
16856 Skip.tests.cpp:<line number>
16857 ...............................................................................
16858
16859 Skip.tests.cpp:<line number>: FAILED:
16860 CHECK( 3 == 4 )
16861
16862 Skip.tests.cpp:<line number>: SKIPPED:
16863
16864 -------------------------------------------------------------------------------
16865 failing for some generator values causes entire test case to fail
16866 -------------------------------------------------------------------------------
16867 Skip.tests.cpp:<line number>
16868 ...............................................................................
16869
16870 Skip.tests.cpp:<line number>: FAILED:
16871
16872 -------------------------------------------------------------------------------
16873 failing for some generator values causes entire test case to fail
16874 -------------------------------------------------------------------------------
16875 Skip.tests.cpp:<line number>
16876 ...............................................................................
16877
16878 Skip.tests.cpp:<line number>: SKIPPED:
16879
16880 -------------------------------------------------------------------------------
16881 failing for some generator values causes entire test case to fail
16882 -------------------------------------------------------------------------------
16883 Skip.tests.cpp:<line number>
16884 ...............................................................................
16885
16886 Skip.tests.cpp:<line number>: FAILED:
16887
16888 -------------------------------------------------------------------------------
16889 failing for some generator values causes entire test case to fail
16890 -------------------------------------------------------------------------------
16891 Skip.tests.cpp:<line number>
16892 ...............................................................................
16893
16894 Skip.tests.cpp:<line number>: SKIPPED:
16895
16896 -------------------------------------------------------------------------------
16897 failing in some unskipped sections causes entire test case to fail
16898 skipped
16899 -------------------------------------------------------------------------------
16900 Skip.tests.cpp:<line number>
16901 ...............................................................................
16902
16903 Skip.tests.cpp:<line number>: SKIPPED:
16904
16905 -------------------------------------------------------------------------------
16906 failing in some unskipped sections causes entire test case to fail
16907 not skipped
16908 -------------------------------------------------------------------------------
16909 Skip.tests.cpp:<line number>
16910 ...............................................................................
16911
16912 Skip.tests.cpp:<line number>: FAILED:
16913
16914 -------------------------------------------------------------------------------
16915 first tag
16916 -------------------------------------------------------------------------------
16917 Misc.tests.cpp:<line number>
16918 ...............................................................................
16919
16920
16921 No assertions in test case 'first tag'
16922
16923 loose text artifact
16924 -------------------------------------------------------------------------------
16925 has printf
16926 -------------------------------------------------------------------------------
16927 Tricky.tests.cpp:<line number>
16928 ...............................................................................
16929
16930
16931 No assertions in test case 'has printf'
16932
16933 -------------------------------------------------------------------------------
16934 is_unary_function
16935 -------------------------------------------------------------------------------
16936 Clara.tests.cpp:<line number>
16937 ...............................................................................
16938
16939 Clara.tests.cpp:<line number>: PASSED:
16940 with message:
16941 Catch::Clara::Detail::is_unary_function_v<decltype(unary1)>
16942
16943 Clara.tests.cpp:<line number>: PASSED:
16944 with message:
16945 Catch::Clara::Detail::is_unary_function_v<decltype(unary2)>
16946
16947 Clara.tests.cpp:<line number>: PASSED:
16948 with message:
16949 Catch::Clara::Detail::is_unary_function_v<decltype(unary3)>
16950
16951 Clara.tests.cpp:<line number>: PASSED:
16952 with message:
16953 Catch::Clara::Detail::is_unary_function_v<decltype(unary4)>
16954
16955 Clara.tests.cpp:<line number>: PASSED:
16956 with message:
16957 Catch::Clara::Detail::is_unary_function_v<decltype(unary5)>
16958
16959 Clara.tests.cpp:<line number>: PASSED:
16960 with message:
16961 Catch::Clara::Detail::is_unary_function_v<decltype(unary6)>
16962
16963 Clara.tests.cpp:<line number>: PASSED:
16964 with message:
16965 !(Catch::Clara::Detail::is_unary_function_v<decltype(binary1)>)
16966
16967 Clara.tests.cpp:<line number>: PASSED:
16968 with message:
16969 !(Catch::Clara::Detail::is_unary_function_v<decltype(binary2)>)
16970
16971 Clara.tests.cpp:<line number>: PASSED:
16972 with message:
16973 !(Catch::Clara::Detail::is_unary_function_v<decltype(nullary1)>)
16974
16975 Clara.tests.cpp:<line number>: PASSED:
16976 with message:
16977 !(Catch::Clara::Detail::is_unary_function_v<decltype(nullary2)>)
16978
16979 Clara.tests.cpp:<line number>: PASSED:
16980 with message:
16981 !(Catch::Clara::Detail::is_unary_function_v<int>)
16982
16983 Clara.tests.cpp:<line number>: PASSED:
16984 with message:
16985 !(Catch::Clara::Detail::is_unary_function_v<std::string const&>)
16986
16987 -------------------------------------------------------------------------------
16988 just failure
16989 -------------------------------------------------------------------------------
16990 Message.tests.cpp:<line number>
16991 ...............................................................................
16992
16993 Message.tests.cpp:<line number>: FAILED:
16994 explicitly with message:
16995 Previous info should not be seen
16996
16997 -------------------------------------------------------------------------------
16998 just failure after unscoped info
16999 -------------------------------------------------------------------------------
17000 Message.tests.cpp:<line number>
17001 ...............................................................................
17002
17003 Message.tests.cpp:<line number>: FAILED:
17004 explicitly with message:
17005 previous unscoped info SHOULD not be seen
17006
17007 -------------------------------------------------------------------------------
17008 just info
17009 -------------------------------------------------------------------------------
17010 Message.tests.cpp:<line number>
17011 ...............................................................................
17012
17013
17014 No assertions in test case 'just info'
17015
17016 -------------------------------------------------------------------------------
17017 just unscoped info
17018 -------------------------------------------------------------------------------
17019 Message.tests.cpp:<line number>
17020 ...............................................................................
17021
17022
17023 No assertions in test case 'just unscoped info'
17024
17025 -------------------------------------------------------------------------------
17026 long long
17027 -------------------------------------------------------------------------------
17028 Misc.tests.cpp:<line number>
17029 ...............................................................................
17030
17031 Misc.tests.cpp:<line number>: PASSED:
17032 REQUIRE( l == std::numeric_limits<long long>::max() )
17033 with expansion:
17034 9223372036854775807 (0x<hex digits>)
17035 ==
17036 9223372036854775807 (0x<hex digits>)
17037
17038 -------------------------------------------------------------------------------
17039 looped SECTION tests
17040 b is currently: 0
17041 -------------------------------------------------------------------------------
17042 Misc.tests.cpp:<line number>
17043 ...............................................................................
17044
17045 Misc.tests.cpp:<line number>: FAILED:
17046 CHECK( b > a )
17047 with expansion:
17048 0 > 1
17049
17050 -------------------------------------------------------------------------------
17051 looped SECTION tests
17052 b is currently: 1
17053 -------------------------------------------------------------------------------
17054 Misc.tests.cpp:<line number>
17055 ...............................................................................
17056
17057 Misc.tests.cpp:<line number>: FAILED:
17058 CHECK( b > a )
17059 with expansion:
17060 1 > 1
17061
17062 -------------------------------------------------------------------------------
17063 looped SECTION tests
17064 b is currently: 2
17065 -------------------------------------------------------------------------------
17066 Misc.tests.cpp:<line number>
17067 ...............................................................................
17068
17069 Misc.tests.cpp:<line number>: PASSED:
17070 CHECK( b > a )
17071 with expansion:
17072 2 > 1
17073
17074 -------------------------------------------------------------------------------
17075 looped SECTION tests
17076 b is currently: 3
17077 -------------------------------------------------------------------------------
17078 Misc.tests.cpp:<line number>
17079 ...............................................................................
17080
17081 Misc.tests.cpp:<line number>: PASSED:
17082 CHECK( b > a )
17083 with expansion:
17084 3 > 1
17085
17086 -------------------------------------------------------------------------------
17087 looped SECTION tests
17088 b is currently: 4
17089 -------------------------------------------------------------------------------
17090 Misc.tests.cpp:<line number>
17091 ...............................................................................
17092
17093 Misc.tests.cpp:<line number>: PASSED:
17094 CHECK( b > a )
17095 with expansion:
17096 4 > 1
17097
17098 -------------------------------------------------------------------------------
17099 looped SECTION tests
17100 b is currently: 5
17101 -------------------------------------------------------------------------------
17102 Misc.tests.cpp:<line number>
17103 ...............................................................................
17104
17105 Misc.tests.cpp:<line number>: PASSED:
17106 CHECK( b > a )
17107 with expansion:
17108 5 > 1
17109
17110 -------------------------------------------------------------------------------
17111 looped SECTION tests
17112 b is currently: 6
17113 -------------------------------------------------------------------------------
17114 Misc.tests.cpp:<line number>
17115 ...............................................................................
17116
17117 Misc.tests.cpp:<line number>: PASSED:
17118 CHECK( b > a )
17119 with expansion:
17120 6 > 1
17121
17122 -------------------------------------------------------------------------------
17123 looped SECTION tests
17124 b is currently: 7
17125 -------------------------------------------------------------------------------
17126 Misc.tests.cpp:<line number>
17127 ...............................................................................
17128
17129 Misc.tests.cpp:<line number>: PASSED:
17130 CHECK( b > a )
17131 with expansion:
17132 7 > 1
17133
17134 -------------------------------------------------------------------------------
17135 looped SECTION tests
17136 b is currently: 8
17137 -------------------------------------------------------------------------------
17138 Misc.tests.cpp:<line number>
17139 ...............................................................................
17140
17141 Misc.tests.cpp:<line number>: PASSED:
17142 CHECK( b > a )
17143 with expansion:
17144 8 > 1
17145
17146 -------------------------------------------------------------------------------
17147 looped SECTION tests
17148 b is currently: 9
17149 -------------------------------------------------------------------------------
17150 Misc.tests.cpp:<line number>
17151 ...............................................................................
17152
17153 Misc.tests.cpp:<line number>: PASSED:
17154 CHECK( b > a )
17155 with expansion:
17156 9 > 1
17157
17158 -------------------------------------------------------------------------------
17159 looped tests
17160 -------------------------------------------------------------------------------
17161 Misc.tests.cpp:<line number>
17162 ...............................................................................
17163
17164 Misc.tests.cpp:<line number>: FAILED:
17165 CHECK( ( fib[i] % 2 ) == 0 )
17166 with expansion:
17167 1 == 0
17168 with message:
17169 Testing if fib[0] (1) is even
17170
17171 Misc.tests.cpp:<line number>: FAILED:
17172 CHECK( ( fib[i] % 2 ) == 0 )
17173 with expansion:
17174 1 == 0
17175 with message:
17176 Testing if fib[1] (1) is even
17177
17178 Misc.tests.cpp:<line number>: PASSED:
17179 CHECK( ( fib[i] % 2 ) == 0 )
17180 with expansion:
17181 0 == 0
17182 with message:
17183 Testing if fib[2] (2) is even
17184
17185 Misc.tests.cpp:<line number>: FAILED:
17186 CHECK( ( fib[i] % 2 ) == 0 )
17187 with expansion:
17188 1 == 0
17189 with message:
17190 Testing if fib[3] (3) is even
17191
17192 Misc.tests.cpp:<line number>: FAILED:
17193 CHECK( ( fib[i] % 2 ) == 0 )
17194 with expansion:
17195 1 == 0
17196 with message:
17197 Testing if fib[4] (5) is even
17198
17199 Misc.tests.cpp:<line number>: PASSED:
17200 CHECK( ( fib[i] % 2 ) == 0 )
17201 with expansion:
17202 0 == 0
17203 with message:
17204 Testing if fib[5] (8) is even
17205
17206 Misc.tests.cpp:<line number>: FAILED:
17207 CHECK( ( fib[i] % 2 ) == 0 )
17208 with expansion:
17209 1 == 0
17210 with message:
17211 Testing if fib[6] (13) is even
17212
17213 Misc.tests.cpp:<line number>: FAILED:
17214 CHECK( ( fib[i] % 2 ) == 0 )
17215 with expansion:
17216 1 == 0
17217 with message:
17218 Testing if fib[7] (21) is even
17219
17220 -------------------------------------------------------------------------------
17221 makeStream recognizes %debug stream name
17222 -------------------------------------------------------------------------------
17223 Stream.tests.cpp:<line number>
17224 ...............................................................................
17225
17226 Stream.tests.cpp:<line number>: PASSED:
17227 REQUIRE_NOTHROW( Catch::makeStream( "%debug" ) )
17228
17229 -------------------------------------------------------------------------------
17230 make_unique reimplementation
17231 From lvalue copies
17232 -------------------------------------------------------------------------------
17233 UniquePtr.tests.cpp:<line number>
17234 ...............................................................................
17235
17236 UniquePtr.tests.cpp:<line number>: PASSED:
17237 REQUIRE_FALSE( lval.has_moved )
17238 with expansion:
17239 !false
17240
17241 -------------------------------------------------------------------------------
17242 make_unique reimplementation
17243 From rvalue moves
17244 -------------------------------------------------------------------------------
17245 UniquePtr.tests.cpp:<line number>
17246 ...............................................................................
17247
17248 UniquePtr.tests.cpp:<line number>: PASSED:
17249 REQUIRE( rval.has_moved )
17250 with expansion:
17251 true
17252
17253 -------------------------------------------------------------------------------
17254 make_unique reimplementation
17255 Variadic constructor
17256 -------------------------------------------------------------------------------
17257 UniquePtr.tests.cpp:<line number>
17258 ...............................................................................
17259
17260 UniquePtr.tests.cpp:<line number>: PASSED:
17261 REQUIRE( *ptr == std::tuple<int, double, int>{1, 2., 3} )
17262 with expansion:
17263 {?} == {?}
17264
17265 -------------------------------------------------------------------------------
17266 mean
17267 -------------------------------------------------------------------------------
17268 InternalBenchmark.tests.cpp:<line number>
17269 ...............................................................................
17270
17271 InternalBenchmark.tests.cpp:<line number>: PASSED:
17272 REQUIRE( m == 19. )
17273 with expansion:
17274 19.0 == 19.0
17275
17276 -------------------------------------------------------------------------------
17277 measure
17278 -------------------------------------------------------------------------------
17279 InternalBenchmark.tests.cpp:<line number>
17280 ...............................................................................
17281
17282 InternalBenchmark.tests.cpp:<line number>: PASSED:
17283 CHECK( x == 17 )
17284 with expansion:
17285 17 == 17
17286
17287 InternalBenchmark.tests.cpp:<line number>: PASSED:
17288 CHECK( x == 23 )
17289 with expansion:
17290 23 == 23
17291
17292 InternalBenchmark.tests.cpp:<line number>: PASSED:
17293 CHECK( r.elapsed.count() == 42 )
17294 with expansion:
17295 42 == 42
17296
17297 InternalBenchmark.tests.cpp:<line number>: PASSED:
17298 CHECK( r.result == 23 )
17299 with expansion:
17300 23 == 23
17301
17302 InternalBenchmark.tests.cpp:<line number>: PASSED:
17303 CHECK( r.iterations == 1 )
17304 with expansion:
17305 1 == 1
17306
17307 InternalBenchmark.tests.cpp:<line number>: PASSED:
17308 CHECK( s.elapsed.count() == 69 )
17309 with expansion:
17310 69 == 69
17311
17312 InternalBenchmark.tests.cpp:<line number>: PASSED:
17313 CHECK( s.result == 17 )
17314 with expansion:
17315 17 == 17
17316
17317 InternalBenchmark.tests.cpp:<line number>: PASSED:
17318 CHECK( s.iterations == 1 )
17319 with expansion:
17320 1 == 1
17321
17322 -------------------------------------------------------------------------------
17323 mix info, unscoped info and warning
17324 -------------------------------------------------------------------------------
17325 Message.tests.cpp:<line number>
17326 ...............................................................................
17327
17328 Message.tests.cpp:<line number>: warning:
17329 info
17330 unscoped info
17331 and warn may mix
17332
17333 Message.tests.cpp:<line number>: warning:
17334 info
17335 unscoped info
17336 they are not cleared after warnings
17337
17338
17339 No assertions in test case 'mix info, unscoped info and warning'
17340
17341 -------------------------------------------------------------------------------
17342 more nested SECTION tests
17343 doesn't equal
17344 equal
17345 -------------------------------------------------------------------------------
17346 Misc.tests.cpp:<line number>
17347 ...............................................................................
17348
17349 Misc.tests.cpp:<line number>: FAILED:
17350 REQUIRE( a == b )
17351 with expansion:
17352 1 == 2
17353
17354 -------------------------------------------------------------------------------
17355 more nested SECTION tests
17356 doesn't equal
17357 not equal
17358 -------------------------------------------------------------------------------
17359 Misc.tests.cpp:<line number>
17360 ...............................................................................
17361
17362 Misc.tests.cpp:<line number>: PASSED:
17363 REQUIRE( a != b )
17364 with expansion:
17365 1 != 2
17366
17367 -------------------------------------------------------------------------------
17368 more nested SECTION tests
17369 doesn't equal
17370 less than
17371 -------------------------------------------------------------------------------
17372 Misc.tests.cpp:<line number>
17373 ...............................................................................
17374
17375 Misc.tests.cpp:<line number>: PASSED:
17376 REQUIRE( a < b )
17377 with expansion:
17378 1 < 2
17379
17380 -------------------------------------------------------------------------------
17381 nested SECTION tests
17382 doesn't equal
17383 -------------------------------------------------------------------------------
17384 Misc.tests.cpp:<line number>
17385 ...............................................................................
17386
17387 Misc.tests.cpp:<line number>: PASSED:
17388 REQUIRE( a != b )
17389 with expansion:
17390 1 != 2
17391
17392 Misc.tests.cpp:<line number>: PASSED:
17393 REQUIRE( b != a )
17394 with expansion:
17395 2 != 1
17396
17397 -------------------------------------------------------------------------------
17398 nested SECTION tests
17399 doesn't equal
17400 not equal
17401 -------------------------------------------------------------------------------
17402 Misc.tests.cpp:<line number>
17403 ...............................................................................
17404
17405 Misc.tests.cpp:<line number>: PASSED:
17406 REQUIRE( a != b )
17407 with expansion:
17408 1 != 2
17409
17410 a-------------------------------------------------------------------------------
17411 nested sections can be skipped dynamically at runtime
17412 A
17413 -------------------------------------------------------------------------------
17414 Skip.tests.cpp:<line number>
17415 ...............................................................................
17416
17417
17418 No assertions in section 'A'
17419
17420 !
17421 b1-------------------------------------------------------------------------------
17422 nested sections can be skipped dynamically at runtime
17423 B
17424 B1
17425 -------------------------------------------------------------------------------
17426 Skip.tests.cpp:<line number>
17427 ...............................................................................
17428
17429
17430 No assertions in section 'B1'
17431
17432 !
17433 -------------------------------------------------------------------------------
17434 nested sections can be skipped dynamically at runtime
17435 B
17436 B2
17437 -------------------------------------------------------------------------------
17438 Skip.tests.cpp:<line number>
17439 ...............................................................................
17440
17441 Skip.tests.cpp:<line number>: SKIPPED:
17442
17443 !
17444 -------------------------------------------------------------------------------
17445 non streamable - with conv. op
17446 -------------------------------------------------------------------------------
17447 Tricky.tests.cpp:<line number>
17448 ...............................................................................
17449
17450 Tricky.tests.cpp:<line number>: PASSED:
17451 REQUIRE( s == "7" )
17452 with expansion:
17453 "7" == "7"
17454
17455 -------------------------------------------------------------------------------
17456 non-copyable objects
17457 -------------------------------------------------------------------------------
17458 Tricky.tests.cpp:<line number>
17459 ...............................................................................
17460
17461 Tricky.tests.cpp:<line number>: PASSED:
17462 CHECK( ti == typeid(int) )
17463 with expansion:
17464 {?} == {?}
17465
17466 -------------------------------------------------------------------------------
17467 normal_quantile
17468 -------------------------------------------------------------------------------
17469 InternalBenchmark.tests.cpp:<line number>
17470 ...............................................................................
17471
17472 InternalBenchmark.tests.cpp:<line number>: PASSED:
17473 CHECK( normal_quantile(0.551780) == Approx(0.13015979861484198) )
17474 with expansion:
17475 0.13015979861484195
17476 ==
17477 Approx( 0.13015979861484198 )
17478
17479 InternalBenchmark.tests.cpp:<line number>: PASSED:
17480 CHECK( normal_quantile(0.533700) == Approx(0.08457408802851875) )
17481 with expansion:
17482 0.08457408802851875
17483 ==
17484 Approx( 0.08457408802851875 )
17485
17486 InternalBenchmark.tests.cpp:<line number>: PASSED:
17487 CHECK( normal_quantile(0.025000) == Approx(-1.95996398454005449) )
17488 with expansion:
17489 -1.95996398454005405
17490 ==
17491 Approx( -1.95996398454005449 )
17492
17493 -------------------------------------------------------------------------------
17494 not allowed
17495 -------------------------------------------------------------------------------
17496 Misc.tests.cpp:<line number>
17497 ...............................................................................
17498
17499 Misc.tests.cpp:<line number>: PASSED:
17500
17501 -------------------------------------------------------------------------------
17502 not prints unscoped info from previous failures
17503 -------------------------------------------------------------------------------
17504 Message.tests.cpp:<line number>
17505 ...............................................................................
17506
17507 Message.tests.cpp:<line number>: PASSED:
17508 REQUIRE( true )
17509 with message:
17510 this MAY be seen only for the FIRST assertion IF info is printed for passing
17511 assertions
17512
17513 Message.tests.cpp:<line number>: PASSED:
17514 REQUIRE( true )
17515 with message:
17516 this MAY be seen only for the SECOND assertion IF info is printed for passing
17517 assertions
17518
17519 Message.tests.cpp:<line number>: FAILED:
17520 REQUIRE( false )
17521 with message:
17522 this SHOULD be seen
17523
17524 -------------------------------------------------------------------------------
17525 null strings
17526 -------------------------------------------------------------------------------
17527 Misc.tests.cpp:<line number>
17528 ...............................................................................
17529
17530 Misc.tests.cpp:<line number>: PASSED:
17531 REQUIRE( makeString( false ) != static_cast<char*>(0) )
17532 with expansion:
17533 "valid string" != {null string}
17534
17535 Misc.tests.cpp:<line number>: PASSED:
17536 REQUIRE( makeString( true ) == static_cast<char*>(0) )
17537 with expansion:
17538 {null string} == {null string}
17539
17540 -------------------------------------------------------------------------------
17541 null_ptr
17542 -------------------------------------------------------------------------------
17543 Tricky.tests.cpp:<line number>
17544 ...............................................................................
17545
17546 Tricky.tests.cpp:<line number>: PASSED:
17547 REQUIRE( ptr.get() == 0 )
17548 with expansion:
17549 0 == 0
17550
17551 -------------------------------------------------------------------------------
17552 pair<pair<int,const char *,pair<std::string,int> > -> toString
17553 -------------------------------------------------------------------------------
17554 ToStringPair.tests.cpp:<line number>
17555 ...............................................................................
17556
17557 ToStringPair.tests.cpp:<line number>: PASSED:
17558 REQUIRE( ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" )
17559 with expansion:
17560 "{ { 42, "Arthur" }, { "Ford", 24 } }"
17561 ==
17562 "{ { 42, "Arthur" }, { "Ford", 24 } }"
17563
17564 -------------------------------------------------------------------------------
17565 parseEnums
17566 No enums
17567 -------------------------------------------------------------------------------
17568 ToString.tests.cpp:<line number>
17569 ...............................................................................
17570
17571 ToString.tests.cpp:<line number>: PASSED:
17572 CHECK_THAT( parseEnums( "" ), Equals( std::vector<Catch::StringRef>{} ) )
17573 with expansion:
17574 { } Equals: { }
17575
17576 -------------------------------------------------------------------------------
17577 parseEnums
17578 One enum value
17579 -------------------------------------------------------------------------------
17580 ToString.tests.cpp:<line number>
17581 ...............................................................................
17582
17583 ToString.tests.cpp:<line number>: PASSED:
17584 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
17585 with expansion:
17586 { Value1 } Equals: { Value1 }
17587
17588 ToString.tests.cpp:<line number>: PASSED:
17589 CHECK_THAT( parseEnums( "Value1" ), Equals( std::vector<Catch::StringRef>{"Value1"} ) )
17590 with expansion:
17591 { Value1 } Equals: { Value1 }
17592
17593 ToString.tests.cpp:<line number>: PASSED:
17594 CHECK_THAT( parseEnums( "EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) )
17595 with expansion:
17596 { Value1 } Equals: { Value1 }
17597
17598 -------------------------------------------------------------------------------
17599 parseEnums
17600 Multiple enum values
17601 -------------------------------------------------------------------------------
17602 ToString.tests.cpp:<line number>
17603 ...............................................................................
17604
17605 ToString.tests.cpp:<line number>: PASSED:
17606 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2"} ) )
17607 with expansion:
17608 { Value1, Value2 } Equals: { Value1, Value2 }
17609
17610 ToString.tests.cpp:<line number>: PASSED:
17611 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
17612 with expansion:
17613 { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
17614
17615 ToString.tests.cpp:<line number>: PASSED:
17616 CHECK_THAT( parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) )
17617 with expansion:
17618 { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
17619
17620 -------------------------------------------------------------------------------
17621 pointer to class
17622 -------------------------------------------------------------------------------
17623 Tricky.tests.cpp:<line number>
17624 ...............................................................................
17625
17626 Tricky.tests.cpp:<line number>: PASSED:
17627 REQUIRE( p == 0 )
17628 with expansion:
17629 0 == 0
17630
17631 -------------------------------------------------------------------------------
17632 print unscoped info if passing unscoped info is printed
17633 -------------------------------------------------------------------------------
17634 Message.tests.cpp:<line number>
17635 ...............................................................................
17636
17637 Message.tests.cpp:<line number>: PASSED:
17638 REQUIRE( true )
17639 with message:
17640 this MAY be seen IF info is printed for passing assertions
17641
17642 -------------------------------------------------------------------------------
17643 prints unscoped info on failure
17644 -------------------------------------------------------------------------------
17645 Message.tests.cpp:<line number>
17646 ...............................................................................
17647
17648 Message.tests.cpp:<line number>: FAILED:
17649 REQUIRE( false )
17650 with messages:
17651 this SHOULD be seen
17652 this SHOULD also be seen
17653
17654 -------------------------------------------------------------------------------
17655 prints unscoped info only for the first assertion
17656 -------------------------------------------------------------------------------
17657 Message.tests.cpp:<line number>
17658 ...............................................................................
17659
17660 Message.tests.cpp:<line number>: FAILED:
17661 CHECK( false )
17662 with message:
17663 this SHOULD be seen only ONCE
17664
17665 Message.tests.cpp:<line number>: PASSED:
17666 CHECK( true )
17667
17668 Message.tests.cpp:<line number>: PASSED:
17669 CHECK( true )
17670 with message:
17671 this MAY also be seen only ONCE IF info is printed for passing assertions
17672
17673 Message.tests.cpp:<line number>: PASSED:
17674 CHECK( true )
17675
17676 -------------------------------------------------------------------------------
17677 random SECTION tests
17678 doesn't equal
17679 -------------------------------------------------------------------------------
17680 Misc.tests.cpp:<line number>
17681 ...............................................................................
17682
17683 Misc.tests.cpp:<line number>: PASSED:
17684 REQUIRE( a != b )
17685 with expansion:
17686 1 != 2
17687
17688 Misc.tests.cpp:<line number>: PASSED:
17689 REQUIRE( b != a )
17690 with expansion:
17691 2 != 1
17692
17693 -------------------------------------------------------------------------------
17694 random SECTION tests
17695 not equal
17696 -------------------------------------------------------------------------------
17697 Misc.tests.cpp:<line number>
17698 ...............................................................................
17699
17700 Misc.tests.cpp:<line number>: PASSED:
17701 REQUIRE( a != b )
17702 with expansion:
17703 1 != 2
17704
17705 -------------------------------------------------------------------------------
17706 replaceInPlace
17707 replace single char
17708 -------------------------------------------------------------------------------
17709 StringManip.tests.cpp:<line number>
17710 ...............................................................................
17711
17712 StringManip.tests.cpp:<line number>: PASSED:
17713 CHECK( Catch::replaceInPlace(letters, "b", "z") )
17714 with expansion:
17715 true
17716
17717 StringManip.tests.cpp:<line number>: PASSED:
17718 CHECK( letters == "azcdefcg" )
17719 with expansion:
17720 "azcdefcg" == "azcdefcg"
17721
17722 -------------------------------------------------------------------------------
17723 replaceInPlace
17724 replace two chars
17725 -------------------------------------------------------------------------------
17726 StringManip.tests.cpp:<line number>
17727 ...............................................................................
17728
17729 StringManip.tests.cpp:<line number>: PASSED:
17730 CHECK( Catch::replaceInPlace(letters, "c", "z") )
17731 with expansion:
17732 true
17733
17734 StringManip.tests.cpp:<line number>: PASSED:
17735 CHECK( letters == "abzdefzg" )
17736 with expansion:
17737 "abzdefzg" == "abzdefzg"
17738
17739 -------------------------------------------------------------------------------
17740 replaceInPlace
17741 replace first char
17742 -------------------------------------------------------------------------------
17743 StringManip.tests.cpp:<line number>
17744 ...............................................................................
17745
17746 StringManip.tests.cpp:<line number>: PASSED:
17747 CHECK( Catch::replaceInPlace(letters, "a", "z") )
17748 with expansion:
17749 true
17750
17751 StringManip.tests.cpp:<line number>: PASSED:
17752 CHECK( letters == "zbcdefcg" )
17753 with expansion:
17754 "zbcdefcg" == "zbcdefcg"
17755
17756 -------------------------------------------------------------------------------
17757 replaceInPlace
17758 replace last char
17759 -------------------------------------------------------------------------------
17760 StringManip.tests.cpp:<line number>
17761 ...............................................................................
17762
17763 StringManip.tests.cpp:<line number>: PASSED:
17764 CHECK( Catch::replaceInPlace(letters, "g", "z") )
17765 with expansion:
17766 true
17767
17768 StringManip.tests.cpp:<line number>: PASSED:
17769 CHECK( letters == "abcdefcz" )
17770 with expansion:
17771 "abcdefcz" == "abcdefcz"
17772
17773 -------------------------------------------------------------------------------
17774 replaceInPlace
17775 replace all chars
17776 -------------------------------------------------------------------------------
17777 StringManip.tests.cpp:<line number>
17778 ...............................................................................
17779
17780 StringManip.tests.cpp:<line number>: PASSED:
17781 CHECK( Catch::replaceInPlace(letters, letters, "replaced") )
17782 with expansion:
17783 true
17784
17785 StringManip.tests.cpp:<line number>: PASSED:
17786 CHECK( letters == "replaced" )
17787 with expansion:
17788 "replaced" == "replaced"
17789
17790 -------------------------------------------------------------------------------
17791 replaceInPlace
17792 replace no chars
17793 -------------------------------------------------------------------------------
17794 StringManip.tests.cpp:<line number>
17795 ...............................................................................
17796
17797 StringManip.tests.cpp:<line number>: PASSED:
17798 CHECK_FALSE( Catch::replaceInPlace(letters, "x", "z") )
17799 with expansion:
17800 !false
17801
17802 StringManip.tests.cpp:<line number>: PASSED:
17803 CHECK( letters == letters )
17804 with expansion:
17805 "abcdefcg" == "abcdefcg"
17806
17807 -------------------------------------------------------------------------------
17808 replaceInPlace
17809 no replace in already-replaced string
17810 lengthening
17811 -------------------------------------------------------------------------------
17812 StringManip.tests.cpp:<line number>
17813 ...............................................................................
17814
17815 StringManip.tests.cpp:<line number>: PASSED:
17816 CHECK( Catch::replaceInPlace(letters, "c", "cc") )
17817 with expansion:
17818 true
17819
17820 StringManip.tests.cpp:<line number>: PASSED:
17821 CHECK( letters == "abccdefccg" )
17822 with expansion:
17823 "abccdefccg" == "abccdefccg"
17824
17825 -------------------------------------------------------------------------------
17826 replaceInPlace
17827 no replace in already-replaced string
17828 shortening
17829 -------------------------------------------------------------------------------
17830 StringManip.tests.cpp:<line number>
17831 ...............................................................................
17832
17833 StringManip.tests.cpp:<line number>: PASSED:
17834 CHECK( Catch::replaceInPlace(s, "--", "-") )
17835 with expansion:
17836 true
17837
17838 StringManip.tests.cpp:<line number>: PASSED:
17839 CHECK( s == "--" )
17840 with expansion:
17841 "--" == "--"
17842
17843 -------------------------------------------------------------------------------
17844 replaceInPlace
17845 escape '
17846 -------------------------------------------------------------------------------
17847 StringManip.tests.cpp:<line number>
17848 ...............................................................................
17849
17850 StringManip.tests.cpp:<line number>: PASSED:
17851 CHECK( Catch::replaceInPlace(s, "'", "|'") )
17852 with expansion:
17853 true
17854
17855 StringManip.tests.cpp:<line number>: PASSED:
17856 CHECK( s == "didn|'t" )
17857 with expansion:
17858 "didn|'t" == "didn|'t"
17859
17860 -------------------------------------------------------------------------------
17861 request an unknown %-starting stream fails
17862 -------------------------------------------------------------------------------
17863 Stream.tests.cpp:<line number>
17864 ...............................................................................
17865
17866 Stream.tests.cpp:<line number>: PASSED:
17867 REQUIRE_THROWS( Catch::makeStream( "%somestream" ) )
17868
17869 -------------------------------------------------------------------------------
17870 resolution
17871 -------------------------------------------------------------------------------
17872 InternalBenchmark.tests.cpp:<line number>
17873 ...............................................................................
17874
17875 InternalBenchmark.tests.cpp:<line number>: PASSED:
17876 REQUIRE( res.size() == count )
17877 with expansion:
17878 10 == 10
17879
17880 InternalBenchmark.tests.cpp:<line number>: PASSED:
17881 REQUIRE( res[i] == rate )
17882 with expansion:
17883 1000.0 == 1000 (0x<hex digits>)
17884
17885 InternalBenchmark.tests.cpp:<line number>: PASSED:
17886 REQUIRE( res[i] == rate )
17887 with expansion:
17888 1000.0 == 1000 (0x<hex digits>)
17889
17890 InternalBenchmark.tests.cpp:<line number>: PASSED:
17891 REQUIRE( res[i] == rate )
17892 with expansion:
17893 1000.0 == 1000 (0x<hex digits>)
17894
17895 InternalBenchmark.tests.cpp:<line number>: PASSED:
17896 REQUIRE( res[i] == rate )
17897 with expansion:
17898 1000.0 == 1000 (0x<hex digits>)
17899
17900 InternalBenchmark.tests.cpp:<line number>: PASSED:
17901 REQUIRE( res[i] == rate )
17902 with expansion:
17903 1000.0 == 1000 (0x<hex digits>)
17904
17905 InternalBenchmark.tests.cpp:<line number>: PASSED:
17906 REQUIRE( res[i] == rate )
17907 with expansion:
17908 1000.0 == 1000 (0x<hex digits>)
17909
17910 InternalBenchmark.tests.cpp:<line number>: PASSED:
17911 REQUIRE( res[i] == rate )
17912 with expansion:
17913 1000.0 == 1000 (0x<hex digits>)
17914
17915 InternalBenchmark.tests.cpp:<line number>: PASSED:
17916 REQUIRE( res[i] == rate )
17917 with expansion:
17918 1000.0 == 1000 (0x<hex digits>)
17919
17920 InternalBenchmark.tests.cpp:<line number>: PASSED:
17921 REQUIRE( res[i] == rate )
17922 with expansion:
17923 1000.0 == 1000 (0x<hex digits>)
17924
17925 -------------------------------------------------------------------------------
17926 run_for_at_least, chronometer
17927 -------------------------------------------------------------------------------
17928 InternalBenchmark.tests.cpp:<line number>
17929 ...............................................................................
17930
17931 InternalBenchmark.tests.cpp:<line number>: PASSED:
17932 CHECK( meter.runs() >= old_runs )
17933 with expansion:
17934 1 >= 1
17935
17936 InternalBenchmark.tests.cpp:<line number>: PASSED:
17937 CHECK( meter.runs() >= old_runs )
17938 with expansion:
17939 2 >= 1
17940
17941 InternalBenchmark.tests.cpp:<line number>: PASSED:
17942 CHECK( meter.runs() >= old_runs )
17943 with expansion:
17944 4 >= 2
17945
17946 InternalBenchmark.tests.cpp:<line number>: PASSED:
17947 CHECK( meter.runs() >= old_runs )
17948 with expansion:
17949 8 >= 4
17950
17951 InternalBenchmark.tests.cpp:<line number>: PASSED:
17952 CHECK( meter.runs() >= old_runs )
17953 with expansion:
17954 16 >= 8
17955
17956 InternalBenchmark.tests.cpp:<line number>: PASSED:
17957 CHECK( meter.runs() >= old_runs )
17958 with expansion:
17959 32 >= 16
17960
17961 InternalBenchmark.tests.cpp:<line number>: PASSED:
17962 CHECK( meter.runs() >= old_runs )
17963 with expansion:
17964 64 >= 32
17965
17966 InternalBenchmark.tests.cpp:<line number>: PASSED:
17967 CHECK( meter.runs() >= old_runs )
17968 with expansion:
17969 128 >= 64
17970
17971 InternalBenchmark.tests.cpp:<line number>: PASSED:
17972 REQUIRE( Timing.elapsed >= time )
17973 with expansion:
17974 128 ns >= 100 ns
17975
17976 InternalBenchmark.tests.cpp:<line number>: PASSED:
17977 REQUIRE( Timing.result == Timing.iterations + 17 )
17978 with expansion:
17979 145 == 145
17980
17981 InternalBenchmark.tests.cpp:<line number>: PASSED:
17982 REQUIRE( Timing.iterations >= time.count() )
17983 with expansion:
17984 128 >= 100
17985
17986 -------------------------------------------------------------------------------
17987 run_for_at_least, int
17988 -------------------------------------------------------------------------------
17989 InternalBenchmark.tests.cpp:<line number>
17990 ...............................................................................
17991
17992 InternalBenchmark.tests.cpp:<line number>: PASSED:
17993 CHECK( x >= old_x )
17994 with expansion:
17995 1 >= 1
17996
17997 InternalBenchmark.tests.cpp:<line number>: PASSED:
17998 CHECK( x >= old_x )
17999 with expansion:
18000 2 >= 1
18001
18002 InternalBenchmark.tests.cpp:<line number>: PASSED:
18003 CHECK( x >= old_x )
18004 with expansion:
18005 4 >= 2
18006
18007 InternalBenchmark.tests.cpp:<line number>: PASSED:
18008 CHECK( x >= old_x )
18009 with expansion:
18010 8 >= 4
18011
18012 InternalBenchmark.tests.cpp:<line number>: PASSED:
18013 CHECK( x >= old_x )
18014 with expansion:
18015 16 >= 8
18016
18017 InternalBenchmark.tests.cpp:<line number>: PASSED:
18018 CHECK( x >= old_x )
18019 with expansion:
18020 32 >= 16
18021
18022 InternalBenchmark.tests.cpp:<line number>: PASSED:
18023 CHECK( x >= old_x )
18024 with expansion:
18025 64 >= 32
18026
18027 InternalBenchmark.tests.cpp:<line number>: PASSED:
18028 CHECK( x >= old_x )
18029 with expansion:
18030 128 >= 64
18031
18032 InternalBenchmark.tests.cpp:<line number>: PASSED:
18033 REQUIRE( Timing.elapsed >= time )
18034 with expansion:
18035 128 ns >= 100 ns
18036
18037 InternalBenchmark.tests.cpp:<line number>: PASSED:
18038 REQUIRE( Timing.result == Timing.iterations + 17 )
18039 with expansion:
18040 145 == 145
18041
18042 InternalBenchmark.tests.cpp:<line number>: PASSED:
18043 REQUIRE( Timing.iterations >= time.count() )
18044 with expansion:
18045 128 >= 100
18046
18047 -------------------------------------------------------------------------------
18048 second tag
18049 -------------------------------------------------------------------------------
18050 Misc.tests.cpp:<line number>
18051 ...............................................................................
18052
18053
18054 No assertions in test case 'second tag'
18055
18056 -------------------------------------------------------------------------------
18057 sections can be skipped dynamically at runtime
18058 not skipped
18059 -------------------------------------------------------------------------------
18060 Skip.tests.cpp:<line number>
18061 ...............................................................................
18062
18063 Skip.tests.cpp:<line number>: PASSED:
18064
18065 -------------------------------------------------------------------------------
18066 sections can be skipped dynamically at runtime
18067 skipped
18068 -------------------------------------------------------------------------------
18069 Skip.tests.cpp:<line number>
18070 ...............................................................................
18071
18072 Skip.tests.cpp:<line number>: SKIPPED:
18073
18074 -------------------------------------------------------------------------------
18075 sections can be skipped dynamically at runtime
18076 also not skipped
18077 -------------------------------------------------------------------------------
18078 Skip.tests.cpp:<line number>
18079 ...............................................................................
18080
18081 Skip.tests.cpp:<line number>: PASSED:
18082
18083 -------------------------------------------------------------------------------
18084 send a single char to INFO
18085 -------------------------------------------------------------------------------
18086 Misc.tests.cpp:<line number>
18087 ...............................................................................
18088
18089 Misc.tests.cpp:<line number>: FAILED:
18090 REQUIRE( false )
18091 with message:
18092 3
18093
18094 -------------------------------------------------------------------------------
18095 sends information to INFO
18096 -------------------------------------------------------------------------------
18097 Message.tests.cpp:<line number>
18098 ...............................................................................
18099
18100 Message.tests.cpp:<line number>: FAILED:
18101 REQUIRE( false )
18102 with messages:
18103 hi
18104 i := 7
18105
18106 -------------------------------------------------------------------------------
18107 shortened hide tags are split apart
18108 -------------------------------------------------------------------------------
18109 Tag.tests.cpp:<line number>
18110 ...............................................................................
18111
18112 Tag.tests.cpp:<line number>: PASSED:
18113 REQUIRE_THAT( testcase.tags, VectorContains( Tag( "magic-tag" ) ) && VectorContains( Tag( "."_catch_sr ) ) )
18114 with expansion:
18115 { {?}, {?} } ( Contains: {?} and Contains: {?} )
18116
18117 -------------------------------------------------------------------------------
18118 skipped tests can optionally provide a reason
18119 -------------------------------------------------------------------------------
18120 Skip.tests.cpp:<line number>
18121 ...............................................................................
18122
18123 Skip.tests.cpp:<line number>: SKIPPED:
18124 explicitly with message:
18125 skipping because answer = 43
18126
18127 -------------------------------------------------------------------------------
18128 splitString
18129 -------------------------------------------------------------------------------
18130 StringManip.tests.cpp:<line number>
18131 ...............................................................................
18132
18133 StringManip.tests.cpp:<line number>: PASSED:
18134 CHECK_THAT( splitStringRef("", ','), Equals(std::vector<StringRef>()) )
18135 with expansion:
18136 { } Equals: { }
18137
18138 StringManip.tests.cpp:<line number>: PASSED:
18139 CHECK_THAT( splitStringRef("abc", ','), Equals(std::vector<StringRef>{"abc"}) )
18140 with expansion:
18141 { abc } Equals: { abc }
18142
18143 StringManip.tests.cpp:<line number>: PASSED:
18144 CHECK_THAT( splitStringRef("abc,def", ','), Equals(std::vector<StringRef>{"abc", "def"}) )
18145 with expansion:
18146 { abc, def } Equals: { abc, def }
18147
18148 -------------------------------------------------------------------------------
18149 stacks unscoped info in loops
18150 -------------------------------------------------------------------------------
18151 Message.tests.cpp:<line number>
18152 ...............................................................................
18153
18154 Message.tests.cpp:<line number>: FAILED:
18155 CHECK( false )
18156 with messages:
18157 Count 1 to 3...
18158 1
18159 2
18160 3
18161
18162 Message.tests.cpp:<line number>: FAILED:
18163 CHECK( false )
18164 with messages:
18165 Count 4 to 6...
18166 4
18167 5
18168 6
18169
18170 -------------------------------------------------------------------------------
18171 startsWith
18172 -------------------------------------------------------------------------------
18173 StringManip.tests.cpp:<line number>
18174 ...............................................................................
18175
18176 StringManip.tests.cpp:<line number>: PASSED:
18177 CHECK_FALSE( startsWith("", 'c') )
18178 with expansion:
18179 !false
18180
18181 StringManip.tests.cpp:<line number>: PASSED:
18182 CHECK( startsWith(std::string("abc"), 'a') )
18183 with expansion:
18184 true
18185
18186 StringManip.tests.cpp:<line number>: PASSED:
18187 CHECK( startsWith("def"_catch_sr, 'd') )
18188 with expansion:
18189 true
18190
18191 -------------------------------------------------------------------------------
18192 std::map is convertible string
18193 empty
18194 -------------------------------------------------------------------------------
18195 ToStringGeneral.tests.cpp:<line number>
18196 ...............................................................................
18197
18198 ToStringGeneral.tests.cpp:<line number>: PASSED:
18199 REQUIRE( Catch::Detail::stringify( emptyMap ) == "{ }" )
18200 with expansion:
18201 "{ }" == "{ }"
18202
18203 -------------------------------------------------------------------------------
18204 std::map is convertible string
18205 single item
18206 -------------------------------------------------------------------------------
18207 ToStringGeneral.tests.cpp:<line number>
18208 ...............................................................................
18209
18210 ToStringGeneral.tests.cpp:<line number>: PASSED:
18211 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" )
18212 with expansion:
18213 "{ { "one", 1 } }" == "{ { "one", 1 } }"
18214
18215 -------------------------------------------------------------------------------
18216 std::map is convertible string
18217 several items
18218 -------------------------------------------------------------------------------
18219 ToStringGeneral.tests.cpp:<line number>
18220 ...............................................................................
18221
18222 ToStringGeneral.tests.cpp:<line number>: PASSED:
18223 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" )
18224 with expansion:
18225 "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
18226 ==
18227 "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
18228
18229 -------------------------------------------------------------------------------
18230 std::pair<int,const std::string> -> toString
18231 -------------------------------------------------------------------------------
18232 ToStringPair.tests.cpp:<line number>
18233 ...............................................................................
18234
18235 ToStringPair.tests.cpp:<line number>: PASSED:
18236 REQUIRE( ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" )
18237 with expansion:
18238 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
18239
18240 -------------------------------------------------------------------------------
18241 std::pair<int,std::string> -> toString
18242 -------------------------------------------------------------------------------
18243 ToStringPair.tests.cpp:<line number>
18244 ...............................................................................
18245
18246 ToStringPair.tests.cpp:<line number>: PASSED:
18247 REQUIRE( ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" )
18248 with expansion:
18249 "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
18250
18251 -------------------------------------------------------------------------------
18252 std::set is convertible string
18253 empty
18254 -------------------------------------------------------------------------------
18255 ToStringGeneral.tests.cpp:<line number>
18256 ...............................................................................
18257
18258 ToStringGeneral.tests.cpp:<line number>: PASSED:
18259 REQUIRE( Catch::Detail::stringify( emptySet ) == "{ }" )
18260 with expansion:
18261 "{ }" == "{ }"
18262
18263 -------------------------------------------------------------------------------
18264 std::set is convertible string
18265 single item
18266 -------------------------------------------------------------------------------
18267 ToStringGeneral.tests.cpp:<line number>
18268 ...............................................................................
18269
18270 ToStringGeneral.tests.cpp:<line number>: PASSED:
18271 REQUIRE( Catch::Detail::stringify( set ) == "{ \"one\" }" )
18272 with expansion:
18273 "{ "one" }" == "{ "one" }"
18274
18275 -------------------------------------------------------------------------------
18276 std::set is convertible string
18277 several items
18278 -------------------------------------------------------------------------------
18279 ToStringGeneral.tests.cpp:<line number>
18280 ...............................................................................
18281
18282 ToStringGeneral.tests.cpp:<line number>: PASSED:
18283 REQUIRE( Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" )
18284 with expansion:
18285 "{ "abc", "def", "ghi" }"
18286 ==
18287 "{ "abc", "def", "ghi" }"
18288
18289 -------------------------------------------------------------------------------
18290 std::vector<std::pair<std::string,int> > -> toString
18291 -------------------------------------------------------------------------------
18292 ToStringPair.tests.cpp:<line number>
18293 ...............................................................................
18294
18295 ToStringPair.tests.cpp:<line number>: PASSED:
18296 REQUIRE( ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" )
18297 with expansion:
18298 "{ { "green", 55 } }"
18299 ==
18300 "{ { "green", 55 } }"
18301
18302 -------------------------------------------------------------------------------
18303 stdout and stderr streams have %-starting name
18304 -------------------------------------------------------------------------------
18305 Stream.tests.cpp:<line number>
18306 ...............................................................................
18307
18308 Stream.tests.cpp:<line number>: PASSED:
18309 REQUIRE( Catch::makeStream( "%stderr" )->isConsole() )
18310 with expansion:
18311 true
18312
18313 Stream.tests.cpp:<line number>: PASSED:
18314 REQUIRE( Catch::makeStream( "%stdout" )->isConsole() )
18315 with expansion:
18316 true
18317
18318 -------------------------------------------------------------------------------
18319 stringify ranges
18320 -------------------------------------------------------------------------------
18321 ToStringWhich.tests.cpp:<line number>
18322 ...............................................................................
18323
18324 ToStringWhich.tests.cpp:<line number>: PASSED:
18325 REQUIRE( ::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)" )
18326 with expansion:
18327 "op<<(streamable_range)"
18328 ==
18329 "op<<(streamable_range)"
18330
18331 ToStringWhich.tests.cpp:<line number>: PASSED:
18332 REQUIRE( ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)" )
18333 with expansion:
18334 "stringmaker(streamable_range)"
18335 ==
18336 "stringmaker(streamable_range)"
18337
18338 ToStringWhich.tests.cpp:<line number>: PASSED:
18339 REQUIRE( ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }" )
18340 with expansion:
18341 "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
18342
18343 ToStringWhich.tests.cpp:<line number>: PASSED:
18344 REQUIRE( ::Catch::Detail::stringify(disabled_range{}) == "{?}" )
18345 with expansion:
18346 "{?}" == "{?}"
18347
18348 -------------------------------------------------------------------------------
18349 stringify( has_maker )
18350 -------------------------------------------------------------------------------
18351 ToStringWhich.tests.cpp:<line number>
18352 ...............................................................................
18353
18354 ToStringWhich.tests.cpp:<line number>: PASSED:
18355 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" )
18356 with expansion:
18357 "StringMaker<has_maker>"
18358 ==
18359 "StringMaker<has_maker>"
18360
18361 -------------------------------------------------------------------------------
18362 stringify( has_maker_and_operator )
18363 -------------------------------------------------------------------------------
18364 ToStringWhich.tests.cpp:<line number>
18365 ...............................................................................
18366
18367 ToStringWhich.tests.cpp:<line number>: PASSED:
18368 REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" )
18369 with expansion:
18370 "StringMaker<has_maker_and_operator>"
18371 ==
18372 "StringMaker<has_maker_and_operator>"
18373
18374 -------------------------------------------------------------------------------
18375 stringify( has_neither )
18376 -------------------------------------------------------------------------------
18377 ToStringWhich.tests.cpp:<line number>
18378 ...............................................................................
18379
18380 ToStringWhich.tests.cpp:<line number>: PASSED:
18381 REQUIRE( ::Catch::Detail::stringify(item) == "{?}" )
18382 with expansion:
18383 "{?}" == "{?}"
18384
18385 -------------------------------------------------------------------------------
18386 stringify( has_operator )
18387 -------------------------------------------------------------------------------
18388 ToStringWhich.tests.cpp:<line number>
18389 ...............................................................................
18390
18391 ToStringWhich.tests.cpp:<line number>: PASSED:
18392 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" )
18393 with expansion:
18394 "operator<<( has_operator )"
18395 ==
18396 "operator<<( has_operator )"
18397
18398 -------------------------------------------------------------------------------
18399 stringify( has_template_operator )
18400 -------------------------------------------------------------------------------
18401 ToStringWhich.tests.cpp:<line number>
18402 ...............................................................................
18403
18404 ToStringWhich.tests.cpp:<line number>: PASSED:
18405 REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" )
18406 with expansion:
18407 "operator<<( has_template_operator )"
18408 ==
18409 "operator<<( has_template_operator )"
18410
18411 -------------------------------------------------------------------------------
18412 stringify( vectors<has_maker> )
18413 -------------------------------------------------------------------------------
18414 ToStringWhich.tests.cpp:<line number>
18415 ...............................................................................
18416
18417 ToStringWhich.tests.cpp:<line number>: PASSED:
18418 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" )
18419 with expansion:
18420 "{ StringMaker<has_maker> }"
18421 ==
18422 "{ StringMaker<has_maker> }"
18423
18424 -------------------------------------------------------------------------------
18425 stringify( vectors<has_maker_and_operator> )
18426 -------------------------------------------------------------------------------
18427 ToStringWhich.tests.cpp:<line number>
18428 ...............................................................................
18429
18430 ToStringWhich.tests.cpp:<line number>: PASSED:
18431 REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" )
18432 with expansion:
18433 "{ StringMaker<has_maker_and_operator> }"
18434 ==
18435 "{ StringMaker<has_maker_and_operator> }"
18436
18437 -------------------------------------------------------------------------------
18438 stringify( vectors<has_operator> )
18439 -------------------------------------------------------------------------------
18440 ToStringWhich.tests.cpp:<line number>
18441 ...............................................................................
18442
18443 ToStringWhich.tests.cpp:<line number>: PASSED:
18444 REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" )
18445 with expansion:
18446 "{ operator<<( has_operator ) }"
18447 ==
18448 "{ operator<<( has_operator ) }"
18449
18450 -------------------------------------------------------------------------------
18451 strlen3
18452 -------------------------------------------------------------------------------
18453 Generators.tests.cpp:<line number>
18454 ...............................................................................
18455
18456 Generators.tests.cpp:<line number>: PASSED:
18457 REQUIRE( data.str.size() == data.len )
18458 with expansion:
18459 3 == 3
18460
18461 -------------------------------------------------------------------------------
18462 strlen3
18463 -------------------------------------------------------------------------------
18464 Generators.tests.cpp:<line number>
18465 ...............................................................................
18466
18467 Generators.tests.cpp:<line number>: PASSED:
18468 REQUIRE( data.str.size() == data.len )
18469 with expansion:
18470 3 == 3
18471
18472 -------------------------------------------------------------------------------
18473 strlen3
18474 -------------------------------------------------------------------------------
18475 Generators.tests.cpp:<line number>
18476 ...............................................................................
18477
18478 Generators.tests.cpp:<line number>: PASSED:
18479 REQUIRE( data.str.size() == data.len )
18480 with expansion:
18481 5 == 5
18482
18483 -------------------------------------------------------------------------------
18484 strlen3
18485 -------------------------------------------------------------------------------
18486 Generators.tests.cpp:<line number>
18487 ...............................................................................
18488
18489 Generators.tests.cpp:<line number>: PASSED:
18490 REQUIRE( data.str.size() == data.len )
18491 with expansion:
18492 4 == 4
18493
18494 -------------------------------------------------------------------------------
18495 system_clock timepoint with non-default duration
18496 -------------------------------------------------------------------------------
18497 ToStringChrono.tests.cpp:<line number>
18498 ...............................................................................
18499
18500 ToStringChrono.tests.cpp:<line number>: PASSED:
18501 CHECK( tp1 == tp2 )
18502 with expansion:
18503 {iso8601-timestamp}
18504 ==
18505 {iso8601-timestamp}
18506
18507 -------------------------------------------------------------------------------
18508 tables
18509 -------------------------------------------------------------------------------
18510 Generators.tests.cpp:<line number>
18511 ...............................................................................
18512
18513 Generators.tests.cpp:<line number>: PASSED:
18514 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
18515 with expansion:
18516 5 == 5
18517
18518 -------------------------------------------------------------------------------
18519 tables
18520 -------------------------------------------------------------------------------
18521 Generators.tests.cpp:<line number>
18522 ...............................................................................
18523
18524 Generators.tests.cpp:<line number>: PASSED:
18525 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
18526 with expansion:
18527 6 == 6
18528
18529 -------------------------------------------------------------------------------
18530 tables
18531 -------------------------------------------------------------------------------
18532 Generators.tests.cpp:<line number>
18533 ...............................................................................
18534
18535 Generators.tests.cpp:<line number>: PASSED:
18536 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
18537 with expansion:
18538 5 == 5
18539
18540 -------------------------------------------------------------------------------
18541 tables
18542 -------------------------------------------------------------------------------
18543 Generators.tests.cpp:<line number>
18544 ...............................................................................
18545
18546 Generators.tests.cpp:<line number>: PASSED:
18547 REQUIRE( strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) )
18548 with expansion:
18549 6 == 6
18550
18551 -------------------------------------------------------------------------------
18552 tags with dots in later positions are not parsed as hidden
18553 -------------------------------------------------------------------------------
18554 Tag.tests.cpp:<line number>
18555 ...............................................................................
18556
18557 Tag.tests.cpp:<line number>: PASSED:
18558 REQUIRE( testcase.tags.size() == 1 )
18559 with expansion:
18560 1 == 1
18561
18562 Tag.tests.cpp:<line number>: PASSED:
18563 REQUIRE( testcase.tags[0].original == "magic.tag"_catch_sr )
18564 with expansion:
18565 magic.tag == magic.tag
18566
18567 -------------------------------------------------------------------------------
18568 tests can be skipped dynamically at runtime
18569 -------------------------------------------------------------------------------
18570 Skip.tests.cpp:<line number>
18571 ...............................................................................
18572
18573 Skip.tests.cpp:<line number>: SKIPPED:
18574
18575 -------------------------------------------------------------------------------
18576 thrown std::strings are translated
18577 -------------------------------------------------------------------------------
18578 Exception.tests.cpp:<line number>
18579 ...............................................................................
18580
18581 Exception.tests.cpp:<line number>: FAILED:
18582 due to unexpected exception with message:
18583 Why would you throw a std::string?
18584
18585 -------------------------------------------------------------------------------
18586 toString on const wchar_t const pointer returns the string contents
18587 -------------------------------------------------------------------------------
18588 Misc.tests.cpp:<line number>
18589 ...............................................................................
18590
18591 Misc.tests.cpp:<line number>: PASSED:
18592 CHECK( result == "\"wide load\"" )
18593 with expansion:
18594 ""wide load"" == ""wide load""
18595
18596 -------------------------------------------------------------------------------
18597 toString on const wchar_t pointer returns the string contents
18598 -------------------------------------------------------------------------------
18599 Misc.tests.cpp:<line number>
18600 ...............................................................................
18601
18602 Misc.tests.cpp:<line number>: PASSED:
18603 CHECK( result == "\"wide load\"" )
18604 with expansion:
18605 ""wide load"" == ""wide load""
18606
18607 -------------------------------------------------------------------------------
18608 toString on wchar_t const pointer returns the string contents
18609 -------------------------------------------------------------------------------
18610 Misc.tests.cpp:<line number>
18611 ...............................................................................
18612
18613 Misc.tests.cpp:<line number>: PASSED:
18614 CHECK( result == "\"wide load\"" )
18615 with expansion:
18616 ""wide load"" == ""wide load""
18617
18618 -------------------------------------------------------------------------------
18619 toString on wchar_t returns the string contents
18620 -------------------------------------------------------------------------------
18621 Misc.tests.cpp:<line number>
18622 ...............................................................................
18623
18624 Misc.tests.cpp:<line number>: PASSED:
18625 CHECK( result == "\"wide load\"" )
18626 with expansion:
18627 ""wide load"" == ""wide load""
18628
18629 -------------------------------------------------------------------------------
18630 toString(enum class w/operator<<)
18631 -------------------------------------------------------------------------------
18632 EnumToString.tests.cpp:<line number>
18633 ...............................................................................
18634
18635 EnumToString.tests.cpp:<line number>: PASSED:
18636 CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" )
18637 with expansion:
18638 "E2/V0" == "E2/V0"
18639
18640 EnumToString.tests.cpp:<line number>: PASSED:
18641 CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" )
18642 with expansion:
18643 "E2/V1" == "E2/V1"
18644
18645 EnumToString.tests.cpp:<line number>: PASSED:
18646 CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" )
18647 with expansion:
18648 "Unknown enum value 10"
18649 ==
18650 "Unknown enum value 10"
18651
18652 -------------------------------------------------------------------------------
18653 toString(enum class)
18654 -------------------------------------------------------------------------------
18655 EnumToString.tests.cpp:<line number>
18656 ...............................................................................
18657
18658 EnumToString.tests.cpp:<line number>: PASSED:
18659 CHECK( ::Catch::Detail::stringify(e0) == "0" )
18660 with expansion:
18661 "0" == "0"
18662
18663 EnumToString.tests.cpp:<line number>: PASSED:
18664 CHECK( ::Catch::Detail::stringify(e1) == "1" )
18665 with expansion:
18666 "1" == "1"
18667
18668 -------------------------------------------------------------------------------
18669 toString(enum w/operator<<)
18670 -------------------------------------------------------------------------------
18671 EnumToString.tests.cpp:<line number>
18672 ...............................................................................
18673
18674 EnumToString.tests.cpp:<line number>: PASSED:
18675 CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" )
18676 with expansion:
18677 "E2{0}" == "E2{0}"
18678
18679 EnumToString.tests.cpp:<line number>: PASSED:
18680 CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" )
18681 with expansion:
18682 "E2{1}" == "E2{1}"
18683
18684 -------------------------------------------------------------------------------
18685 toString(enum)
18686 -------------------------------------------------------------------------------
18687 EnumToString.tests.cpp:<line number>
18688 ...............................................................................
18689
18690 EnumToString.tests.cpp:<line number>: PASSED:
18691 CHECK( ::Catch::Detail::stringify(e0) == "0" )
18692 with expansion:
18693 "0" == "0"
18694
18695 EnumToString.tests.cpp:<line number>: PASSED:
18696 CHECK( ::Catch::Detail::stringify(e1) == "1" )
18697 with expansion:
18698 "1" == "1"
18699
18700 -------------------------------------------------------------------------------
18701 tuple<>
18702 -------------------------------------------------------------------------------
18703 ToStringTuple.tests.cpp:<line number>
18704 ...............................................................................
18705
18706 ToStringTuple.tests.cpp:<line number>: PASSED:
18707 CHECK( "{ }" == ::Catch::Detail::stringify(type{}) )
18708 with expansion:
18709 "{ }" == "{ }"
18710
18711 ToStringTuple.tests.cpp:<line number>: PASSED:
18712 CHECK( "{ }" == ::Catch::Detail::stringify(value) )
18713 with expansion:
18714 "{ }" == "{ }"
18715
18716 -------------------------------------------------------------------------------
18717 tuple<float,int>
18718 -------------------------------------------------------------------------------
18719 ToStringTuple.tests.cpp:<line number>
18720 ...............................................................................
18721
18722 ToStringTuple.tests.cpp:<line number>: PASSED:
18723 CHECK( "1.5f" == ::Catch::Detail::stringify(float(1.5)) )
18724 with expansion:
18725 "1.5f" == "1.5f"
18726
18727 ToStringTuple.tests.cpp:<line number>: PASSED:
18728 CHECK( "{ 1.5f, 0 }" == ::Catch::Detail::stringify(type{1.5f,0}) )
18729 with expansion:
18730 "{ 1.5f, 0 }" == "{ 1.5f, 0 }"
18731
18732 -------------------------------------------------------------------------------
18733 tuple<int>
18734 -------------------------------------------------------------------------------
18735 ToStringTuple.tests.cpp:<line number>
18736 ...............................................................................
18737
18738 ToStringTuple.tests.cpp:<line number>: PASSED:
18739 CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) )
18740 with expansion:
18741 "{ 0 }" == "{ 0 }"
18742
18743 -------------------------------------------------------------------------------
18744 tuple<string,string>
18745 -------------------------------------------------------------------------------
18746 ToStringTuple.tests.cpp:<line number>
18747 ...............................................................................
18748
18749 ToStringTuple.tests.cpp:<line number>: PASSED:
18750 CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) )
18751 with expansion:
18752 "{ "hello", "world" }"
18753 ==
18754 "{ "hello", "world" }"
18755
18756 -------------------------------------------------------------------------------
18757 tuple<tuple<int>,tuple<>,float>
18758 -------------------------------------------------------------------------------
18759 ToStringTuple.tests.cpp:<line number>
18760 ...............................................................................
18761
18762 ToStringTuple.tests.cpp:<line number>: PASSED:
18763 CHECK( "{ { 42 }, { }, 1.5f }" == ::Catch::Detail::stringify(value) )
18764 with expansion:
18765 "{ { 42 }, { }, 1.5f }"
18766 ==
18767 "{ { 42 }, { }, 1.5f }"
18768
18769 -------------------------------------------------------------------------------
18770 uniform samples
18771 -------------------------------------------------------------------------------
18772 InternalBenchmark.tests.cpp:<line number>
18773 ...............................................................................
18774
18775 InternalBenchmark.tests.cpp:<line number>: PASSED:
18776 CHECK( e.point == 23 )
18777 with expansion:
18778 23.0 == 23
18779
18780 InternalBenchmark.tests.cpp:<line number>: PASSED:
18781 CHECK( e.upper_bound == 23 )
18782 with expansion:
18783 23.0 == 23
18784
18785 InternalBenchmark.tests.cpp:<line number>: PASSED:
18786 CHECK( e.lower_bound == 23 )
18787 with expansion:
18788 23.0 == 23
18789
18790 InternalBenchmark.tests.cpp:<line number>: PASSED:
18791 CHECK( e.confidence_interval == 0.95 )
18792 with expansion:
18793 0.94999999999999996 == 0.94999999999999996
18794
18795 -------------------------------------------------------------------------------
18796 uniform_integer_distribution can return the bounds
18797 -------------------------------------------------------------------------------
18798 RandomNumberGeneration.tests.cpp:<line number>
18799 ...............................................................................
18800
18801 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
18802 REQUIRE( dist.a() == -10 )
18803 with expansion:
18804 -10 == -10
18805
18806 RandomNumberGeneration.tests.cpp:<line number>: PASSED:
18807 REQUIRE( dist.b() == 10 )
18808 with expansion:
18809 10 == 10
18810
18811 -------------------------------------------------------------------------------
18812 unique_ptr reimplementation: basic functionality
18813 Default constructed unique_ptr is empty
18814 -------------------------------------------------------------------------------
18815 UniquePtr.tests.cpp:<line number>
18816 ...............................................................................
18817
18818 UniquePtr.tests.cpp:<line number>: PASSED:
18819 REQUIRE_FALSE( ptr )
18820 with expansion:
18821 !{?}
18822
18823 UniquePtr.tests.cpp:<line number>: PASSED:
18824 REQUIRE( ptr.get() == 0 )
18825 with expansion:
18826 0 == 0
18827
18828 -------------------------------------------------------------------------------
18829 unique_ptr reimplementation: basic functionality
18830 Take ownership of allocation
18831 -------------------------------------------------------------------------------
18832 UniquePtr.tests.cpp:<line number>
18833 ...............................................................................
18834
18835 UniquePtr.tests.cpp:<line number>: PASSED:
18836 REQUIRE( ptr )
18837 with expansion:
18838 {?}
18839
18840 UniquePtr.tests.cpp:<line number>: PASSED:
18841 REQUIRE( *ptr == 0 )
18842 with expansion:
18843 0 == 0
18844
18845 UniquePtr.tests.cpp:<line number>: PASSED:
18846 REQUIRE( ptr.get() == naked_ptr )
18847 with expansion:
18848 0x<hex digits> == 0x<hex digits>
18849
18850 -------------------------------------------------------------------------------
18851 unique_ptr reimplementation: basic functionality
18852 Take ownership of allocation
18853 Plain reset deallocates
18854 -------------------------------------------------------------------------------
18855 UniquePtr.tests.cpp:<line number>
18856 ...............................................................................
18857
18858 UniquePtr.tests.cpp:<line number>: PASSED:
18859 REQUIRE_FALSE( ptr )
18860 with expansion:
18861 !{?}
18862
18863 UniquePtr.tests.cpp:<line number>: PASSED:
18864 REQUIRE( ptr.get() == 0 )
18865 with expansion:
18866 0 == 0
18867
18868 -------------------------------------------------------------------------------
18869 unique_ptr reimplementation: basic functionality
18870 Take ownership of allocation
18871 -------------------------------------------------------------------------------
18872 UniquePtr.tests.cpp:<line number>
18873 ...............................................................................
18874
18875 UniquePtr.tests.cpp:<line number>: PASSED:
18876 REQUIRE( ptr )
18877 with expansion:
18878 {?}
18879
18880 UniquePtr.tests.cpp:<line number>: PASSED:
18881 REQUIRE( *ptr == 0 )
18882 with expansion:
18883 0 == 0
18884
18885 UniquePtr.tests.cpp:<line number>: PASSED:
18886 REQUIRE( ptr.get() == naked_ptr )
18887 with expansion:
18888 0x<hex digits> == 0x<hex digits>
18889
18890 -------------------------------------------------------------------------------
18891 unique_ptr reimplementation: basic functionality
18892 Take ownership of allocation
18893 Reset replaces ownership
18894 -------------------------------------------------------------------------------
18895 UniquePtr.tests.cpp:<line number>
18896 ...............................................................................
18897
18898 UniquePtr.tests.cpp:<line number>: PASSED:
18899 REQUIRE( ptr )
18900 with expansion:
18901 {?}
18902
18903 UniquePtr.tests.cpp:<line number>: PASSED:
18904 REQUIRE( ptr.get() != 0 )
18905 with expansion:
18906 0x<hex digits> != 0
18907
18908 UniquePtr.tests.cpp:<line number>: PASSED:
18909 REQUIRE( *ptr == 2 )
18910 with expansion:
18911 2 == 2
18912
18913 -------------------------------------------------------------------------------
18914 unique_ptr reimplementation: basic functionality
18915 Release releases ownership
18916 -------------------------------------------------------------------------------
18917 UniquePtr.tests.cpp:<line number>
18918 ...............................................................................
18919
18920 UniquePtr.tests.cpp:<line number>: PASSED:
18921 CHECK_FALSE( ptr )
18922 with expansion:
18923 !{?}
18924
18925 UniquePtr.tests.cpp:<line number>: PASSED:
18926 CHECK( ptr.get() == 0 )
18927 with expansion:
18928 0 == 0
18929
18930 -------------------------------------------------------------------------------
18931 unique_ptr reimplementation: basic functionality
18932 Move constructor
18933 -------------------------------------------------------------------------------
18934 UniquePtr.tests.cpp:<line number>
18935 ...............................................................................
18936
18937 UniquePtr.tests.cpp:<line number>: PASSED:
18938 REQUIRE_FALSE( ptr1 )
18939 with expansion:
18940 !{?}
18941
18942 UniquePtr.tests.cpp:<line number>: PASSED:
18943 REQUIRE( ptr2 )
18944 with expansion:
18945 {?}
18946
18947 UniquePtr.tests.cpp:<line number>: PASSED:
18948 REQUIRE( *ptr2 == 1 )
18949 with expansion:
18950 1 == 1
18951
18952 -------------------------------------------------------------------------------
18953 unique_ptr reimplementation: basic functionality
18954 Move assignment
18955 -------------------------------------------------------------------------------
18956 UniquePtr.tests.cpp:<line number>
18957 ...............................................................................
18958
18959 UniquePtr.tests.cpp:<line number>: PASSED:
18960 REQUIRE_FALSE( ptr2 )
18961 with expansion:
18962 !{?}
18963
18964 UniquePtr.tests.cpp:<line number>: PASSED:
18965 REQUIRE( ptr1 )
18966 with expansion:
18967 {?}
18968
18969 UniquePtr.tests.cpp:<line number>: PASSED:
18970 REQUIRE( *ptr1 == 2 )
18971 with expansion:
18972 2 == 2
18973
18974 -------------------------------------------------------------------------------
18975 unique_ptr reimplementation: basic functionality
18976 free swap
18977 -------------------------------------------------------------------------------
18978 UniquePtr.tests.cpp:<line number>
18979 ...............................................................................
18980
18981 UniquePtr.tests.cpp:<line number>: PASSED:
18982 REQUIRE( *ptr1 == 2 )
18983 with expansion:
18984 2 == 2
18985
18986 UniquePtr.tests.cpp:<line number>: PASSED:
18987 REQUIRE( *ptr2 == 1 )
18988 with expansion:
18989 1 == 1
18990
18991 -------------------------------------------------------------------------------
18992 vec<vec<string,alloc>> -> toString
18993 -------------------------------------------------------------------------------
18994 ToStringVector.tests.cpp:<line number>
18995 ...............................................................................
18996
18997 ToStringVector.tests.cpp:<line number>: PASSED:
18998 REQUIRE( ::Catch::Detail::stringify(v) == "{ }" )
18999 with expansion:
19000 "{ }" == "{ }"
19001
19002 ToStringVector.tests.cpp:<line number>: PASSED:
19003 REQUIRE( ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" )
19004 with expansion:
19005 "{ { "hello" }, { "world" } }"
19006 ==
19007 "{ { "hello" }, { "world" } }"
19008
19009 -------------------------------------------------------------------------------
19010 vector<bool> -> toString
19011 -------------------------------------------------------------------------------
19012 ToStringVector.tests.cpp:<line number>
19013 ...............................................................................
19014
19015 ToStringVector.tests.cpp:<line number>: PASSED:
19016 REQUIRE( ::Catch::Detail::stringify(bools) == "{ }" )
19017 with expansion:
19018 "{ }" == "{ }"
19019
19020 ToStringVector.tests.cpp:<line number>: PASSED:
19021 REQUIRE( ::Catch::Detail::stringify(bools) == "{ true }" )
19022 with expansion:
19023 "{ true }" == "{ true }"
19024
19025 ToStringVector.tests.cpp:<line number>: PASSED:
19026 REQUIRE( ::Catch::Detail::stringify(bools) == "{ true, false }" )
19027 with expansion:
19028 "{ true, false }" == "{ true, false }"
19029
19030 -------------------------------------------------------------------------------
19031 vector<int,allocator> -> toString
19032 -------------------------------------------------------------------------------
19033 ToStringVector.tests.cpp:<line number>
19034 ...............................................................................
19035
19036 ToStringVector.tests.cpp:<line number>: PASSED:
19037 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
19038 with expansion:
19039 "{ }" == "{ }"
19040
19041 ToStringVector.tests.cpp:<line number>: PASSED:
19042 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
19043 with expansion:
19044 "{ 42 }" == "{ 42 }"
19045
19046 ToStringVector.tests.cpp:<line number>: PASSED:
19047 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
19048 with expansion:
19049 "{ 42, 250 }" == "{ 42, 250 }"
19050
19051 -------------------------------------------------------------------------------
19052 vector<int> -> toString
19053 -------------------------------------------------------------------------------
19054 ToStringVector.tests.cpp:<line number>
19055 ...............................................................................
19056
19057 ToStringVector.tests.cpp:<line number>: PASSED:
19058 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
19059 with expansion:
19060 "{ }" == "{ }"
19061
19062 ToStringVector.tests.cpp:<line number>: PASSED:
19063 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" )
19064 with expansion:
19065 "{ 42 }" == "{ 42 }"
19066
19067 ToStringVector.tests.cpp:<line number>: PASSED:
19068 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" )
19069 with expansion:
19070 "{ 42, 250 }" == "{ 42, 250 }"
19071
19072 -------------------------------------------------------------------------------
19073 vector<string> -> toString
19074 -------------------------------------------------------------------------------
19075 ToStringVector.tests.cpp:<line number>
19076 ...............................................................................
19077
19078 ToStringVector.tests.cpp:<line number>: PASSED:
19079 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" )
19080 with expansion:
19081 "{ }" == "{ }"
19082
19083 ToStringVector.tests.cpp:<line number>: PASSED:
19084 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" )
19085 with expansion:
19086 "{ "hello" }" == "{ "hello" }"
19087
19088 ToStringVector.tests.cpp:<line number>: PASSED:
19089 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" )
19090 with expansion:
19091 "{ "hello", "world" }"
19092 ==
19093 "{ "hello", "world" }"
19094
19095 -------------------------------------------------------------------------------
19096 vectors can be sized and resized
19097 -------------------------------------------------------------------------------
19098 Misc.tests.cpp:<line number>
19099 ...............................................................................
19100
19101 Misc.tests.cpp:<line number>: PASSED:
19102 REQUIRE( v.size() == 5 )
19103 with expansion:
19104 5 == 5
19105
19106 Misc.tests.cpp:<line number>: PASSED:
19107 REQUIRE( v.capacity() >= 5 )
19108 with expansion:
19109 5 >= 5
19110
19111 -------------------------------------------------------------------------------
19112 vectors can be sized and resized
19113 resizing bigger changes size and capacity
19114 -------------------------------------------------------------------------------
19115 Misc.tests.cpp:<line number>
19116 ...............................................................................
19117
19118 Misc.tests.cpp:<line number>: PASSED:
19119 REQUIRE( v.size() == 10 )
19120 with expansion:
19121 10 == 10
19122
19123 Misc.tests.cpp:<line number>: PASSED:
19124 REQUIRE( v.capacity() >= 10 )
19125 with expansion:
19126 10 >= 10
19127
19128 -------------------------------------------------------------------------------
19129 vectors can be sized and resized
19130 -------------------------------------------------------------------------------
19131 Misc.tests.cpp:<line number>
19132 ...............................................................................
19133
19134 Misc.tests.cpp:<line number>: PASSED:
19135 REQUIRE( v.size() == 5 )
19136 with expansion:
19137 5 == 5
19138
19139 Misc.tests.cpp:<line number>: PASSED:
19140 REQUIRE( v.capacity() >= 5 )
19141 with expansion:
19142 5 >= 5
19143
19144 -------------------------------------------------------------------------------
19145 vectors can be sized and resized
19146 resizing smaller changes size but not capacity
19147 -------------------------------------------------------------------------------
19148 Misc.tests.cpp:<line number>
19149 ...............................................................................
19150
19151 Misc.tests.cpp:<line number>: PASSED:
19152 REQUIRE( v.size() == 0 )
19153 with expansion:
19154 0 == 0
19155
19156 Misc.tests.cpp:<line number>: PASSED:
19157 REQUIRE( v.capacity() >= 5 )
19158 with expansion:
19159 5 >= 5
19160
19161 -------------------------------------------------------------------------------
19162 vectors can be sized and resized
19163 resizing smaller changes size but not capacity
19164 We can use the 'swap trick' to reset the capacity
19165 -------------------------------------------------------------------------------
19166 Misc.tests.cpp:<line number>
19167 ...............................................................................
19168
19169 Misc.tests.cpp:<line number>: PASSED:
19170 REQUIRE( v.capacity() == 0 )
19171 with expansion:
19172 0 == 0
19173
19174 -------------------------------------------------------------------------------
19175 vectors can be sized and resized
19176 -------------------------------------------------------------------------------
19177 Misc.tests.cpp:<line number>
19178 ...............................................................................
19179
19180 Misc.tests.cpp:<line number>: PASSED:
19181 REQUIRE( v.size() == 5 )
19182 with expansion:
19183 5 == 5
19184
19185 Misc.tests.cpp:<line number>: PASSED:
19186 REQUIRE( v.capacity() >= 5 )
19187 with expansion:
19188 5 >= 5
19189
19190 -------------------------------------------------------------------------------
19191 vectors can be sized and resized
19192 reserving bigger changes capacity but not size
19193 -------------------------------------------------------------------------------
19194 Misc.tests.cpp:<line number>
19195 ...............................................................................
19196
19197 Misc.tests.cpp:<line number>: PASSED:
19198 REQUIRE( v.size() == 5 )
19199 with expansion:
19200 5 == 5
19201
19202 Misc.tests.cpp:<line number>: PASSED:
19203 REQUIRE( v.capacity() >= 10 )
19204 with expansion:
19205 10 >= 10
19206
19207 -------------------------------------------------------------------------------
19208 vectors can be sized and resized
19209 -------------------------------------------------------------------------------
19210 Misc.tests.cpp:<line number>
19211 ...............................................................................
19212
19213 Misc.tests.cpp:<line number>: PASSED:
19214 REQUIRE( v.size() == 5 )
19215 with expansion:
19216 5 == 5
19217
19218 Misc.tests.cpp:<line number>: PASSED:
19219 REQUIRE( v.capacity() >= 5 )
19220 with expansion:
19221 5 >= 5
19222
19223 -------------------------------------------------------------------------------
19224 vectors can be sized and resized
19225 reserving smaller does not change size or capacity
19226 -------------------------------------------------------------------------------
19227 Misc.tests.cpp:<line number>
19228 ...............................................................................
19229
19230 Misc.tests.cpp:<line number>: PASSED:
19231 REQUIRE( v.size() == 5 )
19232 with expansion:
19233 5 == 5
19234
19235 Misc.tests.cpp:<line number>: PASSED:
19236 REQUIRE( v.capacity() >= 5 )
19237 with expansion:
19238 5 >= 5
19239
19240 -------------------------------------------------------------------------------
19241 warmup
19242 -------------------------------------------------------------------------------
19243 InternalBenchmark.tests.cpp:<line number>
19244 ...............................................................................
19245
19246 InternalBenchmark.tests.cpp:<line number>: PASSED:
19247 REQUIRE( (iterations * rate) > Catch::Benchmark::Detail::warmup_time.count() )
19248 with expansion:
19249 160000000 (0x<hex digits>) > 100
19250
19251 InternalBenchmark.tests.cpp:<line number>: PASSED:
19252 REQUIRE( (end - start) > Catch::Benchmark::Detail::warmup_time )
19253 with expansion:
19254 310016000 ns > 100 ms
19255
19256 -------------------------------------------------------------------------------
19257 weighted_average_quantile
19258 -------------------------------------------------------------------------------
19259 InternalBenchmark.tests.cpp:<line number>
19260 ...............................................................................
19261
19262 InternalBenchmark.tests.cpp:<line number>: PASSED:
19263 REQUIRE( q1 == 14.5 )
19264 with expansion:
19265 14.5 == 14.5
19266
19267 InternalBenchmark.tests.cpp:<line number>: PASSED:
19268 REQUIRE( med == 18. )
19269 with expansion:
19270 18.0 == 18.0
19271
19272 InternalBenchmark.tests.cpp:<line number>: PASSED:
19273 REQUIRE( q3 == 23. )
19274 with expansion:
19275 23.0 == 23.0
19276
19277 -------------------------------------------------------------------------------
19278 xmlentitycheck
19279 embedded xml: <test>it should be possible to embed xml characters, such as <,
19280 " or &, or even whole <xml>documents</xml> within an attribute
19281 </test>
19282 -------------------------------------------------------------------------------
19283 Misc.tests.cpp:<line number>
19284 ...............................................................................
19285
19286 Misc.tests.cpp:<line number>: PASSED:
19287
19288 -------------------------------------------------------------------------------
19289 xmlentitycheck
19290 encoded chars: these should all be encoded: &&&"""<<<&"<<&"
19291 -------------------------------------------------------------------------------
19292 Misc.tests.cpp:<line number>
19293 ...............................................................................
19294
19295 Misc.tests.cpp:<line number>: PASSED:
19296
19297 ===============================================================================
19298 test cases: 435 | 317 passed | 95 failed | 6 skipped | 17 failed as expected
19299 assertions: 2303 | 2105 passed | 157 failed | 41 failed as expected
19300