diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-06 14:55:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-06 14:55:44 +0000 |
commit | fa892d27af38ef0685e944bf3a26390ef336b2ba (patch) | |
tree | 40cae1ce6690230cfe2b20f502d171c12617a904 /test/ruby/test_pack.rb | |
parent | c58962d43f3ae09782afaddfb3108270eef2929e (diff) | |
download | ruby-fa892d27af38ef0685e944bf3a26390ef336b2ba.tar.gz |
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
Diffstat (limited to 'test/ruby/test_pack.rb')
-rw-r--r-- | test/ruby/test_pack.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |