diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-21 03:37:40 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-21 03:37:40 +0000 |
| commit | 4ffd1dfb66ace45abab43bf3e63ed3ddbd868a04 (patch) | |
| tree | 013a5ae3ae337253e5e92ac336cb5bfc136e2094 /test/ruby | |
| parent | eccd550c846c0aee67ec7dc02edba09433d2df06 (diff) | |
| download | ruby-4ffd1dfb66ace45abab43bf3e63ed3ddbd868a04.tar.gz ruby-4ffd1dfb66ace45abab43bf3e63ed3ddbd868a04.tar.xz ruby-4ffd1dfb66ace45abab43bf3e63ed3ddbd868a04.zip | |
* test/ruby/{marshaltestlib,test_marshal}.rb: suppressed warnings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/marshaltestlib.rb | 4 | ||||
| -rw-r--r-- | test/ruby/test_marshal.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/marshaltestlib.rb b/test/ruby/marshaltestlib.rb index 8c55a086a..3c8f1228a 100644 --- a/test/ruby/marshaltestlib.rb +++ b/test/ruby/marshaltestlib.rb @@ -286,8 +286,8 @@ module MarshalTestLib o = "abc" o.extend(Mod1) str = MyString.new(o, "c") - marshal_equal(str) { |o| - assert(o.instance_eval { @v }).kind_of?(Mod1) + marshal_equal(str) { |v| + assert(v.instance_eval { @v }).kind_of?(Mod1) } end diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 7f9a8f48e..df02086da 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)) |
