aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArun Isaac2023-10-14 00:30:04 +0100
committerArun Isaac2023-10-14 00:30:04 +0100
commita310aa43c3907fae62156be5478a3dacbb4e92f8 (patch)
treeffd7055df63a4ceafe91b9d39d7ca4e8b01e5551 /tests
parent8465cbf1923e6e8e7dde682eb06875970762b649 (diff)
downloadccwl-a310aa43c3907fae62156be5478a3dacbb4e92f8.tar.gz
ccwl-a310aa43c3907fae62156be5478a3dacbb4e92f8.tar.lz
ccwl-a310aa43c3907fae62156be5478a3dacbb4e92f8.zip
ccwl: Raise &ccwl-violation when workflow syntax is not recognized.
* ccwl/ccwl.scm (workflow): Raise &ccwl-violation when workflow syntax is not recognized. * tests/ccwl.scm ("unrecognized workflow syntaxes must raise a &ccwl-violation condition"): New test.
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 e64713c..cd78739 100644
--- a/tests/ccwl.scm
+++ b/tests/ccwl.scm
@@ -175,4 +175,14 @@
(print #:message mess)))
#f)))
+(test-assert "unrecognized workflow syntaxes must raise a &ccwl-violation condition"
+ (guard (exception
+ (else (ccwl-violation? exception)))
+ (begin (macroexpand
+ '(workflow ((message1 #:type string)
+ (message2 #:type string))
+ (print (print1) #:message message1)
+ (print (print2) #:message message2)))
+ #f)))
+
(test-end "ccwl")