From 069f6367b5c638c44e8f2c55ef1df604df2adac1 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 29 Nov 2025 04:30:26 +0000 Subject: work/command-line-tool: Accept ints as floats too. --- e2e-tests/jobs/int-for-float-input.yaml | 1 + e2e-tests/tests.yaml | 9 +++++++++ e2e-tests/tools/int-for-float-input.scm | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 e2e-tests/jobs/int-for-float-input.yaml create mode 100644 e2e-tests/tools/int-for-float-input.scm (limited to 'e2e-tests') diff --git a/e2e-tests/jobs/int-for-float-input.yaml b/e2e-tests/jobs/int-for-float-input.yaml new file mode 100644 index 0000000..32a3dc4 --- /dev/null +++ b/e2e-tests/jobs/int-for-float-input.yaml @@ -0,0 +1 @@ +message: 1 diff --git a/e2e-tests/tests.yaml b/e2e-tests/tests.yaml index b7ab40c..e04d4dd 100644 --- a/e2e-tests/tests.yaml +++ b/e2e-tests/tests.yaml @@ -214,3 +214,12 @@ class: File size: 13 checksum: sha1$47a013e660d408619d894b20806b1d5086aab03b +- id: int-for-float-input + doc: int supplied for float input must be coerced into a float + tool: tools/int-for-float-input.cwl + job: jobs/int-for-float-input.yaml + output: + output_message: + class: File + size: 2 + checksum: sha1$e5fa44f2b31c1fb553b6021e7360d07d5d91ff5e diff --git a/e2e-tests/tools/int-for-float-input.scm b/e2e-tests/tools/int-for-float-input.scm new file mode 100644 index 0000000..18b2f1f --- /dev/null +++ b/e2e-tests/tools/int-for-float-input.scm @@ -0,0 +1,3 @@ +(command #:inputs (message #:type float) + #:run "echo" message + #:outputs (output_message #:type stdout)) -- cgit 1.4.1