From 9b4f73f0239b5473ea944893402cf95f6bebbc4d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 29 Nov 2025 02:41:31 +0000 Subject: workflow: Identify optional inputs with a boolean #f default. --- tests/workflow.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/workflow.scm (limited to 'tests') diff --git a/tests/workflow.scm b/tests/workflow.scm new file mode 100644 index 0000000..06b2609 --- /dev/null +++ b/tests/workflow.scm @@ -0,0 +1,31 @@ +;;; ravanan --- High-reproducibility CWL runner powered by Guix +;;; Copyright © 2025 Arun Isaac +;;; +;;; This file is part of ravanan. +;;; +;;; ravanan is free software: you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation, either version 3 of the License, or +;;; (at your option) any later version. +;;; +;;; ravanan is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;;; General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with ravanan. If not, see . + +(use-modules (srfi srfi-64)) + +(define optional-input? + (@@ (ravanan workflow) optional-input?)) + +(test-begin "workflow") + +(test-assert "Inputs that have a boolean #f default are also optional" + (optional-input? `(("id" . "foo") + ("type" . "boolean") + ("default" . #f)))) + +(test-end "workflow") -- cgit 1.4.1