summaryrefslogtreecommitdiff
path: root/test/ruby/test_marshal.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-21 03:37:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-21 03:37:40 +0000
commit4e786ee1629b799a4af03ee935ede263cdcde05e (patch)
tree013a5ae3ae337253e5e92ac336cb5bfc136e2094 /test/ruby/test_marshal.rb
parentf04debed3b82ea6c76455cbd2abf848439809bfb (diff)
* test/ruby/{marshaltestlib,test_marshal}.rb: suppressed warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_marshal.rb')
-rw-r--r--test/ruby/test_marshal.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb
index 7f9a8f48e1..df02086da8 100644
--- a/test/ruby/test_marshal.rb
+++ b/test/ruby/test_marshal.rb
@@ -32,8 +32,8 @@ class TestMarshal < Test::Unit::TestCase
end
def test_marshal
- x = [1, 2, 3, [4,5,"foo"], {1=>"bar"}, 2.5, fact(30)]
- assert_equal x, Marshal.load(Marshal.dump(x))
+ a = [1, 2, 3, [4,5,"foo"], {1=>"bar"}, 2.5, fact(30)]
+ assert_equal a, Marshal.load(Marshal.dump(a))
[[1,2,3,4], [81, 2, 118, 3146]].each { |w,x,y,z|
obj = (x.to_f + y.to_f / z.to_f) * Math.exp(w.to_f / (x.to_f + y.to_f / z.to_f))