about summary refs log tree commit diff
path: root/tests/ccwl.scm
diff options
context:
space:
mode:
authorArun Isaac2026-01-27 01:43:03 +0000
committerArun Isaac2026-01-27 01:48:20 +0000
commit039b396088d086335925c3add556d4b2afae2ae1 (patch)
treed13fbdc84be45211b478316bd13faf6e2528f521 /tests/ccwl.scm
parent7da2555b8b014a5801d15dc9bb1657274bd579e4 (diff)
downloadccwl-039b396088d086335925c3add556d4b2afae2ae1.tar.gz
ccwl-039b396088d086335925c3add556d4b2afae2ae1.tar.lz
ccwl-039b396088d086335925c3add556d4b2afae2ae1.zip
ccwl: Allow literals as arguments to workflows, not just commands.
Diffstat (limited to 'tests/ccwl.scm')
-rw-r--r--tests/ccwl.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/ccwl.scm b/tests/ccwl.scm
index 4aa5801..85ec322 100644
--- a/tests/ccwl.scm
+++ b/tests/ccwl.scm
@@ -1,5 +1,5 @@
 ;;; ccwl --- Concise Common Workflow Language
-;;; Copyright © 2021–2025 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2021–2026 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of ccwl.
 ;;;
@@ -187,6 +187,16 @@
   (workflow ()
     (print-int #:number 42)))
 
+;; TODO: Define this in the lexical scope of the test that requires
+;; it.
+(define print-workflow
+  (workflow ((message #:type string))
+    (print #:message message)))
+
+(test-assert "allow literals as arguments to workflows"
+  (workflow ()
+    (print-workflow #:message "foo")))
+
 (test-condition "step supplied with an unknown key must raise a &ccwl-violation condition"
   ccwl-violation?
   (macroexpand