aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArun Isaac2023-10-13 23:52:08 +0100
committerArun Isaac2023-10-13 23:52:08 +0100
commit8465cbf1923e6e8e7dde682eb06875970762b649 (patch)
tree201a6940762232f6e54faa72403fad94f4046c94 /tests
parentce250b207342a190573ff237cf17048a9a258545 (diff)
downloadccwl-8465cbf1923e6e8e7dde682eb06875970762b649.tar.gz
ccwl-8465cbf1923e6e8e7dde682eb06875970762b649.tar.lz
ccwl-8465cbf1923e6e8e7dde682eb06875970762b649.zip
tests: Raise a &ccwl-violation on unknown keys.
* tests/ccwl.scm ("step supplied with an unknown key must raise a &ccwl-violation condition"): New test.
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 af76372..e64713c 100644
--- a/tests/ccwl.scm
+++ b/tests/ccwl.scm
@@ -167,4 +167,12 @@
(workflow ()
(print #:message "Hello")))
+(test-assert "step supplied with an unknown key must raise a &ccwl-violation condition"
+ (guard (exception
+ (else (ccwl-violation? exception)))
+ (begin (macroexpand
+ '(workflow ((message #:type string))
+ (print #:message mess)))
+ #f)))
+
(test-end "ccwl")