diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-05 11:28:27 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-05 11:28:27 +0000 |
commit | 8dfb9869b6ed065dfbdc45ea0e5a5f305facbfc0 (patch) | |
tree | f76634ece5171d4b04d427a6a19a1d2d92ef47d8 /test/ruby/test_const.rb | |
parent | 02b0891d4e3c26c9a64e647e3becf125c517bc7a (diff) | |
download | ruby-8dfb9869b6ed065dfbdc45ea0e5a5f305facbfc0.tar.gz ruby-8dfb9869b6ed065dfbdc45ea0e5a5f305facbfc0.tar.xz ruby-8dfb9869b6ed065dfbdc45ea0e5a5f305facbfc0.zip |
* test/ruby/test_*.rb: replace 'assert(a == b)' with assert_equal(a, b)'
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_const.rb')
-rw-r--r-- | test/ruby/test_const.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ruby/test_const.rb b/test/ruby/test_const.rb index 179271aef..9ad5bd433 100644 --- a/test/ruby/test_const.rb +++ b/test/ruby/test_const.rb @@ -20,16 +20,16 @@ class TestConst < Test::Unit::TestCase self.class.class_eval { include Const } - assert([TEST1,TEST2,TEST3,TEST4] == [1,2,3,4]) + assert_equal([TEST1,TEST2,TEST3,TEST4], [1,2,3,4]) self.class.class_eval { include Const2 } STDERR.print "intentionally redefines TEST3, TEST4\n" if $VERBOSE - assert([TEST1,TEST2,TEST3,TEST4] == [1,2,6,8]) + assert_equal([TEST1,TEST2,TEST3,TEST4], [1,2,6,8]) - assert((String <=> Object) == -1) - assert((Object <=> String) == 1) - assert((Array <=> String) == nil) + assert_equal((String <=> Object), -1) + assert_equal((Object <=> String), 1) + assert_equal((Array <=> String), nil) end end |