summary refs log tree commit diff stats
path: root/tests/collections
diff options
context:
space:
mode:
authorFabian Keller <bluenote10@users.noreply.github.com>2017-02-26 00:17:21 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-02-26 00:17:21 +0100
commit5774145f5d6b15b831d90e0daa10806d988da799 (patch)
tree84213adc7542579919075aa400c88714edb9d75f /tests/collections
parentf250c30b9d5beb587d3b62b99dc938447209836d (diff)
downloadNim-5774145f5d6b15b831d90e0daa10806d988da799.tar.gz
added hash for uints (#5435)
Diffstat (limited to 'tests/collections')
-rw-r--r--tests/collections/thashes.nim15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/collections/thashes.nim b/tests/collections/thashes.nim
index b9c639414..76b99313c 100644
--- a/tests/collections/thashes.nim
+++ b/tests/collections/thashes.nim
@@ -72,4 +72,19 @@ block:
   var t = initTable[int, int]()
   t[0] = 0
 
+# Check hashability of all integer types (issue #5429)
+block:
+  let intTables = (
+    newTable[int, string](),
+    newTable[int8, string](),
+    newTable[int16, string](),
+    newTable[int32, string](),
+    newTable[int64, string](),
+    newTable[uint, string](),
+    newTable[uint8, string](),
+    newTable[uint16, string](),
+    newTable[uint32, string](),
+    newTable[uint64, string](),
+  )
+
 echo "true"