Sha256: 769f29cbbccc7e38d33b01e321f95d906ba7d283f2583f0bcfef633b7a87038e
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Wref" do it "should not fail" do str = "Test" ref = Wref.new(str) raise "Should have been alive but wasnt." if !ref.alive? str = nil GC.start raise "Should have been GCed but wasnt." if ref.alive? str = "Test" map = Wref_map.new map[5] = str raise "Should have been valid but wasnt." if !map.valid?(5) str = nil GC.start raise "Should habe been garbage collected but wasnt." if !map.valid?(5) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wref-0.0.0 | spec/wref_spec.rb |