aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ccwl.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ccwl.scm b/tests/ccwl.scm
index 7cbb2c0..b26e854 100644
--- a/tests/ccwl.scm
+++ b/tests/ccwl.scm
@@ -264,4 +264,14 @@
(test-assert "tolerate prefixed string arguments in command definitions"
(command #:run "echo" ("-x" "foo")))
+(test-assert "command definitions with non-string prefixes in prefixed inputs must raise a &ccwl-violation condition"
+ (guard (exception
+ (else (and (ccwl-violation? exception)
+ (string=? (formatted-message-format exception)
+ "Invalid prefix ~a. Prefixes must be strings."))))
+ (begin (macroexpand
+ '(command #:inputs (number #:type int)
+ #:run "echo" (-x number)))
+ #f)))
+
(test-end "ccwl")