From 49728307f34bf7c600a66021f120cd4a92dc6e31 Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Sat, 25 Apr 2026 06:33:35 +0200 Subject: [PATCH] t_operator_test.go: added a test for the digest operator --- t_operator_test.go | 1 + 1 file changed, 1 insertion(+) 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", ".")