mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Remove the ill-conceived compilation perf tests using real tests
This commit is contained in:
		| @@ -290,10 +290,10 @@ Approx.tests.cpp:<line number>: passed: 0 == Approx( dZero) for: 0 == Approx( 0. | ||||
| Approx.tests.cpp:<line number>: passed: 0 == Approx( dSmall ).margin( 0.001 ) for: 0 == Approx( 0.00001 ) | ||||
| Approx.tests.cpp:<line number>: passed: 1.234f == Approx( dMedium ) for: 1.234f == Approx( 1.234 ) | ||||
| Approx.tests.cpp:<line number>: passed: dMedium == Approx( 1.234f ) for: 1.234 == Approx( 1.2339999676 ) | ||||
| Matchers.tests.cpp:<line number>: passed: 1, Predicate<int>(alwaysTrue, "always true") for: 1 matches predicate: "always true" | ||||
| Matchers.tests.cpp:<line number>: passed: 1, !Predicate<int>(alwaysFalse, "always false") for: 1 not matches predicate: "always false" | ||||
| Matchers.tests.cpp:<line number>: passed: "Hello olleH", Predicate<std::string>( [] (std::string const& str) -> bool { return str.front() == str.back(); }, "First and last character should be equal") for: "Hello olleH" matches predicate: "First and last character should be equal" | ||||
| Matchers.tests.cpp:<line number>: passed: "This wouldn't pass", !Predicate<std::string>( [] (std::string const& str) -> bool { return str.front() == str.back(); } ) for: "This wouldn't pass" not matches undescribed predicate | ||||
| Matchers.tests.cpp:<line number>: passed: 1, Predicate<int>( alwaysTrue, "always true" ) for: 1 matches predicate: "always true" | ||||
| Matchers.tests.cpp:<line number>: passed: 1, !Predicate<int>( alwaysFalse, "always false" ) for: 1 not matches predicate: "always false" | ||||
| Matchers.tests.cpp:<line number>: passed: "Hello olleH", Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); }, "First and last character should be equal" ) for: "Hello olleH" matches predicate: "First and last character should be equal" | ||||
| Matchers.tests.cpp:<line number>: passed: "This wouldn't pass", !Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); } ) for: "This wouldn't pass" not matches undescribed predicate | ||||
| Compilation.tests.cpp:<line number>: passed: lhs | rhs for: Val: 1 | Val: 2 | ||||
| Compilation.tests.cpp:<line number>: passed: !(lhs & rhs) for: !(Val: 1 & Val: 2) | ||||
| Compilation.tests.cpp:<line number>: passed: HasBitOperators{ 1 } & HasBitOperators{ 1 } for: Val: 1 & Val: 1 | ||||
| @@ -346,41 +346,41 @@ ToStringGeneral.tests.cpp:<line number>: passed: c == i for: 4 == 4 | ||||
| ToStringGeneral.tests.cpp:<line number>: passed: c == i for: 5 == 5 | ||||
| Clara.tests.cpp:<line number>: passed: name.empty() for: true | ||||
| Clara.tests.cpp:<line number>: passed: name == "foo" for: "foo" == "foo" | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype((MatcherA() && MatcherB()) && MatcherC()), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB, MatcherC> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, (MatcherA() && MatcherB()) && MatcherC() for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype(MatcherA() && (MatcherB() && MatcherC())), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB, MatcherC> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, MatcherA() && (MatcherB() && MatcherC()) for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype((MatcherA() && MatcherB()) && (MatcherC() && MatcherD())), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, (MatcherA() && MatcherB()) && (MatcherC() && MatcherD()) for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 and equals: true ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype((MatcherA() || MatcherB()) || MatcherC()), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, (MatcherA() || MatcherB()) || MatcherC() for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype(MatcherA() || (MatcherB() || MatcherC())), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, MatcherA() || (MatcherB() || MatcherC()) for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype((MatcherA() || MatcherB()) || (MatcherC() || MatcherD())), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, (MatcherA() || MatcherB()) || (MatcherC() || MatcherD()) for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 or equals: true ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype(!MatcherA()), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype( ( MatcherA() && MatcherB() ) && MatcherC() ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, ( MatcherA() && MatcherB() ) && MatcherC() for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype( MatcherA() && ( MatcherB() && MatcherC() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, MatcherA() && ( MatcherB() && MatcherC() ) for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype( ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD>>:: value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 and equals: true ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype( ( MatcherA() || MatcherB() ) || MatcherC() ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, ( MatcherA() || MatcherB() ) || MatcherC() for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype( MatcherA() || ( MatcherB() || MatcherC() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, MatcherA() || ( MatcherB() || MatcherC() ) for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype( ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD>>:: value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 or equals: true ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype( !MatcherA() ), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA>>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 0, !MatcherA() for: 0 not equals: (int) 1 or (float) 1.0f | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype(!!MatcherA()), MatcherA const& >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same<decltype( !!MatcherA() ), MatcherA const&>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, !!MatcherA() for: 1 equals: (int) 1 or (float) 1.0f | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype(!!!MatcherA()), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype( !!!MatcherA() ), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA>>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 0, !!!MatcherA() for: 0 not equals: (int) 1 or (float) 1.0f | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype(!!!!MatcherA()), MatcherA const & >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same<decltype( !!!!MatcherA() ), MatcherA const&>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, !!!!MatcherA() for: 1 equals: (int) 1 or (float) 1.0f | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype(StartsWith("foo") || (StartsWith("bar") && EndsWith("bar") && !EndsWith("foo"))), Catch::Matchers::Detail::MatchAnyOf<std::string> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype(MatcherA() || MatcherB()), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same<decltype( StartsWith( "foo" ) || ( StartsWith( "bar" ) && EndsWith( "bar" ) && !EndsWith( "foo" ) ) ), Catch::Matchers::Detail::MatchAnyOf<std::string>>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same<decltype( MatcherA() || MatcherB() ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB>>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, MatcherA() || MatcherB() for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype(MatcherA() && MatcherB()), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same<decltype( MatcherA() && MatcherB() ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB>>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, MatcherA() && MatcherB() for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype(MatcherA() || !MatcherB()), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric<MatcherB>> >::value' | ||||
| Matchers.tests.cpp:<line number>: passed: with 1 message: 'std::is_same< decltype( MatcherA() || !MatcherB() ), Catch::Matchers::Detail::MatchAnyOfGeneric< MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric<MatcherB>>>::value' | ||||
| Matchers.tests.cpp:<line number>: passed: 1, MatcherA() || !MatcherB() for: 1 ( equals: (int) 1 or (float) 1.0f or not equals: (long long) 1 ) | ||||
| Matchers.tests.cpp:<line number>: passed: 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) for: { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5, 3, 1 } ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, StartsWith("foo") && EqualsRange(arr) && EndsWith("bar") for: "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and ends with: "bar" ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, StartsWith("foo") && !EqualsRange(bad_arr) && EndsWith("bar") for: "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and ends with: "bar" ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, EqualsRange(arr) && StartsWith("foo") && EndsWith("bar") for: "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, !EqualsRange(bad_arr) && StartsWith("foo") && EndsWith("bar") for: "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, EqualsRange(bad_arr) || (StartsWith("foo") && EndsWith("bar")) for: "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo" and ends with: "bar" ) ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, (StartsWith("foo") && EndsWith("bar")) || EqualsRange(bad_arr) for: "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } ) | ||||
| Matchers.tests.cpp:<line number>: passed: container, EqualsRange(a) || EqualsRange(b) || EqualsRange(c) for: { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6 } ) | ||||
| Matchers.tests.cpp:<line number>: passed: 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 ) for: { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5, 3, 1 } ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, StartsWith( "foo" ) && EqualsRange( arr ) && EndsWith( "bar" ) for: "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and ends with: "bar" ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, StartsWith( "foo" ) && !EqualsRange( bad_arr ) && EndsWith( "bar" ) for: "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and ends with: "bar" ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, EqualsRange( arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) for: "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, !EqualsRange( bad_arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) for: "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, EqualsRange( bad_arr ) || ( StartsWith( "foo" ) && EndsWith( "bar" ) ) for: "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo" and ends with: "bar" ) ) | ||||
| Matchers.tests.cpp:<line number>: passed: str, ( StartsWith( "foo" ) && EndsWith( "bar" ) ) || EqualsRange( bad_arr ) for: "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } ) | ||||
| Matchers.tests.cpp:<line number>: passed: container, EqualsRange( a ) || EqualsRange( b ) || EqualsRange( c ) for: { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6 } ) | ||||
| Tricky.tests.cpp:<line number>: passed: std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} | ||||
| Tricky.tests.cpp:<line number>: passed: std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} | ||||
| Tricky.tests.cpp:<line number>: passed: std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} | ||||
| @@ -434,7 +434,7 @@ Condition.tests.cpp:<line number>: passed: (std::numeric_limits<uint32_t>::max)( | ||||
| Matchers.tests.cpp:<line number>: passed: !(matcher.match( 1 )) for: !false | ||||
| Matchers.tests.cpp:<line number>: passed: first.matchCalled for: true | ||||
| Matchers.tests.cpp:<line number>: passed: !second.matchCalled for: true | ||||
| Matchers.tests.cpp:<line number>: passed: matcher.match(1) for: true | ||||
| Matchers.tests.cpp:<line number>: passed: matcher.match( 1 ) for: true | ||||
| Matchers.tests.cpp:<line number>: passed: first.matchCalled for: true | ||||
| Matchers.tests.cpp:<line number>: passed: !second.matchCalled for: true | ||||
| Matchers.tests.cpp:<line number>: passed: !(matcher.match( 1 )) for: !false | ||||
| @@ -443,8 +443,8 @@ Matchers.tests.cpp:<line number>: passed: !second.matchCalled for: true | ||||
| Matchers.tests.cpp:<line number>: passed: matcher.match( 1 ) for: true | ||||
| Matchers.tests.cpp:<line number>: passed: first.matchCalled for: true | ||||
| Matchers.tests.cpp:<line number>: passed: !second.matchCalled for: true | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Contains("not there", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" contains: "not there" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Contains("STRING") for: "this string contains 'abc' as a substring" contains: "STRING" | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Contains( "not there", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "not there" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Contains( "STRING" ) for: "this string contains 'abc' as a substring" contains: "STRING" | ||||
| Generators.tests.cpp:<line number>: passed: elem % 2 == 1 for: 1 == 1 | ||||
| Generators.tests.cpp:<line number>: passed: elem % 2 == 1 for: 1 == 1 | ||||
| Generators.tests.cpp:<line number>: passed: elem % 2 == 1 for: 1 == 1 | ||||
| @@ -469,8 +469,8 @@ ToString.tests.cpp:<line number>: passed: enumInfo->lookup(1) == "Value2" for: V | ||||
| ToString.tests.cpp:<line number>: passed: enumInfo->lookup(3) == "{** unexpected enum value **}" for: {** unexpected enum value **} | ||||
| == | ||||
| "{** unexpected enum value **}" | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), EndsWith("Substring") for: "this string contains 'abc' as a substring" ends with: "Substring" | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" ends with: "this" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), EndsWith( "Substring" ) for: "this string contains 'abc' as a substring" ends with: "Substring" | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" ends with: "this" (case insensitive) | ||||
| EnumToString.tests.cpp:<line number>: passed: stringify( EnumClass3::Value1 ) == "Value1" for: "Value1" == "Value1" | ||||
| EnumToString.tests.cpp:<line number>: passed: stringify( EnumClass3::Value2 ) == "Value2" for: "Value2" == "Value2" | ||||
| EnumToString.tests.cpp:<line number>: passed: stringify( EnumClass3::Value3 ) == "Value3" for: "Value3" == "Value3" | ||||
| @@ -501,10 +501,10 @@ Condition.tests.cpp:<line number>: passed: data.str_hello == "hello" for: "hello | ||||
| Condition.tests.cpp:<line number>: passed: "hello" == data.str_hello for: "hello" == "hello" | ||||
| Condition.tests.cpp:<line number>: passed: data.str_hello.size() == 5 for: 5 == 5 | ||||
| Condition.tests.cpp:<line number>: passed: x == Approx( 1.3 ) for: 1.3 == Approx( 1.3 ) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Equals("this string contains 'abc' as a substring") for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Equals("this string contains 'ABC' as a substring", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Equals("this string contains 'ABC' as a substring") for: "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring" | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Equals("something else", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" equals: "something else" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) for: "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring" | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" equals: "something else" (case insensitive) | ||||
| ToStringGeneral.tests.cpp:<line number>: passed: ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" for: "This exception has overridden what() method" | ||||
| == | ||||
| "This exception has overridden what() method" | ||||
| @@ -512,24 +512,24 @@ ToStringGeneral.tests.cpp:<line number>: passed: ::Catch::Detail::stringify(Oper | ||||
| ToStringGeneral.tests.cpp:<line number>: passed: ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" for: "StringMakerException" | ||||
| == | ||||
| "StringMakerException" | ||||
| Matchers.tests.cpp:<line number>: failed: expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{1} | ||||
| Matchers.tests.cpp:<line number>: failed: expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{1} | ||||
| Matchers.tests.cpp:<line number>: failed: unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt(1), SpecialException, ExceptionMatcher{1} | ||||
| Matchers.tests.cpp:<line number>: failed: unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt(1), SpecialException, ExceptionMatcher{1} | ||||
| Matchers.tests.cpp:<line number>: failed: throwsSpecialException(3), SpecialException, ExceptionMatcher{1} for: SpecialException::what special exception has value of 1 | ||||
| Matchers.tests.cpp:<line number>: failed: throwsSpecialException(4), SpecialException, ExceptionMatcher{1} for: SpecialException::what special exception has value of 1 | ||||
| Matchers.tests.cpp:<line number>: passed: throwsSpecialException(1), SpecialException, ExceptionMatcher{1} for: SpecialException::what special exception has value of 1 | ||||
| Matchers.tests.cpp:<line number>: passed: throwsSpecialException(2), SpecialException, ExceptionMatcher{2} for: SpecialException::what special exception has value of 2 | ||||
| Matchers.tests.cpp:<line number>: failed: expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } | ||||
| Matchers.tests.cpp:<line number>: failed: expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } | ||||
| Matchers.tests.cpp:<line number>: failed: unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } | ||||
| Matchers.tests.cpp:<line number>: failed: unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } | ||||
| Matchers.tests.cpp:<line number>: failed: throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1 | ||||
| Matchers.tests.cpp:<line number>: failed: throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1 | ||||
| Matchers.tests.cpp:<line number>: passed: throwsSpecialException( 1 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1 | ||||
| Matchers.tests.cpp:<line number>: passed: throwsSpecialException( 2 ), SpecialException, ExceptionMatcher{ 2 } for: SpecialException::what special exception has value of 2 | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), "expected exception" for: "expected exception" equals: "expected exception" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) for: "expected exception" equals: "expected exception" (case insensitive) | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), StartsWith( "expected" ) for: "expected exception" starts with: "expected" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), EndsWith( "exception" ) for: "expected exception" ends with: "exception" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), Contains( "except" ) for: "expected exception" contains: "except" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) for: "expected exception" contains: "except" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: passed: throwsDerivedException(), DerivedException, Message("DerivedException::what") for: DerivedException::what exception message matches "DerivedException::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsDerivedException(), DerivedException, !Message("derivedexception::what") for: DerivedException::what not exception message matches "derivedexception::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsSpecialException(2), SpecialException, !Message("DerivedException::what") for: SpecialException::what not exception message matches "DerivedException::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsSpecialException(2), SpecialException, Message("SpecialException::what") for: SpecialException::what exception message matches "SpecialException::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) for: DerivedException::what exception message matches "DerivedException::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) for: DerivedException::what not exception message matches "derivedexception::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) for: SpecialException::what not exception message matches "DerivedException::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsSpecialException( 2 ), SpecialException, Message( "SpecialException::what" ) for: SpecialException::what exception message matches "SpecialException::what" | ||||
| Exception.tests.cpp:<line number>: failed: unexpected exception with message: 'expected exception'; expression was: thisThrows(), std::string | ||||
| Exception.tests.cpp:<line number>: failed: expected exception, got none; expression was: thisDoesntThrow(), std::domain_error | ||||
| Exception.tests.cpp:<line number>: failed: unexpected exception with message: 'expected exception'; expression was: thisThrows() | ||||
| @@ -542,66 +542,66 @@ Misc.tests.cpp:<line number>: passed: Factorial(1) == 1 for: 1 == 1 | ||||
| Misc.tests.cpp:<line number>: passed: Factorial(2) == 2 for: 2 == 2 | ||||
| Misc.tests.cpp:<line number>: passed: Factorial(3) == 6 for: 6 == 6 | ||||
| Misc.tests.cpp:<line number>: passed: Factorial(10) == 3628800 for: 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>) | ||||
| Matchers.tests.cpp:<line number>: passed: 10., WithinRel(11.1, 0.1) for: 10.0 and 11.1 are within 10% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 10., !WithinRel(11.2, 0.1) for: 10.0 not and 11.2 are within 10% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 1., !WithinRel(0., 0.99) for: 1.0 not and 0 are within 99% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: -0., WithinRel(0.) for: -0.0 and 0 are within 2.22045e-12% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: v1, WithinRel(v2) for: 0.0 and 2.22507e-308 are within 2.22045e-12% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinAbs(1., 0) for: 1.0 is within 0.0 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0., WithinAbs(1., 1) for: 0.0 is within 1.0 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0., !WithinAbs(1., 0.99) for: 0.0 not is within 0.99 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0., !WithinAbs(1., 0.99) for: 0.0 not is within 0.99 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 11., !WithinAbs(10., 0.5) for: 11.0 not is within 0.5 of 10.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 10., !WithinAbs(11., 0.5) for: 10.0 not is within 0.5 of 11.0 | ||||
| Matchers.tests.cpp:<line number>: passed: -10., WithinAbs(-10., 0.5) for: -10.0 is within 0.5 of -10.0 | ||||
| Matchers.tests.cpp:<line number>: passed: -10., WithinAbs(-9.6, 0.5) for: -10.0 is within 0.5 of -9.6 | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinULP(1., 0) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: nextafter(1., 2.), WithinULP(1., 1) for: 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.0000000000000002e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 0., WithinULP(nextafter(0., 1.), 1) for: 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.8813129168249309e-324]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinULP(nextafter(1., 0.), 1) for: 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.0000000000000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1., !WithinULP(nextafter(1., 2.), 0) for: 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00, 1.0000000000000002e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinULP(1., 0) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: -0., WithinULP(0., 0) for: -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.0000000000000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinAbs(1., 0.5) || WithinULP(2., 1) for: 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.9999999999999998e+00, 2.0000000000000004e+00]) ) | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinAbs(2., 0.5) || WithinULP(1., 0) for: 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) ) | ||||
| Matchers.tests.cpp:<line number>: passed: 0.0001, WithinAbs(0., 0.001) || WithinRel(0., 0.1) for: 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other ) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinAbs(1., 0.) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinAbs(1., -1.), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: WithinULP(1., 0) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel(1., 0.) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel(1., -0.2), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel(1., 1.), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: 10.f, WithinRel(11.1f, 0.1f) for: 10.0f and 11.1 are within 10% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 10.f, !WithinRel(11.2f, 0.1f) for: 10.0f not and 11.2 are within 10% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, !WithinRel(0.f, 0.99f) for: 1.0f not and 0 are within 99% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: -0.f, WithinRel(0.f) for: -0.0f and 0 are within 0.00119209% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: v1, WithinRel(v2) for: 0.0f and 1.17549e-38 are within 0.00119209% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinAbs(1.f, 0) for: 1.0f is within 0.0 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0.f, WithinAbs(1.f, 1) for: 0.0f is within 1.0 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0.f, !WithinAbs(1.f, 0.99f) for: 0.0f not is within 0.9900000095 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0.f, !WithinAbs(1.f, 0.99f) for: 0.0f not is within 0.9900000095 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0.f, WithinAbs(-0.f, 0) for: 0.0f is within 0.0 of -0.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 11.f, !WithinAbs(10.f, 0.5f) for: 11.0f not is within 0.5 of 10.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 10.f, !WithinAbs(11.f, 0.5f) for: 10.0f not is within 0.5 of 11.0 | ||||
| Matchers.tests.cpp:<line number>: passed: -10.f, WithinAbs(-10.f, 0.5f) for: -10.0f is within 0.5 of -10.0 | ||||
| Matchers.tests.cpp:<line number>: passed: -10.f, WithinAbs(-9.6f, 0.5f) for: -10.0f is within 0.5 of -9.6000003815 | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinULP(1.f, 0) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: nextafter(1.f, 2.f), WithinULP(1.f, 1) for: 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 0.f, WithinULP(nextafter(0.f, 1.f), 1) for: 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinULP(nextafter(1.f, 0.f), 1) for: 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, !WithinULP(nextafter(1.f, 2.f), 0) for: 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinULP(1.f, 0) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: -0.f, WithinULP(0.f, 0) for: -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinAbs(1.f, 0.5) || WithinULP(1.f, 1) for: 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) ) | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinAbs(2.f, 0.5) || WithinULP(1.f, 0) for: 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) ) | ||||
| Matchers.tests.cpp:<line number>: passed: 0.0001f, WithinAbs(0.f, 0.001f) || WithinRel(0.f, 0.1f) for: 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other ) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinAbs(1.f, 0.f) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinAbs(1.f, -1.f), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: WithinULP(1.f, 0) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinULP(1.f, static_cast<uint64_t>(-1)), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel(1.f, 0.f) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel(1.f, -0.2f), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel(1.f, 1.f), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: 10., WithinRel( 11.1, 0.1 ) for: 10.0 and 11.1 are within 10% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 10., !WithinRel( 11.2, 0.1 ) for: 10.0 not and 11.2 are within 10% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 1., !WithinRel( 0., 0.99 ) for: 1.0 not and 0 are within 99% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: -0., WithinRel( 0. ) for: -0.0 and 0 are within 2.22045e-12% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: v1, WithinRel( v2 ) for: 0.0 and 2.22507e-308 are within 2.22045e-12% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinAbs( 1., 0 ) for: 1.0 is within 0.0 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0., WithinAbs( 1., 1 ) for: 0.0 is within 1.0 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0., !WithinAbs( 1., 0.99 ) for: 0.0 not is within 0.99 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0., !WithinAbs( 1., 0.99 ) for: 0.0 not is within 0.99 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 11., !WithinAbs( 10., 0.5 ) for: 11.0 not is within 0.5 of 10.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 10., !WithinAbs( 11., 0.5 ) for: 10.0 not is within 0.5 of 11.0 | ||||
| Matchers.tests.cpp:<line number>: passed: -10., WithinAbs( -10., 0.5 ) for: -10.0 is within 0.5 of -10.0 | ||||
| Matchers.tests.cpp:<line number>: passed: -10., WithinAbs( -9.6, 0.5 ) for: -10.0 is within 0.5 of -9.6 | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinULP( 1., 0 ) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: nextafter( 1., 2. ), WithinULP( 1., 1 ) for: 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.0000000000000002e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 0., WithinULP( nextafter( 0., 1. ), 1 ) for: 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.8813129168249309e-324]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinULP( nextafter( 1., 0. ), 1 ) for: 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.0000000000000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1., !WithinULP( nextafter( 1., 2. ), 0 ) for: 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00, 1.0000000000000002e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinULP( 1., 0 ) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: -0., WithinULP( 0., 0 ) for: -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.0000000000000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinAbs( 1., 0.5 ) || WithinULP( 2., 1 ) for: 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.9999999999999998e+00, 2.0000000000000004e+00]) ) | ||||
| Matchers.tests.cpp:<line number>: passed: 1., WithinAbs( 2., 0.5 ) || WithinULP( 1., 0 ) for: 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) ) | ||||
| Matchers.tests.cpp:<line number>: passed: 0.0001, WithinAbs( 0., 0.001 ) || WithinRel( 0., 0.1 ) for: 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other ) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinAbs( 1., 0. ) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinAbs( 1., -1. ), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: WithinULP( 1., 0 ) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel( 1., 0. ) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel( 1., -0.2 ), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel( 1., 1. ), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: 10.f, WithinRel( 11.1f, 0.1f ) for: 10.0f and 11.1 are within 10% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 10.f, !WithinRel( 11.2f, 0.1f ) for: 10.0f not and 11.2 are within 10% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, !WithinRel( 0.f, 0.99f ) for: 1.0f not and 0 are within 99% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: -0.f, WithinRel( 0.f ) for: -0.0f and 0 are within 0.00119209% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: v1, WithinRel( v2 ) for: 0.0f and 1.17549e-38 are within 0.00119209% of each other | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinAbs( 1.f, 0 ) for: 1.0f is within 0.0 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0.f, WithinAbs( 1.f, 1 ) for: 0.0f is within 1.0 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0.f, !WithinAbs( 1.f, 0.99f ) for: 0.0f not is within 0.9900000095 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0.f, !WithinAbs( 1.f, 0.99f ) for: 0.0f not is within 0.9900000095 of 1.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 0.f, WithinAbs( -0.f, 0 ) for: 0.0f is within 0.0 of -0.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 11.f, !WithinAbs( 10.f, 0.5f ) for: 11.0f not is within 0.5 of 10.0 | ||||
| Matchers.tests.cpp:<line number>: passed: 10.f, !WithinAbs( 11.f, 0.5f ) for: 10.0f not is within 0.5 of 11.0 | ||||
| Matchers.tests.cpp:<line number>: passed: -10.f, WithinAbs( -10.f, 0.5f ) for: -10.0f is within 0.5 of -10.0 | ||||
| Matchers.tests.cpp:<line number>: passed: -10.f, WithinAbs( -9.6f, 0.5f ) for: -10.0f is within 0.5 of -9.6000003815 | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinULP( 1.f, 0 ) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: nextafter( 1.f, 2.f ), WithinULP( 1.f, 1 ) for: 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 0.f, WithinULP( nextafter( 0.f, 1.f ), 1 ) for: 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinULP( nextafter( 1.f, 0.f ), 1 ) for: 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, !WithinULP( nextafter( 1.f, 2.f ), 0 ) for: 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinULP( 1.f, 0 ) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: -0.f, WithinULP( 0.f, 0 ) for: -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00]) | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinAbs( 1.f, 0.5 ) || WithinULP( 1.f, 1 ) for: 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) ) | ||||
| Matchers.tests.cpp:<line number>: passed: 1.f, WithinAbs( 2.f, 0.5 ) || WithinULP( 1.f, 0 ) for: 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) ) | ||||
| Matchers.tests.cpp:<line number>: passed: 0.0001f, WithinAbs( 0.f, 0.001f ) || WithinRel( 0.f, 0.1f ) for: 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other ) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinAbs( 1.f, 0.f ) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinAbs( 1.f, -1.f ), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: WithinULP( 1.f, 0 ) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinULP( 1.f, static_cast<uint64_t>( -1 ) ), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel( 1.f, 0.f ) | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel( 1.f, -0.2f ), std::domain_error | ||||
| Matchers.tests.cpp:<line number>: passed: WithinRel( 1.f, 1.f ), std::domain_error | ||||
| Generators.tests.cpp:<line number>: passed: i % 2 == 0 for: 0 == 0 | ||||
| Generators.tests.cpp:<line number>: passed: i % 2 == 0 for: 0 == 0 | ||||
| Generators.tests.cpp:<line number>: passed: i % 2 == 0 for: 0 == 0 | ||||
| @@ -899,13 +899,13 @@ Approx.tests.cpp:<line number>: passed: d <= Approx( 1.23 ) for: 1.23 <= Approx( | ||||
| Approx.tests.cpp:<line number>: passed: !(d <= Approx( 1.22 )) for: !(1.23 <= Approx( 1.22 )) | ||||
| Approx.tests.cpp:<line number>: passed: d <= Approx( 1.22 ).epsilon(0.1) for: 1.23 <= Approx( 1.22 ) | ||||
| Misc.tests.cpp:<line number>: passed: with 1 message: 'was called' | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains("string") && Contains("abc") && Contains("substring") && Contains("contains") for: "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" ) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains("string") || Contains("different") || Contains("random") for: "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" ) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching2(), Contains("string") || Contains("different") || Contains("random") for: "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" ) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), (Contains("string") || Contains("different")) && Contains("substring") for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" ) | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random") for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" ) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), !Contains("different") for: "this string contains 'abc' as a substring" not contains: "different" | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), !Contains("substring") for: "this string contains 'abc' as a substring" not contains: "substring" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains( "string" ) && Contains( "abc" ) && Contains( "substring" ) && Contains( "contains" ) for: "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" ) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) for: "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" ) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching2(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) for: "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" ) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "substring" ) for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" ) | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" ) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), !Contains( "different" ) for: "this string contains 'abc' as a substring" not contains: "different" | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), !Contains( "substring" ) for: "this string contains 'abc' as a substring" not contains: "substring" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), "expected exception" for: "expected exception" equals: "expected exception" | ||||
| Exception.tests.cpp:<line number>: failed: thisThrows(), "should fail" for: "expected exception" equals: "should fail" | ||||
| Generators.tests.cpp:<line number>: passed: values > -6 for: 3 > -6 | ||||
| @@ -1014,10 +1014,10 @@ RandomNumberGeneration.tests.cpp:<line number>: passed: rng() == 0x<hex digits> | ||||
| 4261393167 (0x<hex digits>) | ||||
| Message.tests.cpp:<line number>: failed: explicitly with 1 message: 'Message from section one' | ||||
| Message.tests.cpp:<line number>: failed: explicitly with 1 message: 'Message from section two' | ||||
| Matchers.tests.cpp:<line number>: passed: (EvilMatcher(), EvilMatcher()), EvilCommaOperatorUsed | ||||
| Matchers.tests.cpp:<line number>: passed: ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed | ||||
| Matchers.tests.cpp:<line number>: passed: &EvilMatcher(), EvilAddressOfOperatorUsed | ||||
| Matchers.tests.cpp:<line number>: passed: EvilMatcher() || (EvilMatcher() && !EvilMatcher()) | ||||
| Matchers.tests.cpp:<line number>: passed: (EvilMatcher() && EvilMatcher()) || !EvilMatcher() | ||||
| Matchers.tests.cpp:<line number>: passed: EvilMatcher() || ( EvilMatcher() && !EvilMatcher() ) | ||||
| Matchers.tests.cpp:<line number>: passed: ( EvilMatcher() && EvilMatcher() ) || !EvilMatcher() | ||||
| CmdLine.tests.cpp:<line number>: passed: spec.hasFilters() == false for: false == false | ||||
| CmdLine.tests.cpp:<line number>: passed: spec.matches( *tcA ) == false for: false == false | ||||
| CmdLine.tests.cpp:<line number>: passed: spec.matches( *tcB ) == false for: false == false | ||||
| @@ -1181,7 +1181,7 @@ ToStringGeneral.tests.cpp:<line number>: passed: str1.size() == 3 + 5 for: 8 == | ||||
| ToStringGeneral.tests.cpp:<line number>: passed: str2.size() == 3 + 10 for: 13 == 13 | ||||
| ToStringGeneral.tests.cpp:<line number>: passed: str1.size() == 2 + 5 for: 7 == 7 | ||||
| ToStringGeneral.tests.cpp:<line number>: passed: str2.size() == 2 + 15 for: 17 == 17 | ||||
| Matchers.tests.cpp:<line number>: passed: "foo", Predicate<const char*>([] (const char* const&) { return true; }) for: "foo" matches undescribed predicate | ||||
| Matchers.tests.cpp:<line number>: passed: "foo", Predicate<const char*>( []( const char* const& ) { return true; } ) for: "foo" matches undescribed predicate | ||||
| CmdLine.tests.cpp:<line number>: passed: result for: {?} | ||||
| CmdLine.tests.cpp:<line number>: passed: config.processName == "" for: "" == "" | ||||
| CmdLine.tests.cpp:<line number>: passed: result for: {?} | ||||
| @@ -1269,10 +1269,10 @@ Misc.tests.cpp:<line number>: passed: std::tuple_size<TestType>::value >= 1 for: | ||||
| Misc.tests.cpp:<line number>: passed: std::tuple_size<TestType>::value >= 1 for: 1 >= 1 | ||||
| ToString.tests.cpp:<line number>: passed: Catch::Detail::stringify(UsesSentinel{}) == "{  }" for: "{  }" == "{  }" | ||||
| Decomposition.tests.cpp:<line number>: failed: truthy(false) for: Hey, its truthy! | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Matches("this STRING contains 'abc' as a substring") for: "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Matches("contains 'abc' as a substring") for: "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Matches("this string contains 'abc' as a") for: "this string contains 'abc' as a substring" matches "this string contains 'abc' as a" case sensitively | ||||
| Matchers.tests.cpp:<line number>: passed: actual, !UnorderedEquals(expected) for: { 'a', 'b' } not UnorderedEquals: { 'c', 'b' } | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Matches( "contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Matches( "this string contains 'abc' as a" ) for: "this string contains 'abc' as a substring" matches "this string contains 'abc' as a" case sensitively | ||||
| Matchers.tests.cpp:<line number>: passed: actual, !UnorderedEquals( expected ) for: { 'a', 'b' } not UnorderedEquals: { 'c', 'b' } | ||||
| Reporters.tests.cpp:<line number>: passed: !(factories.empty()) for: !false | ||||
| Reporters.tests.cpp:<line number>: passed: listingString, Contains("fakeTag"s) for: "All available tags: | ||||
|    1  [fakeTag] | ||||
| @@ -1464,21 +1464,21 @@ Approx.tests.cpp:<line number>: passed: Approx( d ) != 1.22 for: Approx( 1.23 ) | ||||
| Approx.tests.cpp:<line number>: passed: Approx( d ) != 1.24 for: Approx( 1.23 ) != 1.24 | ||||
| Message from section one | ||||
| Message from section two | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), StartsWith("This String") for: "this string contains 'abc' as a substring" starts with: "This String" | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" starts with: "string" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), StartsWith( "This String" ) for: "this string contains 'abc' as a substring" starts with: "This String" | ||||
| Matchers.tests.cpp:<line number>: failed: testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" starts with: "string" (case insensitive) | ||||
| ToStringGeneral.tests.cpp:<line number>: passed: Catch::Detail::stringify(singular) == "{ 1 }" for: "{ 1 }" == "{ 1 }" | ||||
| ToStringGeneral.tests.cpp:<line number>: passed: Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" for: "{ 3, 2, 1 }" == "{ 3, 2, 1 }" | ||||
| ToStringGeneral.tests.cpp:<line number>: passed: Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" for: "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }" | ||||
| == | ||||
| "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains("string") for: "this string contains 'abc' as a substring" contains: "string" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains("string", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" contains: "string" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains("abc") for: "this string contains 'abc' as a substring" contains: "abc" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains("aBC", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" contains: "abc" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), StartsWith("this") for: "this string contains 'abc' as a substring" starts with: "this" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), StartsWith("THIS", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" starts with: "this" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), EndsWith("substring") for: "this string contains 'abc' as a substring" ends with: "substring" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), EndsWith(" SuBsTrInG", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" ends with: " substring" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains( "string" ) for: "this string contains 'abc' as a substring" contains: "string" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains( "string", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "string" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains( "abc" ) for: "this string contains 'abc' as a substring" contains: "abc" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Contains( "aBC", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "abc" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), StartsWith( "this" ) for: "this string contains 'abc' as a substring" starts with: "this" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" starts with: "this" (case insensitive) | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), EndsWith( "substring" ) for: "this string contains 'abc' as a substring" ends with: "substring" | ||||
| Matchers.tests.cpp:<line number>: passed: testStringForMatching(), EndsWith( " SuBsTrInG", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" ends with: " substring" (case insensitive) | ||||
| String.tests.cpp:<line number>: passed: empty.empty() for: true | ||||
| String.tests.cpp:<line number>: passed: empty.size() == 0 for: 0 == 0 | ||||
| String.tests.cpp:<line number>: passed: std::strcmp( empty.data(), "" ) == 0 for: 0 == 0 | ||||
| @@ -1905,53 +1905,53 @@ Approx.tests.cpp:<line number>: passed: approx( d ) == 1.22 for: Approx( 1.23 ) | ||||
| Approx.tests.cpp:<line number>: passed: approx( d ) == 1.24 for: Approx( 1.23 ) == 1.24 | ||||
| Approx.tests.cpp:<line number>: passed: approx( d ) != 1.25 for: Approx( 1.23 ) != 1.25 | ||||
| VariadicMacros.tests.cpp:<line number>: passed: with 1 message: 'no assertions' | ||||
| Matchers.tests.cpp:<line number>: passed: empty, Approx(empty) for: {  } is approx: {  } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, Approx(v1) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, Approx<double>({ 1., 2., 3. }) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, !Approx(temp) for: { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, !Approx(v2) for: { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, Approx(v2).margin(0.5) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, Approx(v2).epsilon(0.5) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, Approx(v2).epsilon(0.1).scale(500) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| Matchers.tests.cpp:<line number>: failed: empty, Approx(t1) for: {  } is approx: { 1.0, 2.0 } | ||||
| Matchers.tests.cpp:<line number>: failed: v1, Approx(v2) for: { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, VectorContains(1) for: { 1, 2, 3 } Contains: 1 | ||||
| Matchers.tests.cpp:<line number>: passed: v, VectorContains(2) for: { 1, 2, 3 } Contains: 2 | ||||
| Matchers.tests.cpp:<line number>: passed: v5, (VectorContains<int, CustomAllocator<int>>(2)) for: { 1, 2, 3 } Contains: 2 | ||||
| Matchers.tests.cpp:<line number>: passed: v, Contains(v2) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, Contains<int>({ 1, 2 }) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, (Contains<int, std::allocator<int>, CustomAllocator<int>>(v2)) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, Contains(v2) for: { 1, 2, 3 } Contains: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, Contains(empty) for: { 1, 2, 3 } Contains: {  } | ||||
| Matchers.tests.cpp:<line number>: passed: empty, Contains(empty) for: {  } Contains: {  } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, (Contains<int, std::allocator<int>, CustomAllocator<int>>(v2)) for: { 1, 2, 3 } Contains: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, Contains(v6) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, VectorContains(1) && VectorContains(2) for: { 1, 2, 3 } ( Contains: 1 and Contains: 2 ) | ||||
| Matchers.tests.cpp:<line number>: passed: v, Equals(v) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: empty, Equals(empty) for: {  } Equals: {  } | ||||
| Matchers.tests.cpp:<line number>: passed: v, Equals<int>({ 1, 2, 3 }) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, Equals(v2) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, (Equals<int, std::allocator<int>, CustomAllocator<int>>(v2)) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, Equals(v6) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, UnorderedEquals(v) for: { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, UnorderedEquals<int>({ 3, 2, 1 }) for: { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 } | ||||
| Matchers.tests.cpp:<line number>: passed: empty, UnorderedEquals(empty) for: {  } UnorderedEquals: {  } | ||||
| Matchers.tests.cpp:<line number>: passed: permuted, UnorderedEquals(v) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: permuted, UnorderedEquals(v) for: { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, (UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>(permuted)) for: { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5_permuted, UnorderedEquals(v5) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: v, VectorContains(-1) for: { 1, 2, 3 } Contains: -1 | ||||
| Matchers.tests.cpp:<line number>: failed: empty, VectorContains(1) for: {  } Contains: 1 | ||||
| Matchers.tests.cpp:<line number>: failed: empty, Contains(v) for: {  } Contains: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: v, Contains(v2) for: { 1, 2, 3 } Contains: { 1, 2, 4 } | ||||
| Matchers.tests.cpp:<line number>: failed: v, Equals(v2) for: { 1, 2, 3 } Equals: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number>: failed: v2, Equals(v) for: { 1, 2 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: empty, Equals(v) for: {  } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: v, Equals(empty) for: { 1, 2, 3 } Equals: {  } | ||||
| Matchers.tests.cpp:<line number>: failed: v, UnorderedEquals(empty) for: { 1, 2, 3 } UnorderedEquals: {  } | ||||
| Matchers.tests.cpp:<line number>: failed: empty, UnorderedEquals(v) for: {  } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: permuted, UnorderedEquals(v) for: { 1, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: permuted, UnorderedEquals(v) for: { 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: empty, Approx( empty ) for: {  } is approx: {  } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, Approx( v1 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, Approx<double>( { 1., 2., 3. } ) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, !Approx( temp ) for: { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, !Approx( v2 ) for: { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, Approx( v2 ).margin( 0.5 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, Approx( v2 ).epsilon( 0.5 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| Matchers.tests.cpp:<line number>: passed: v1, Approx( v2 ).epsilon( 0.1 ).scale( 500 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| Matchers.tests.cpp:<line number>: failed: empty, Approx( t1 ) for: {  } is approx: { 1.0, 2.0 } | ||||
| Matchers.tests.cpp:<line number>: failed: v1, Approx( v2 ) for: { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, VectorContains( 1 ) for: { 1, 2, 3 } Contains: 1 | ||||
| Matchers.tests.cpp:<line number>: passed: v, VectorContains( 2 ) for: { 1, 2, 3 } Contains: 2 | ||||
| Matchers.tests.cpp:<line number>: passed: v5, ( VectorContains<int, CustomAllocator<int>>( 2 ) ) for: { 1, 2, 3 } Contains: 2 | ||||
| Matchers.tests.cpp:<line number>: passed: v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, Contains<int>( { 1, 2 } ) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, Contains( empty ) for: { 1, 2, 3 } Contains: {  } | ||||
| Matchers.tests.cpp:<line number>: passed: empty, Contains( empty ) for: {  } Contains: {  } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Contains: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, Contains( v6 ) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, VectorContains( 1 ) && VectorContains( 2 ) for: { 1, 2, 3 } ( Contains: 1 and Contains: 2 ) | ||||
| Matchers.tests.cpp:<line number>: passed: v, Equals( v ) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: empty, Equals( empty ) for: {  } Equals: {  } | ||||
| Matchers.tests.cpp:<line number>: passed: v, Equals<int>( { 1, 2, 3 } ) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, Equals( v2 ) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, ( Equals<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, Equals( v6 ) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, UnorderedEquals( v ) for: { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v, UnorderedEquals<int>( { 3, 2, 1 } ) for: { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 } | ||||
| Matchers.tests.cpp:<line number>: passed: empty, UnorderedEquals( empty ) for: {  } UnorderedEquals: {  } | ||||
| Matchers.tests.cpp:<line number>: passed: permuted, UnorderedEquals( v ) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: permuted, UnorderedEquals( v ) for: { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5, ( UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>( permuted ) ) for: { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 } | ||||
| Matchers.tests.cpp:<line number>: passed: v5_permuted, UnorderedEquals( v5 ) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: v, VectorContains( -1 ) for: { 1, 2, 3 } Contains: -1 | ||||
| Matchers.tests.cpp:<line number>: failed: empty, VectorContains( 1 ) for: {  } Contains: 1 | ||||
| Matchers.tests.cpp:<line number>: failed: empty, Contains( v ) for: {  } Contains: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2, 4 } | ||||
| Matchers.tests.cpp:<line number>: failed: v, Equals( v2 ) for: { 1, 2, 3 } Equals: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number>: failed: v2, Equals( v ) for: { 1, 2 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: empty, Equals( v ) for: {  } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: v, Equals( empty ) for: { 1, 2, 3 } Equals: {  } | ||||
| Matchers.tests.cpp:<line number>: failed: v, UnorderedEquals( empty ) for: { 1, 2, 3 } UnorderedEquals: {  } | ||||
| Matchers.tests.cpp:<line number>: failed: empty, UnorderedEquals( v ) for: {  } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: permuted, UnorderedEquals( v ) for: { 1, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number>: failed: permuted, UnorderedEquals( v ) for: { 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), std::domain_error | ||||
| Exception.tests.cpp:<line number>: passed: thisDoesntThrow() | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows() | ||||
|   | ||||
| @@ -332,13 +332,13 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Contains("not there", Catch::CaseSensitive::No) ) | ||||
|   CHECK_THAT( testStringForMatching(), Contains( "not there", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" contains: "not there" (case | ||||
|   insensitive) | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Contains("STRING") ) | ||||
|   CHECK_THAT( testStringForMatching(), Contains( "STRING" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" contains: "STRING" | ||||
|  | ||||
| @@ -381,12 +381,12 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), EndsWith("Substring") ) | ||||
|   CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" ends with: "Substring" | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No) ) | ||||
|   CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" ends with: "this" (case | ||||
|   insensitive) | ||||
| @@ -469,13 +469,13 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Equals("this string contains 'ABC' as a substring") ) | ||||
|   CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" equals: "this string contains | ||||
|   'ABC' as a substring" | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Equals("something else", Catch::CaseSensitive::No) ) | ||||
|   CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" equals: "something else" (case | ||||
|   insensitive) | ||||
| @@ -488,11 +488,11 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} ) | ||||
|   CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| because no exception was thrown where one was expected: | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} ) | ||||
|   REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| because no exception was thrown where one was expected: | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| @@ -503,12 +503,12 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} ) | ||||
|   CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| due to unexpected exception with message: | ||||
|   Unknown exception | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   REQUIRE_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} ) | ||||
|   REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| due to unexpected exception with message: | ||||
|   Unknown exception | ||||
|  | ||||
| @@ -520,12 +520,12 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THROWS_MATCHES( throwsSpecialException(3), SpecialException, ExceptionMatcher{1} ) | ||||
|   CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| with expansion: | ||||
|   SpecialException::what special exception has value of 1 | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   REQUIRE_THROWS_MATCHES( throwsSpecialException(4), SpecialException, ExceptionMatcher{1} ) | ||||
|   REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| with expansion: | ||||
|   SpecialException::what special exception has value of 1 | ||||
|  | ||||
| @@ -678,7 +678,7 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random") ) | ||||
|   CHECK_THAT( testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" ( ( contains: "string" or | ||||
|   contains: "different" ) and contains: "random" ) | ||||
| @@ -690,7 +690,7 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), !Contains("substring") ) | ||||
|   CHECK_THAT( testStringForMatching(), !Contains( "substring" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" not contains: "substring" | ||||
|  | ||||
| @@ -865,19 +865,19 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Matches("this STRING contains 'abc' as a substring") ) | ||||
|   CHECK_THAT( testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" matches "this STRING contains | ||||
|   'abc' as a substring" case sensitively | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Matches("contains 'abc' as a substring") ) | ||||
|   CHECK_THAT( testStringForMatching(), Matches( "contains 'abc' as a substring" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" matches "contains 'abc' as a | ||||
|   substring" case sensitively | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Matches("this string contains 'abc' as a") ) | ||||
|   CHECK_THAT( testStringForMatching(), Matches( "this string contains 'abc' as a" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" matches "this string contains | ||||
|   'abc' as a" case sensitively | ||||
| @@ -894,12 +894,12 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), StartsWith("This String") ) | ||||
|   CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" starts with: "This String" | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) ) | ||||
|   CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" starts with: "string" (case | ||||
|   insensitive) | ||||
| @@ -966,7 +966,7 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( empty, Approx(t1) ) | ||||
|   CHECK_THAT( empty, Approx( t1 ) ) | ||||
| with expansion: | ||||
|   {  } is approx: { 1.0, 2.0 } | ||||
|  | ||||
| @@ -978,7 +978,7 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( v1, Approx(v2) ) | ||||
|   CHECK_THAT( v1, Approx( v2 ) ) | ||||
| with expansion: | ||||
|   { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 } | ||||
|  | ||||
| @@ -990,12 +990,12 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( v, VectorContains(-1) ) | ||||
|   CHECK_THAT( v, VectorContains( -1 ) ) | ||||
| with expansion: | ||||
|   { 1, 2, 3 } Contains: -1 | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( empty, VectorContains(1) ) | ||||
|   CHECK_THAT( empty, VectorContains( 1 ) ) | ||||
| with expansion: | ||||
|   {  } Contains: 1 | ||||
|  | ||||
| @@ -1007,12 +1007,12 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( empty, Contains(v) ) | ||||
|   CHECK_THAT( empty, Contains( v ) ) | ||||
| with expansion: | ||||
|   {  } Contains: { 1, 2, 3 } | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( v, Contains(v2) ) | ||||
|   CHECK_THAT( v, Contains( v2 ) ) | ||||
| with expansion: | ||||
|   { 1, 2, 3 } Contains: { 1, 2, 4 } | ||||
|  | ||||
| @@ -1024,22 +1024,22 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( v, Equals(v2) ) | ||||
|   CHECK_THAT( v, Equals( v2 ) ) | ||||
| with expansion: | ||||
|   { 1, 2, 3 } Equals: { 1, 2 } | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( v2, Equals(v) ) | ||||
|   CHECK_THAT( v2, Equals( v ) ) | ||||
| with expansion: | ||||
|   { 1, 2 } Equals: { 1, 2, 3 } | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( empty, Equals(v) ) | ||||
|   CHECK_THAT( empty, Equals( v ) ) | ||||
| with expansion: | ||||
|   {  } Equals: { 1, 2, 3 } | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( v, Equals(empty) ) | ||||
|   CHECK_THAT( v, Equals( empty ) ) | ||||
| with expansion: | ||||
|   { 1, 2, 3 } Equals: {  } | ||||
|  | ||||
| @@ -1051,22 +1051,22 @@ Matchers.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( v, UnorderedEquals(empty) ) | ||||
|   CHECK_THAT( v, UnorderedEquals( empty ) ) | ||||
| with expansion: | ||||
|   { 1, 2, 3 } UnorderedEquals: {  } | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( empty, UnorderedEquals(v) ) | ||||
|   CHECK_THAT( empty, UnorderedEquals( v ) ) | ||||
| with expansion: | ||||
|   {  } UnorderedEquals: { 1, 2, 3 } | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( permuted, UnorderedEquals(v) ) | ||||
|   CHECK_THAT( permuted, UnorderedEquals( v ) ) | ||||
| with expansion: | ||||
|   { 1, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
|  | ||||
| Matchers.tests.cpp:<line number>: FAILED: | ||||
|   CHECK_THAT( permuted, UnorderedEquals(v) ) | ||||
|   CHECK_THAT( permuted, UnorderedEquals( v ) ) | ||||
| with expansion: | ||||
|   { 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
|  | ||||
|   | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -396,17 +396,17 @@ Exception.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="Composed matchers shortcircuit/MatchAllOf" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Composed matchers shortcircuit/MatchAnyOf" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Contains string matcher" time="{duration}" status="run"> | ||||
|       <failure message="testStringForMatching(), Contains("not there", Catch::CaseSensitive::No)" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), Contains( "not there", Catch::CaseSensitive::No )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Contains("not there", Catch::CaseSensitive::No) ) | ||||
|   CHECK_THAT( testStringForMatching(), Contains( "not there", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" contains: "not there" (case | ||||
|   insensitive) | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="testStringForMatching(), Contains("STRING")" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), Contains( "STRING" )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Contains("STRING") ) | ||||
|   CHECK_THAT( testStringForMatching(), Contains( "STRING" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" contains: "STRING" | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -441,16 +441,16 @@ Exception.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="Default scale is invisible to comparison" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Directly creating an EnumInfo" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="EndsWith string matcher" time="{duration}" status="run"> | ||||
|       <failure message="testStringForMatching(), EndsWith("Substring")" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), EndsWith( "Substring" )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), EndsWith("Substring") ) | ||||
|   CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" ends with: "Substring" | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No)" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No) ) | ||||
|   CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" ends with: "this" (case | ||||
|   insensitive) | ||||
| @@ -556,17 +556,17 @@ Condition.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="Equality checks that should succeed" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Equals" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Equals string matcher" time="{duration}" status="run"> | ||||
|       <failure message="testStringForMatching(), Equals("this string contains 'ABC' as a substring")" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), Equals( "this string contains 'ABC' as a substring" )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Equals("this string contains 'ABC' as a substring") ) | ||||
|   CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" equals: "this string contains | ||||
|   'ABC' as a substring" | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="testStringForMatching(), Equals("something else", Catch::CaseSensitive::No)" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Equals("something else", Catch::CaseSensitive::No) ) | ||||
|   CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" equals: "something else" (case | ||||
|   insensitive) | ||||
| @@ -575,42 +575,42 @@ Matchers.tests.cpp:<line number> | ||||
|     </testcase> | ||||
|     <testcase classname="<exe-name>.global" name="Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Exception matchers that fail/No exception" time="{duration}" status="run"> | ||||
|       <failure message="doesNotThrow(), SpecialException, ExceptionMatcher{1}" type="CHECK_THROWS_MATCHES"> | ||||
|       <failure message="doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }" type="CHECK_THROWS_MATCHES"> | ||||
| FAILED: | ||||
|   CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} ) | ||||
|   CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="doesNotThrow(), SpecialException, ExceptionMatcher{1}" type="REQUIRE_THROWS_MATCHES"> | ||||
|       <failure message="doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }" type="REQUIRE_THROWS_MATCHES"> | ||||
| FAILED: | ||||
|   REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} ) | ||||
|   REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testcase> | ||||
|     <testcase classname="<exe-name>.global" name="Exception matchers that fail/Type mismatch" time="{duration}" status="run"> | ||||
|       <error message="throwsAsInt(1), SpecialException, ExceptionMatcher{1}" type="CHECK_THROWS_MATCHES"> | ||||
|       <error message="throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }" type="CHECK_THROWS_MATCHES"> | ||||
| FAILED: | ||||
|   CHECK_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} ) | ||||
|   CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| Unknown exception | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </error> | ||||
|       <error message="throwsAsInt(1), SpecialException, ExceptionMatcher{1}" type="REQUIRE_THROWS_MATCHES"> | ||||
|       <error message="throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }" type="REQUIRE_THROWS_MATCHES"> | ||||
| FAILED: | ||||
|   REQUIRE_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} ) | ||||
|   REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| Unknown exception | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </error> | ||||
|     </testcase> | ||||
|     <testcase classname="<exe-name>.global" name="Exception matchers that fail/Contents are wrong" time="{duration}" status="run"> | ||||
|       <failure message="throwsSpecialException(3), SpecialException, ExceptionMatcher{1}" type="CHECK_THROWS_MATCHES"> | ||||
|       <failure message="throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 }" type="CHECK_THROWS_MATCHES"> | ||||
| FAILED: | ||||
|   CHECK_THROWS_MATCHES( throwsSpecialException(3), SpecialException, ExceptionMatcher{1} ) | ||||
|   CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| with expansion: | ||||
|   SpecialException::what special exception has value of 1 | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="throwsSpecialException(4), SpecialException, ExceptionMatcher{1}" type="REQUIRE_THROWS_MATCHES"> | ||||
|       <failure message="throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 }" type="REQUIRE_THROWS_MATCHES"> | ||||
| FAILED: | ||||
|   REQUIRE_THROWS_MATCHES( throwsSpecialException(4), SpecialException, ExceptionMatcher{1} ) | ||||
|   REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| with expansion: | ||||
|   SpecialException::what special exception has value of 1 | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -798,9 +798,9 @@ Condition.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="Matchers can be (AnyOf) composed with the || operator" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Matchers can be composed with both && and ||" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Matchers can be composed with both && and || - failing" time="{duration}" status="run"> | ||||
|       <failure message="testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random")" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random") ) | ||||
|   CHECK_THAT( testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" ( ( contains: "string" or | ||||
|   contains: "different" ) and contains: "random" ) | ||||
| @@ -809,9 +809,9 @@ Matchers.tests.cpp:<line number> | ||||
|     </testcase> | ||||
|     <testcase classname="<exe-name>.global" name="Matchers can be negated (Not) with the ! operator" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Matchers can be negated (Not) with the ! operator - failing" time="{duration}" status="run"> | ||||
|       <failure message="testStringForMatching(), !Contains("substring")" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), !Contains( "substring" )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), !Contains("substring") ) | ||||
|   CHECK_THAT( testStringForMatching(), !Contains( "substring" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" not contains: "substring" | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -1075,25 +1075,25 @@ Decomposition.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testcase> | ||||
|     <testcase classname="<exe-name>.global" name="Regex string matcher" time="{duration}" status="run"> | ||||
|       <failure message="testStringForMatching(), Matches("this STRING contains 'abc' as a substring")" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Matches("this STRING contains 'abc' as a substring") ) | ||||
|   CHECK_THAT( testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" matches "this STRING contains | ||||
|   'abc' as a substring" case sensitively | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="testStringForMatching(), Matches("contains 'abc' as a substring")" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), Matches( "contains 'abc' as a substring" )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Matches("contains 'abc' as a substring") ) | ||||
|   CHECK_THAT( testStringForMatching(), Matches( "contains 'abc' as a substring" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" matches "contains 'abc' as a | ||||
|   substring" case sensitively | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="testStringForMatching(), Matches("this string contains 'abc' as a")" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), Matches( "this string contains 'abc' as a" )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), Matches("this string contains 'abc' as a") ) | ||||
|   CHECK_THAT( testStringForMatching(), Matches( "this string contains 'abc' as a" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" matches "this string contains | ||||
|   'abc' as a" case sensitively | ||||
| @@ -1154,16 +1154,16 @@ Message from section two | ||||
|       </system-out> | ||||
|     </testcase> | ||||
|     <testcase classname="<exe-name>.global" name="StartsWith string matcher" time="{duration}" status="run"> | ||||
|       <failure message="testStringForMatching(), StartsWith("This String")" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), StartsWith( "This String" )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), StartsWith("This String") ) | ||||
|   CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" starts with: "This String" | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No)" type="CHECK_THAT"> | ||||
|       <failure message="testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) ) | ||||
|   CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
|   "this string contains 'abc' as a substring" starts with: "string" (case | ||||
|   insensitive) | ||||
| @@ -1346,18 +1346,18 @@ Exception.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="Vector Approx matcher/Vectors with elements/Different length" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Vector Approx matcher/Vectors with elements/Same length, different elements" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Vector Approx matcher -- failing/Empty and non empty vectors are not approx equal" time="{duration}" status="run"> | ||||
|       <failure message="empty, Approx(t1)" type="CHECK_THAT"> | ||||
|       <failure message="empty, Approx( t1 )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( empty, Approx(t1) ) | ||||
|   CHECK_THAT( empty, Approx( t1 ) ) | ||||
| with expansion: | ||||
|   {  } is approx: { 1.0, 2.0 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testcase> | ||||
|     <testcase classname="<exe-name>.global" name="Vector Approx matcher -- failing/Just different vectors" time="{duration}" status="run"> | ||||
|       <failure message="v1, Approx(v2)" type="CHECK_THAT"> | ||||
|       <failure message="v1, Approx( v2 )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( v1, Approx(v2) ) | ||||
|   CHECK_THAT( v1, Approx( v2 ) ) | ||||
| with expansion: | ||||
|   { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 } | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -1369,92 +1369,92 @@ Matchers.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="Vector matchers/Equals" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Vector matchers/UnorderedEquals" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Vector matchers that fail/Contains (element)" time="{duration}" status="run"> | ||||
|       <failure message="v, VectorContains(-1)" type="CHECK_THAT"> | ||||
|       <failure message="v, VectorContains( -1 )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( v, VectorContains(-1) ) | ||||
|   CHECK_THAT( v, VectorContains( -1 ) ) | ||||
| with expansion: | ||||
|   { 1, 2, 3 } Contains: -1 | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="empty, VectorContains(1)" type="CHECK_THAT"> | ||||
|       <failure message="empty, VectorContains( 1 )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( empty, VectorContains(1) ) | ||||
|   CHECK_THAT( empty, VectorContains( 1 ) ) | ||||
| with expansion: | ||||
|   {  } Contains: 1 | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testcase> | ||||
|     <testcase classname="<exe-name>.global" name="Vector matchers that fail/Contains (vector)" time="{duration}" status="run"> | ||||
|       <failure message="empty, Contains(v)" type="CHECK_THAT"> | ||||
|       <failure message="empty, Contains( v )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( empty, Contains(v) ) | ||||
|   CHECK_THAT( empty, Contains( v ) ) | ||||
| with expansion: | ||||
|   {  } Contains: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="v, Contains(v2)" type="CHECK_THAT"> | ||||
|       <failure message="v, Contains( v2 )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( v, Contains(v2) ) | ||||
|   CHECK_THAT( v, Contains( v2 ) ) | ||||
| with expansion: | ||||
|   { 1, 2, 3 } Contains: { 1, 2, 4 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testcase> | ||||
|     <testcase classname="<exe-name>.global" name="Vector matchers that fail/Equals" time="{duration}" status="run"> | ||||
|       <failure message="v, Equals(v2)" type="CHECK_THAT"> | ||||
|       <failure message="v, Equals( v2 )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( v, Equals(v2) ) | ||||
|   CHECK_THAT( v, Equals( v2 ) ) | ||||
| with expansion: | ||||
|   { 1, 2, 3 } Equals: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="v2, Equals(v)" type="CHECK_THAT"> | ||||
|       <failure message="v2, Equals( v )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( v2, Equals(v) ) | ||||
|   CHECK_THAT( v2, Equals( v ) ) | ||||
| with expansion: | ||||
|   { 1, 2 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="empty, Equals(v)" type="CHECK_THAT"> | ||||
|       <failure message="empty, Equals( v )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( empty, Equals(v) ) | ||||
|   CHECK_THAT( empty, Equals( v ) ) | ||||
| with expansion: | ||||
|   {  } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="v, Equals(empty)" type="CHECK_THAT"> | ||||
|       <failure message="v, Equals( empty )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( v, Equals(empty) ) | ||||
|   CHECK_THAT( v, Equals( empty ) ) | ||||
| with expansion: | ||||
|   { 1, 2, 3 } Equals: {  } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testcase> | ||||
|     <testcase classname="<exe-name>.global" name="Vector matchers that fail/UnorderedEquals" time="{duration}" status="run"> | ||||
|       <failure message="v, UnorderedEquals(empty)" type="CHECK_THAT"> | ||||
|       <failure message="v, UnorderedEquals( empty )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( v, UnorderedEquals(empty) ) | ||||
|   CHECK_THAT( v, UnorderedEquals( empty ) ) | ||||
| with expansion: | ||||
|   { 1, 2, 3 } UnorderedEquals: {  } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="empty, UnorderedEquals(v)" type="CHECK_THAT"> | ||||
|       <failure message="empty, UnorderedEquals( v )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( empty, UnorderedEquals(v) ) | ||||
|   CHECK_THAT( empty, UnorderedEquals( v ) ) | ||||
| with expansion: | ||||
|   {  } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="permuted, UnorderedEquals(v)" type="CHECK_THAT"> | ||||
|       <failure message="permuted, UnorderedEquals( v )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( permuted, UnorderedEquals(v) ) | ||||
|   CHECK_THAT( permuted, UnorderedEquals( v ) ) | ||||
| with expansion: | ||||
|   { 1, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="permuted, UnorderedEquals(v)" type="CHECK_THAT"> | ||||
|       <failure message="permuted, UnorderedEquals( v )" type="CHECK_THAT"> | ||||
| FAILED: | ||||
|   CHECK_THAT( permuted, UnorderedEquals(v) ) | ||||
|   CHECK_THAT( permuted, UnorderedEquals( v ) ) | ||||
| with expansion: | ||||
|   { 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|   | ||||
| @@ -1002,32 +1002,32 @@ Exception.tests.cpp:<line number> | ||||
|     <testCase name="Composed matchers shortcircuit/MatchAllOf" duration="{duration}"/> | ||||
|     <testCase name="Composed matchers shortcircuit/MatchAnyOf" duration="{duration}"/> | ||||
|     <testCase name="Contains string matcher" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Contains("not there", Catch::CaseSensitive::No))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Contains( "not there", Catch::CaseSensitive::No ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), Contains("not there", Catch::CaseSensitive::No) ) | ||||
| 	CHECK_THAT( testStringForMatching(), Contains( "not there", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" contains: "not there" (case insensitive) | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Contains("STRING"))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Contains( "STRING" ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), Contains("STRING") ) | ||||
| 	CHECK_THAT( testStringForMatching(), Contains( "STRING" ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" contains: "STRING" | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testCase> | ||||
|     <testCase name="EndsWith string matcher" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), EndsWith("Substring"))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), EndsWith( "Substring" ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), EndsWith("Substring") ) | ||||
| 	CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" ends with: "Substring" | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No) ) | ||||
| 	CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" ends with: "this" (case insensitive) | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -1035,58 +1035,58 @@ Matchers.tests.cpp:<line number> | ||||
|     </testCase> | ||||
|     <testCase name="Equals" duration="{duration}"/> | ||||
|     <testCase name="Equals string matcher" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Equals("this string contains 'ABC' as a substring"))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), Equals("this string contains 'ABC' as a substring") ) | ||||
| 	CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring" | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Equals("something else", Catch::CaseSensitive::No))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), Equals("something else", Catch::CaseSensitive::No) ) | ||||
| 	CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" equals: "something else" (case insensitive) | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testCase> | ||||
|     <testCase name="Exception matchers that fail/No exception" duration="{duration}"> | ||||
|       <failure message="CHECK_THROWS_MATCHES(doesNotThrow(), SpecialException, ExceptionMatcher{1})"> | ||||
|       <failure message="CHECK_THROWS_MATCHES(doesNotThrow(), SpecialException, ExceptionMatcher{ 1 })"> | ||||
| FAILED: | ||||
| 	CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} ) | ||||
| 	CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="REQUIRE_THROWS_MATCHES(doesNotThrow(), SpecialException, ExceptionMatcher{1})"> | ||||
|       <failure message="REQUIRE_THROWS_MATCHES(doesNotThrow(), SpecialException, ExceptionMatcher{ 1 })"> | ||||
| FAILED: | ||||
| 	REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} ) | ||||
| 	REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testCase> | ||||
|     <testCase name="Exception matchers that fail/Type mismatch" duration="{duration}"> | ||||
|       <error message="CHECK_THROWS_MATCHES(throwsAsInt(1), SpecialException, ExceptionMatcher{1})"> | ||||
|       <error message="CHECK_THROWS_MATCHES(throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 })"> | ||||
| FAILED: | ||||
| 	CHECK_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} ) | ||||
| 	CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| Unknown exception | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </error> | ||||
|       <error message="REQUIRE_THROWS_MATCHES(throwsAsInt(1), SpecialException, ExceptionMatcher{1})"> | ||||
|       <error message="REQUIRE_THROWS_MATCHES(throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 })"> | ||||
| FAILED: | ||||
| 	REQUIRE_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} ) | ||||
| 	REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| Unknown exception | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </error> | ||||
|     </testCase> | ||||
|     <testCase name="Exception matchers that fail/Contents are wrong" duration="{duration}"> | ||||
|       <failure message="CHECK_THROWS_MATCHES(throwsSpecialException(3), SpecialException, ExceptionMatcher{1})"> | ||||
|       <failure message="CHECK_THROWS_MATCHES(throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 })"> | ||||
| FAILED: | ||||
| 	CHECK_THROWS_MATCHES( throwsSpecialException(3), SpecialException, ExceptionMatcher{1} ) | ||||
| 	CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| with expansion: | ||||
| 	SpecialException::what special exception has value of 1 | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="REQUIRE_THROWS_MATCHES(throwsSpecialException(4), SpecialException, ExceptionMatcher{1})"> | ||||
|       <failure message="REQUIRE_THROWS_MATCHES(throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 })"> | ||||
| FAILED: | ||||
| 	REQUIRE_THROWS_MATCHES( throwsSpecialException(4), SpecialException, ExceptionMatcher{1} ) | ||||
| 	REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } ) | ||||
| with expansion: | ||||
| 	SpecialException::what special exception has value of 1 | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -1110,9 +1110,9 @@ Matchers.tests.cpp:<line number> | ||||
|     <testCase name="Matchers can be (AnyOf) composed with the || operator" duration="{duration}"/> | ||||
|     <testCase name="Matchers can be composed with both && and ||" duration="{duration}"/> | ||||
|     <testCase name="Matchers can be composed with both && and || - failing" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random"))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random") ) | ||||
| 	CHECK_THAT( testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" ) | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -1120,9 +1120,9 @@ Matchers.tests.cpp:<line number> | ||||
|     </testCase> | ||||
|     <testCase name="Matchers can be negated (Not) with the ! operator" duration="{duration}"/> | ||||
|     <testCase name="Matchers can be negated (Not) with the ! operator - failing" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), !Contains("substring"))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), !Contains( "substring" ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), !Contains("substring") ) | ||||
| 	CHECK_THAT( testStringForMatching(), !Contains( "substring" ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" not contains: "substring" | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -1131,23 +1131,23 @@ Matchers.tests.cpp:<line number> | ||||
|     <testCase name="Overloaded comma or address-of operators are not used" duration="{duration}"/> | ||||
|     <testCase name="Predicate matcher can accept const char*" duration="{duration}"/> | ||||
|     <testCase name="Regex string matcher" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Matches("this STRING contains 'abc' as a substring"))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), Matches("this STRING contains 'abc' as a substring") ) | ||||
| 	CHECK_THAT( testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Matches("contains 'abc' as a substring"))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Matches( "contains 'abc' as a substring" ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), Matches("contains 'abc' as a substring") ) | ||||
| 	CHECK_THAT( testStringForMatching(), Matches( "contains 'abc' as a substring" ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Matches("this string contains 'abc' as a"))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), Matches( "this string contains 'abc' as a" ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), Matches("this string contains 'abc' as a") ) | ||||
| 	CHECK_THAT( testStringForMatching(), Matches( "this string contains 'abc' as a" ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" matches "this string contains 'abc' as a" case sensitively | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -1155,16 +1155,16 @@ Matchers.tests.cpp:<line number> | ||||
|     </testCase> | ||||
|     <testCase name="Regression test #1" duration="{duration}"/> | ||||
|     <testCase name="StartsWith string matcher" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), StartsWith("This String"))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), StartsWith( "This String" ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), StartsWith("This String") ) | ||||
| 	CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" starts with: "This String" | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No))"> | ||||
|       <failure message="CHECK_THAT(testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) ) | ||||
| 	CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) ) | ||||
| with expansion: | ||||
| 	"this string contains 'abc' as a substring" starts with: "string" (case insensitive) | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -1176,18 +1176,18 @@ Matchers.tests.cpp:<line number> | ||||
|     <testCase name="Vector Approx matcher/Vectors with elements/Different length" duration="{duration}"/> | ||||
|     <testCase name="Vector Approx matcher/Vectors with elements/Same length, different elements" duration="{duration}"/> | ||||
|     <testCase name="Vector Approx matcher -- failing/Empty and non empty vectors are not approx equal" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(empty, Approx(t1))"> | ||||
|       <failure message="CHECK_THAT(empty, Approx( t1 ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( empty, Approx(t1) ) | ||||
| 	CHECK_THAT( empty, Approx( t1 ) ) | ||||
| with expansion: | ||||
| 	{  } is approx: { 1.0, 2.0 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testCase> | ||||
|     <testCase name="Vector Approx matcher -- failing/Just different vectors" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(v1, Approx(v2))"> | ||||
|       <failure message="CHECK_THAT(v1, Approx( v2 ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( v1, Approx(v2) ) | ||||
| 	CHECK_THAT( v1, Approx( v2 ) ) | ||||
| with expansion: | ||||
| 	{ 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 } | ||||
| Matchers.tests.cpp:<line number> | ||||
| @@ -1199,92 +1199,92 @@ Matchers.tests.cpp:<line number> | ||||
|     <testCase name="Vector matchers/Equals" duration="{duration}"/> | ||||
|     <testCase name="Vector matchers/UnorderedEquals" duration="{duration}"/> | ||||
|     <testCase name="Vector matchers that fail/Contains (element)" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(v, VectorContains(-1))"> | ||||
|       <failure message="CHECK_THAT(v, VectorContains( -1 ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( v, VectorContains(-1) ) | ||||
| 	CHECK_THAT( v, VectorContains( -1 ) ) | ||||
| with expansion: | ||||
| 	{ 1, 2, 3 } Contains: -1 | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(empty, VectorContains(1))"> | ||||
|       <failure message="CHECK_THAT(empty, VectorContains( 1 ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( empty, VectorContains(1) ) | ||||
| 	CHECK_THAT( empty, VectorContains( 1 ) ) | ||||
| with expansion: | ||||
| 	{  } Contains: 1 | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testCase> | ||||
|     <testCase name="Vector matchers that fail/Contains (vector)" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(empty, Contains(v))"> | ||||
|       <failure message="CHECK_THAT(empty, Contains( v ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( empty, Contains(v) ) | ||||
| 	CHECK_THAT( empty, Contains( v ) ) | ||||
| with expansion: | ||||
| 	{  } Contains: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(v, Contains(v2))"> | ||||
|       <failure message="CHECK_THAT(v, Contains( v2 ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( v, Contains(v2) ) | ||||
| 	CHECK_THAT( v, Contains( v2 ) ) | ||||
| with expansion: | ||||
| 	{ 1, 2, 3 } Contains: { 1, 2, 4 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testCase> | ||||
|     <testCase name="Vector matchers that fail/Equals" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(v, Equals(v2))"> | ||||
|       <failure message="CHECK_THAT(v, Equals( v2 ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( v, Equals(v2) ) | ||||
| 	CHECK_THAT( v, Equals( v2 ) ) | ||||
| with expansion: | ||||
| 	{ 1, 2, 3 } Equals: { 1, 2 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(v2, Equals(v))"> | ||||
|       <failure message="CHECK_THAT(v2, Equals( v ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( v2, Equals(v) ) | ||||
| 	CHECK_THAT( v2, Equals( v ) ) | ||||
| with expansion: | ||||
| 	{ 1, 2 } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(empty, Equals(v))"> | ||||
|       <failure message="CHECK_THAT(empty, Equals( v ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( empty, Equals(v) ) | ||||
| 	CHECK_THAT( empty, Equals( v ) ) | ||||
| with expansion: | ||||
| 	{  } Equals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(v, Equals(empty))"> | ||||
|       <failure message="CHECK_THAT(v, Equals( empty ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( v, Equals(empty) ) | ||||
| 	CHECK_THAT( v, Equals( empty ) ) | ||||
| with expansion: | ||||
| 	{ 1, 2, 3 } Equals: {  } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|     </testCase> | ||||
|     <testCase name="Vector matchers that fail/UnorderedEquals" duration="{duration}"> | ||||
|       <failure message="CHECK_THAT(v, UnorderedEquals(empty))"> | ||||
|       <failure message="CHECK_THAT(v, UnorderedEquals( empty ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( v, UnorderedEquals(empty) ) | ||||
| 	CHECK_THAT( v, UnorderedEquals( empty ) ) | ||||
| with expansion: | ||||
| 	{ 1, 2, 3 } UnorderedEquals: {  } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(empty, UnorderedEquals(v))"> | ||||
|       <failure message="CHECK_THAT(empty, UnorderedEquals( v ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( empty, UnorderedEquals(v) ) | ||||
| 	CHECK_THAT( empty, UnorderedEquals( v ) ) | ||||
| with expansion: | ||||
| 	{  } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(permuted, UnorderedEquals(v))"> | ||||
|       <failure message="CHECK_THAT(permuted, UnorderedEquals( v ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( permuted, UnorderedEquals(v) ) | ||||
| 	CHECK_THAT( permuted, UnorderedEquals( v ) ) | ||||
| with expansion: | ||||
| 	{ 1, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|       </failure> | ||||
|       <failure message="CHECK_THAT(permuted, UnorderedEquals(v))"> | ||||
|       <failure message="CHECK_THAT(permuted, UnorderedEquals( v ))"> | ||||
| FAILED: | ||||
| 	CHECK_THAT( permuted, UnorderedEquals(v) ) | ||||
| 	CHECK_THAT( permuted, UnorderedEquals( v ) ) | ||||
| with expansion: | ||||
| 	{ 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
| Matchers.tests.cpp:<line number> | ||||
|   | ||||
| @@ -579,13 +579,13 @@ ok {test-number} - 1.234f == Approx( dMedium ) for: 1.234f == Approx( 1.234 ) | ||||
| # Approximate comparisons with mixed numeric types | ||||
| ok {test-number} - dMedium == Approx( 1.234f ) for: 1.234 == Approx( 1.2339999676 ) | ||||
| # Arbitrary predicate matcher | ||||
| ok {test-number} - 1, Predicate<int>(alwaysTrue, "always true") for: 1 matches predicate: "always true" | ||||
| ok {test-number} - 1, Predicate<int>( alwaysTrue, "always true" ) for: 1 matches predicate: "always true" | ||||
| # Arbitrary predicate matcher | ||||
| ok {test-number} - 1, !Predicate<int>(alwaysFalse, "always false") for: 1 not matches predicate: "always false" | ||||
| ok {test-number} - 1, !Predicate<int>( alwaysFalse, "always false" ) for: 1 not matches predicate: "always false" | ||||
| # Arbitrary predicate matcher | ||||
| ok {test-number} - "Hello olleH", Predicate<std::string>( [] (std::string const& str) -> bool { return str.front() == str.back(); }, "First and last character should be equal") for: "Hello olleH" matches predicate: "First and last character should be equal" | ||||
| ok {test-number} - "Hello olleH", Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); }, "First and last character should be equal" ) for: "Hello olleH" matches predicate: "First and last character should be equal" | ||||
| # Arbitrary predicate matcher | ||||
| ok {test-number} - "This wouldn't pass", !Predicate<std::string>( [] (std::string const& str) -> bool { return str.front() == str.back(); } ) for: "This wouldn't pass" not matches undescribed predicate | ||||
| ok {test-number} - "This wouldn't pass", !Predicate<std::string>( []( std::string const& str ) -> bool { return str.front() == str.back(); } ) for: "This wouldn't pass" not matches undescribed predicate | ||||
| # Assertion macros support bit operators and bool conversions | ||||
| ok {test-number} - lhs | rhs for: Val: 1 | Val: 2 | ||||
| # Assertion macros support bit operators and bool conversions | ||||
| @@ -691,75 +691,75 @@ ok {test-number} - name.empty() for: true | ||||
| # Clara::Arg supports single-arg parse the way Opt does | ||||
| ok {test-number} - name == "foo" for: "foo" == "foo" | ||||
| # Combining MatchAllOfGeneric does not nest | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype((MatcherA() && MatcherB()) && MatcherC()), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB, MatcherC> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() && MatcherB() ) && MatcherC() ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value' | ||||
| # Combining MatchAllOfGeneric does not nest | ||||
| ok {test-number} - 1, (MatcherA() && MatcherB()) && MatcherC() for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 ) | ||||
| ok {test-number} - 1, ( MatcherA() && MatcherB() ) && MatcherC() for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 ) | ||||
| # Combining MatchAllOfGeneric does not nest | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype(MatcherA() && (MatcherB() && MatcherC())), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB, MatcherC> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype( MatcherA() && ( MatcherB() && MatcherC() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC>>::value' | ||||
| # Combining MatchAllOfGeneric does not nest | ||||
| ok {test-number} - 1, MatcherA() && (MatcherB() && MatcherC()) for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 ) | ||||
| ok {test-number} - 1, MatcherA() && ( MatcherB() && MatcherC() ) for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 ) | ||||
| # Combining MatchAllOfGeneric does not nest | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype((MatcherA() && MatcherB()) && (MatcherC() && MatcherD())), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD>>:: value' | ||||
| # Combining MatchAllOfGeneric does not nest | ||||
| ok {test-number} - 1, (MatcherA() && MatcherB()) && (MatcherC() && MatcherD()) for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 and equals: true ) | ||||
| ok {test-number} - 1, ( MatcherA() && MatcherB() ) && ( MatcherC() && MatcherD() ) for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 and equals: true ) | ||||
| # Combining MatchAnyOfGeneric does not nest | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype((MatcherA() || MatcherB()) || MatcherC()), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() || MatcherB() ) || MatcherC() ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value' | ||||
| # Combining MatchAnyOfGeneric does not nest | ||||
| ok {test-number} - 1, (MatcherA() || MatcherB()) || MatcherC() for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 ) | ||||
| ok {test-number} - 1, ( MatcherA() || MatcherB() ) || MatcherC() for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 ) | ||||
| # Combining MatchAnyOfGeneric does not nest | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype(MatcherA() || (MatcherB() || MatcherC())), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype( MatcherA() || ( MatcherB() || MatcherC() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC>>::value' | ||||
| # Combining MatchAnyOfGeneric does not nest | ||||
| ok {test-number} - 1, MatcherA() || (MatcherB() || MatcherC()) for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 ) | ||||
| ok {test-number} - 1, MatcherA() || ( MatcherB() || MatcherC() ) for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 ) | ||||
| # Combining MatchAnyOfGeneric does not nest | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype((MatcherA() || MatcherB()) || (MatcherC() || MatcherD())), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype( ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD>>:: value' | ||||
| # Combining MatchAnyOfGeneric does not nest | ||||
| ok {test-number} - 1, (MatcherA() || MatcherB()) || (MatcherC() || MatcherD()) for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 or equals: true ) | ||||
| ok {test-number} - 1, ( MatcherA() || MatcherB() ) || ( MatcherC() || MatcherD() ) for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 or equals: true ) | ||||
| # Combining MatchNotOfGeneric does not nest | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype(!MatcherA()), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype( !MatcherA() ), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA>>::value' | ||||
| # Combining MatchNotOfGeneric does not nest | ||||
| ok {test-number} - 0, !MatcherA() for: 0 not equals: (int) 1 or (float) 1.0f | ||||
| # Combining MatchNotOfGeneric does not nest | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype(!!MatcherA()), MatcherA const& >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same<decltype( !!MatcherA() ), MatcherA const&>::value' | ||||
| # Combining MatchNotOfGeneric does not nest | ||||
| ok {test-number} - 1, !!MatcherA() for: 1 equals: (int) 1 or (float) 1.0f | ||||
| # Combining MatchNotOfGeneric does not nest | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype(!!!MatcherA()), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype( !!!MatcherA() ), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA>>::value' | ||||
| # Combining MatchNotOfGeneric does not nest | ||||
| ok {test-number} - 0, !!!MatcherA() for: 0 not equals: (int) 1 or (float) 1.0f | ||||
| # Combining MatchNotOfGeneric does not nest | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype(!!!!MatcherA()), MatcherA const & >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same<decltype( !!!!MatcherA() ), MatcherA const&>::value' | ||||
| # Combining MatchNotOfGeneric does not nest | ||||
| ok {test-number} - 1, !!!!MatcherA() for: 1 equals: (int) 1 or (float) 1.0f | ||||
| # Combining concrete matchers does not use templated matchers | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype(StartsWith("foo") || (StartsWith("bar") && EndsWith("bar") && !EndsWith("foo"))), Catch::Matchers::Detail::MatchAnyOf<std::string> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same<decltype( StartsWith( "foo" ) || ( StartsWith( "bar" ) && EndsWith( "bar" ) && !EndsWith( "foo" ) ) ), Catch::Matchers::Detail::MatchAnyOf<std::string>>::value' | ||||
| # Combining only templated matchers | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype(MatcherA() || MatcherB()), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same<decltype( MatcherA() || MatcherB() ), Catch::Matchers::Detail:: MatchAnyOfGeneric<MatcherA, MatcherB>>::value' | ||||
| # Combining only templated matchers | ||||
| ok {test-number} - 1, MatcherA() || MatcherB() for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 ) | ||||
| # Combining only templated matchers | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype(MatcherA() && MatcherB()), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same<decltype( MatcherA() && MatcherB() ), Catch::Matchers::Detail:: MatchAllOfGeneric<MatcherA, MatcherB>>::value' | ||||
| # Combining only templated matchers | ||||
| ok {test-number} - 1, MatcherA() && MatcherB() for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 ) | ||||
| # Combining only templated matchers | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype(MatcherA() || !MatcherB()), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric<MatcherB>> >::value' | ||||
| ok {test-number} - with 1 message: 'std::is_same< decltype( MatcherA() || !MatcherB() ), Catch::Matchers::Detail::MatchAnyOfGeneric< MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric<MatcherB>>>::value' | ||||
| # Combining only templated matchers | ||||
| ok {test-number} - 1, MatcherA() || !MatcherB() for: 1 ( equals: (int) 1 or (float) 1.0f or not equals: (long long) 1 ) | ||||
| # Combining templated and concrete matchers | ||||
| ok {test-number} - 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) for: { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5, 3, 1 } ) | ||||
| ok {test-number} - 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 ) for: { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5, 3, 1 } ) | ||||
| # Combining templated and concrete matchers | ||||
| ok {test-number} - str, StartsWith("foo") && EqualsRange(arr) && EndsWith("bar") for: "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and ends with: "bar" ) | ||||
| ok {test-number} - str, StartsWith( "foo" ) && EqualsRange( arr ) && EndsWith( "bar" ) for: "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and ends with: "bar" ) | ||||
| # Combining templated and concrete matchers | ||||
| ok {test-number} - str, StartsWith("foo") && !EqualsRange(bad_arr) && EndsWith("bar") for: "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and ends with: "bar" ) | ||||
| ok {test-number} - str, StartsWith( "foo" ) && !EqualsRange( bad_arr ) && EndsWith( "bar" ) for: "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and ends with: "bar" ) | ||||
| # Combining templated and concrete matchers | ||||
| ok {test-number} - str, EqualsRange(arr) && StartsWith("foo") && EndsWith("bar") for: "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" ) | ||||
| ok {test-number} - str, EqualsRange( arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) for: "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" ) | ||||
| # Combining templated and concrete matchers | ||||
| ok {test-number} - str, !EqualsRange(bad_arr) && StartsWith("foo") && EndsWith("bar") for: "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" ) | ||||
| ok {test-number} - str, !EqualsRange( bad_arr ) && StartsWith( "foo" ) && EndsWith( "bar" ) for: "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" ) | ||||
| # Combining templated and concrete matchers | ||||
| ok {test-number} - str, EqualsRange(bad_arr) || (StartsWith("foo") && EndsWith("bar")) for: "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo" and ends with: "bar" ) ) | ||||
| ok {test-number} - str, EqualsRange( bad_arr ) || ( StartsWith( "foo" ) && EndsWith( "bar" ) ) for: "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo" and ends with: "bar" ) ) | ||||
| # Combining templated and concrete matchers | ||||
| ok {test-number} - str, (StartsWith("foo") && EndsWith("bar")) || EqualsRange(bad_arr) for: "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } ) | ||||
| ok {test-number} - str, ( StartsWith( "foo" ) && EndsWith( "bar" ) ) || EqualsRange( bad_arr ) for: "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } ) | ||||
| # Combining templated matchers | ||||
| ok {test-number} - container, EqualsRange(a) || EqualsRange(b) || EqualsRange(c) for: { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6 } ) | ||||
| ok {test-number} - container, EqualsRange( a ) || EqualsRange( b ) || EqualsRange( c ) for: { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6 } ) | ||||
| # Commas in various macros are allowed | ||||
| ok {test-number} - std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} | ||||
| # Commas in various macros are allowed | ||||
| @@ -867,7 +867,7 @@ ok {test-number} - first.matchCalled for: true | ||||
| # Composed generic matchers shortcircuit | ||||
| ok {test-number} - !second.matchCalled for: true | ||||
| # Composed generic matchers shortcircuit | ||||
| ok {test-number} - matcher.match(1) for: true | ||||
| ok {test-number} - matcher.match( 1 ) for: true | ||||
| # Composed generic matchers shortcircuit | ||||
| ok {test-number} - first.matchCalled for: true | ||||
| # Composed generic matchers shortcircuit | ||||
| @@ -885,9 +885,9 @@ ok {test-number} - first.matchCalled for: true | ||||
| # Composed matchers shortcircuit | ||||
| ok {test-number} - !second.matchCalled for: true | ||||
| # Contains string matcher | ||||
| not ok {test-number} - testStringForMatching(), Contains("not there", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" contains: "not there" (case insensitive) | ||||
| not ok {test-number} - testStringForMatching(), Contains( "not there", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "not there" (case insensitive) | ||||
| # Contains string matcher | ||||
| not ok {test-number} - testStringForMatching(), Contains("STRING") for: "this string contains 'abc' as a substring" contains: "STRING" | ||||
| not ok {test-number} - testStringForMatching(), Contains( "STRING" ) for: "this string contains 'abc' as a substring" contains: "STRING" | ||||
| # Copy and then generate a range | ||||
| ok {test-number} - elem % 2 == 1 for: 1 == 1 | ||||
| # Copy and then generate a range | ||||
| @@ -933,9 +933,9 @@ ok {test-number} - enumInfo->lookup(1) == "Value2" for: Value2 == "Value2" | ||||
| # Directly creating an EnumInfo | ||||
| ok {test-number} - enumInfo->lookup(3) == "{** unexpected enum value **}" for: {** unexpected enum value **} == "{** unexpected enum value **}" | ||||
| # EndsWith string matcher | ||||
| not ok {test-number} - testStringForMatching(), EndsWith("Substring") for: "this string contains 'abc' as a substring" ends with: "Substring" | ||||
| not ok {test-number} - testStringForMatching(), EndsWith( "Substring" ) for: "this string contains 'abc' as a substring" ends with: "Substring" | ||||
| # EndsWith string matcher | ||||
| not ok {test-number} - testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" ends with: "this" (case insensitive) | ||||
| not ok {test-number} - testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" ends with: "this" (case insensitive) | ||||
| # Enums can quickly have stringification enabled using REGISTER_ENUM | ||||
| ok {test-number} - stringify( EnumClass3::Value1 ) == "Value1" for: "Value1" == "Value1" | ||||
| # Enums can quickly have stringification enabled using REGISTER_ENUM | ||||
| @@ -993,13 +993,13 @@ ok {test-number} - data.str_hello.size() == 5 for: 5 == 5 | ||||
| # Equality checks that should succeed | ||||
| ok {test-number} - x == Approx( 1.3 ) for: 1.3 == Approx( 1.3 ) | ||||
| # Equals | ||||
| ok {test-number} - testStringForMatching(), Equals("this string contains 'abc' as a substring") for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" | ||||
| ok {test-number} - testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" | ||||
| # Equals | ||||
| ok {test-number} - testStringForMatching(), Equals("this string contains 'ABC' as a substring", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" (case insensitive) | ||||
| ok {test-number} - testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" (case insensitive) | ||||
| # Equals string matcher | ||||
| not ok {test-number} - testStringForMatching(), Equals("this string contains 'ABC' as a substring") for: "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring" | ||||
| not ok {test-number} - testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) for: "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring" | ||||
| # Equals string matcher | ||||
| not ok {test-number} - testStringForMatching(), Equals("something else", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" equals: "something else" (case insensitive) | ||||
| not ok {test-number} - testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" equals: "something else" (case insensitive) | ||||
| # Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified | ||||
| ok {test-number} - ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" for: "This exception has overridden what() method" == "This exception has overridden what() method" | ||||
| # Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified | ||||
| @@ -1007,21 +1007,21 @@ ok {test-number} - ::Catch::Detail::stringify(OperatorException{}) == "OperatorE | ||||
| # Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified | ||||
| ok {test-number} - ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" for: "StringMakerException" == "StringMakerException" | ||||
| # Exception matchers that fail | ||||
| not ok {test-number} - expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{1} | ||||
| not ok {test-number} - expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } | ||||
| # Exception matchers that fail | ||||
| not ok {test-number} - expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{1} | ||||
| not ok {test-number} - expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } | ||||
| # Exception matchers that fail | ||||
| not ok {test-number} - unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt(1), SpecialException, ExceptionMatcher{1} | ||||
| not ok {test-number} - unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } | ||||
| # Exception matchers that fail | ||||
| not ok {test-number} - unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt(1), SpecialException, ExceptionMatcher{1} | ||||
| not ok {test-number} - unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } | ||||
| # Exception matchers that fail | ||||
| not ok {test-number} - throwsSpecialException(3), SpecialException, ExceptionMatcher{1} for: SpecialException::what special exception has value of 1 | ||||
| not ok {test-number} - throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1 | ||||
| # Exception matchers that fail | ||||
| not ok {test-number} - throwsSpecialException(4), SpecialException, ExceptionMatcher{1} for: SpecialException::what special exception has value of 1 | ||||
| not ok {test-number} - throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1 | ||||
| # Exception matchers that succeed | ||||
| ok {test-number} - throwsSpecialException(1), SpecialException, ExceptionMatcher{1} for: SpecialException::what special exception has value of 1 | ||||
| ok {test-number} - throwsSpecialException( 1 ), SpecialException, ExceptionMatcher{ 1 } for: SpecialException::what special exception has value of 1 | ||||
| # Exception matchers that succeed | ||||
| ok {test-number} - throwsSpecialException(2), SpecialException, ExceptionMatcher{2} for: SpecialException::what special exception has value of 2 | ||||
| ok {test-number} - throwsSpecialException( 2 ), SpecialException, ExceptionMatcher{ 2 } for: SpecialException::what special exception has value of 2 | ||||
| # Exception messages can be tested for | ||||
| ok {test-number} - thisThrows(), "expected exception" for: "expected exception" equals: "expected exception" | ||||
| # Exception messages can be tested for | ||||
| @@ -1035,13 +1035,13 @@ ok {test-number} - thisThrows(), Contains( "except" ) for: "expected exception" | ||||
| # Exception messages can be tested for | ||||
| ok {test-number} - thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) for: "expected exception" contains: "except" (case insensitive) | ||||
| # Exceptions matchers | ||||
| ok {test-number} - throwsDerivedException(), DerivedException, Message("DerivedException::what") for: DerivedException::what exception message matches "DerivedException::what" | ||||
| ok {test-number} - throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) for: DerivedException::what exception message matches "DerivedException::what" | ||||
| # Exceptions matchers | ||||
| ok {test-number} - throwsDerivedException(), DerivedException, !Message("derivedexception::what") for: DerivedException::what not exception message matches "derivedexception::what" | ||||
| ok {test-number} - throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) for: DerivedException::what not exception message matches "derivedexception::what" | ||||
| # Exceptions matchers | ||||
| ok {test-number} - throwsSpecialException(2), SpecialException, !Message("DerivedException::what") for: SpecialException::what not exception message matches "DerivedException::what" | ||||
| ok {test-number} - throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) for: SpecialException::what not exception message matches "DerivedException::what" | ||||
| # Exceptions matchers | ||||
| ok {test-number} - throwsSpecialException(2), SpecialException, Message("SpecialException::what") for: SpecialException::what exception message matches "SpecialException::what" | ||||
| ok {test-number} - throwsSpecialException( 2 ), SpecialException, Message( "SpecialException::what" ) for: SpecialException::what exception message matches "SpecialException::what" | ||||
| # Expected exceptions that don't throw or unexpected exceptions fail the test | ||||
| not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows(), std::string | ||||
| # Expected exceptions that don't throw or unexpected exceptions fail the test | ||||
| @@ -1067,125 +1067,125 @@ ok {test-number} - Factorial(3) == 6 for: 6 == 6 | ||||
| # Factorials are computed | ||||
| ok {test-number} - Factorial(10) == 3628800 for: 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 10., WithinRel(11.1, 0.1) for: 10.0 and 11.1 are within 10% of each other | ||||
| ok {test-number} - 10., WithinRel( 11.1, 0.1 ) for: 10.0 and 11.1 are within 10% of each other | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 10., !WithinRel(11.2, 0.1) for: 10.0 not and 11.2 are within 10% of each other | ||||
| ok {test-number} - 10., !WithinRel( 11.2, 0.1 ) for: 10.0 not and 11.2 are within 10% of each other | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 1., !WithinRel(0., 0.99) for: 1.0 not and 0 are within 99% of each other | ||||
| ok {test-number} - 1., !WithinRel( 0., 0.99 ) for: 1.0 not and 0 are within 99% of each other | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - -0., WithinRel(0.) for: -0.0 and 0 are within 2.22045e-12% of each other | ||||
| ok {test-number} - -0., WithinRel( 0. ) for: -0.0 and 0 are within 2.22045e-12% of each other | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - v1, WithinRel(v2) for: 0.0 and 2.22507e-308 are within 2.22045e-12% of each other | ||||
| ok {test-number} - v1, WithinRel( v2 ) for: 0.0 and 2.22507e-308 are within 2.22045e-12% of each other | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 1., WithinAbs(1., 0) for: 1.0 is within 0.0 of 1.0 | ||||
| ok {test-number} - 1., WithinAbs( 1., 0 ) for: 1.0 is within 0.0 of 1.0 | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 0., WithinAbs(1., 1) for: 0.0 is within 1.0 of 1.0 | ||||
| ok {test-number} - 0., WithinAbs( 1., 1 ) for: 0.0 is within 1.0 of 1.0 | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 0., !WithinAbs(1., 0.99) for: 0.0 not is within 0.99 of 1.0 | ||||
| ok {test-number} - 0., !WithinAbs( 1., 0.99 ) for: 0.0 not is within 0.99 of 1.0 | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 0., !WithinAbs(1., 0.99) for: 0.0 not is within 0.99 of 1.0 | ||||
| ok {test-number} - 0., !WithinAbs( 1., 0.99 ) for: 0.0 not is within 0.99 of 1.0 | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 11., !WithinAbs(10., 0.5) for: 11.0 not is within 0.5 of 10.0 | ||||
| ok {test-number} - 11., !WithinAbs( 10., 0.5 ) for: 11.0 not is within 0.5 of 10.0 | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 10., !WithinAbs(11., 0.5) for: 10.0 not is within 0.5 of 11.0 | ||||
| ok {test-number} - 10., !WithinAbs( 11., 0.5 ) for: 10.0 not is within 0.5 of 11.0 | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - -10., WithinAbs(-10., 0.5) for: -10.0 is within 0.5 of -10.0 | ||||
| ok {test-number} - -10., WithinAbs( -10., 0.5 ) for: -10.0 is within 0.5 of -10.0 | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - -10., WithinAbs(-9.6, 0.5) for: -10.0 is within 0.5 of -9.6 | ||||
| ok {test-number} - -10., WithinAbs( -9.6, 0.5 ) for: -10.0 is within 0.5 of -9.6 | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 1., WithinULP(1., 0) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) | ||||
| ok {test-number} - 1., WithinULP( 1., 0 ) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - nextafter(1., 2.), WithinULP(1., 1) for: 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.0000000000000002e+00]) | ||||
| ok {test-number} - nextafter( 1., 2. ), WithinULP( 1., 1 ) for: 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.0000000000000002e+00]) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 0., WithinULP(nextafter(0., 1.), 1) for: 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.8813129168249309e-324]) | ||||
| ok {test-number} - 0., WithinULP( nextafter( 0., 1. ), 1 ) for: 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.8813129168249309e-324]) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 1., WithinULP(nextafter(1., 0.), 1) for: 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.0000000000000000e+00]) | ||||
| ok {test-number} - 1., WithinULP( nextafter( 1., 0. ), 1 ) for: 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.0000000000000000e+00]) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 1., !WithinULP(nextafter(1., 2.), 0) for: 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00, 1.0000000000000002e+00]) | ||||
| ok {test-number} - 1., !WithinULP( nextafter( 1., 2. ), 0 ) for: 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00, 1.0000000000000002e+00]) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 1., WithinULP(1., 0) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) | ||||
| ok {test-number} - 1., WithinULP( 1., 0 ) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - -0., WithinULP(0., 0) for: -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.0000000000000000e+00]) | ||||
| ok {test-number} - -0., WithinULP( 0., 0 ) for: -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.0000000000000000e+00]) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 1., WithinAbs(1., 0.5) || WithinULP(2., 1) for: 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.9999999999999998e+00, 2.0000000000000004e+00]) ) | ||||
| ok {test-number} - 1., WithinAbs( 1., 0.5 ) || WithinULP( 2., 1 ) for: 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.9999999999999998e+00, 2.0000000000000004e+00]) ) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 1., WithinAbs(2., 0.5) || WithinULP(1., 0) for: 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) ) | ||||
| ok {test-number} - 1., WithinAbs( 2., 0.5 ) || WithinULP( 1., 0 ) for: 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) ) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - 0.0001, WithinAbs(0., 0.001) || WithinRel(0., 0.1) for: 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other ) | ||||
| ok {test-number} - 0.0001, WithinAbs( 0., 0.001 ) || WithinRel( 0., 0.1 ) for: 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other ) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - WithinAbs(1., 0.) | ||||
| ok {test-number} - WithinAbs( 1., 0. ) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - WithinAbs(1., -1.), std::domain_error | ||||
| ok {test-number} - WithinAbs( 1., -1. ), std::domain_error | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - WithinULP(1., 0) | ||||
| ok {test-number} - WithinULP( 1., 0 ) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - WithinRel(1., 0.) | ||||
| ok {test-number} - WithinRel( 1., 0. ) | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - WithinRel(1., -0.2), std::domain_error | ||||
| ok {test-number} - WithinRel( 1., -0.2 ), std::domain_error | ||||
| # Floating point matchers: double | ||||
| ok {test-number} - WithinRel(1., 1.), std::domain_error | ||||
| ok {test-number} - WithinRel( 1., 1. ), std::domain_error | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 10.f, WithinRel(11.1f, 0.1f) for: 10.0f and 11.1 are within 10% of each other | ||||
| ok {test-number} - 10.f, WithinRel( 11.1f, 0.1f ) for: 10.0f and 11.1 are within 10% of each other | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 10.f, !WithinRel(11.2f, 0.1f) for: 10.0f not and 11.2 are within 10% of each other | ||||
| ok {test-number} - 10.f, !WithinRel( 11.2f, 0.1f ) for: 10.0f not and 11.2 are within 10% of each other | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 1.f, !WithinRel(0.f, 0.99f) for: 1.0f not and 0 are within 99% of each other | ||||
| ok {test-number} - 1.f, !WithinRel( 0.f, 0.99f ) for: 1.0f not and 0 are within 99% of each other | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - -0.f, WithinRel(0.f) for: -0.0f and 0 are within 0.00119209% of each other | ||||
| ok {test-number} - -0.f, WithinRel( 0.f ) for: -0.0f and 0 are within 0.00119209% of each other | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - v1, WithinRel(v2) for: 0.0f and 1.17549e-38 are within 0.00119209% of each other | ||||
| ok {test-number} - v1, WithinRel( v2 ) for: 0.0f and 1.17549e-38 are within 0.00119209% of each other | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 1.f, WithinAbs(1.f, 0) for: 1.0f is within 0.0 of 1.0 | ||||
| ok {test-number} - 1.f, WithinAbs( 1.f, 0 ) for: 1.0f is within 0.0 of 1.0 | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 0.f, WithinAbs(1.f, 1) for: 0.0f is within 1.0 of 1.0 | ||||
| ok {test-number} - 0.f, WithinAbs( 1.f, 1 ) for: 0.0f is within 1.0 of 1.0 | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 0.f, !WithinAbs(1.f, 0.99f) for: 0.0f not is within 0.9900000095 of 1.0 | ||||
| ok {test-number} - 0.f, !WithinAbs( 1.f, 0.99f ) for: 0.0f not is within 0.9900000095 of 1.0 | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 0.f, !WithinAbs(1.f, 0.99f) for: 0.0f not is within 0.9900000095 of 1.0 | ||||
| ok {test-number} - 0.f, !WithinAbs( 1.f, 0.99f ) for: 0.0f not is within 0.9900000095 of 1.0 | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 0.f, WithinAbs(-0.f, 0) for: 0.0f is within 0.0 of -0.0 | ||||
| ok {test-number} - 0.f, WithinAbs( -0.f, 0 ) for: 0.0f is within 0.0 of -0.0 | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 11.f, !WithinAbs(10.f, 0.5f) for: 11.0f not is within 0.5 of 10.0 | ||||
| ok {test-number} - 11.f, !WithinAbs( 10.f, 0.5f ) for: 11.0f not is within 0.5 of 10.0 | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 10.f, !WithinAbs(11.f, 0.5f) for: 10.0f not is within 0.5 of 11.0 | ||||
| ok {test-number} - 10.f, !WithinAbs( 11.f, 0.5f ) for: 10.0f not is within 0.5 of 11.0 | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - -10.f, WithinAbs(-10.f, 0.5f) for: -10.0f is within 0.5 of -10.0 | ||||
| ok {test-number} - -10.f, WithinAbs( -10.f, 0.5f ) for: -10.0f is within 0.5 of -10.0 | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - -10.f, WithinAbs(-9.6f, 0.5f) for: -10.0f is within 0.5 of -9.6000003815 | ||||
| ok {test-number} - -10.f, WithinAbs( -9.6f, 0.5f ) for: -10.0f is within 0.5 of -9.6000003815 | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 1.f, WithinULP(1.f, 0) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) | ||||
| ok {test-number} - 1.f, WithinULP( 1.f, 0 ) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - nextafter(1.f, 2.f), WithinULP(1.f, 1) for: 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) | ||||
| ok {test-number} - nextafter( 1.f, 2.f ), WithinULP( 1.f, 1 ) for: 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 0.f, WithinULP(nextafter(0.f, 1.f), 1) for: 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45]) | ||||
| ok {test-number} - 0.f, WithinULP( nextafter( 0.f, 1.f ), 1 ) for: 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45]) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 1.f, WithinULP(nextafter(1.f, 0.f), 1) for: 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00]) | ||||
| ok {test-number} - 1.f, WithinULP( nextafter( 1.f, 0.f ), 1 ) for: 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00]) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 1.f, !WithinULP(nextafter(1.f, 2.f), 0) for: 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+00]) | ||||
| ok {test-number} - 1.f, !WithinULP( nextafter( 1.f, 2.f ), 0 ) for: 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+00]) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 1.f, WithinULP(1.f, 0) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) | ||||
| ok {test-number} - 1.f, WithinULP( 1.f, 0 ) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - -0.f, WithinULP(0.f, 0) for: -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00]) | ||||
| ok {test-number} - -0.f, WithinULP( 0.f, 0 ) for: -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00]) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 1.f, WithinAbs(1.f, 0.5) || WithinULP(1.f, 1) for: 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) ) | ||||
| ok {test-number} - 1.f, WithinAbs( 1.f, 0.5 ) || WithinULP( 1.f, 1 ) for: 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) ) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 1.f, WithinAbs(2.f, 0.5) || WithinULP(1.f, 0) for: 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) ) | ||||
| ok {test-number} - 1.f, WithinAbs( 2.f, 0.5 ) || WithinULP( 1.f, 0 ) for: 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) ) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - 0.0001f, WithinAbs(0.f, 0.001f) || WithinRel(0.f, 0.1f) for: 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other ) | ||||
| ok {test-number} - 0.0001f, WithinAbs( 0.f, 0.001f ) || WithinRel( 0.f, 0.1f ) for: 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other ) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - WithinAbs(1.f, 0.f) | ||||
| ok {test-number} - WithinAbs( 1.f, 0.f ) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - WithinAbs(1.f, -1.f), std::domain_error | ||||
| ok {test-number} - WithinAbs( 1.f, -1.f ), std::domain_error | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - WithinULP(1.f, 0) | ||||
| ok {test-number} - WithinULP( 1.f, 0 ) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - WithinULP(1.f, static_cast<uint64_t>(-1)), std::domain_error | ||||
| ok {test-number} - WithinULP( 1.f, static_cast<uint64_t>( -1 ) ), std::domain_error | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - WithinRel(1.f, 0.f) | ||||
| ok {test-number} - WithinRel( 1.f, 0.f ) | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - WithinRel(1.f, -0.2f), std::domain_error | ||||
| ok {test-number} - WithinRel( 1.f, -0.2f ), std::domain_error | ||||
| # Floating point matchers: float | ||||
| ok {test-number} - WithinRel(1.f, 1.f), std::domain_error | ||||
| ok {test-number} - WithinRel( 1.f, 1.f ), std::domain_error | ||||
| # Generators -- adapters | ||||
| ok {test-number} - i % 2 == 0 for: 0 == 0 | ||||
| # Generators -- adapters | ||||
| @@ -1781,19 +1781,19 @@ ok {test-number} - d <= Approx( 1.22 ).epsilon(0.1) for: 1.23 <= Approx( 1.22 ) | ||||
| # ManuallyRegistered | ||||
| ok {test-number} - with 1 message: 'was called' | ||||
| # Matchers can be (AllOf) composed with the && operator | ||||
| ok {test-number} - testStringForMatching(), Contains("string") && Contains("abc") && Contains("substring") && Contains("contains") for: "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" ) | ||||
| ok {test-number} - testStringForMatching(), Contains( "string" ) && Contains( "abc" ) && Contains( "substring" ) && Contains( "contains" ) for: "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" ) | ||||
| # Matchers can be (AnyOf) composed with the || operator | ||||
| ok {test-number} - testStringForMatching(), Contains("string") || Contains("different") || Contains("random") for: "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" ) | ||||
| ok {test-number} - testStringForMatching(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) for: "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" ) | ||||
| # Matchers can be (AnyOf) composed with the || operator | ||||
| ok {test-number} - testStringForMatching2(), Contains("string") || Contains("different") || Contains("random") for: "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" ) | ||||
| ok {test-number} - testStringForMatching2(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) for: "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" ) | ||||
| # Matchers can be composed with both && and || | ||||
| ok {test-number} - testStringForMatching(), (Contains("string") || Contains("different")) && Contains("substring") for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" ) | ||||
| ok {test-number} - testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "substring" ) for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" ) | ||||
| # Matchers can be composed with both && and || - failing | ||||
| not ok {test-number} - testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random") for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" ) | ||||
| not ok {test-number} - testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" ) | ||||
| # Matchers can be negated (Not) with the ! operator | ||||
| ok {test-number} - testStringForMatching(), !Contains("different") for: "this string contains 'abc' as a substring" not contains: "different" | ||||
| ok {test-number} - testStringForMatching(), !Contains( "different" ) for: "this string contains 'abc' as a substring" not contains: "different" | ||||
| # Matchers can be negated (Not) with the ! operator - failing | ||||
| not ok {test-number} - testStringForMatching(), !Contains("substring") for: "this string contains 'abc' as a substring" not contains: "substring" | ||||
| not ok {test-number} - testStringForMatching(), !Contains( "substring" ) for: "this string contains 'abc' as a substring" not contains: "substring" | ||||
| # Mismatching exception messages failing the test | ||||
| ok {test-number} - thisThrows(), "expected exception" for: "expected exception" equals: "expected exception" | ||||
| # Mismatching exception messages failing the test | ||||
| @@ -1951,13 +1951,13 @@ not ok {test-number} - explicitly with 1 message: 'Message from section one' | ||||
| # Output from all sections is reported | ||||
| not ok {test-number} - explicitly with 1 message: 'Message from section two' | ||||
| # Overloaded comma or address-of operators are not used | ||||
| ok {test-number} - (EvilMatcher(), EvilMatcher()), EvilCommaOperatorUsed | ||||
| ok {test-number} - ( EvilMatcher(), EvilMatcher() ), EvilCommaOperatorUsed | ||||
| # Overloaded comma or address-of operators are not used | ||||
| ok {test-number} - &EvilMatcher(), EvilAddressOfOperatorUsed | ||||
| # Overloaded comma or address-of operators are not used | ||||
| ok {test-number} - EvilMatcher() || (EvilMatcher() && !EvilMatcher()) | ||||
| ok {test-number} - EvilMatcher() || ( EvilMatcher() && !EvilMatcher() ) | ||||
| # Overloaded comma or address-of operators are not used | ||||
| ok {test-number} - (EvilMatcher() && EvilMatcher()) || !EvilMatcher() | ||||
| ok {test-number} - ( EvilMatcher() && EvilMatcher() ) || !EvilMatcher() | ||||
| # Parse test names and tags | ||||
| ok {test-number} - spec.hasFilters() == false for: false == false | ||||
| # Parse test names and tags | ||||
| @@ -2285,7 +2285,7 @@ ok {test-number} - str1.size() == 2 + 5 for: 7 == 7 | ||||
| # Precision of floating point stringification can be set | ||||
| ok {test-number} - str2.size() == 2 + 15 for: 17 == 17 | ||||
| # Predicate matcher can accept const char* | ||||
| ok {test-number} - "foo", Predicate<const char*>([] (const char* const&) { return true; }) for: "foo" matches undescribed predicate | ||||
| ok {test-number} - "foo", Predicate<const char*>( []( const char* const& ) { return true; } ) for: "foo" matches undescribed predicate | ||||
| # Process can be configured on command line | ||||
| ok {test-number} - result for: {?} | ||||
| # Process can be configured on command line | ||||
| @@ -2461,13 +2461,13 @@ ok {test-number} - Catch::Detail::stringify(UsesSentinel{}) == "{  }" for: "{  } | ||||
| # Reconstruction should be based on stringification: #914 | ||||
| not ok {test-number} - truthy(false) for: Hey, its truthy! | ||||
| # Regex string matcher | ||||
| not ok {test-number} - testStringForMatching(), Matches("this STRING contains 'abc' as a substring") for: "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively | ||||
| not ok {test-number} - testStringForMatching(), Matches( "this STRING contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively | ||||
| # Regex string matcher | ||||
| not ok {test-number} - testStringForMatching(), Matches("contains 'abc' as a substring") for: "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively | ||||
| not ok {test-number} - testStringForMatching(), Matches( "contains 'abc' as a substring" ) for: "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively | ||||
| # Regex string matcher | ||||
| not ok {test-number} - testStringForMatching(), Matches("this string contains 'abc' as a") for: "this string contains 'abc' as a substring" matches "this string contains 'abc' as a" case sensitively | ||||
| not ok {test-number} - testStringForMatching(), Matches( "this string contains 'abc' as a" ) for: "this string contains 'abc' as a substring" matches "this string contains 'abc' as a" case sensitively | ||||
| # Regression test #1 | ||||
| ok {test-number} - actual, !UnorderedEquals(expected) for: { 'a', 'b' } not UnorderedEquals: { 'c', 'b' } | ||||
| ok {test-number} - actual, !UnorderedEquals( expected ) for: { 'a', 'b' } not UnorderedEquals: { 'c', 'b' } | ||||
| # Reporter's write listings to provided stream | ||||
| ok {test-number} - !(factories.empty()) for: !false | ||||
| # Reporter's write listings to provided stream | ||||
| @@ -2616,9 +2616,9 @@ ok {test-number} - Approx( d ) != 1.24 for: Approx( 1.23 ) != 1.24 | ||||
| Message from section one | ||||
| Message from section two | ||||
| # StartsWith string matcher | ||||
| not ok {test-number} - testStringForMatching(), StartsWith("This String") for: "this string contains 'abc' as a substring" starts with: "This String" | ||||
| not ok {test-number} - testStringForMatching(), StartsWith( "This String" ) for: "this string contains 'abc' as a substring" starts with: "This String" | ||||
| # StartsWith string matcher | ||||
| not ok {test-number} - testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" starts with: "string" (case insensitive) | ||||
| not ok {test-number} - testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" starts with: "string" (case insensitive) | ||||
| # Static arrays are convertible to string | ||||
| ok {test-number} - Catch::Detail::stringify(singular) == "{ 1 }" for: "{ 1 }" == "{ 1 }" | ||||
| # Static arrays are convertible to string | ||||
| @@ -2626,21 +2626,21 @@ ok {test-number} - Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" for: "{ 3, 2, | ||||
| # Static arrays are convertible to string | ||||
| ok {test-number} - Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" for: "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }" == "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }" | ||||
| # String matchers | ||||
| ok {test-number} - testStringForMatching(), Contains("string") for: "this string contains 'abc' as a substring" contains: "string" | ||||
| ok {test-number} - testStringForMatching(), Contains( "string" ) for: "this string contains 'abc' as a substring" contains: "string" | ||||
| # String matchers | ||||
| ok {test-number} - testStringForMatching(), Contains("string", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" contains: "string" (case insensitive) | ||||
| ok {test-number} - testStringForMatching(), Contains( "string", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "string" (case insensitive) | ||||
| # String matchers | ||||
| ok {test-number} - testStringForMatching(), Contains("abc") for: "this string contains 'abc' as a substring" contains: "abc" | ||||
| ok {test-number} - testStringForMatching(), Contains( "abc" ) for: "this string contains 'abc' as a substring" contains: "abc" | ||||
| # String matchers | ||||
| ok {test-number} - testStringForMatching(), Contains("aBC", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" contains: "abc" (case insensitive) | ||||
| ok {test-number} - testStringForMatching(), Contains( "aBC", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" contains: "abc" (case insensitive) | ||||
| # String matchers | ||||
| ok {test-number} - testStringForMatching(), StartsWith("this") for: "this string contains 'abc' as a substring" starts with: "this" | ||||
| ok {test-number} - testStringForMatching(), StartsWith( "this" ) for: "this string contains 'abc' as a substring" starts with: "this" | ||||
| # String matchers | ||||
| ok {test-number} - testStringForMatching(), StartsWith("THIS", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" starts with: "this" (case insensitive) | ||||
| ok {test-number} - testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" starts with: "this" (case insensitive) | ||||
| # String matchers | ||||
| ok {test-number} - testStringForMatching(), EndsWith("substring") for: "this string contains 'abc' as a substring" ends with: "substring" | ||||
| ok {test-number} - testStringForMatching(), EndsWith( "substring" ) for: "this string contains 'abc' as a substring" ends with: "substring" | ||||
| # String matchers | ||||
| ok {test-number} - testStringForMatching(), EndsWith(" SuBsTrInG", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" ends with: " substring" (case insensitive) | ||||
| ok {test-number} - testStringForMatching(), EndsWith( " SuBsTrInG", Catch::CaseSensitive::No ) for: "this string contains 'abc' as a substring" ends with: " substring" (case insensitive) | ||||
| # StringRef | ||||
| ok {test-number} - empty.empty() for: true | ||||
| # StringRef | ||||
| @@ -3400,99 +3400,99 @@ ok {test-number} - approx( d ) != 1.25 for: Approx( 1.23 ) != 1.25 | ||||
| # Variadic macros | ||||
| ok {test-number} - with 1 message: 'no assertions' | ||||
| # Vector Approx matcher | ||||
| ok {test-number} - empty, Approx(empty) for: {  } is approx: {  } | ||||
| ok {test-number} - empty, Approx( empty ) for: {  } is approx: {  } | ||||
| # Vector Approx matcher | ||||
| ok {test-number} - v1, Approx(v1) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 } | ||||
| ok {test-number} - v1, Approx( v1 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 } | ||||
| # Vector Approx matcher | ||||
| ok {test-number} - v1, Approx<double>({ 1., 2., 3. }) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 } | ||||
| ok {test-number} - v1, Approx<double>( { 1., 2., 3. } ) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 } | ||||
| # Vector Approx matcher | ||||
| ok {test-number} - v1, !Approx(temp) for: { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 } | ||||
| ok {test-number} - v1, !Approx( temp ) for: { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 } | ||||
| # Vector Approx matcher | ||||
| ok {test-number} - v1, !Approx(v2) for: { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 } | ||||
| ok {test-number} - v1, !Approx( v2 ) for: { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 } | ||||
| # Vector Approx matcher | ||||
| ok {test-number} - v1, Approx(v2).margin(0.5) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| ok {test-number} - v1, Approx( v2 ).margin( 0.5 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| # Vector Approx matcher | ||||
| ok {test-number} - v1, Approx(v2).epsilon(0.5) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| ok {test-number} - v1, Approx( v2 ).epsilon( 0.5 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| # Vector Approx matcher | ||||
| ok {test-number} - v1, Approx(v2).epsilon(0.1).scale(500) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| ok {test-number} - v1, Approx( v2 ).epsilon( 0.1 ).scale( 500 ) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 } | ||||
| # Vector Approx matcher -- failing | ||||
| not ok {test-number} - empty, Approx(t1) for: {  } is approx: { 1.0, 2.0 } | ||||
| not ok {test-number} - empty, Approx( t1 ) for: {  } is approx: { 1.0, 2.0 } | ||||
| # Vector Approx matcher -- failing | ||||
| not ok {test-number} - v1, Approx(v2) for: { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 } | ||||
| not ok {test-number} - v1, Approx( v2 ) for: { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v, VectorContains(1) for: { 1, 2, 3 } Contains: 1 | ||||
| ok {test-number} - v, VectorContains( 1 ) for: { 1, 2, 3 } Contains: 1 | ||||
| # Vector matchers | ||||
| ok {test-number} - v, VectorContains(2) for: { 1, 2, 3 } Contains: 2 | ||||
| ok {test-number} - v, VectorContains( 2 ) for: { 1, 2, 3 } Contains: 2 | ||||
| # Vector matchers | ||||
| ok {test-number} - v5, (VectorContains<int, CustomAllocator<int>>(2)) for: { 1, 2, 3 } Contains: 2 | ||||
| ok {test-number} - v5, ( VectorContains<int, CustomAllocator<int>>( 2 ) ) for: { 1, 2, 3 } Contains: 2 | ||||
| # Vector matchers | ||||
| ok {test-number} - v, Contains(v2) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| ok {test-number} - v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v, Contains<int>({ 1, 2 }) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| ok {test-number} - v, Contains<int>( { 1, 2 } ) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v5, (Contains<int, std::allocator<int>, CustomAllocator<int>>(v2)) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| ok {test-number} - v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v, Contains(v2) for: { 1, 2, 3 } Contains: { 1, 2, 3 } | ||||
| ok {test-number} - v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2, 3 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v, Contains(empty) for: { 1, 2, 3 } Contains: {  } | ||||
| ok {test-number} - v, Contains( empty ) for: { 1, 2, 3 } Contains: {  } | ||||
| # Vector matchers | ||||
| ok {test-number} - empty, Contains(empty) for: {  } Contains: {  } | ||||
| ok {test-number} - empty, Contains( empty ) for: {  } Contains: {  } | ||||
| # Vector matchers | ||||
| ok {test-number} - v5, (Contains<int, std::allocator<int>, CustomAllocator<int>>(v2)) for: { 1, 2, 3 } Contains: { 1, 2, 3 } | ||||
| ok {test-number} - v5, ( Contains<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Contains: { 1, 2, 3 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v5, Contains(v6) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| ok {test-number} - v5, Contains( v6 ) for: { 1, 2, 3 } Contains: { 1, 2 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v, VectorContains(1) && VectorContains(2) for: { 1, 2, 3 } ( Contains: 1 and Contains: 2 ) | ||||
| ok {test-number} - v, VectorContains( 1 ) && VectorContains( 2 ) for: { 1, 2, 3 } ( Contains: 1 and Contains: 2 ) | ||||
| # Vector matchers | ||||
| ok {test-number} - v, Equals(v) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| ok {test-number} - v, Equals( v ) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| # Vector matchers | ||||
| ok {test-number} - empty, Equals(empty) for: {  } Equals: {  } | ||||
| ok {test-number} - empty, Equals( empty ) for: {  } Equals: {  } | ||||
| # Vector matchers | ||||
| ok {test-number} - v, Equals<int>({ 1, 2, 3 }) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| ok {test-number} - v, Equals<int>( { 1, 2, 3 } ) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v, Equals(v2) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| ok {test-number} - v, Equals( v2 ) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v5, (Equals<int, std::allocator<int>, CustomAllocator<int>>(v2)) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| ok {test-number} - v5, ( Equals<int, std::allocator<int>, CustomAllocator<int>>( v2 ) ) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v5, Equals(v6) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| ok {test-number} - v5, Equals( v6 ) for: { 1, 2, 3 } Equals: { 1, 2, 3 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v, UnorderedEquals(v) for: { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
| ok {test-number} - v, UnorderedEquals( v ) for: { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v, UnorderedEquals<int>({ 3, 2, 1 }) for: { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 } | ||||
| ok {test-number} - v, UnorderedEquals<int>( { 3, 2, 1 } ) for: { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 } | ||||
| # Vector matchers | ||||
| ok {test-number} - empty, UnorderedEquals(empty) for: {  } UnorderedEquals: {  } | ||||
| ok {test-number} - empty, UnorderedEquals( empty ) for: {  } UnorderedEquals: {  } | ||||
| # Vector matchers | ||||
| ok {test-number} - permuted, UnorderedEquals(v) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 } | ||||
| ok {test-number} - permuted, UnorderedEquals( v ) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 } | ||||
| # Vector matchers | ||||
| ok {test-number} - permuted, UnorderedEquals(v) for: { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
| ok {test-number} - permuted, UnorderedEquals( v ) for: { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v5, (UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>(permuted)) for: { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 } | ||||
| ok {test-number} - v5, ( UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>( permuted ) ) for: { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 } | ||||
| # Vector matchers | ||||
| ok {test-number} - v5_permuted, UnorderedEquals(v5) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 } | ||||
| ok {test-number} - v5_permuted, UnorderedEquals( v5 ) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 } | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - v, VectorContains(-1) for: { 1, 2, 3 } Contains: -1 | ||||
| not ok {test-number} - v, VectorContains( -1 ) for: { 1, 2, 3 } Contains: -1 | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - empty, VectorContains(1) for: {  } Contains: 1 | ||||
| not ok {test-number} - empty, VectorContains( 1 ) for: {  } Contains: 1 | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - empty, Contains(v) for: {  } Contains: { 1, 2, 3 } | ||||
| not ok {test-number} - empty, Contains( v ) for: {  } Contains: { 1, 2, 3 } | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - v, Contains(v2) for: { 1, 2, 3 } Contains: { 1, 2, 4 } | ||||
| not ok {test-number} - v, Contains( v2 ) for: { 1, 2, 3 } Contains: { 1, 2, 4 } | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - v, Equals(v2) for: { 1, 2, 3 } Equals: { 1, 2 } | ||||
| not ok {test-number} - v, Equals( v2 ) for: { 1, 2, 3 } Equals: { 1, 2 } | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - v2, Equals(v) for: { 1, 2 } Equals: { 1, 2, 3 } | ||||
| not ok {test-number} - v2, Equals( v ) for: { 1, 2 } Equals: { 1, 2, 3 } | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - empty, Equals(v) for: {  } Equals: { 1, 2, 3 } | ||||
| not ok {test-number} - empty, Equals( v ) for: {  } Equals: { 1, 2, 3 } | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - v, Equals(empty) for: { 1, 2, 3 } Equals: {  } | ||||
| not ok {test-number} - v, Equals( empty ) for: { 1, 2, 3 } Equals: {  } | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - v, UnorderedEquals(empty) for: { 1, 2, 3 } UnorderedEquals: {  } | ||||
| not ok {test-number} - v, UnorderedEquals( empty ) for: { 1, 2, 3 } UnorderedEquals: {  } | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - empty, UnorderedEquals(v) for: {  } UnorderedEquals: { 1, 2, 3 } | ||||
| not ok {test-number} - empty, UnorderedEquals( v ) for: {  } UnorderedEquals: { 1, 2, 3 } | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - permuted, UnorderedEquals(v) for: { 1, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
| not ok {test-number} - permuted, UnorderedEquals( v ) for: { 1, 3 } UnorderedEquals: { 1, 2, 3 } | ||||
| # Vector matchers that fail | ||||
| not ok {test-number} - permuted, UnorderedEquals(v) for: { 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
| not ok {test-number} - permuted, UnorderedEquals( v ) for: { 3, 1 } UnorderedEquals: { 1, 2, 3 } | ||||
| # When checked exceptions are thrown they can be expected or unexpected | ||||
| ok {test-number} - thisThrows(), std::domain_error | ||||
| # When checked exceptions are thrown they can be expected or unexpected | ||||
|   | ||||
| @@ -266,8 +266,8 @@ Exception.tests.cpp:<line number>|nunexpected exception with message:|n  "unexpe | ||||
| ##teamcity[testStarted name='Composed matchers shortcircuit'] | ||||
| ##teamcity[testFinished name='Composed matchers shortcircuit' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Contains string matcher'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Contains("not there", Catch::CaseSensitive::No) )|nwith expansion:|n  "this string contains |'abc|' as a substring" contains: "not there" (case insensitive)|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Contains("STRING") )|nwith expansion:|n  "this string contains |'abc|' as a substring" contains: "STRING"|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Contains( "not there", Catch::CaseSensitive::No ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" contains: "not there" (case insensitive)|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Contains( "STRING" ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" contains: "STRING"|n'] | ||||
| ##teamcity[testFinished name='Contains string matcher' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Copy and then generate a range'] | ||||
| ##teamcity[testFinished name='Copy and then generate a range' duration="{duration}"] | ||||
| @@ -285,8 +285,8 @@ Exception.tests.cpp:<line number>|nunexpected exception with message:|n  "custom | ||||
| ##teamcity[testStarted name='Directly creating an EnumInfo'] | ||||
| ##teamcity[testFinished name='Directly creating an EnumInfo' duration="{duration}"] | ||||
| ##teamcity[testStarted name='EndsWith string matcher'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), EndsWith("Substring") )|nwith expansion:|n  "this string contains |'abc|' as a substring" ends with: "Substring"|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No) )|nwith expansion:|n  "this string contains |'abc|' as a substring" ends with: "this" (case insensitive)|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" ends with: "Substring"|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" ends with: "this" (case insensitive)|n'] | ||||
| ##teamcity[testFinished name='EndsWith string matcher' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Enums can quickly have stringification enabled using REGISTER_ENUM'] | ||||
| ##teamcity[testFinished name='Enums can quickly have stringification enabled using REGISTER_ENUM' duration="{duration}"] | ||||
| @@ -314,18 +314,18 @@ Condition.tests.cpp:<line number>|nexpression failed|n  CHECK( x == Approx( 1.30 | ||||
| ##teamcity[testStarted name='Equals'] | ||||
| ##teamcity[testFinished name='Equals' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Equals string matcher'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Equals("this string contains |'ABC|' as a substring") )|nwith expansion:|n  "this string contains |'abc|' as a substring" equals: "this string contains |'ABC|' as a substring"|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Equals("something else", Catch::CaseSensitive::No) )|nwith expansion:|n  "this string contains |'abc|' as a substring" equals: "something else" (case insensitive)|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Equals( "this string contains |'ABC|' as a substring" ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" equals: "this string contains |'ABC|' as a substring"|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" equals: "something else" (case insensitive)|n'] | ||||
| ##teamcity[testFinished name='Equals string matcher' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified'] | ||||
| ##teamcity[testFinished name='Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Exception matchers that fail'] | ||||
| Matchers.tests.cpp:<line number>|nno exception was thrown where one was expected|n  CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} )|nwith expansion:|n  doesNotThrow(), SpecialException, ExceptionMatcher{1}|n'] | ||||
| Matchers.tests.cpp:<line number>|nno exception was thrown where one was expected|n  REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{1} )|nwith expansion:|n  doesNotThrow(), SpecialException, ExceptionMatcher{1}|n'] | ||||
| Matchers.tests.cpp:<line number>|nunexpected exception with message:|n  "Unknown exception"|n  CHECK_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} )|nwith expansion:|n  throwsAsInt(1), SpecialException, ExceptionMatcher{1}|n'] | ||||
| Matchers.tests.cpp:<line number>|nunexpected exception with message:|n  "Unknown exception"|n  REQUIRE_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{1} )|nwith expansion:|n  throwsAsInt(1), SpecialException, ExceptionMatcher{1}|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THROWS_MATCHES( throwsSpecialException(3), SpecialException, ExceptionMatcher{1} )|nwith expansion:|n  SpecialException::what special exception has value of 1|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  REQUIRE_THROWS_MATCHES( throwsSpecialException(4), SpecialException, ExceptionMatcher{1} )|nwith expansion:|n  SpecialException::what special exception has value of 1|n'] | ||||
| Matchers.tests.cpp:<line number>|nno exception was thrown where one was expected|n  CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )|nwith expansion:|n  doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nno exception was thrown where one was expected|n  REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } )|nwith expansion:|n  doesNotThrow(), SpecialException, ExceptionMatcher{ 1 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nunexpected exception with message:|n  "Unknown exception"|n  CHECK_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )|nwith expansion:|n  throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nunexpected exception with message:|n  "Unknown exception"|n  REQUIRE_THROWS_MATCHES( throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 } )|nwith expansion:|n  throwsAsInt( 1 ), SpecialException, ExceptionMatcher{ 1 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THROWS_MATCHES( throwsSpecialException( 3 ), SpecialException, ExceptionMatcher{ 1 } )|nwith expansion:|n  SpecialException::what special exception has value of 1|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  REQUIRE_THROWS_MATCHES( throwsSpecialException( 4 ), SpecialException, ExceptionMatcher{ 1 } )|nwith expansion:|n  SpecialException::what special exception has value of 1|n'] | ||||
| ##teamcity[testFinished name='Exception matchers that fail' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Exception matchers that succeed'] | ||||
| ##teamcity[testFinished name='Exception matchers that succeed' duration="{duration}"] | ||||
| @@ -395,12 +395,12 @@ Condition.tests.cpp:<line number>|nexpression failed|n  CHECK( data.str_hello.si | ||||
| ##teamcity[testStarted name='Matchers can be composed with both && and ||||'] | ||||
| ##teamcity[testFinished name='Matchers can be composed with both && and ||||' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Matchers can be composed with both && and |||| - failing'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), (Contains("string") |||| Contains("different")) && Contains("random") )|nwith expansion:|n  "this string contains |'abc|' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" )|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), ( Contains( "string" ) |||| Contains( "different" ) ) && Contains( "random" ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" )|n'] | ||||
| ##teamcity[testFinished name='Matchers can be composed with both && and |||| - failing' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Matchers can be negated (Not) with the ! operator'] | ||||
| ##teamcity[testFinished name='Matchers can be negated (Not) with the ! operator' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Matchers can be negated (Not) with the ! operator - failing'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), !Contains("substring") )|nwith expansion:|n  "this string contains |'abc|' as a substring" not contains: "substring"|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), !Contains( "substring" ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" not contains: "substring"|n'] | ||||
| ##teamcity[testFinished name='Matchers can be negated (Not) with the ! operator - failing' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Mismatching exception messages failing the test'] | ||||
| Exception.tests.cpp:<line number>|nexpression failed|n  REQUIRE_THROWS_WITH( thisThrows(), "should fail" )|nwith expansion:|n  "expected exception" equals: "should fail"|n'] | ||||
| @@ -469,9 +469,9 @@ Message.tests.cpp:<line number>|nexplicit failure with message:|n  "Message from | ||||
| Decomposition.tests.cpp:<line number>|nexpression failed|n  CHECK( truthy(false) )|nwith expansion:|n  Hey, its truthy!|n'] | ||||
| ##teamcity[testFinished name='Reconstruction should be based on stringification: #914' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Regex string matcher'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Matches("this STRING contains |'abc|' as a substring") )|nwith expansion:|n  "this string contains |'abc|' as a substring" matches "this STRING contains |'abc|' as a substring" case sensitively|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Matches("contains |'abc|' as a substring") )|nwith expansion:|n  "this string contains |'abc|' as a substring" matches "contains |'abc|' as a substring" case sensitively|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Matches("this string contains |'abc|' as a") )|nwith expansion:|n  "this string contains |'abc|' as a substring" matches "this string contains |'abc|' as a" case sensitively|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Matches( "this STRING contains |'abc|' as a substring" ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" matches "this STRING contains |'abc|' as a substring" case sensitively|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Matches( "contains |'abc|' as a substring" ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" matches "contains |'abc|' as a substring" case sensitively|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), Matches( "this string contains |'abc|' as a" ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" matches "this string contains |'abc|' as a" case sensitively|n'] | ||||
| ##teamcity[testFinished name='Regex string matcher' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Regression test #1'] | ||||
| ##teamcity[testFinished name='Regression test #1' duration="{duration}"] | ||||
| @@ -499,8 +499,8 @@ Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringFor | ||||
| ##teamcity[testStdOut name='Standard output from all sections is reported' out='Message from section one|nMessage from section two|n'] | ||||
| ##teamcity[testFinished name='Standard output from all sections is reported' duration="{duration}"] | ||||
| ##teamcity[testStarted name='StartsWith string matcher'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), StartsWith("This String") )|nwith expansion:|n  "this string contains |'abc|' as a substring" starts with: "This String"|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) )|nwith expansion:|n  "this string contains |'abc|' as a substring" starts with: "string" (case insensitive)|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" starts with: "This String"|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) )|nwith expansion:|n  "this string contains |'abc|' as a substring" starts with: "string" (case insensitive)|n'] | ||||
| ##teamcity[testFinished name='StartsWith string matcher' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Static arrays are convertible to string'] | ||||
| ##teamcity[testFinished name='Static arrays are convertible to string' duration="{duration}"] | ||||
| @@ -610,24 +610,24 @@ Exception.tests.cpp:<line number>|nunexpected exception with message:|n  "3.14"' | ||||
| ##teamcity[testStarted name='Vector Approx matcher'] | ||||
| ##teamcity[testFinished name='Vector Approx matcher' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Vector Approx matcher -- failing'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( empty, Approx(t1) )|nwith expansion:|n  {  } is approx: { 1.0, 2.0 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v1, Approx(v2) )|nwith expansion:|n  { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( empty, Approx( t1 ) )|nwith expansion:|n  {  } is approx: { 1.0, 2.0 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v1, Approx( v2 ) )|nwith expansion:|n  { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }|n'] | ||||
| ##teamcity[testFinished name='Vector Approx matcher -- failing' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Vector matchers'] | ||||
| ##teamcity[testFinished name='Vector matchers' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Vector matchers that fail'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v, VectorContains(-1) )|nwith expansion:|n  { 1, 2, 3 } Contains: -1|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( empty, VectorContains(1) )|nwith expansion:|n  {  } Contains: 1|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( empty, Contains(v) )|nwith expansion:|n  {  } Contains: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v, Contains(v2) )|nwith expansion:|n  { 1, 2, 3 } Contains: { 1, 2, 4 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v, Equals(v2) )|nwith expansion:|n  { 1, 2, 3 } Equals: { 1, 2 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v2, Equals(v) )|nwith expansion:|n  { 1, 2 } Equals: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( empty, Equals(v) )|nwith expansion:|n  {  } Equals: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v, Equals(empty) )|nwith expansion:|n  { 1, 2, 3 } Equals: {  }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v, UnorderedEquals(empty) )|nwith expansion:|n  { 1, 2, 3 } UnorderedEquals: {  }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( empty, UnorderedEquals(v) )|nwith expansion:|n  {  } UnorderedEquals: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( permuted, UnorderedEquals(v) )|nwith expansion:|n  { 1, 3 } UnorderedEquals: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( permuted, UnorderedEquals(v) )|nwith expansion:|n  { 3, 1 } UnorderedEquals: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v, VectorContains( -1 ) )|nwith expansion:|n  { 1, 2, 3 } Contains: -1|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( empty, VectorContains( 1 ) )|nwith expansion:|n  {  } Contains: 1|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( empty, Contains( v ) )|nwith expansion:|n  {  } Contains: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v, Contains( v2 ) )|nwith expansion:|n  { 1, 2, 3 } Contains: { 1, 2, 4 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v, Equals( v2 ) )|nwith expansion:|n  { 1, 2, 3 } Equals: { 1, 2 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v2, Equals( v ) )|nwith expansion:|n  { 1, 2 } Equals: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( empty, Equals( v ) )|nwith expansion:|n  {  } Equals: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v, Equals( empty ) )|nwith expansion:|n  { 1, 2, 3 } Equals: {  }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( v, UnorderedEquals( empty ) )|nwith expansion:|n  { 1, 2, 3 } UnorderedEquals: {  }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( empty, UnorderedEquals( v ) )|nwith expansion:|n  {  } UnorderedEquals: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( permuted, UnorderedEquals( v ) )|nwith expansion:|n  { 1, 3 } UnorderedEquals: { 1, 2, 3 }|n'] | ||||
| Matchers.tests.cpp:<line number>|nexpression failed|n  CHECK_THAT( permuted, UnorderedEquals( v ) )|nwith expansion:|n  { 3, 1 } UnorderedEquals: { 1, 2, 3 }|n'] | ||||
| ##teamcity[testFinished name='Vector matchers that fail' duration="{duration}"] | ||||
| ##teamcity[testStarted name='When checked exceptions are thrown they can be expected or unexpected'] | ||||
| ##teamcity[testFinished name='When checked exceptions are thrown they can be expected or unexpected' duration="{duration}"] | ||||
|   | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský