Skip to content

Commit 80c4c87

Browse files
authored
APPS-1318 Update undeclared output of StdLib func (#374)
(feat) build.sbt - updated dependency (feat) run_tests.py - added integration test
1 parent 353bdbf commit 80c4c87

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ lazy val dependencies =
137137
val dxFileAccessProtocolsVersion = "0.5.5-SNAPSHOT"
138138
val dxYamlVersion = "0.1.1"
139139
val cwlScalaVersion = "0.8.4"
140-
val wdlToolsVersion = "0.17.11"
140+
val wdlToolsVersion = "0.17.12-SNAPSHOT"
141141
val typesafeVersion = "1.4.1"
142142
val sprayVersion = "1.3.6"
143143
val scalatestVersion = "3.2.9"

scripts/run_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090

9191
wdl_v1_list = [
9292
# calling native dx applets/apps
93+
"apps_1318_nested",
9394
"call_native_v1",
9495
"call_native_app",
9596
"cast",

test/wdl_1_0/apps_1318_nested.wdl

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version 1.0
2+
workflow apps_1318_nested {
3+
input {
4+
Array[Int] foo = [1, 2, 3]
5+
Array[Int] bar = [100, 200, 300]
6+
}
7+
8+
# Artifically construct an array of optional integers
9+
if (true) {
10+
String i1 = "Hello"
11+
}
12+
if (false) {
13+
String i2 = "Cruel"
14+
}
15+
if (true) {
16+
String i3 = "World!"
17+
}
18+
19+
Array[String?] lol = [i1, i2, i3]
20+
21+
scatter (nested_pair in zip(zip(foo, lol), bar)) {
22+
call apps_1318_task1 {
23+
input: foo_t1 = nested_pair.left.left, bar_t1 = nested_pair.right, lol_t1 = nested_pair.left.right
24+
}
25+
}
26+
27+
output {
28+
Array[Int] blah = apps_1318_task1.out
29+
}
30+
}
31+
32+
task apps_1318_task1 {
33+
input {
34+
Int foo_t1
35+
Int bar_t1
36+
String? lol_t1
37+
}
38+
command <<<
39+
echo ~{foo_t1}~{bar_t1}~{lol_t1}"_blah"
40+
>>>
41+
output {
42+
Int out = 2
43+
}
44+
}

0 commit comments

Comments
 (0)