aboutsummaryrefslogtreecommitdiff
path: root/tests/ccwl.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccwl.scm')
-rw-r--r--tests/ccwl.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ccwl.scm b/tests/ccwl.scm
index 334633b..aef2a85 100644
--- a/tests/ccwl.scm
+++ b/tests/ccwl.scm
@@ -252,4 +252,13 @@
#:run "echo" ("-x" n)))
#f)))
+(test-assert "command definitions with invalid #:run arguments must raise a &ccwl-violation condition"
+ (guard (exception
+ (else (and (ccwl-violation? exception)
+ (string=? (formatted-message-format exception)
+ "Invalid command element ~a. Command elements must either be input identifiers or literal strings."))))
+ (begin (macroexpand
+ '(command #:run "echo" 42))
+ #f)))
+
(test-end "ccwl")