Skip to content

Commit

Permalink
Add broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Nov 24, 2021
1 parent f2f0dcc commit f45dac8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit f45dac8

Please sign in to comment.