Fixed a lazySlot bug where lazy slots in different objects end up pointing to the...
[io/quag.git] / libs / iovm / tests / WeakLinkTest.io
blob6f180fa45bcf05fae0f7957d4dff8d214c4cbb01
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
10 test2 := method(
11 Collector collect
12 assertTrue(w link == nil)