From 039b396088d086335925c3add556d4b2afae2ae1 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 27 Jan 2026 01:43:03 +0000 Subject: ccwl: Allow literals as arguments to workflows, not just commands. --- tests/ccwl.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests') 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 +;;; Copyright © 2021–2026 Arun Isaac ;;; ;;; 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 -- cgit 1.4.1