fix failing tests

This commit is contained in:
narimiran
2020-09-11 15:54:17 +02:00
parent abe72ba1b3
commit 5254e0693e
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ let a3 = not 0'u64
var success = false
try:
discard a3.int64
except RangeDefect:
except RangeError:
success = true
doAssert success, "conversion should fail at runtime"

View File

@@ -1,5 +1,5 @@
discard """
errormsg: "expression 'len(src) shl 1' is of type 'int' and has to be used (or discarded)"
errormsg: "expression 'len(src) shl 1' is of type 'int' and has to be discarded"
line: 19
"""