summary refs log tree commit diff stats
path: root/tests/misc/tunsignedconv.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-07-29 11:11:58 +0200
committerGitHub <noreply@github.com>2020-07-29 11:11:58 +0200
commita3a87cdb298d7166846133bca5d56f055717474c (patch)
tree4df14ad933f8c51100d5f57e06279e573838c2b8 /tests/misc/tunsignedconv.nim
parentb2a1944587bd23f87d05ed20cf33dd11c4c86e26 (diff)
downloadNim-a3a87cdb298d7166846133bca5d56f055717474c.tar.gz
fixes #14616 [backport:1.2] (#15109)
Diffstat (limited to 'tests/misc/tunsignedconv.nim')
-rw-r--r--tests/misc/tunsignedconv.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/misc/tunsignedconv.nim b/tests/misc/tunsignedconv.nim
index 0e5fc43db..07fc03e59 100644
--- a/tests/misc/tunsignedconv.nim
+++ b/tests/misc/tunsignedconv.nim
@@ -59,3 +59,13 @@ discard $(x1,)
 # bug #13698
 let n: csize = 1 # xxx should that be csize_t or is that essential here?
 doAssert $n.int32 == "1"
+
+# bug #14616
+
+let limit = 1'u64
+
+let rangeVar = 0'u64 ..< limit
+
+doAssert repr(rangeVar) == """[a = 0,
+b = 0]
+"""