Corrected useless test
This commit is contained in:
parent
42c8e730de
commit
c55fc02b24
|
@ -67,5 +67,7 @@ suite "Typed ranges":
|
||||||
var s = @[1, 2, 3]
|
var s = @[1, 2, 3]
|
||||||
var r = s.toRange()
|
var r = s.toRange()
|
||||||
var r2 = r
|
var r2 = r
|
||||||
check(r.baseAddr == r2.baseAddr)
|
s[0] = 5
|
||||||
# check(r.baseAddr == addr s[0]) # XXX: Uncomment once nim bug #8044 is fixed
|
# check(r[0] == 5) # XXX: Uncomment once nim bug #8044 is fixed
|
||||||
|
r[1] = 10
|
||||||
|
check(r2[1] == 10)
|
||||||
|
|
Loading…
Reference in New Issue