We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1fd716 commit be9d64fCopy full SHA for be9d64f
spec/truffle/objectspace/weak_key_map_spec.rb
@@ -27,26 +27,6 @@
27
map.getkey(key).should == nil
28
end
29
30
- it "has iterators methods that exclude unreferenced objects" do
31
- # This spec does not pass on MRI because the garbage collector is presumably too conservative and will not get rid
32
- # of the references eagerly enough.
33
-
34
- map = ObjectSpace::WeakKeyMap.new
35
- k1, k2 = %w[a b].map(&:upcase)
36
- v1, v2 = %w[x y].map(&:upcase)
37
- map[k1] = v1
38
- map[k2] = v2
39
- k2 = nil
40
41
- Primitive.gc_force
42
43
- map.key?(k2).should == false
44
- map[k2].should == nil
45
46
- map.key?(k1).should == true
47
- map[k1].should == v1
48
- end
49
50
it "supports frozen objects" do
51
map = ObjectSpace::WeakKeyMap.new
52
k = "x".freeze
0 commit comments