diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-03-13 12:00:38 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-03-14 01:19:57 +0900 |
commit | c843afbf6f841bfb18afef3e7c87e48591fd4689 (patch) | |
tree | 474b9aa7ebaa87bfa085500cfa48d6ede86e7941 /test/ruby/test_rubyoptions.rb | |
parent | a05dfbd405fda4acef8c56561ab15e41e56c6abd (diff) |
Chomp last punctuations from descriptions for `-h`
The following parts will not be shown for `-h` option. And not to
reach 80 columns. Some terminal emulators (Windows command prompt at
least) wrap the cursor to the next line when reaching the rightmost
column, before exceeding.
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 8b8d12d5ae..d5626a1a94 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -46,7 +46,7 @@ class TestRubyOptions < Test::Unit::TestCase def test_usage assert_in_out_err(%w(-h)) do |r, e| assert_operator(r.size, :<=, 25) - longer = r[1..-1].select {|x| x.size > 80} + longer = r[1..-1].select {|x| x.size >= 80} assert_equal([], longer) assert_equal([], e) end |