Skip to content

Commit d5d5a15

Browse files
committed
update specs
1 parent 7f72d78 commit d5d5a15

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

spec/approvals/examples/repeatable-arg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ files:
6969
path: file2:
7070
content: content of file2
7171
upcase: CONTENT OF FILE2
72-
path: file1:
73-
content: content of file1
74-
upcase: CONTENT OF FILE1
7572

7673
args:
77-
- ${args[file]} = file1 file2 file1
74+
- ${args[file]} = file1 file2

spec/approvals/fixtures/repeatable-escaping

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,15 @@ args:
4848
[--serach] --> x"x
4949
[--serach] --> after
5050

51+
+ ./cli once x once
52+
args:
53+
- ${args[term]} = once x
54+
[TERM] --> once
55+
[TERM] --> x
56+
57+
+ ./cli -s once -s x -s once
58+
args:
59+
- ${args[--search]} = once x
60+
[--serach] --> once
61+
[--serach] --> x
62+

spec/fixtures/workspaces/repeatable-escaping/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ bundle exec bashly generate
1313
./cli -s before -s "x x" -s "x x" -s after
1414
./cli -s before -s 'x "x x"' -s 'x "x x"' -s after
1515
./cli -s before -s 'x"x' -s 'x"x' -s after
16+
17+
# in a repeatable+unique situation, the furst arg is treated slightly
18+
# differently, so test this case as well
19+
./cli once x once
20+
./cli -s once -s x -s once

0 commit comments

Comments
 (0)