diff --git a/spec/approvals/examples/repeatable-arg b/spec/approvals/examples/repeatable-arg index ce7ad79a..a2407e39 100644 --- a/spec/approvals/examples/repeatable-arg +++ b/spec/approvals/examples/repeatable-arg @@ -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 diff --git a/spec/approvals/fixtures/repeatable-escaping b/spec/approvals/fixtures/repeatable-escaping index 237469d1..47c2c323 100644 --- a/spec/approvals/fixtures/repeatable-escaping +++ b/spec/approvals/fixtures/repeatable-escaping @@ -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 + diff --git a/spec/fixtures/workspaces/repeatable-escaping/test.sh b/spec/fixtures/workspaces/repeatable-escaping/test.sh index 1583abf6..9a10de0b 100644 --- a/spec/fixtures/workspaces/repeatable-escaping/test.sh +++ b/spec/fixtures/workspaces/repeatable-escaping/test.sh @@ -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 \ No newline at end of file