Skip to content

Commit

Permalink
add more test for alias name conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Feb 27, 2021
1 parent 527bee3 commit c32c293
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5866,11 +5866,12 @@
- -c
- -L
- 'testdata'
- 'include "6"; . as $x | $x, g'
- 'include "6"; include "13"; . as $x | $x, g, h'
input: '1'
expected: |
1
[1,2,{"foo":42}]
[[{"foo":10}],[1,2,{"foo":42}]]
- name: module directory option json parse error
args:
Expand Down
3 changes: 3 additions & 0 deletions cli/testdata/13.jq
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import "1" as $x;
include "6";
def h: [$x,g];

0 comments on commit c32c293

Please sign in to comment.