Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Sep 28, 2020
1 parent 9c17ea7 commit c3fea3c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_5stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,20 @@ def test_map_pairs(self):
}
""")

with self.assertRaises(WDL.Error.StaticTypeMismatch):
self._test_task(R"""
version development
task test_keys {
input {
Array[Array[Int]] a2
}
command {}
output {
Map[Int,Int] x = collect_by_key(a2)
}
}
""")

with self.assertRaisesRegex(WDL.Error.EvalError, "duplicate"):
outputs = self._test_task(R"""
version development
Expand Down

0 comments on commit c3fea3c

Please sign in to comment.