diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-06-23 01:53:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 10:53:03 +0200 |
commit | a9eee6db65e72e0e11cbf5faf0794b1b6ac8bd0c (patch) | |
tree | d96374f850dd5317966fb81a6771e85a143e415f /tests/misc/tunsignedconv.nim | |
parent | 8e54bc5b0c06dcf2ed0de6b8a10733155e15dc0a (diff) | |
download | Nim-a9eee6db65e72e0e11cbf5faf0794b1b6ac8bd0c.tar.gz |
misc testament cleanups (#14764)
* misc testament cleanups extracted cleanups from #14530 * make sure all CI failures can be searched with `FAIL: ` including megatest failures
Diffstat (limited to 'tests/misc/tunsignedconv.nim')
-rw-r--r-- | tests/misc/tunsignedconv.nim | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/misc/tunsignedconv.nim b/tests/misc/tunsignedconv.nim index bc7aff30a..0e5fc43db 100644 --- a/tests/misc/tunsignedconv.nim +++ b/tests/misc/tunsignedconv.nim @@ -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" |