From 65264eadbd3a8e1a3a96024e559a4a72d97c71e4 Mon Sep 17 00:00:00 2001 From: nahi Date: Fri, 5 Sep 2003 11:28:27 +0000 Subject: * 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 --- test/ruby/test_system.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/ruby/test_system.rb') diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb index b2858e5a8a..4b4eb77126 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -9,22 +9,22 @@ class TestSystem < Test::Unit::TestCase else ruby = "ruby" end - assert(`echo foobar` == "foobar\n") - assert(`#{ruby} -e 'print "foobar"'` == 'foobar') + assert_equal(`echo foobar`, "foobar\n") + assert_equal(`#{ruby} -e 'print "foobar"'`, 'foobar') tmp = open("script_tmp", "w") tmp.print "print $zzz\n"; tmp.close - assert(`#{ruby} -s script_tmp -zzz` == 'true') - assert(`#{ruby} -s script_tmp -zzz=555` == '555') + assert_equal(`#{ruby} -s script_tmp -zzz`, 'true') + assert_equal(`#{ruby} -s script_tmp -zzz=555`, '555') tmp = open("script_tmp", "w") tmp.print "#! /usr/local/bin/ruby -s\n"; tmp.print "print $zzz\n"; tmp.close - assert(`#{ruby} script_tmp -zzz=678` == '678') + assert_equal(`#{ruby} script_tmp -zzz=678`, '678') tmp = open("script_tmp", "w") tmp.print "this is a leading junk\n"; @@ -34,8 +34,8 @@ class TestSystem < Test::Unit::TestCase tmp.print "this is a trailing junk\n"; tmp.close - assert(`#{ruby} -x script_tmp` == 'nil') - assert(`#{ruby} -x script_tmp -zzz=555` == '555') + assert_equal(`#{ruby} -x script_tmp`, 'nil') + assert_equal(`#{ruby} -x script_tmp -zzz=555`, '555') tmp = open("script_tmp", "w") for i in 1..5 -- cgit v1.2.3