File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ cwlVersion: v1.2
2
+ class: CommandLineTool
3
+ baseCommand : echo
4
+ inputs :
5
+ letters:
6
+ type : string [][]
7
+ inputBinding :
8
+ position : 1
9
+ stdout : echo.txt
10
+ outputs :
11
+ echo: stdout
Original file line number Diff line number Diff line change @@ -1839,3 +1839,19 @@ def test_very_small_and_large_floats() -> None:
1839
1839
)
1840
1840
assert exit_code == 0 , stderr
1841
1841
assert json .loads (stdout )["result" ] == "0.00001 0.0000123 123000 1230000"
1842
+
1843
+
1844
+ def test_invalid_nested_array () -> None :
1845
+ """Test feature proposed for CWL v1.3 in a CWL v1.2 document."""
1846
+ exit_code , stdout , stderr = get_main_output (
1847
+ [
1848
+ "--validate" ,
1849
+ get_data ("tests/nested-array.cwl" ),
1850
+ ]
1851
+ )
1852
+ assert exit_code == 1 , stderr
1853
+ stderr = re .sub (r"\s\s+" , " " , stderr )
1854
+ assert "Tool definition failed validation:" in stderr
1855
+ assert (
1856
+ "tests/nested-array.cwl:6:5: Field 'type' references unknown identifier 'string[][]'"
1857
+ ) in stderr
You can’t perform that action at this time.
0 commit comments