From 38a1bcb056f90552f564fffbfcac421c30ea2266 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 23 Nov 2012 08:31:52 +0000 Subject: * 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 --- test/ruby/test_rubyoptions.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'test/ruby/test_rubyoptions.rb') 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 -- cgit v1.2.3