From 1a7e5379216280c09b374c4175c225aec6c6d1c7 Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Sun, 19 Apr 2026 15:16:25 +0200 Subject: [PATCH] more tests on iterator over dicts --- t_iterator_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t_iterator_test.go b/t_iterator_test.go index 9552306..9f82763 100644 --- a/t_iterator_test.go +++ b/t_iterator_test.go @@ -29,8 +29,10 @@ func TestIteratorParser(t *testing.T) { /* 18 */ {`it=$({"next":func(){5}}); it.clean`, nil, nil}, /* 19 */ {`it=$({1:"one",2:"two",3:"three"}); it++`, int64(1), nil}, /* 20 */ {`it=$({1:"one",2:"two",3:"three"}, "default", "value"); it++`, "one", nil}, + /* 21 */ {`it=$({1:"one",2:"two",3:"three"}, "desc", "key"); it++`, int64(3), nil}, + /* 22 */ {`it=$({1:"one",2:"two",3:"three"}, "asc", "item"); it++`, NewList([]any{int64(1), "one"}), nil}, } - runTestSuiteSpec(t, section, inputs, 20) - // runTestSuite(t, section, inputs) + // runTestSuiteSpec(t, section, inputs, 20) + runTestSuite(t, section, inputs) }