summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-09-02 11:03:08 +0200
committerAraq <rumpf_a@web.de>2019-09-02 11:03:08 +0200
commit755c4428fe3a58e53baeff7df714ab660b9a3060 (patch)
treeaa67c19ca9bb6523b3326d407a545fd358775c9b
parent2396f0ee71a939d6305c829610dfb24f55e53c1c (diff)
downloadNim-755c4428fe3a58e53baeff7df714ab660b9a3060.tar.gz
added more tests and updated the changelog
-rw-r--r--changelog.md3
-rw-r--r--tests/misc/tlowhigh.nim14
2 files changed, 17 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 57820c81f..35639adc4 100644
--- a/changelog.md
+++ b/changelog.md
@@ -71,6 +71,9 @@ iterator mypairs[T](x: openarray[T]): tuple[idx: int, val: lent T]
 
 ## Language changes
 
+- `uint64` is now finally a regular ordinal type. This means `high(uint64)` compiles
+  and yields the correct value.
+
 
 ### Tool changes
 
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)