diff options
Diffstat (limited to 'tests/misc/tlowhigh.nim')
-rw-r--r-- | tests/misc/tlowhigh.nim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/misc/tlowhigh.nim b/tests/misc/tlowhigh.nim index 76f298a4a..6ae871255 100644 --- a/tests/misc/tlowhigh.nim +++ b/tests/misc/tlowhigh.nim @@ -1,5 +1,12 @@ discard """ action: run + output: ''' +18446744073709551615 +9223372036854775807 +4294967295 +0 +0 +''' """ var x: range[-1'f32..1'f32] @@ -16,3 +23,10 @@ doAssert y.type.high == 1'f64 # bug #11972 var num: uint8 doAssert num.high.float == 255.0 + +echo high(uint64) +echo high(int64) +echo high(uint32) + +echo low(uint64) +echo low(uint32) |