mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-05 05:39:53 +01:00
Add broken test
This commit is contained in:
parent
f2f0dcc511
commit
f45dac8fc1
@ -53,6 +53,9 @@ TEST_CASE("Generators internals", "[generators][internals]") {
|
||||
|
||||
// Completely filtered-out generator should throw on construction
|
||||
REQUIRE_THROWS_AS(filter([] (int) { return false; }, value(1)), Catch::GeneratorException);
|
||||
REQUIRE_THROWS_AS(
|
||||
filter( []( int ) { return false; }, values( { 1, 2, 3 } ) ),
|
||||
Catch::GeneratorException );
|
||||
}
|
||||
SECTION("Take generator") {
|
||||
SECTION("Take less") {
|
||||
|
Loading…
Reference in New Issue
Block a user