miniwdl
miniwdl copied to clipboard
Transposed array is not equal to its explicit equivalent
When transpose
is called on an array, it is not considered equal to its explicitly typed counterpart:
version 1.1
workflow wf {
input {}
Array[Array[Int]] a = [[1,2,3]]
output {
Array[Array[Int]] a_transposed = transpose(a)
Array[Array[Int]] a_expected = [[1],[2],[3]]
Boolean equal = a_transposed == a_expected
}
}
{
"dir": "/home/heaucques/Documents/wdl-conformance-tests/20240702_105206_wf",
"outputs": {
"wf.a_expected": [
[
1
],
[
2
],
[
3
]
],
"wf.a_transposed": [
[
1
],
[
2
],
[
3
]
],
"wf.equal": false
}
}
The WDL 1.1 spec has a good example of this case as well implemented as part of their unit tests