repo.or.cz
/
io
/
quag.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updating built in Io code to use += instead of x = x + y
[io/quag.git]
/
libs
/
iovm
/
tests
/
WeakLinkTest.io
blob
6f180fa45bcf05fae0f7957d4dff8d214c4cbb01
1
2
WeakLinkTest
:=
UnitTest
clone do
(
3
test1
:=
method
(
4
a
:=
Object
clone
5
self
w
:=
WeakLink
clone
setLink
(
a
)
6
assertTrue
(
w link
==
a
)
7
//
a
=
1
8
//
Collector collect
9
)
10
test2
:=
method
(
11
Collector collect
12
assertTrue
(
w link
==
nil
)
13
)
14
)