summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-22 12:29:05 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-07-22 22:31:09 +0200
commitfc0bb828027d0893435613668fa9bb12e47dd169 (patch)
tree1532cd53da481cdfab7d27cc6c82f49e7af5b9d3 /tests
parentc4fb9f052bf975a4fee2733bfd34068ab1440955 (diff)
downloadNim-fc0bb828027d0893435613668fa9bb12e47dd169.tar.gz
fixes #4494
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/tunittest.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/stdlib/tunittest.nim b/tests/stdlib/tunittest.nim
index 73113ac68..e87cd3508 100644
--- a/tests/stdlib/tunittest.nim
+++ b/tests/stdlib/tunittest.nim
@@ -83,3 +83,9 @@ suite "suite with both":
 
   test "unittest with both 2":
     check c == 2
+
+suite "bug #4494":
+    test "Uniqueness check":
+      var tags = @[1, 2, 3, 4, 5]
+      check:
+        allIt(0..3, tags[it] != tags[it + 1])