summaryrefslogtreecommitdiff
path: root/test/ruby/test_pack.rb
diff options
context:
space:
mode:
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