From a310aa43c3907fae62156be5478a3dacbb4e92f8 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 14 Oct 2023 00:30:04 +0100 Subject: 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. --- tests/ccwl.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') 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") -- cgit v1.2.3