aboutsummaryrefslogtreecommitdiffstats
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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb
index 58154128e6..a4a6308299 100644
--- a/test/ruby/test_pack.rb
+++ b/test/ruby/test_pack.rb
@@ -567,7 +567,7 @@ class TestPack < Test::Unit::TestCase
end
def test_pack_p2
- assert([nil].pack("p") =~ /\A\0*\Z/)
+ assert_match(/\A\0*\Z/, [nil].pack("p"))
end
def test_pack_unpack_w