Project

General

Profile

Bug #7564 ยป bug.patch

tenderlovemaking (Aaron Patterson), 12/15/2012 03:02 AM

View differences:

test/ruby/test_marshal.rb
return f
end
class MM
attr_reader :calls
def initialize
@calls = []
end
def method_missing name, *args
@calls << [name, args]
end
end
def test_mm
mm = MM.new
assert_instance_of(MM, Marshal.load(Marshal.dump(mm)))
assert mm.calls.empty?
end
def test_marshal
a = [1, 2, 3, [4,5,"foo"], {1=>"bar"}, 2.5, fact(30)]
assert_equal a, Marshal.load(Marshal.dump(a))
    (1-1/1)