Corrected useless test

This commit is contained in:
Yuriy Glukhov 2018-06-15 14:31:47 +03:00 committed by zah
parent 42c8e730de
commit c55fc02b24
1 changed files with 4 additions and 2 deletions

View File

@ -67,5 +67,7 @@ suite "Typed ranges":
var s = @[1, 2, 3]
var r = s.toRange()
var r2 = r
check(r.baseAddr == r2.baseAddr)
# check(r.baseAddr == addr s[0]) # XXX: Uncomment once nim bug #8044 is fixed
s[0] = 5
# check(r[0] == 5) # XXX: Uncomment once nim bug #8044 is fixed
r[1] = 10
check(r2[1] == 10)