aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_iterator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_iterator.rb')
-rw-r--r--test/ruby/test_iterator.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_iterator.rb b/test/ruby/test_iterator.rb
index 96fd1542b0..4b9e7c17a1 100644
--- a/test/ruby/test_iterator.rb
+++ b/test/ruby/test_iterator.rb
@@ -239,13 +239,13 @@ class TestIterator < Test::Unit::TestCase
block = get_block{11}
assert_instance_of(Proc, block)
assert_instance_of(Proc, block.to_proc)
- assert(block.clone.call == 11)
+ assert_equal(block.clone.call, 11)
assert_instance_of(Proc, get_block(&block))
lambda = lambda{44}
assert_instance_of(Proc, lambda)
assert_instance_of(Proc, lambda.to_proc)
- assert(lambda.clone.call == 44)
+ assert_equal(lambda.clone.call, 44)
assert_instance_of(Proc, get_block(&lambda))
assert_equal(1, Proc.new{|a,| a}.call(1,2,3))