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_pack.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_pack.rb')
| -rw-r--r-- | test/ruby/test_pack.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb index 15b774f6c..4bb17993f 100644 --- a/test/ruby/test_pack.rb +++ b/test/ruby/test_pack.rb @@ -11,11 +11,11 @@ class TestPack < Test::Unit::TestCase $x = ary.pack($format) ary2 = $x.unpack($format) - assert(ary.length == ary2.length) - assert(ary.join(':') == ary2.join(':')) + assert_equal(ary.length, ary2.length) + assert_equal(ary.join(':'), ary2.join(':')) assert($x =~ /def/) $x = [-1073741825] - assert($x.pack("q").unpack("q") == $x) + assert_equal($x.pack("q").unpack("q"), $x) end end |
