diff options
| author | Arun Isaac | 2025-11-24 00:57:12 +0000 |
|---|---|---|
| committer | Arun Isaac | 2025-11-24 01:33:27 +0000 |
| commit | 124c5c51c24b0eacba891da9c6a2e4bc9eb1937a (patch) | |
| tree | aef236cbb49a7591bddac49f888851dd0627428c /tests/reader.scm | |
| parent | d22f48630c08ef79fe25c580126a8d9bd373c522 (diff) | |
| download | ravanan-124c5c51c24b0eacba891da9c6a2e4bc9eb1937a.tar.gz ravanan-124c5c51c24b0eacba891da9c6a2e4bc9eb1937a.tar.lz ravanan-124c5c51c24b0eacba891da9c6a2e4bc9eb1937a.zip | |
reader: Resolve YAML inputs file type ambiguities.
Resolve YAML inputs file type ambiguities by reading them along with the workflow file and using the workflow input types to guide their type coercion.
Diffstat (limited to 'tests/reader.scm')
| -rw-r--r-- | tests/reader.scm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/reader.scm b/tests/reader.scm index 8ac18ec..77d6034 100644 --- a/tests/reader.scm +++ b/tests/reader.scm @@ -16,7 +16,8 @@ ;;; You should have received a copy of the GNU General Public License ;;; along with ravanan. If not, see <https://www.gnu.org/licenses/>. -(use-modules (srfi srfi-64) +(use-modules (srfi srfi-26) + (srfi srfi-64) (ice-9 filesystem) (ice-9 match) (web uri) @@ -217,4 +218,17 @@ (normalize-input '(("class" . "File") ("path" . "foo"))))))))) +(test-equal "Read YAML inputs file with type ambiguities" + '(("number" . 13) + ("flag" . #t) + ("reverseflag" . #f) + ("foo" . "bar") + ("arr" . #(1 2 3))) + (call-with-values + (cut read-workflow+inputs + "test-data/workflow-for-inputs-with-type-ambiguities.cwl" + "test-data/inputs-with-type-ambiguities.yaml") + (lambda (workflow inputs) + inputs))) + (test-end "reader") |
