Skip to content

Commit 31ac1ae

Browse files
mr-cGlassOfWhiskey
authored andcommitted
Allow records with defaults to be accepted, also type longs
1 parent 9bbe62b commit 31ac1ae

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

conformance_tests.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3473,3 +3473,20 @@
34733473
tool: tests/colon_test_output.cwl
34743474
doc: Confirm that colons are tolerated in output directory names
34753475
tags: [ required, command_line_tool ]
3476+
3477+
- label: record_with_default
3478+
output:
3479+
same_record:
3480+
first: y
3481+
second: 23
3482+
third: 2.3
3483+
fourth: 4242424242
3484+
fifth: 4200000000000000000000000000000000000000000
3485+
sixth:
3486+
class: File
3487+
basename: whale.txt
3488+
size: 1111
3489+
checksum: sha1$327fc7aedf4f6b69a42a7c8b808dc5a7aff61376
3490+
tool: tests/paramref_arguments_roundtrip.cwl
3491+
doc: Confirm that records with defaults are accepted
3492+
tags: [ required, command_line_tool ]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env cwl-runner
2+
cwlVersion: v1.0
3+
class: CommandLineTool
4+
inputs:
5+
a_record:
6+
type:
7+
- "null"
8+
- type: record
9+
fields:
10+
first: string
11+
second: int
12+
third: float
13+
fourth: long
14+
fifth: double
15+
sixth: File
16+
default:
17+
first: y
18+
second: 23
19+
third: 2.3
20+
fourth: 4242424242
21+
fifth: 4200000000000000000000000000000000000000000
22+
sixth:
23+
class: File
24+
path: whale.txt
25+
arguments:
26+
- '{'
27+
- '"same_record": $(inputs.a_record)'
28+
- '}'
29+
outputs:
30+
same_record:
31+
type:
32+
type: record
33+
fields:
34+
first: string
35+
second: int
36+
third: float
37+
fourth: long
38+
fifth: double
39+
sixth: File
40+
baseCommand: echo
41+
stdout: cwl.output.json

0 commit comments

Comments
 (0)