diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-23 08:31:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-23 08:31:57 +0000 |
commit | 48df345894b80d20a51c7761a26b2d7bf83e9755 (patch) | |
tree | b75ad4b0d2bdf80473e10a4bb619f6bc5babb970 /test/ruby/test_rubyoptions.rb | |
parent | 38a1bcb056f90552f564fffbfcac421c30ea2266 (diff) | |
download | ruby-48df345894b80d20a51c7761a26b2d7bf83e9755.tar.gz |
ruby.c: wrap descriptions
* ruby.c (usage): wrap description lines if options are too long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 5f43ce2da3..7127cc41b8 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -40,6 +40,11 @@ class TestRubyOptions < Test::Unit::TestCase assert_equal([], longer) assert_equal([], e) end + assert_in_out_err(%w(--help)) do |r, e| + longer = r[1..-1].select {|x| x.size > 80} + assert_equal([], longer) + assert_equal([], e) + end end def test_option_variables |