Replace expressions engine (#133)

This commit is contained in:
ChristopherHX
2025-10-06 13:53:15 +02:00
committed by GitHub
parent 418c708bb0
commit 82dccc7820
40 changed files with 6876 additions and 1304 deletions

View File

@@ -143,6 +143,9 @@ func TestEvaluateRunContext(t *testing.T) {
out, err := ee.evaluate(context.Background(), table.in, exprparser.DefaultStatusCheckNone)
if table.errMesg == "" {
assertObject.NoError(err, table.in)
if i, ok := table.out.(int); ok {
table.out = float64(i)
}
assertObject.Equal(table.out, out, table.in)
} else {
assertObject.Error(err, table.in)