Home
last modified time | relevance | path

Searched refs:REQUIRE_THROWS_AS (Results 1 – 16 of 16) sorted by relevance

/external/catch2/projects/SelfTest/UsageTests/
DApprox.tests.cpp168 REQUIRE_THROWS_AS(Approx(0).margin(-2), std::domain_error);
173 REQUIRE_THROWS_AS(Approx(0).epsilon(-0.001), std::domain_error);
174 REQUIRE_THROWS_AS(Approx(0).epsilon(1.0001), std::domain_error);
DToStringVariant.tests.cpp47 REQUIRE_THROWS_AS(value.emplace<MyType2>(MyType2{}), int);
73 REQUIRE_THROWS_AS( std::get<0>(value).emplace<MyType1>(MyType1{}), int );
DException.tests.cpp78 REQUIRE_THROWS_AS( thisThrows(), std::domain_error );
155 REQUIRE_THROWS_AS( throwCustom(), std::exception );
DMatchers.tests.cpp361 REQUIRE_THROWS_AS(WithinAbs(1.f, -1.f), std::domain_error);
364 REQUIRE_THROWS_AS(WithinULP(1.f, -1), std::domain_error);
403 REQUIRE_THROWS_AS(WithinAbs(1., -1.), std::domain_error);
406 REQUIRE_THROWS_AS(WithinULP(1., -1), std::domain_error);
DGenerators.tests.cpp128REQUIRE_THROWS_AS(filter([] (int) {return false; }, value(1)), Catch::GeneratorException); in __anona7eeee530202()
167 REQUIRE_THROWS_AS(chunk(2, value(1)), Catch::GeneratorException);
/external/catch2/docs/
Dassertions.md120 * **REQUIRE_THROWS_AS(** _expression_, _exception type_ **)** and
174 compiler, multiple-argument assertions (e.g. `REQUIRE_THROWS_AS`) have
176 `REQUIRE_THROWS_AS(std::pair<int, int>(1, 2), std::invalid_argument);`
183 REQUIRE_THROWS_AS(int_pair(1, 2), std::invalid_argument);
Dlist-of-examples.md27 - Assertion: [REQUIRE_THROWS_AS](../examples/070-Asn-RequireThrowsAs.cpp)
Drelease-notes.md621 * Catch no longer attempts to ensure the exception type passed by user in `REQUIRE_THROWS_AS` is a …
622 * It was causing trouble when `REQUIRE_THROWS_AS` was used inside templated functions
750 * `REQUIRE_THROWS_AS` now catches exception by `const&` and reports expected type
/external/catch2/examples/
D207-Rpt-TeamCityReporter.cpp66 REQUIRE_THROWS_AS( throw std::bad_alloc(), std::runtime_error );
/external/catch2/projects/ExtraTests/
DCMakeLists.txt30 …" REQUIRE; REQUIRE_FALSE; REQUIRE_THROWS; REQUIRE_THROWS_AS; REQUIRE_THROWS_WITH; REQUIRE_THROWS_M…
/external/catch2/include/
Dcatch.hpp189 #define REQUIRE_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( "REQUIRE_THROWS_AS", exc… macro
356 #define REQUIRE_THROWS_AS( expr, exceptionType ) (void)(0) macro
/external/catch2/projects/SelfTest/IntrospectiveTests/
DGeneratorsImpl.tests.cpp55 REQUIRE_THROWS_AS(filter([] (int) { return false; }, value(1)), Catch::GeneratorException); in __anon8726b07f0202()
/external/catch2/projects/SelfTest/Baselines/
Dconsole.sw.approved.txt1470 REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error )
1479 REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error )
1482 REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error )
2180 REQUIRE_THROWS_AS( throwCustom(), std::exception )
2736 REQUIRE_THROWS_AS( WithinAbs(1., -1.), std::domain_error )
2742 REQUIRE_THROWS_AS( WithinULP(1., -1), std::domain_error )
2876 REQUIRE_THROWS_AS( WithinAbs(1.f, -1.f), std::domain_error )
2882 REQUIRE_THROWS_AS( WithinULP(1.f, -1), std::domain_error )
2932 REQUIRE_THROWS_AS( filter([] (int) {return false; }, value(1)), Catch::GeneratorException )
3229 REQUIRE_THROWS_AS( chunk(2, value(1)), Catch::GeneratorException )
[all …]
Dconsole.std.approved.txt271 REQUIRE_THROWS_AS( throwCustom(), std::exception )
/external/catch2/single_include/catch2/
Dcatch.hpp14675 #define REQUIRE_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( "REQUIRE_THROWS_AS", exc… macro
14840 #define REQUIRE_THROWS_AS( expr, exceptionType ) (void)(0) macro
/external/bcc/tests/cc/
Dcatch.hpp10376 #define REQUIRE_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Cat… macro