Skip to content

Commit 8f26c9b

Browse files
authored
Merge pull request #460 from common-workflow-language/expr-tests
Add tests for $(null) and .length on arrays.
2 parents 88df8ef + 9bcc4f1 commit 8f26c9b

File tree

4 files changed

+32
-4
lines changed

4 files changed

+32
-4
lines changed

v1.0/conformance_test_v1.0.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,9 @@
481481
"t6": "zab1",
482482
"t7": "zab1",
483483
"t8": "zab1",
484-
"t9": 2
484+
"t9": 2,
485+
"t27": null,
486+
"t28": 3
485487
}
486488
tool: v1.0/params.cwl
487489
doc: |
@@ -556,7 +558,9 @@
556558
"t6": "zab1",
557559
"t7": "zab1",
558560
"t8": "zab1",
559-
"t9": 2
561+
"t9": 2,
562+
"t27": null,
563+
"t28": 3
560564
}
561565
tool: v1.0/params2.cwl
562566
doc: |

v1.0/v1.0/params_inc.yml

+10
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,13 @@
108108
type: Any
109109
outputBinding:
110110
outputEval: $(inputs.bar.buz[1]) $(inputs.bar.buz[1])
111+
112+
- id: t27
113+
type: "null"
114+
outputBinding:
115+
outputEval: $(null)
116+
117+
- id: t28
118+
type: int
119+
outputBinding:
120+
outputEval: $(inputs.bar.buz.length)

v1.1.0-dev1/conformance_test_v1.1.0-dev1.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@
492492
"t6": "zab1",
493493
"t7": "zab1",
494494
"t8": "zab1",
495-
"t9": 2
495+
"t9": 2,
496+
"t27": null,
497+
"t28": 3
496498
}
497499
tool: v1.1.0-dev1/params.cwl
498500
doc: |
@@ -567,7 +569,9 @@
567569
"t6": "zab1",
568570
"t7": "zab1",
569571
"t8": "zab1",
570-
"t9": 2
572+
"t9": 2,
573+
"t27": null,
574+
"t28": 3
571575
}
572576
tool: v1.1.0-dev1/params2.cwl
573577
doc: |

v1.1.0-dev1/v1.1.0-dev1/params_inc.yml

+10
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,13 @@
108108
type: Any
109109
outputBinding:
110110
outputEval: $(inputs.bar.buz[1]) $(inputs.bar.buz[1])
111+
112+
- id: t27
113+
type: "null"
114+
outputBinding:
115+
outputEval: $(null)
116+
117+
- id: t28
118+
type: int
119+
outputBinding:
120+
outputEval: $(inputs.bar.buz.length)

0 commit comments

Comments
 (0)