summaryrefslogtreecommitdiff
path: root/test/ruby/test_system.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_system.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_system.rb')
-rw-r--r--test/ruby/test_system.rb14
1 files changed, 7 insertions, 7 deletions
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