aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ccwl.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ccwl.scm b/tests/ccwl.scm
index be986da..2d755ad 100644
--- a/tests/ccwl.scm
+++ b/tests/ccwl.scm
@@ -330,4 +330,12 @@
(= (length (delete-duplicates keys eq?))
(length keys))))
+(test-equal "count argument positions correctly when left-flanked by prefixed string arguments"
+ 3
+ ;; Input `in' should be counted as position 3, not 2.
+ (match (command-inputs
+ (command #:inputs in
+ #:run "foo" ("--bar" "bar") in))
+ ((in) (input-position in))))
+
(test-end "ccwl")