| 26 | using ::testing::HasSubstr; |
| 27 | |
| 28 | TEST(Exercise10, IpInRange) { |
| 29 | EXPECT_THAT(CompileAndEvaluateExercise10( |
| 30 | R"cel( |
| 31 | net.parseAddressMatcher("8.8.4.0-8.8.4.255") |
| 32 | .containsAddress( |
| 33 | net.parseAddress(ip) |
| 34 | ) |
| 35 | )cel", |
| 36 | "8.8.4.4"), |
| 37 | IsOkAndHolds(true)); |
| 38 | } |
| 39 | |
| 40 | TEST(Exercise10, IpNotInRange) { |
| 41 | EXPECT_THAT(CompileAndEvaluateExercise10( |
nothing calls this directly
no test coverage detected