Skip to content

Commit

Permalink
add a test case for optional operator after object optional index
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Feb 26, 2022
1 parent 8c50c33 commit 3313d05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@
error: |
cannot iterate over: number (128)
- name: object optional index with optional operator
args:
- '.foo??, .'
input: '0'
expected: |
0
- name: error after optional operator
args:
- '1? | .foo'
Expand Down

0 comments on commit 3313d05

Please sign in to comment.