diff options
Diffstat (limited to 'tests/system/tdollars.nim')
-rw-r--r-- | tests/system/tdollars.nim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/system/tdollars.nim b/tests/system/tdollars.nim index 04595c93c..34801d9ee 100644 --- a/tests/system/tdollars.nim +++ b/tests/system/tdollars.nim @@ -127,6 +127,15 @@ block: block: doAssert $(4294967295'u32) == "4294967295" + + block: + proc foo1(arg: int): string = + let x = uint32(arg) + $x + + doAssert $foo1(-1) == "4294967295" + + proc main()= block: let a = -0.0 @@ -148,7 +157,6 @@ proc main()= doAssert $b == "0" doAssert $(0) == "0" - doAssert $uint32.high == "4294967295" |