Skip to content

Commit 0a4c51c

Browse files
committed
Allow records with defaults to be accepted, also type longs
1 parent 80b87ae commit 0a4c51c

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
@@ -3467,3 +3467,20 @@
34673467
tool: tests/colon_test_output.cwl
34683468
doc: Confirm that colons are tolerated in output directory names
34693469
tags: [ required, command_line_tool ]
3470+
3471+
- label: record_with_default
3472+
output:
3473+
same_record:
3474+
first: y
3475+
second: 23
3476+
third: 2.3
3477+
fourth: 4242424242
3478+
fifth: 4200000000000000000000000000000000000000000
3479+
sixth:
3480+
class: File
3481+
basename: whale.txt
3482+
size: 1111
3483+
checksum: sha1$327fc7aedf4f6b69a42a7c8b808dc5a7aff61376
3484+
tool: tests/paramref_arguments_roundtrip.cwl
3485+
doc: Confirm that records with defaults are accepted
3486+
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)