summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-23 08:31:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-23 08:31:52 +0000
commit38a1bcb056f90552f564fffbfcac421c30ea2266 (patch)
tree3ac18d4f8699caa6a009cdca0dc48d62fda09dd6 /test
parent10cceae9e374a3430383c85f1770bb478989769e (diff)
* ruby.c, test/ruby/test_rubyoptions.rb: revert r37815:r37816.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_rubyoptions.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index c77aa1f3dd..5f43ce2da3 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -1,3 +1,4 @@
+# -*- coding: us-ascii -*-
require 'test/unit'
require 'tmpdir'
@@ -35,11 +36,8 @@ class TestRubyOptions < Test::Unit::TestCase
def test_usage2
assert_in_out_err(%w(-h)) do |r, e|
- assert_operator(r[1..-1].collect{|x| x.size}.max, :<=, 80)
- assert_equal([], e)
- end
- assert_in_out_err(%w(--help)) do |r, e|
- assert_operator(r[1..-1].collect{|x| x.size}.max, :<=, 80)
+ longer = r[1..-1].select {|x| x.size > 80}
+ assert_equal([], longer)
assert_equal([], e)
end
end