-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...TestCases/failures/nested_struct_bad_instantiation/nested_struct_bad_instantiation.inputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"MinimalStructExample.test": "Hello World", | ||
"MinimalStructExample.integer": 2 | ||
} |
27 changes: 27 additions & 0 deletions
27
...ardTestCases/failures/nested_struct_bad_instantiation/nested_struct_bad_instantiation.wdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version 1.0 | ||
|
||
|
||
struct firstLayer { | ||
String first | ||
Int number | ||
} | ||
|
||
struct secondLayer { | ||
String second | ||
firstLayer lowerLayer | ||
} | ||
|
||
|
||
workflow MinimalStructExample { | ||
input { | ||
String test | ||
Int integer | ||
} | ||
|
||
firstLayer example1 = {"first": test, "number": integer} | ||
secondLayer example2 = {"second": test, "lowerLayer": example1} | ||
|
||
output { | ||
String example3 = example2.second | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
centaur/src/main/resources/standardTestCases/nested_struct_bad_instantiation.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: nested_struct_bad_instantiation | ||
testFormat: workflowfailure | ||
|
||
files { | ||
workflow: failures/nested_struct_bad_instantiation/nested_struct_bad_instantiation.wdl | ||
inputs: failures/nested_struct_bad_instantiation/nested_struct_bad_instantiation.inputs | ||
} | ||
|
||
metadata { | ||
workflowName: MinimalStructExample | ||
status: Failed | ||
"failures.0.message": "Workflow failed" | ||
"failures.0.causedBy.0.message": "Failed to evaluate 'example2' (reason 1 of 1): Evaluating { \"second\": test, \"lowerLayer\": example1 } failed: Cannot construct WomMapType(WomStringType,WomAnyType) with mixed types in map values: [WomString(Hello World), WomObject(Map(first -> WomString(Hello World), number -> WomInteger(2)),WomCompositeType(Map(first -> WomStringType, number -> WomIntegerType),Some(firstLayer)))]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters