Debian Codegraph @

3rdparty/catch2/tests/SelfTest/Baselines/console.std.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 #1455 - INFO and WARN can start with a linebreak
10 -------------------------------------------------------------------------------
11 Message.tests.cpp:<line number>
12 ...............................................................................
13
14 Message.tests.cpp:<line number>: warning:
15
16 This warning message starts with a linebreak
17
18 This would not be caught previously
19 Nor would this
20 -------------------------------------------------------------------------------
21 #1514: stderr/stdout is not captured in tests aborted by an exception
22 -------------------------------------------------------------------------------
23 Tricky.tests.cpp:<line number>
24 ...............................................................................
25
26 Tricky.tests.cpp:<line number>: FAILED:
27 explicitly with message:
28 1514
29
30 -------------------------------------------------------------------------------
31 #2615 - Throwing in constructor generator fails test case but does not abort
32 -------------------------------------------------------------------------------
33 Generators.tests.cpp:<line number>
34 ...............................................................................
35
36 Generators.tests.cpp:<line number>: FAILED:
37 due to unexpected exception with message:
38 failure to init
39
40 -------------------------------------------------------------------------------
41 #748 - captures with unexpected exceptions
42 outside assertions
43 -------------------------------------------------------------------------------
44 Exception.tests.cpp:<line number>
45 ...............................................................................
46
47 Exception.tests.cpp:<line number>: FAILED:
48 due to unexpected exception with messages:
49 answer := 42
50 expected exception
51
52 -------------------------------------------------------------------------------
53 #748 - captures with unexpected exceptions
54 inside REQUIRE_NOTHROW
55 -------------------------------------------------------------------------------
56 Exception.tests.cpp:<line number>
57 ...............................................................................
58
59 Exception.tests.cpp:<line number>: FAILED:
60 REQUIRE_NOTHROW( thisThrows() )
61 due to unexpected exception with messages:
62 answer := 42
63 expected exception
64
65 -------------------------------------------------------------------------------
66 #835 -- errno should not be touched by Catch2
67 -------------------------------------------------------------------------------
68 Misc.tests.cpp:<line number>
69 ...............................................................................
70
71 Misc.tests.cpp:<line number>: FAILED:
72 CHECK( f() == 0 )
73 with expansion:
74 1 == 0
75
76 -------------------------------------------------------------------------------
77 'Not' checks that should fail
78 -------------------------------------------------------------------------------
79 Condition.tests.cpp:<line number>
80 ...............................................................................
81
82 Condition.tests.cpp:<line number>: FAILED:
83 CHECK( false != false )
84
85 Condition.tests.cpp:<line number>: FAILED:
86 CHECK( true != true )
87
88 Condition.tests.cpp:<line number>: FAILED:
89 CHECK( !true )
90 with expansion:
91 false
92
93 Condition.tests.cpp:<line number>: FAILED:
94 CHECK_FALSE( true )
95 with expansion:
96 !true
97
98 Condition.tests.cpp:<line number>: FAILED:
99 CHECK( !trueValue )
100 with expansion:
101 false
102
103 Condition.tests.cpp:<line number>: FAILED:
104 CHECK_FALSE( trueValue )
105 with expansion:
106 !true
107
108 Condition.tests.cpp:<line number>: FAILED:
109 CHECK( !(1 == 1) )
110 with expansion:
111 false
112
113 Condition.tests.cpp:<line number>: FAILED:
114 CHECK_FALSE( 1 == 1 )
115
116 -------------------------------------------------------------------------------
117 A METHOD_AS_TEST_CASE based test run that fails
118 -------------------------------------------------------------------------------
119 Class.tests.cpp:<line number>
120 ...............................................................................
121
122 Class.tests.cpp:<line number>: FAILED:
123 REQUIRE( s == "world" )
124 with expansion:
125 "hello" == "world"
126
127 -------------------------------------------------------------------------------
128 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
129 <float>
130 -------------------------------------------------------------------------------
131 Class.tests.cpp:<line number>
132 ...............................................................................
133
134 Class.tests.cpp:<line number>: FAILED:
135 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
136 with expansion:
137 0 == 1
138
139 -------------------------------------------------------------------------------
140 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo
141 <int>
142 -------------------------------------------------------------------------------
143 Class.tests.cpp:<line number>
144 ...............................................................................
145
146 Class.tests.cpp:<line number>: FAILED:
147 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
148 with expansion:
149 0 == 1
150
151 -------------------------------------------------------------------------------
152 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
153 <float>
154 -------------------------------------------------------------------------------
155 Class.tests.cpp:<line number>
156 ...............................................................................
157
158 Class.tests.cpp:<line number>: FAILED:
159 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
160 with expansion:
161 0 == 1
162
163 -------------------------------------------------------------------------------
164 A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector
165 <int>
166 -------------------------------------------------------------------------------
167 Class.tests.cpp:<line number>
168 ...............................................................................
169
170 Class.tests.cpp:<line number>: FAILED:
171 REQUIRE( Template_Fixture_2<TestType>::m_a.size() == 1 )
172 with expansion:
173 0 == 1
174
175 -------------------------------------------------------------------------------
176 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
177 Template_Foo_2<float, 6>
178 -------------------------------------------------------------------------------
179 Class.tests.cpp:<line number>
180 ...............................................................................
181
182 Class.tests.cpp:<line number>: FAILED:
183 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
184 with expansion:
185 6 < 2
186
187 -------------------------------------------------------------------------------
188 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails -
189 Template_Foo_2<int, 2>
190 -------------------------------------------------------------------------------
191 Class.tests.cpp:<line number>
192 ...............................................................................
193
194 Class.tests.cpp:<line number>: FAILED:
195 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
196 with expansion:
197 2 < 2
198
199 -------------------------------------------------------------------------------
200 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
201 <float, 6>
202 -------------------------------------------------------------------------------
203 Class.tests.cpp:<line number>
204 ...............................................................................
205
206 Class.tests.cpp:<line number>: FAILED:
207 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
208 with expansion:
209 6 < 2
210
211 -------------------------------------------------------------------------------
212 A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array
213 <int, 2>
214 -------------------------------------------------------------------------------
215 Class.tests.cpp:<line number>
216 ...............................................................................
217
218 Class.tests.cpp:<line number>: FAILED:
219 REQUIRE( Template_Fixture_2<TestType>{}.m_a.size() < 2 )
220 with expansion:
221 2 < 2
222
223 -------------------------------------------------------------------------------
224 A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
225 -------------------------------------------------------------------------------
226 Class.tests.cpp:<line number>
227 ...............................................................................
228
229 Class.tests.cpp:<line number>: FAILED:
230 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
231 with expansion:
232 1.0 == 2
233
234 -------------------------------------------------------------------------------
235 A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
236 -------------------------------------------------------------------------------
237 Class.tests.cpp:<line number>
238 ...............................................................................
239
240 Class.tests.cpp:<line number>: FAILED:
241 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
242 with expansion:
243 1.0f == 2
244
245 -------------------------------------------------------------------------------
246 A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
247 -------------------------------------------------------------------------------
248 Class.tests.cpp:<line number>
249 ...............................................................................
250
251 Class.tests.cpp:<line number>: FAILED:
252 REQUIRE( Template_Fixture<TestType>::m_a == 2 )
253 with expansion:
254 1 == 2
255
256 -------------------------------------------------------------------------------
257 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
258 -------------------------------------------------------------------------------
259 Class.tests.cpp:<line number>
260 ...............................................................................
261
262 Class.tests.cpp:<line number>: FAILED:
263 REQUIRE( Nttp_Fixture<V>::value == 0 )
264 with expansion:
265 1 == 0
266
267 -------------------------------------------------------------------------------
268 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
269 -------------------------------------------------------------------------------
270 Class.tests.cpp:<line number>
271 ...............................................................................
272
273 Class.tests.cpp:<line number>: FAILED:
274 REQUIRE( Nttp_Fixture<V>::value == 0 )
275 with expansion:
276 3 == 0
277
278 -------------------------------------------------------------------------------
279 A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
280 -------------------------------------------------------------------------------
281 Class.tests.cpp:<line number>
282 ...............................................................................
283
284 Class.tests.cpp:<line number>: FAILED:
285 REQUIRE( Nttp_Fixture<V>::value == 0 )
286 with expansion:
287 6 == 0
288
289 -------------------------------------------------------------------------------
290 A TEST_CASE_METHOD based test run that fails
291 -------------------------------------------------------------------------------
292 Class.tests.cpp:<line number>
293 ...............................................................................
294
295 Class.tests.cpp:<line number>: FAILED:
296 REQUIRE( m_a == 2 )
297 with expansion:
298 1 == 2
299
300 -------------------------------------------------------------------------------
301 A couple of nested sections followed by a failure
302 -------------------------------------------------------------------------------
303 Misc.tests.cpp:<line number>
304 ...............................................................................
305
306 Misc.tests.cpp:<line number>: FAILED:
307 explicitly with message:
308 to infinity and beyond
309
310 -------------------------------------------------------------------------------
311 A failing expression with a non streamable type is still captured
312 -------------------------------------------------------------------------------
313 Tricky.tests.cpp:<line number>
314 ...............................................................................
315
316 Tricky.tests.cpp:<line number>: FAILED:
317 CHECK( &o1 == &o2 )
318 with expansion:
319 0x<hex digits> == 0x<hex digits>
320
321 Tricky.tests.cpp:<line number>: FAILED:
322 CHECK( o1 == o2 )
323 with expansion:
324 {?} == {?}
325
326 -------------------------------------------------------------------------------
327 An unchecked exception reports the line of the last assertion
328 -------------------------------------------------------------------------------
329 Exception.tests.cpp:<line number>
330 ...............................................................................
331
332 Exception.tests.cpp:<line number>: FAILED:
333 {Unknown expression after the reported line}
334 due to unexpected exception with message:
335 unexpected exception
336
337 -------------------------------------------------------------------------------
338 Contains string matcher
339 -------------------------------------------------------------------------------
340 Matchers.tests.cpp:<line number>
341 ...............................................................................
342
343 Matchers.tests.cpp:<line number>: FAILED:
344 CHECK_THAT( testStringForMatching(), ContainsSubstring( "not there", Catch::CaseSensitive::No ) )
345 with expansion:
346 "this string contains 'abc' as a substring" contains: "not there" (case
347 insensitive)
348
349 Matchers.tests.cpp:<line number>: FAILED:
350 CHECK_THAT( testStringForMatching(), ContainsSubstring( "STRING" ) )
351 with expansion:
352 "this string contains 'abc' as a substring" contains: "STRING"
353
354 -------------------------------------------------------------------------------
355 Custom exceptions can be translated when testing for nothrow
356 -------------------------------------------------------------------------------
357 Exception.tests.cpp:<line number>
358 ...............................................................................
359
360 Exception.tests.cpp:<line number>: FAILED:
361 REQUIRE_NOTHROW( throwCustom() )
362 due to unexpected exception with message:
363 custom exception - not std
364
365 -------------------------------------------------------------------------------
366 Custom exceptions can be translated when testing for throwing as something else
367 -------------------------------------------------------------------------------
368 Exception.tests.cpp:<line number>
369 ...............................................................................
370
371 Exception.tests.cpp:<line number>: FAILED:
372 REQUIRE_THROWS_AS( throwCustom(), std::exception )
373 due to unexpected exception with message:
374 custom exception - not std
375
376 -------------------------------------------------------------------------------
377 Custom std-exceptions can be custom translated
378 -------------------------------------------------------------------------------
379 Exception.tests.cpp:<line number>
380 ...............................................................................
381
382 Exception.tests.cpp:<line number>: FAILED:
383 due to unexpected exception with message:
384 custom std exception
385
386 -------------------------------------------------------------------------------
387 Empty generators can SKIP in constructor
388 -------------------------------------------------------------------------------
389 Skip.tests.cpp:<line number>
390 ...............................................................................
391
392 Skip.tests.cpp:<line number>: SKIPPED:
393 explicitly with message:
394 This generator is empty
395
396 -------------------------------------------------------------------------------
397 EndsWith string matcher
398 -------------------------------------------------------------------------------
399 Matchers.tests.cpp:<line number>
400 ...............................................................................
401
402 Matchers.tests.cpp:<line number>: FAILED:
403 CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) )
404 with expansion:
405 "this string contains 'abc' as a substring" ends with: "Substring"
406
407 Matchers.tests.cpp:<line number>: FAILED:
408 CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) )
409 with expansion:
410 "this string contains 'abc' as a substring" ends with: "this" (case
411 insensitive)
412
413 -------------------------------------------------------------------------------
414 Equality checks that should fail
415 -------------------------------------------------------------------------------
416 Condition.tests.cpp:<line number>
417 ...............................................................................
418
419 Condition.tests.cpp:<line number>: FAILED:
420 CHECK( data.int_seven == 6 )
421 with expansion:
422 7 == 6
423
424 Condition.tests.cpp:<line number>: FAILED:
425 CHECK( data.int_seven == 8 )
426 with expansion:
427 7 == 8
428
429 Condition.tests.cpp:<line number>: FAILED:
430 CHECK( data.int_seven == 0 )
431 with expansion:
432 7 == 0
433
434 Condition.tests.cpp:<line number>: FAILED:
435 CHECK( data.float_nine_point_one == Approx( 9.11f ) )
436 with expansion:
437 9.1f == Approx( 9.1099996567 )
438
439 Condition.tests.cpp:<line number>: FAILED:
440 CHECK( data.float_nine_point_one == Approx( 9.0f ) )
441 with expansion:
442 9.1f == Approx( 9.0 )
443
444 Condition.tests.cpp:<line number>: FAILED:
445 CHECK( data.float_nine_point_one == Approx( 1 ) )
446 with expansion:
447 9.1f == Approx( 1.0 )
448
449 Condition.tests.cpp:<line number>: FAILED:
450 CHECK( data.float_nine_point_one == Approx( 0 ) )
451 with expansion:
452 9.1f == Approx( 0.0 )
453
454 Condition.tests.cpp:<line number>: FAILED:
455 CHECK( data.double_pi == Approx( 3.1415 ) )
456 with expansion:
457 3.1415926535 == Approx( 3.1415 )
458
459 Condition.tests.cpp:<line number>: FAILED:
460 CHECK( data.str_hello == "goodbye" )
461 with expansion:
462 "hello" == "goodbye"
463
464 Condition.tests.cpp:<line number>: FAILED:
465 CHECK( data.str_hello == "hell" )
466 with expansion:
467 "hello" == "hell"
468
469 Condition.tests.cpp:<line number>: FAILED:
470 CHECK( data.str_hello == "hello1" )
471 with expansion:
472 "hello" == "hello1"
473
474 Condition.tests.cpp:<line number>: FAILED:
475 CHECK( data.str_hello.size() == 6 )
476 with expansion:
477 5 == 6
478
479 Condition.tests.cpp:<line number>: FAILED:
480 CHECK( x == Approx( 1.301 ) )
481 with expansion:
482 1.3 == Approx( 1.301 )
483
484 -------------------------------------------------------------------------------
485 Equals string matcher
486 -------------------------------------------------------------------------------
487 Matchers.tests.cpp:<line number>
488 ...............................................................................
489
490 Matchers.tests.cpp:<line number>: FAILED:
491 CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) )
492 with expansion:
493 "this string contains 'abc' as a substring" equals: "this string contains
494 'ABC' as a substring"
495
496 Matchers.tests.cpp:<line number>: FAILED:
497 CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) )
498 with expansion:
499 "this string contains 'abc' as a substring" equals: "something else" (case
500 insensitive)
501
502 -------------------------------------------------------------------------------
503 Exception matchers that fail
504 No exception
505 -------------------------------------------------------------------------------
506 Matchers.tests.cpp:<line number>
507 ...............................................................................
508
509 Matchers.tests.cpp:<line number>: FAILED:
510 CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
511 because no exception was thrown where one was expected:
512
513 Matchers.tests.cpp:<line number>: FAILED:
514 REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )
515 because no exception was thrown where one was expected:
516
517 -------------------------------------------------------------------------------
518 Exception matchers that fail
519 Type mismatch
520 -------------------------------------------------------------------------------
521 Matchers.tests.cpp:<line number>
522 ...............................................................................
523
524 Matchers.tests.cpp:<line number>: FAILED:
525 CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
526 due to unexpected exception with message:
527 Unknown exception
528
529 Matchers.tests.cpp:<line number>: FAILED:
530 REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )
531 due to unexpected exception with message:
532 Unknown exception
533
534 -------------------------------------------------------------------------------
535 Exception matchers that fail
536 Contents are wrong
537 -------------------------------------------------------------------------------
538 Matchers.tests.cpp:<line number>
539 ...............................................................................
540
541 Matchers.tests.cpp:<line number>: FAILED:
542 CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } )
543 with expansion:
544 SpecialException::what special exception has value of 1
545
546 Matchers.tests.cpp:<line number>: FAILED:
547 REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } )
548 with expansion:
549 SpecialException::what special exception has value of 1
550
551 -------------------------------------------------------------------------------
552 Expected exceptions that don't throw or unexpected exceptions fail the test
553 -------------------------------------------------------------------------------
554 Exception.tests.cpp:<line number>
555 ...............................................................................
556
557 Exception.tests.cpp:<line number>: FAILED:
558 CHECK_THROWS_AS( thisThrows(), std::string )
559 due to unexpected exception with message:
560 expected exception
561
562 Exception.tests.cpp:<line number>: FAILED:
563 CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error )
564 because no exception was thrown where one was expected:
565
566 Exception.tests.cpp:<line number>: FAILED:
567 CHECK_NOTHROW( thisThrows() )
568 due to unexpected exception with message:
569 expected exception
570
571 -------------------------------------------------------------------------------
572 FAIL aborts the test
573 -------------------------------------------------------------------------------
574 Message.tests.cpp:<line number>
575 ...............................................................................
576
577 Message.tests.cpp:<line number>: FAILED:
578 explicitly with message:
579 This is a failure
580
581 -------------------------------------------------------------------------------
582 FAIL does not require an argument
583 -------------------------------------------------------------------------------
584 Message.tests.cpp:<line number>
585 ...............................................................................
586
587 Message.tests.cpp:<line number>: FAILED:
588
589 -------------------------------------------------------------------------------
590 FAIL_CHECK does not abort the test
591 -------------------------------------------------------------------------------
592 Message.tests.cpp:<line number>
593 ...............................................................................
594
595 Message.tests.cpp:<line number>: FAILED:
596 explicitly with message:
597 This is a failure
598
599 Message.tests.cpp:<line number>: warning:
600 This message appears in the output
601
602 -------------------------------------------------------------------------------
603 INFO and WARN do not abort tests
604 -------------------------------------------------------------------------------
605 Message.tests.cpp:<line number>
606 ...............................................................................
607
608 Message.tests.cpp:<line number>: warning:
609 this is a warning
610
611 -------------------------------------------------------------------------------
612 INFO gets logged on failure
613 -------------------------------------------------------------------------------
614 Message.tests.cpp:<line number>
615 ...............................................................................
616
617 Message.tests.cpp:<line number>: FAILED:
618 REQUIRE( a == 1 )
619 with expansion:
620 2 == 1
621 with messages:
622 this message should be logged
623 so should this
624
625 -------------------------------------------------------------------------------
626 INFO gets logged on failure, even if captured before successful assertions
627 -------------------------------------------------------------------------------
628 Message.tests.cpp:<line number>
629 ...............................................................................
630
631 Message.tests.cpp:<line number>: FAILED:
632 CHECK( a == 1 )
633 with expansion:
634 2 == 1
635 with messages:
636 this message may be logged later
637 this message should be logged
638
639 Message.tests.cpp:<line number>: FAILED:
640 CHECK( a == 0 )
641 with expansion:
642 2 == 0
643 with messages:
644 this message may be logged later
645 this message should be logged
646 and this, but later
647
648 -------------------------------------------------------------------------------
649 INFO is reset for each loop
650 -------------------------------------------------------------------------------
651 Message.tests.cpp:<line number>
652 ...............................................................................
653
654 Message.tests.cpp:<line number>: FAILED:
655 REQUIRE( i < 10 )
656 with expansion:
657 10 < 10
658 with messages:
659 current counter 10
660 i := 10
661
662 -------------------------------------------------------------------------------
663 Inequality checks that should fail
664 -------------------------------------------------------------------------------
665 Condition.tests.cpp:<line number>
666 ...............................................................................
667
668 Condition.tests.cpp:<line number>: FAILED:
669 CHECK( data.int_seven != 7 )
670 with expansion:
671 7 != 7
672
673 Condition.tests.cpp:<line number>: FAILED:
674 CHECK( data.float_nine_point_one != Approx( 9.1f ) )
675 with expansion:
676 9.1f != Approx( 9.1000003815 )
677
678 Condition.tests.cpp:<line number>: FAILED:
679 CHECK( data.double_pi != Approx( 3.1415926535 ) )
680 with expansion:
681 3.1415926535 != Approx( 3.1415926535 )
682
683 Condition.tests.cpp:<line number>: FAILED:
684 CHECK( data.str_hello != "hello" )
685 with expansion:
686 "hello" != "hello"
687
688 Condition.tests.cpp:<line number>: FAILED:
689 CHECK( data.str_hello.size() != 5 )
690 with expansion:
691 5 != 5
692
693 -------------------------------------------------------------------------------
694 Matchers can be composed with both && and || - failing
695 -------------------------------------------------------------------------------
696 Matchers.tests.cpp:<line number>
697 ...............................................................................
698
699 Matchers.tests.cpp:<line number>: FAILED:
700 CHECK_THAT( testStringForMatching(), ( ContainsSubstring( "string" ) || ContainsSubstring( "different" ) ) && ContainsSubstring( "random" ) )
701 with expansion:
702 "this string contains 'abc' as a substring" ( ( contains: "string" or
703 contains: "different" ) and contains: "random" )
704
705 -------------------------------------------------------------------------------
706 Matchers can be negated (Not) with the ! operator - failing
707 -------------------------------------------------------------------------------
708 Matchers.tests.cpp:<line number>
709 ...............................................................................
710
711 Matchers.tests.cpp:<line number>: FAILED:
712 CHECK_THAT( testStringForMatching(), !ContainsSubstring( "substring" ) )
713 with expansion:
714 "this string contains 'abc' as a substring" not contains: "substring"
715
716 -------------------------------------------------------------------------------
717 Mayfail test case with nested sections
718 A
719 1
720 -------------------------------------------------------------------------------
721 Condition.tests.cpp:<line number>
722 ...............................................................................
723
724 Condition.tests.cpp:<line number>: FAILED:
725
726 -------------------------------------------------------------------------------
727 Mayfail test case with nested sections
728 A
729 2
730 -------------------------------------------------------------------------------
731 Condition.tests.cpp:<line number>
732 ...............................................................................
733
734 Condition.tests.cpp:<line number>: FAILED:
735
736 -------------------------------------------------------------------------------
737 Mayfail test case with nested sections
738 B
739 1
740 -------------------------------------------------------------------------------
741 Condition.tests.cpp:<line number>
742 ...............................................................................
743
744 Condition.tests.cpp:<line number>: FAILED:
745
746 -------------------------------------------------------------------------------
747 Mayfail test case with nested sections
748 B
749 2
750 -------------------------------------------------------------------------------
751 Condition.tests.cpp:<line number>
752 ...............................................................................
753
754 Condition.tests.cpp:<line number>: FAILED:
755
756 -------------------------------------------------------------------------------
757 Mismatching exception messages failing the test
758 -------------------------------------------------------------------------------
759 Exception.tests.cpp:<line number>
760 ...............................................................................
761
762 Exception.tests.cpp:<line number>: FAILED:
763 REQUIRE_THROWS_WITH( thisThrows(), "should fail" )
764 with expansion:
765 "expected exception" equals: "should fail"
766
767 -------------------------------------------------------------------------------
768 Nice descriptive name
769 -------------------------------------------------------------------------------
770 Misc.tests.cpp:<line number>
771 ...............................................................................
772
773 Misc.tests.cpp:<line number>: warning:
774 This one ran
775
776 -------------------------------------------------------------------------------
777 Non-std exceptions can be translated
778 -------------------------------------------------------------------------------
779 Exception.tests.cpp:<line number>
780 ...............................................................................
781
782 Exception.tests.cpp:<line number>: FAILED:
783 due to unexpected exception with message:
784 custom exception
785
786 -------------------------------------------------------------------------------
787 Ordering comparison checks that should fail
788 -------------------------------------------------------------------------------
789 Condition.tests.cpp:<line number>
790 ...............................................................................
791
792 Condition.tests.cpp:<line number>: FAILED:
793 CHECK( data.int_seven > 7 )
794 with expansion:
795 7 > 7
796
797 Condition.tests.cpp:<line number>: FAILED:
798 CHECK( data.int_seven < 7 )
799 with expansion:
800 7 < 7
801
802 Condition.tests.cpp:<line number>: FAILED:
803 CHECK( data.int_seven > 8 )
804 with expansion:
805 7 > 8
806
807 Condition.tests.cpp:<line number>: FAILED:
808 CHECK( data.int_seven < 6 )
809 with expansion:
810 7 < 6
811
812 Condition.tests.cpp:<line number>: FAILED:
813 CHECK( data.int_seven < 0 )
814 with expansion:
815 7 < 0
816
817 Condition.tests.cpp:<line number>: FAILED:
818 CHECK( data.int_seven < -1 )
819 with expansion:
820 7 < -1
821
822 Condition.tests.cpp:<line number>: FAILED:
823 CHECK( data.int_seven >= 8 )
824 with expansion:
825 7 >= 8
826
827 Condition.tests.cpp:<line number>: FAILED:
828 CHECK( data.int_seven <= 6 )
829 with expansion:
830 7 <= 6
831
832 Condition.tests.cpp:<line number>: FAILED:
833 CHECK( data.float_nine_point_one < 9 )
834 with expansion:
835 9.1f < 9
836
837 Condition.tests.cpp:<line number>: FAILED:
838 CHECK( data.float_nine_point_one > 10 )
839 with expansion:
840 9.1f > 10
841
842 Condition.tests.cpp:<line number>: FAILED:
843 CHECK( data.float_nine_point_one > 9.2 )
844 with expansion:
845 9.1f > 9.2
846
847 Condition.tests.cpp:<line number>: FAILED:
848 CHECK( data.str_hello > "hello" )
849 with expansion:
850 "hello" > "hello"
851
852 Condition.tests.cpp:<line number>: FAILED:
853 CHECK( data.str_hello < "hello" )
854 with expansion:
855 "hello" < "hello"
856
857 Condition.tests.cpp:<line number>: FAILED:
858 CHECK( data.str_hello > "hellp" )
859 with expansion:
860 "hello" > "hellp"
861
862 Condition.tests.cpp:<line number>: FAILED:
863 CHECK( data.str_hello > "z" )
864 with expansion:
865 "hello" > "z"
866
867 Condition.tests.cpp:<line number>: FAILED:
868 CHECK( data.str_hello < "hellm" )
869 with expansion:
870 "hello" < "hellm"
871
872 Condition.tests.cpp:<line number>: FAILED:
873 CHECK( data.str_hello < "a" )
874 with expansion:
875 "hello" < "a"
876
877 Condition.tests.cpp:<line number>: FAILED:
878 CHECK( data.str_hello >= "z" )
879 with expansion:
880 "hello" >= "z"
881
882 Condition.tests.cpp:<line number>: FAILED:
883 CHECK( data.str_hello <= "a" )
884 with expansion:
885 "hello" <= "a"
886
887 -------------------------------------------------------------------------------
888 Output from all sections is reported
889 one
890 -------------------------------------------------------------------------------
891 Message.tests.cpp:<line number>
892 ...............................................................................
893
894 Message.tests.cpp:<line number>: FAILED:
895 explicitly with message:
896 Message from section one
897
898 -------------------------------------------------------------------------------
899 Output from all sections is reported
900 two
901 -------------------------------------------------------------------------------
902 Message.tests.cpp:<line number>
903 ...............................................................................
904
905 Message.tests.cpp:<line number>: FAILED:
906 explicitly with message:
907 Message from section two
908
909 -------------------------------------------------------------------------------
910 Reconstruction should be based on stringification: #914
911 -------------------------------------------------------------------------------
912 Decomposition.tests.cpp:<line number>
913 ...............................................................................
914
915 Decomposition.tests.cpp:<line number>: FAILED:
916 CHECK( truthy(false) )
917 with expansion:
918 Hey, its truthy!
919
920 -------------------------------------------------------------------------------
921 Regex string matcher
922 -------------------------------------------------------------------------------
923 Matchers.tests.cpp:<line number>
924 ...............................................................................
925
926 Matchers.tests.cpp:<line number>: FAILED:
927 CHECK_THAT( testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) )
928 with expansion:
929 "this string contains 'abc' as a substring" matches "this STRING contains
930 'abc' as a substring" case sensitively
931
932 Matchers.tests.cpp:<line number>: FAILED:
933 CHECK_THAT( testStringForMatching(), Matches( "contains 'abc' as a substring" ) )
934 with expansion:
935 "this string contains 'abc' as a substring" matches "contains 'abc' as a
936 substring" case sensitively
937
938 Matchers.tests.cpp:<line number>: FAILED:
939 CHECK_THAT( testStringForMatching(), Matches( "this string contains 'abc' as a" ) )
940 with expansion:
941 "this string contains 'abc' as a substring" matches "this string contains
942 'abc' as a" case sensitively
943
944 A string sent directly to stdout
945 A string sent directly to stderr
946 A string sent to stderr via clog
947 Message from section one
948 Message from section two
949 -------------------------------------------------------------------------------
950 StartsWith string matcher
951 -------------------------------------------------------------------------------
952 Matchers.tests.cpp:<line number>
953 ...............................................................................
954
955 Matchers.tests.cpp:<line number>: FAILED:
956 CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) )
957 with expansion:
958 "this string contains 'abc' as a substring" starts with: "This String"
959
960 Matchers.tests.cpp:<line number>: FAILED:
961 CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) )
962 with expansion:
963 "this string contains 'abc' as a substring" starts with: "string" (case
964 insensitive)
965
966 -------------------------------------------------------------------------------
967 Tabs and newlines show in output
968 -------------------------------------------------------------------------------
969 Misc.tests.cpp:<line number>
970 ...............................................................................
971
972 Misc.tests.cpp:<line number>: FAILED:
973 CHECK( s1 == s2 )
974 with expansion:
975 "if ($b == 10) {
976 $a = 20;
977 }"
978 ==
979 "if ($b == 10) {
980 $a = 20;
981 }
982 "
983
984 -------------------------------------------------------------------------------
985 Testing checked-if 2
986 -------------------------------------------------------------------------------
987 Misc.tests.cpp:<line number>
988 ...............................................................................
989
990 Misc.tests.cpp:<line number>: FAILED:
991
992 -------------------------------------------------------------------------------
993 Testing checked-if 3
994 -------------------------------------------------------------------------------
995 Misc.tests.cpp:<line number>
996 ...............................................................................
997
998 Misc.tests.cpp:<line number>: FAILED:
999
1000 -------------------------------------------------------------------------------
1001 Thrown string literals are translated
1002 -------------------------------------------------------------------------------
1003 Exception.tests.cpp:<line number>
1004 ...............................................................................
1005
1006 Exception.tests.cpp:<line number>: FAILED:
1007 due to unexpected exception with message:
1008 For some reason someone is throwing a string literal!
1009
1010 -------------------------------------------------------------------------------
1011 Unexpected exceptions can be translated
1012 -------------------------------------------------------------------------------
1013 Exception.tests.cpp:<line number>
1014 ...............................................................................
1015
1016 Exception.tests.cpp:<line number>: FAILED:
1017 due to unexpected exception with message:
1018 3.14
1019
1020 -------------------------------------------------------------------------------
1021 Vector Approx matcher -- failing
1022 Empty and non empty vectors are not approx equal
1023 -------------------------------------------------------------------------------
1024 Matchers.tests.cpp:<line number>
1025 ...............................................................................
1026
1027 Matchers.tests.cpp:<line number>: FAILED:
1028 CHECK_THAT( empty, Approx( t1 ) )
1029 with expansion:
1030 { } is approx: { 1.0, 2.0 }
1031
1032 -------------------------------------------------------------------------------
1033 Vector Approx matcher -- failing
1034 Just different vectors
1035 -------------------------------------------------------------------------------
1036 Matchers.tests.cpp:<line number>
1037 ...............................................................................
1038
1039 Matchers.tests.cpp:<line number>: FAILED:
1040 CHECK_THAT( v1, Approx( v2 ) )
1041 with expansion:
1042 { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
1043
1044 -------------------------------------------------------------------------------
1045 Vector matchers that fail
1046 Contains (element)
1047 -------------------------------------------------------------------------------
1048 Matchers.tests.cpp:<line number>
1049 ...............................................................................
1050
1051 Matchers.tests.cpp:<line number>: FAILED:
1052 CHECK_THAT( v, VectorContains( -1 ) )
1053 with expansion:
1054 { 1, 2, 3 } Contains: -1
1055
1056 Matchers.tests.cpp:<line number>: FAILED:
1057 CHECK_THAT( empty, VectorContains( 1 ) )
1058 with expansion:
1059 { } Contains: 1
1060
1061 -------------------------------------------------------------------------------
1062 Vector matchers that fail
1063 Contains (vector)
1064 -------------------------------------------------------------------------------
1065 Matchers.tests.cpp:<line number>
1066 ...............................................................................
1067
1068 Matchers.tests.cpp:<line number>: FAILED:
1069 CHECK_THAT( empty, Contains( v ) )
1070 with expansion:
1071 { } Contains: { 1, 2, 3 }
1072
1073 Matchers.tests.cpp:<line number>: FAILED:
1074 CHECK_THAT( v, Contains( v2 ) )
1075 with expansion:
1076 { 1, 2, 3 } Contains: { 1, 2, 4 }
1077
1078 -------------------------------------------------------------------------------
1079 Vector matchers that fail
1080 Equals
1081 -------------------------------------------------------------------------------
1082 Matchers.tests.cpp:<line number>
1083 ...............................................................................
1084
1085 Matchers.tests.cpp:<line number>: FAILED:
1086 CHECK_THAT( v, Equals( v2 ) )
1087 with expansion:
1088 { 1, 2, 3 } Equals: { 1, 2 }
1089
1090 Matchers.tests.cpp:<line number>: FAILED:
1091 CHECK_THAT( v2, Equals( v ) )
1092 with expansion:
1093 { 1, 2 } Equals: { 1, 2, 3 }
1094
1095 Matchers.tests.cpp:<line number>: FAILED:
1096 CHECK_THAT( empty, Equals( v ) )
1097 with expansion:
1098 { } Equals: { 1, 2, 3 }
1099
1100 Matchers.tests.cpp:<line number>: FAILED:
1101 CHECK_THAT( v, Equals( empty ) )
1102 with expansion:
1103 { 1, 2, 3 } Equals: { }
1104
1105 -------------------------------------------------------------------------------
1106 Vector matchers that fail
1107 UnorderedEquals
1108 -------------------------------------------------------------------------------
1109 Matchers.tests.cpp:<line number>
1110 ...............................................................................
1111
1112 Matchers.tests.cpp:<line number>: FAILED:
1113 CHECK_THAT( v, UnorderedEquals( empty ) )
1114 with expansion:
1115 { 1, 2, 3 } UnorderedEquals: { }
1116
1117 Matchers.tests.cpp:<line number>: FAILED:
1118 CHECK_THAT( empty, UnorderedEquals( v ) )
1119 with expansion:
1120 { } UnorderedEquals: { 1, 2, 3 }
1121
1122 Matchers.tests.cpp:<line number>: FAILED:
1123 CHECK_THAT( permuted, UnorderedEquals( v ) )
1124 with expansion:
1125 { 1, 3 } UnorderedEquals: { 1, 2, 3 }
1126
1127 Matchers.tests.cpp:<line number>: FAILED:
1128 CHECK_THAT( permuted, UnorderedEquals( v ) )
1129 with expansion:
1130 { 3, 1 } UnorderedEquals: { 1, 2, 3 }
1131
1132 -------------------------------------------------------------------------------
1133 When unchecked exceptions are thrown directly they are always failures
1134 -------------------------------------------------------------------------------
1135 Exception.tests.cpp:<line number>
1136 ...............................................................................
1137
1138 Exception.tests.cpp:<line number>: FAILED:
1139 due to unexpected exception with message:
1140 unexpected exception
1141
1142 -------------------------------------------------------------------------------
1143 When unchecked exceptions are thrown during a CHECK the test should continue
1144 -------------------------------------------------------------------------------
1145 Exception.tests.cpp:<line number>
1146 ...............................................................................
1147
1148 Exception.tests.cpp:<line number>: FAILED:
1149 CHECK( thisThrows() == 0 )
1150 due to unexpected exception with message:
1151 expected exception
1152
1153 -------------------------------------------------------------------------------
1154 When unchecked exceptions are thrown during a REQUIRE the test should abort
1155 fail
1156 -------------------------------------------------------------------------------
1157 Exception.tests.cpp:<line number>
1158 ...............................................................................
1159
1160 Exception.tests.cpp:<line number>: FAILED:
1161 REQUIRE( thisThrows() == 0 )
1162 due to unexpected exception with message:
1163 expected exception
1164
1165 -------------------------------------------------------------------------------
1166 When unchecked exceptions are thrown from functions they are always failures
1167 -------------------------------------------------------------------------------
1168 Exception.tests.cpp:<line number>
1169 ...............................................................................
1170
1171 Exception.tests.cpp:<line number>: FAILED:
1172 CHECK( thisThrows() == 0 )
1173 due to unexpected exception with message:
1174 expected exception
1175
1176 -------------------------------------------------------------------------------
1177 When unchecked exceptions are thrown from sections they are always failures
1178 section name
1179 -------------------------------------------------------------------------------
1180 Exception.tests.cpp:<line number>
1181 ...............................................................................
1182
1183 Exception.tests.cpp:<line number>: FAILED:
1184 due to unexpected exception with message:
1185 unexpected exception
1186
1187 -------------------------------------------------------------------------------
1188 a succeeding test can still be skipped
1189 -------------------------------------------------------------------------------
1190 Skip.tests.cpp:<line number>
1191 ...............................................................................
1192
1193 Skip.tests.cpp:<line number>: SKIPPED:
1194
1195 -------------------------------------------------------------------------------
1196 checkedElse, failing
1197 -------------------------------------------------------------------------------
1198 Misc.tests.cpp:<line number>
1199 ...............................................................................
1200
1201 Misc.tests.cpp:<line number>: FAILED:
1202 REQUIRE( testCheckedElse( false ) )
1203 with expansion:
1204 false
1205
1206 -------------------------------------------------------------------------------
1207 checkedIf, failing
1208 -------------------------------------------------------------------------------
1209 Misc.tests.cpp:<line number>
1210 ...............................................................................
1211
1212 Misc.tests.cpp:<line number>: FAILED:
1213 REQUIRE( testCheckedIf( false ) )
1214 with expansion:
1215 false
1216
1217 -------------------------------------------------------------------------------
1218 dynamic skipping works with generators
1219 -------------------------------------------------------------------------------
1220 Skip.tests.cpp:<line number>
1221 ...............................................................................
1222
1223 Skip.tests.cpp:<line number>: SKIPPED:
1224 explicitly with message:
1225 skipping because answer = 41
1226
1227 -------------------------------------------------------------------------------
1228 dynamic skipping works with generators
1229 -------------------------------------------------------------------------------
1230 Skip.tests.cpp:<line number>
1231 ...............................................................................
1232
1233 Skip.tests.cpp:<line number>: SKIPPED:
1234 explicitly with message:
1235 skipping because answer = 43
1236
1237 -------------------------------------------------------------------------------
1238 failed assertions before SKIP cause test case to fail
1239 -------------------------------------------------------------------------------
1240 Skip.tests.cpp:<line number>
1241 ...............................................................................
1242
1243 Skip.tests.cpp:<line number>: FAILED:
1244 CHECK( 3 == 4 )
1245
1246 Skip.tests.cpp:<line number>: SKIPPED:
1247
1248 -------------------------------------------------------------------------------
1249 failing for some generator values causes entire test case to fail
1250 -------------------------------------------------------------------------------
1251 Skip.tests.cpp:<line number>
1252 ...............................................................................
1253
1254 Skip.tests.cpp:<line number>: FAILED:
1255
1256 -------------------------------------------------------------------------------
1257 failing for some generator values causes entire test case to fail
1258 -------------------------------------------------------------------------------
1259 Skip.tests.cpp:<line number>
1260 ...............................................................................
1261
1262 Skip.tests.cpp:<line number>: SKIPPED:
1263
1264 -------------------------------------------------------------------------------
1265 failing for some generator values causes entire test case to fail
1266 -------------------------------------------------------------------------------
1267 Skip.tests.cpp:<line number>
1268 ...............................................................................
1269
1270 Skip.tests.cpp:<line number>: FAILED:
1271
1272 -------------------------------------------------------------------------------
1273 failing for some generator values causes entire test case to fail
1274 -------------------------------------------------------------------------------
1275 Skip.tests.cpp:<line number>
1276 ...............................................................................
1277
1278 Skip.tests.cpp:<line number>: SKIPPED:
1279
1280 -------------------------------------------------------------------------------
1281 failing in some unskipped sections causes entire test case to fail
1282 skipped
1283 -------------------------------------------------------------------------------
1284 Skip.tests.cpp:<line number>
1285 ...............................................................................
1286
1287 Skip.tests.cpp:<line number>: SKIPPED:
1288
1289 -------------------------------------------------------------------------------
1290 failing in some unskipped sections causes entire test case to fail
1291 not skipped
1292 -------------------------------------------------------------------------------
1293 Skip.tests.cpp:<line number>
1294 ...............................................................................
1295
1296 Skip.tests.cpp:<line number>: FAILED:
1297
1298 loose text artifact
1299 -------------------------------------------------------------------------------
1300 just failure
1301 -------------------------------------------------------------------------------
1302 Message.tests.cpp:<line number>
1303 ...............................................................................
1304
1305 Message.tests.cpp:<line number>: FAILED:
1306 explicitly with message:
1307 Previous info should not be seen
1308
1309 -------------------------------------------------------------------------------
1310 just failure after unscoped info
1311 -------------------------------------------------------------------------------
1312 Message.tests.cpp:<line number>
1313 ...............................................................................
1314
1315 Message.tests.cpp:<line number>: FAILED:
1316 explicitly with message:
1317 previous unscoped info SHOULD not be seen
1318
1319 -------------------------------------------------------------------------------
1320 looped SECTION tests
1321 b is currently: 0
1322 -------------------------------------------------------------------------------
1323 Misc.tests.cpp:<line number>
1324 ...............................................................................
1325
1326 Misc.tests.cpp:<line number>: FAILED:
1327 CHECK( b > a )
1328 with expansion:
1329 0 > 1
1330
1331 -------------------------------------------------------------------------------
1332 looped SECTION tests
1333 b is currently: 1
1334 -------------------------------------------------------------------------------
1335 Misc.tests.cpp:<line number>
1336 ...............................................................................
1337
1338 Misc.tests.cpp:<line number>: FAILED:
1339 CHECK( b > a )
1340 with expansion:
1341 1 > 1
1342
1343 -------------------------------------------------------------------------------
1344 looped tests
1345 -------------------------------------------------------------------------------
1346 Misc.tests.cpp:<line number>
1347 ...............................................................................
1348
1349 Misc.tests.cpp:<line number>: FAILED:
1350 CHECK( ( fib[i] % 2 ) == 0 )
1351 with expansion:
1352 1 == 0
1353 with message:
1354 Testing if fib[0] (1) is even
1355
1356 Misc.tests.cpp:<line number>: FAILED:
1357 CHECK( ( fib[i] % 2 ) == 0 )
1358 with expansion:
1359 1 == 0
1360 with message:
1361 Testing if fib[1] (1) is even
1362
1363 Misc.tests.cpp:<line number>: FAILED:
1364 CHECK( ( fib[i] % 2 ) == 0 )
1365 with expansion:
1366 1 == 0
1367 with message:
1368 Testing if fib[3] (3) is even
1369
1370 Misc.tests.cpp:<line number>: FAILED:
1371 CHECK( ( fib[i] % 2 ) == 0 )
1372 with expansion:
1373 1 == 0
1374 with message:
1375 Testing if fib[4] (5) is even
1376
1377 Misc.tests.cpp:<line number>: FAILED:
1378 CHECK( ( fib[i] % 2 ) == 0 )
1379 with expansion:
1380 1 == 0
1381 with message:
1382 Testing if fib[6] (13) is even
1383
1384 Misc.tests.cpp:<line number>: FAILED:
1385 CHECK( ( fib[i] % 2 ) == 0 )
1386 with expansion:
1387 1 == 0
1388 with message:
1389 Testing if fib[7] (21) is even
1390
1391 -------------------------------------------------------------------------------
1392 mix info, unscoped info and warning
1393 -------------------------------------------------------------------------------
1394 Message.tests.cpp:<line number>
1395 ...............................................................................
1396
1397 Message.tests.cpp:<line number>: warning:
1398 and warn may mix
1399
1400 Message.tests.cpp:<line number>: warning:
1401 they are not cleared after warnings
1402
1403 -------------------------------------------------------------------------------
1404 more nested SECTION tests
1405 doesn't equal
1406 equal
1407 -------------------------------------------------------------------------------
1408 Misc.tests.cpp:<line number>
1409 ...............................................................................
1410
1411 Misc.tests.cpp:<line number>: FAILED:
1412 REQUIRE( a == b )
1413 with expansion:
1414 1 == 2
1415
1416 a!
1417 b1!
1418 -------------------------------------------------------------------------------
1419 nested sections can be skipped dynamically at runtime
1420 B
1421 B2
1422 -------------------------------------------------------------------------------
1423 Skip.tests.cpp:<line number>
1424 ...............................................................................
1425
1426 Skip.tests.cpp:<line number>: SKIPPED:
1427
1428 !
1429 -------------------------------------------------------------------------------
1430 not prints unscoped info from previous failures
1431 -------------------------------------------------------------------------------
1432 Message.tests.cpp:<line number>
1433 ...............................................................................
1434
1435 Message.tests.cpp:<line number>: FAILED:
1436 REQUIRE( false )
1437 with message:
1438 this SHOULD be seen
1439
1440 -------------------------------------------------------------------------------
1441 prints unscoped info on failure
1442 -------------------------------------------------------------------------------
1443 Message.tests.cpp:<line number>
1444 ...............................................................................
1445
1446 Message.tests.cpp:<line number>: FAILED:
1447 REQUIRE( false )
1448 with messages:
1449 this SHOULD be seen
1450 this SHOULD also be seen
1451
1452 -------------------------------------------------------------------------------
1453 prints unscoped info only for the first assertion
1454 -------------------------------------------------------------------------------
1455 Message.tests.cpp:<line number>
1456 ...............................................................................
1457
1458 Message.tests.cpp:<line number>: FAILED:
1459 CHECK( false )
1460 with message:
1461 this SHOULD be seen only ONCE
1462
1463 -------------------------------------------------------------------------------
1464 sections can be skipped dynamically at runtime
1465 skipped
1466 -------------------------------------------------------------------------------
1467 Skip.tests.cpp:<line number>
1468 ...............................................................................
1469
1470 Skip.tests.cpp:<line number>: SKIPPED:
1471
1472 -------------------------------------------------------------------------------
1473 send a single char to INFO
1474 -------------------------------------------------------------------------------
1475 Misc.tests.cpp:<line number>
1476 ...............................................................................
1477
1478 Misc.tests.cpp:<line number>: FAILED:
1479 REQUIRE( false )
1480 with message:
1481 3
1482
1483 -------------------------------------------------------------------------------
1484 sends information to INFO
1485 -------------------------------------------------------------------------------
1486 Message.tests.cpp:<line number>
1487 ...............................................................................
1488
1489 Message.tests.cpp:<line number>: FAILED:
1490 REQUIRE( false )
1491 with messages:
1492 hi
1493 i := 7
1494
1495 -------------------------------------------------------------------------------
1496 skipped tests can optionally provide a reason
1497 -------------------------------------------------------------------------------
1498 Skip.tests.cpp:<line number>
1499 ...............................................................................
1500
1501 Skip.tests.cpp:<line number>: SKIPPED:
1502 explicitly with message:
1503 skipping because answer = 43
1504
1505 -------------------------------------------------------------------------------
1506 stacks unscoped info in loops
1507 -------------------------------------------------------------------------------
1508 Message.tests.cpp:<line number>
1509 ...............................................................................
1510
1511 Message.tests.cpp:<line number>: FAILED:
1512 CHECK( false )
1513 with messages:
1514 Count 1 to 3...
1515 1
1516 2
1517 3
1518
1519 Message.tests.cpp:<line number>: FAILED:
1520 CHECK( false )
1521 with messages:
1522 Count 4 to 6...
1523 4
1524 5
1525 6
1526
1527 -------------------------------------------------------------------------------
1528 tests can be skipped dynamically at runtime
1529 -------------------------------------------------------------------------------
1530 Skip.tests.cpp:<line number>
1531 ...............................................................................
1532
1533 Skip.tests.cpp:<line number>: SKIPPED:
1534
1535 -------------------------------------------------------------------------------
1536 thrown std::strings are translated
1537 -------------------------------------------------------------------------------
1538 Exception.tests.cpp:<line number>
1539 ...............................................................................
1540
1541 Exception.tests.cpp:<line number>: FAILED:
1542 due to unexpected exception with message:
1543 Why would you throw a std::string?
1544
1545 ===============================================================================
1546 test cases: 409 | 322 passed | 69 failed | 7 skipped | 11 failed as expected
1547 assertions: 2208 | 2048 passed | 128 failed | 32 failed as expected
1548