test: typecheck cel test cases

This commit is contained in:
Alexander Zielenski 2024-04-19 13:52:22 -07:00
parent 15ee05afd4
commit 11a6edfc88

View File

@ -82,6 +82,12 @@ func testQuantity(t *testing.T, expr string, expectResult ref.Val, expectRuntime
t.Fatalf("%v", issues.Errors())
}
// Typecheck expression
_, err = cel.AstToCheckedExpr(compiled)
if err != nil {
t.Fatalf("%v", err)
}
prog, err := env.Program(compiled)
if err != nil {
t.Fatalf("%v", err)