summaryrefslogtreecommitdiff
path: root/test/ruby/test_proc.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-05 11:28:27 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-05 11:28:27 +0000
commit65264eadbd3a8e1a3a96024e559a4a72d97c71e4 (patch)
treef76634ece5171d4b04d427a6a19a1d2d92ef47d8 /test/ruby/test_proc.rb
parentd9f38cbee88fdbb06d8577496062918da39fdeab (diff)
* test/ruby/test_*.rb: replace 'assert(a == b)' with assert_equal(a, b)'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r--test/ruby/test_proc.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb
index 0cf470ff00..893bc3f1a1 100644
--- a/test/ruby/test_proc.rb
+++ b/test/ruby/test_proc.rb
@@ -5,12 +5,12 @@ $KCODE = 'none'
class TestProc < Test::Unit::TestCase
def test_proc
$proc = proc{|i| i}
- assert($proc.call(2) == 2)
- assert($proc.call(3) == 3)
+ assert_equal($proc.call(2), 2)
+ assert_equal($proc.call(3), 3)
$proc = proc{|i| i*2}
- assert($proc.call(2) == 4)
- assert($proc.call(3) == 6)
+ assert_equal($proc.call(2), 4)
+ assert_equal($proc.call(3), 6)
proc{
iii=5 # nested local variable
@@ -40,6 +40,6 @@ class TestProc < Test::Unit::TestCase
$x=0
$proc.call(5)
$proc2.call
- assert($x == 5)
+ assert_equal($x, 5)
end
end