Project

General

Profile

Bug #7348 » marshal_fail.patch

tenderlovemaking (Aaron Patterson), 11/14/2012 09:20 AM

View differences:

test/ruby/test_marshal.rb
return f
end
def test_marshal_object_and_float
e = Object.new
calls = []
calls << [2.0, e]
calls << [e]
assert_equal calls, Marshal.load(Marshal.dump(calls))
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/2)