ruby-changes:36225
From: nobu <ko1@a...>
Date: Thu, 6 Nov 2014 23:55:49 +0900 (JST)
Subject: [ruby-changes:36225] nobu:r48306 (trunk): test_pack.rb: test_invalid_warning
nobu 2014-11-06 23:55:44 +0900 (Thu, 06 Nov 2014) New Revision: 48306 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48306 Log: test_pack.rb: test_invalid_warning * test/ruby/test_pack.rb (test_invalid_warning): add test for invalid directive warnings. Modified files: trunk/test/ruby/test_pack.rb Index: test/ruby/test_pack.rb =================================================================== --- test/ruby/test_pack.rb (revision 48305) +++ test/ruby/test_pack.rb (revision 48306) @@ -714,4 +714,9 @@ EXPECTED https://github.com/ruby/ruby/blob/trunk/test/ruby/test_pack.rb#L714 $VERBOSE = verbose end + def test_invalid_warning + assert_warning(/unknown pack directive ',' in ','/) { + [].pack(",") + } + end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/