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:
parent
c58962d43f
commit
fa892d27af
1 changed files with 5 additions and 0 deletions
|
@ -714,4 +714,9 @@ EXPECTED
|
|||
$VERBOSE = verbose
|
||||
end
|
||||
|
||||
def test_invalid_warning
|
||||
assert_warning(/unknown pack directive ',' in ','/) {
|
||||
[].pack(",")
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue