зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
0d280f3d63
Коммит
d53204f910
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче