Test Not() operation for Bool
| 433 | |
| 434 | // Test Not() operation for Bool |
| 435 | TEST_F(BuiltinsTest, TestNotOp) { |
| 436 | CelValue result; |
| 437 | ASSERT_NO_FATAL_FAILURE( |
| 438 | PerformRun(builtin::kNot, {}, {CelValue::CreateBool(true)}, &result)); |
| 439 | |
| 440 | ASSERT_TRUE(result.IsBool()); |
| 441 | EXPECT_EQ(result.BoolOrDie(), false); |
| 442 | } |
| 443 | |
| 444 | // Test negation operation for numeric types. |
| 445 | TEST_F(BuiltinsTest, TestNegOp) { |
nothing calls this directly
no test coverage detected