diff options
author | Arun Isaac | 2023-10-09 14:51:56 +0100 |
---|---|---|
committer | Arun Isaac | 2023-10-09 20:32:39 +0100 |
commit | 7dbe776cb56803d9c66a847f5ac3613366754838 (patch) | |
tree | 19fc925dec08564921afdb3c9f96955bcf737bfb /tests | |
parent | 548cc54bc27b92c3a35a79d1af7440fbad896752 (diff) | |
download | ccwl-7dbe776cb56803d9c66a847f5ac3613366754838.tar.gz ccwl-7dbe776cb56803d9c66a847f5ac3613366754838.tar.lz ccwl-7dbe776cb56803d9c66a847f5ac3613366754838.zip |
ccwl: Error out if steps with expression commands have no identifier.
* ccwl/ccwl.scm (collect-steps): Error out if steps with expressions
that evaluate to commands have no identifier.
* tests/ccwl.scm ("step with expression that evaluates to a command
but without a step identifier must raise a &ccwl-violation
condition"): New test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ccwl.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ccwl.scm b/tests/ccwl.scm index 2207200..4f10450 100644 --- a/tests/ccwl.scm +++ b/tests/ccwl.scm @@ -145,4 +145,13 @@ (print) #:message message))) +(test-assert "step with expression that evaluates to a command but without a step identifier must raise a &ccwl-violation condition" + (guard (exception + (else (ccwl-violation? exception))) + (begin (macroexpand + '(workflow ((message #:type string)) + ((and #t print) + #:message message))) + #f))) + (test-end "ccwl") |