1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2014-11-06 14:55:44 +00:00
parent c58962d43f
commit fa892d27af

View file

@ -714,4 +714,9 @@ EXPECTED
$VERBOSE = verbose
end
def test_invalid_warning
assert_warning(/unknown pack directive ',' in ','/) {
[].pack(",")
}
end
end