summaryrefslogtreecommitdiff
path: root/test/ruby/test_pack.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_pack.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_pack.rb')
-rw-r--r--test/ruby/test_pack.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb
index 15b774f6ca..4bb17993f5 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