Home
last modified time | relevance | path

Searched refs:REQUIRE_THAT (Results 1 – 14 of 14) sorted by relevance

/external/catch2/projects/SelfTest/UsageTests/
DMatchers.tests.cpp104 REQUIRE_THAT(testStringForMatching(), Contains("string"));
105 REQUIRE_THAT(testStringForMatching(), Contains("string", Catch::CaseSensitive::No));
158REQUIRE_THAT(testStringForMatching(), Matches("this string contains 'abc' as a substring"));
159 REQUIRE_THAT(testStringForMatching(),
161REQUIRE_THAT(testStringForMatching(), Matches("^this string contains 'abc' as a substring$"));
162 REQUIRE_THAT(testStringForMatching(), Matches("^.* 'abc' .*$"));
163REQUIRE_THAT(testStringForMatching(), Matches("^.* 'ABC' .*$", Catch::CaseSensitive::No));
168REQUIRE_THAT(testStringForMatching2(), !Matches("this string contains 'abc' as a substring"));
253 REQUIRE_THAT(permuted, UnorderedEquals(v));
256 REQUIRE_THAT(permuted, UnorderedEquals(v));
[all …]
DCompilation.tests.cpp88 REQUIRE_THAT("aaa", Catch::EndsWith("aaa")); in templated_tests()
/external/catch2/projects/XCode/OCTest/OCTest/
DCatchOCTestCase.mm73 REQUIRE_THAT( @"This is a string", Equals( @"This isnt a string" ) );
74 REQUIRE_THAT( @"This is a string", Contains( @"is a" ) ); category
75 REQUIRE_THAT( @"This is a string", StartsWith( @"This" ) ); category
76 REQUIRE_THAT( @"This is a string", EndsWith( @"string" ) ); category
/external/catch2/docs/
Dmatchers.md10 Matchers are introduced with the `REQUIRE_THAT` or `CHECK_THAT` macros, which take two arguments.
19 REQUIRE_THAT( str, EndsWith( "as a service" ) );
27 REQUIRE_THAT( str, EndsWith( "as a service", Catch::CaseSensitive::No ) );
33 REQUIRE_THAT( str,
64 REQUIRE_THAT("Hello olleH",
Dlist-of-examples.md24 - Assertion: [REQUIRE_THAT and Matchers](../examples/040-Asn-RequireThat.cpp)
Dassertions.md161 * **REQUIRE_THAT(** _lhs_, _matcher expression_ **)** and
/external/catch2/examples/
D207-Rpt-TeamCityReporter.cpp46 REQUIRE_THAT( "hello", Contains( "world" ) );
/external/catch2/projects/SelfTest/Baselines/
Dconsole.sw.approved.txt233 REQUIRE_THAT( "aaa", Catch::EndsWith("aaa") )
1618 REQUIRE_THAT( 1, Predicate<int>(alwaysTrue, "always true") )
1623 REQUIRE_THAT( 1, !Predicate<int>(alwaysFalse, "always false") )
1635REQUIRE_THAT( "Hello olleH", Predicate<std::string>( [] (std::string const& str) -> bool { return …
1640REQUIRE_THAT( "This wouldn't pass", !Predicate<std::string>( [] (std::string const& str) -> bool {…
2617 REQUIRE_THAT( 1., WithinAbs(1., 0) )
2622 REQUIRE_THAT( 0., WithinAbs(1., 1) )
2627 REQUIRE_THAT( 0., !WithinAbs(1., 0.99) )
2632 REQUIRE_THAT( 0., !WithinAbs(1., 0.99) )
2637 REQUIRE_THAT( NAN, !WithinAbs(NAN, 0) )
[all …]
Dconsole.swa4.approved.txt233 REQUIRE_THAT( "aaa", Catch::EndsWith("aaa") )
/external/catch2/projects/ExtraTests/
DCMakeLists.txt30 … CHECK_THROWS_AS; CHECK_THROWS_WITH; CHECK_THROWS_MATCHES; CHECK_NOTHROW; REQUIRE_THAT; CHECK_THAT"
/external/catch2/projects/SelfTest/IntrospectiveTests/
DCmdLine.tests.cpp352 REQUIRE_THAT(result.errorMessage(), Contains("Unrecognized reporter"));
387 REQUIRE_THAT(result.errorMessage(), Contains("convert") && Contains("oops"));
/external/catch2/include/
Dcatch.hpp214 #define REQUIRE_THAT( arg, matcher ) INTERNAL_CHECK_THAT( "REQUIRE_THAT", matcher, Catch::ResultDis… macro
381 #define REQUIRE_THAT( arg, matcher ) (void)(0) macro
/external/catch2/single_include/catch2/
Dcatch.hpp14699 #define REQUIRE_THAT( arg, matcher ) INTERNAL_CHECK_THAT( "REQUIRE_THAT", matcher, Catch::ResultDis… macro
14864 #define REQUIRE_THAT( arg, matcher ) (void)(0) macro
/external/bcc/tests/cc/
Dcatch.hpp10392 #define REQUIRE_THAT( arg, matcher ) INTERNAL_CHECK_THAT( arg, matcher, Catch::ResultDisposition::N… macro