From 99a77f724b6bd4006ade19592b506ebba5a2bfa0 Mon Sep 17 00:00:00 2001 From: itchyny Date: Fri, 21 Jul 2023 09:01:28 +0900 Subject: [PATCH] Add a regression test for #2000 --- tests/jq.test | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/jq.test b/tests/jq.test index f43f9384..da35e9a8 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1520,6 +1520,11 @@ import "data" as $e; import "data" as $d; [$d[].this,$e[].that,$d::d[].this,$e:: null "is a test;is too;is a test;is too" +# Regression test for #2000 +import "data" as $a; import "data" as $b; def f: {$a, $b}; f +null +{"a":[{"this":"is a test","that":"is too"}],"b":[{"this":"is a test","that":"is too"}]} + include "shadow1"; e null 2