misc testament cleanups (#14764)

* misc testament cleanups extracted cleanups from #14530

* make sure all CI failures can be searched with `FAIL: ` including megatest failures
This commit is contained in:
Timothee Cour 2020-06-23 01:53:03 -07:00 • committed by GitHub
commit a9eee6db65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 35 deletions

View file

@ -1,10 +1,4 @@
discard """
output: '''uint
1'''
"""
# Tests unsigned literals and implicit conversion between uints and ints
# Passes if it compiles
var h8:uint8 = 128
var h16:uint16 = 32768
@ -53,7 +47,7 @@ block t4176:
proc fun(): uint = cast[uint](-1)
const x0 = fun()
echo typeof(x0)
doAssert typeof(x0) is uint
discard $x0
@ -62,6 +56,6 @@ discard $x0
const x1 = cast[uint](-1)
discard $(x1,)
# bug 13698
let n: csize = 1
echo n.int32
# bug #13698
let n: csize = 1 # xxx should that be csize_t or is that essential here?
doAssert $n.int32 == "1"