summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_iterator.rb2
-rw-r--r--test/ruby/test_marshal.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_iterator.rb b/test/ruby/test_iterator.rb
index 4b9e7c17a1..2c367d22dc 100644
--- a/test/ruby/test_iterator.rb
+++ b/test/ruby/test_iterator.rb
@@ -203,7 +203,7 @@ class TestIterator < Test::Unit::TestCase
def test_proc
assert_instance_of(Proc, lambda{})
assert_instance_of(Proc, Proc.new{})
- lambda{|a|assert(a==1)}.call(1)
+ lambda{|a|assert_equal(a, 1)}.call(1)
end
def test_block
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb
index 7058c428ea..862b7e2006 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))