| 7 | using namespace testing; |
| 8 | |
| 9 | TEST(Filtering, TFilteringRangeTest) { |
| 10 | const TVector<int> x = {1, 2, 3, 4, 5}; |
| 11 | |
| 12 | EXPECT_THAT( |
| 13 | MakeFilteringRange( |
| 14 | x, |
| 15 | [](int x) { return x % 2 == 0; } |
| 16 | ), |
| 17 | ElementsAre(2, 4) |
| 18 | ); |
| 19 | } |
| 20 | |
| 21 | TEST(Filtering, TEmptyFilteringRangeTest) { |
| 22 | TVector<int> x = {1, 2, 3, 4, 5}; |
nothing calls this directly
no test coverage detected