From abcd9e4dcd17fe4bd50bc1d48ceccf6a3894986d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 25 Sep 2024 13:40:11 +0200 Subject: Use type-aware iteration in script for-loop (GH issue #436) --- tests/test/script/runner/for.testscript | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/test/script/runner') diff --git a/tests/test/script/runner/for.testscript b/tests/test/script/runner/for.testscript index f43fcc2..0ca67c3 100644 --- a/tests/test/script/runner/for.testscript +++ b/tests/test/script/runner/for.testscript @@ -30,6 +30,19 @@ %.+ -b% EOO + : custom-iteration + : + $c <>EOO + j = $json.parse('[1, 2, 3]') + for e: $j + echo $e >| + end + EOI + 1 + 2 + 3 + EOO + : special-var : $c <>EOE != 0 -- cgit v1.1