test_rubyoptions.rb: refine assertion
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2): refine assertion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d03ed07e60
commit
0d280f3d63
@ -1,4 +1,7 @@
|
||||
Fri Nov 23 11:12:06 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Fri Nov 23 11:13:46 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2): refine
|
||||
assertion.
|
||||
|
||||
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2): now
|
||||
--help option is for modern terminals.
|
||||
|
@ -36,7 +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)
|
||||
longer = r[1..-1].select {|x| x.size > 80}
|
||||
assert_equal([], longer)
|
||||
assert_equal([], e)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user