[前][次][番号順一覧][スレッド一覧]

ruby-changes:25758

From: tadf <ko1@a...>
Date: Fri, 23 Nov 2012 11:41:59 +0900 (JST)
Subject: [ruby-changes:25758] tadf:r37815 (trunk): * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2):

tadf	2012-11-23 11:41:47 +0900 (Fri, 23 Nov 2012)

  New Revision: 37815

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37815

  Log:
    * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2):
      revert the previous.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_rubyoptions.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37814)
+++ ChangeLog	(revision 37815)
@@ -1,3 +1,8 @@
+Fri Nov 23 11:40:13 2012  Tadayoshi Funaba  <tadf@d...>
+
+	* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2):
+	  revert the previous.
+
 Fri Nov 23 11:13:46 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2): refine
Index: test/ruby/test_rubyoptions.rb
===================================================================
--- test/ruby/test_rubyoptions.rb	(revision 37814)
+++ test/ruby/test_rubyoptions.rb	(revision 37815)
@@ -1,4 +1,3 @@
-# -*- coding: us-ascii -*-
 require 'test/unit'
 
 require 'tmpdir'
@@ -36,10 +35,13 @@
 
   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
 
   def test_option_variables

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]