diff options
author | Arun Isaac | 2023-11-21 14:29:30 +0000 |
---|---|---|
committer | Arun Isaac | 2023-11-21 14:29:30 +0000 |
commit | 3caf3c6379496b12a5725fbe32282e6f2f130348 (patch) | |
tree | 272f85a4f9afba9760b23bdc0117cc4420842b13 /tests | |
parent | 980dac1aa212e27ad6f512acb54c93010fd06932 (diff) | |
download | ccwl-3caf3c6379496b12a5725fbe32282e6f2f130348.tar.gz ccwl-3caf3c6379496b12a5725fbe32282e6f2f130348.tar.lz ccwl-3caf3c6379496b12a5725fbe32282e6f2f130348.zip |
ccwl: Report unknown keys passed to rename.
* ccwl/ccwl.scm (collect-steps): Report unknown keys passed to rename.
* tests/ccwl.scm ("rename with unknown key must raise a
&ccwl-violation condition"): New test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ccwl.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ccwl.scm b/tests/ccwl.scm index 9e09a16..e876912 100644 --- a/tests/ccwl.scm +++ b/tests/ccwl.scm @@ -301,4 +301,11 @@ '(workflow ((message #:type string)) (rename (foo) #:foo message)))) +(test-condition "rename with unknown key must raise a &ccwl-violation condition" + (ccwl-violation-with-message? + "Unknown key ~a. Known keys at this step are ~a.") + (macroexpand + '(workflow ((foo #:type string)) + (rename #:bar foobar)))) + (test-end "ccwl") |