| 280 | }); |
| 281 | |
| 282 | TEST(CelValueEqualImplTest, LossyNumericEquality) { |
| 283 | absl::optional<bool> result = CelValueEqualImpl( |
| 284 | CelValue::CreateDouble( |
| 285 | static_cast<double>(std::numeric_limits<int64_t>::max()) - 1), |
| 286 | CelValue::CreateInt64(std::numeric_limits<int64_t>::max())); |
| 287 | EXPECT_TRUE(result.has_value()); |
| 288 | EXPECT_TRUE(*result); |
| 289 | } |
| 290 | |
| 291 | TEST(CelValueEqualImplTest, ListMixedTypesInequal) { |
| 292 | ContainerBackedListImpl lhs({CelValue::CreateInt64(1)}); |
nothing calls this directly
no test coverage detected