summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_marshal.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-05 11:34:55 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-05 11:34:55 +0000
commit992c0cd52d9496f8c3766b0f0f78ffd70ceef543 (patch)
tree22018269fb8535912273d2142e73bc558f0f160e /test/ruby/test_marshal.rb
parentcebdca01748559df0b4f8dfef80bbc2e65044058 (diff)
downloadruby-992c0cd52d9496f8c3766b0f0f78ffd70ceef543.tar.gz
ruby-992c0cd52d9496f8c3766b0f0f78ffd70ceef543.tar.xz
ruby-992c0cd52d9496f8c3766b0f0f78ffd70ceef543.zip
* same as the previous commit.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4514 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 7058c428e..862b7e200 100644
--- a/test/ruby/test_marshal.rb
+++ b/test/ruby/test_marshal.rb
@@ -18,9 +18,9 @@ class TestMarshal < Test::Unit::TestCase
def test_marshal
$x = [1,2,3,[4,5,"foo"],{1=>"bar"},2.5,fact(30)]
$y = Marshal.dump($x)
- assert($x == Marshal.load($y))
+ assert_equal($x, Marshal.load($y))
- assert(Marshal.load(Marshal.dump(StrClone.new("abc"))).class == StrClone)
+ assert_equal(Marshal.load(Marshal.dump(StrClone.new("abc"))).class, StrClone)
[[1,2,3,4], [81, 2, 118, 3146]].each { |w,x,y,z|
a = (x.to_f + y.to_f / z.to_f) * Math.exp(w.to_f / (x.to_f + y.to_f / z.to_f))