Skip to content

Commit

Permalink
update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Mar 12, 2024
1 parent 7f72d78 commit d5d5a15
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
5 changes: 1 addition & 4 deletions spec/approvals/examples/repeatable-arg
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ files:
path: file2:
content: content of file2
upcase: CONTENT OF FILE2
path: file1:
content: content of file1
upcase: CONTENT OF FILE1

args:
- ${args[file]} = file1 file2 file1
- ${args[file]} = file1 file2
12 changes: 12 additions & 0 deletions spec/approvals/fixtures/repeatable-escaping
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,15 @@ args:
[--serach] --> x"x
[--serach] --> after

+ ./cli once x once
args:
- ${args[term]} = once x
[TERM] --> once
[TERM] --> x

+ ./cli -s once -s x -s once
args:
- ${args[--search]} = once x
[--serach] --> once
[--serach] --> x

5 changes: 5 additions & 0 deletions spec/fixtures/workspaces/repeatable-escaping/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ bundle exec bashly generate
./cli -s before -s "x x" -s "x x" -s after
./cli -s before -s 'x "x x"' -s 'x "x x"' -s after
./cli -s before -s 'x"x' -s 'x"x' -s after

# in a repeatable+unique situation, the furst arg is treated slightly
# differently, so test this case as well
./cli once x once
./cli -s once -s x -s once

0 comments on commit d5d5a15

Please sign in to comment.