summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-23 02:41:47 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-23 02:41:47 +0000
commitd53204f910ba374a8141c92a2344362e129baff5 (patch)
tree514b23c0e7a1b88d6ddfd21d68f0ba606ac4f7a4
parent0d280f3d638e472aef0c388b6227f4739fd2e27d (diff)
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2):
revert the previous. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_rubyoptions.rb8
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 01294b953f..202d3fee18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Nov 23 11:40:13 2012 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2):
+ revert the previous.
+
Fri Nov 23 11:13:46 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2): refine
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 5f43ce2da3..c77aa1f3dd 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -1,4 +1,3 @@
-# -*- coding: us-ascii -*-
require 'test/unit'
require 'tmpdir'
@@ -36,8 +35,11 @@ class TestRubyOptions < Test::Unit::TestCase
def test_usage2
assert_in_out_err(%w(-h)) do |r, e|
- longer = r[1..-1].select {|x| x.size > 80}
- assert_equal([], longer)
+ 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)
assert_equal([], e)
end
end