diff --git a/t_operator_test.go b/t_operator_test.go index a06c4d5..668f883 100644 --- a/t_operator_test.go +++ b/t_operator_test.go @@ -36,6 +36,7 @@ func TestOperator(t *testing.T) { /* 23 */ {`[1,2,3] map var("_")`, newList([]any{int64(1), int64(2), int64(3)}), nil}, /* 24 */ {`[1,2,3] map $_`, newList([]any{int64(1), int64(2), int64(3)}), nil}, /* 25 */ {`[1,2,3,4] filter ($_ % 2 == 0)`, newList([]any{int64(2), int64(4)}), nil}, + /* 26 */ {`max=0; [2,3,1] digest max=(($_ > max) ? {$_} :: {max})`, int64(3), nil}, } // t.Setenv("EXPR_PATH", ".")