aboutsummaryrefslogtreecommitdiff
path: root/tests/ccwl.scm
diff options
context:
space:
mode:
authorArun Isaac2023-10-09 13:47:36 +0100
committerArun Isaac2023-10-09 14:50:51 +0100
commit548cc54bc27b92c3a35a79d1af7440fbad896752 (patch)
tree759b53c95f871451a77e37d8403444041051eb57 /tests/ccwl.scm
parent3e8dac4240eb1f3abe46ce0efac83a97283b8fcc (diff)
downloadccwl-548cc54bc27b92c3a35a79d1af7440fbad896752.tar.gz
ccwl-548cc54bc27b92c3a35a79d1af7440fbad896752.tar.lz
ccwl-548cc54bc27b92c3a35a79d1af7440fbad896752.zip
ccwl: In macro expansion, use eval instead of module introspection.
eval is not just more portable but also more flexible. It lets us allow steps with expressions that evaluate to commands. Sadly, we do not yet properly support commands defined in lexical scope. * ccwl/ccwl.scm (function-object): Use eval instead of module introspection. * tests/ccwl.scm ("allow steps with expressions that evaluate to commands"): New test.
Diffstat (limited to 'tests/ccwl.scm')
-rw-r--r--tests/ccwl.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ccwl.scm b/tests/ccwl.scm
index 9aa00f3..2207200 100644
--- a/tests/ccwl.scm
+++ b/tests/ccwl.scm
@@ -139,4 +139,10 @@
(workflow ()
(print-with-default)))
+(test-assert "allow steps with expressions that evaluate to commands"
+ (workflow ((message #:type string))
+ ((and #t print)
+ (print)
+ #:message message)))
+
(test-end "ccwl")