From fa892d27af38ef0685e944bf3a26390ef336b2ba Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 6 Nov 2014 14:55:44 +0000 Subject: [PATCH] test_pack.rb: test_invalid_warning * test/ruby/test_pack.rb (test_invalid_warning): add test for invalid directive warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_pack.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb index 86b34b3ba6..59edc3eb4b 100644 --- a/test/ruby/test_pack.rb +++ b/test/ruby/test_pack.rb @@ -714,4 +714,9 @@ EXPECTED $VERBOSE = verbose end + def test_invalid_warning + assert_warning(/unknown pack directive ',' in ','/) { + [].pack(",") + } + end end