Skip to content

Commit

Permalink
APPS-1318 Update undeclared output of StdLib func (#374)
Browse files Browse the repository at this point in the history
(feat) build.sbt - updated dependency
(feat) run_tests.py - added integration test
  • Loading branch information
Gvaihir authored Aug 23, 2022
1 parent 353bdbf commit 80c4c87
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ lazy val dependencies =
val dxFileAccessProtocolsVersion = "0.5.5-SNAPSHOT"
val dxYamlVersion = "0.1.1"
val cwlScalaVersion = "0.8.4"
val wdlToolsVersion = "0.17.11"
val wdlToolsVersion = "0.17.12-SNAPSHOT"
val typesafeVersion = "1.4.1"
val sprayVersion = "1.3.6"
val scalatestVersion = "3.2.9"
Expand Down
1 change: 1 addition & 0 deletions scripts/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@

wdl_v1_list = [
# calling native dx applets/apps
"apps_1318_nested",
"call_native_v1",
"call_native_app",
"cast",
Expand Down
44 changes: 44 additions & 0 deletions test/wdl_1_0/apps_1318_nested.wdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version 1.0
workflow apps_1318_nested {
input {
Array[Int] foo = [1, 2, 3]
Array[Int] bar = [100, 200, 300]
}

# Artifically construct an array of optional integers
if (true) {
String i1 = "Hello"
}
if (false) {
String i2 = "Cruel"
}
if (true) {
String i3 = "World!"
}

Array[String?] lol = [i1, i2, i3]

scatter (nested_pair in zip(zip(foo, lol), bar)) {
call apps_1318_task1 {
input: foo_t1 = nested_pair.left.left, bar_t1 = nested_pair.right, lol_t1 = nested_pair.left.right
}
}

output {
Array[Int] blah = apps_1318_task1.out
}
}

task apps_1318_task1 {
input {
Int foo_t1
Int bar_t1
String? lol_t1
}
command <<<
echo ~{foo_t1}~{bar_t1}~{lol_t1}"_blah"
>>>
output {
Int out = 2
}
}

0 comments on commit 80c4c87

Please sign in to comment.