diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-23 02:13:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-23 02:13:48 +0000 |
commit | 0d280f3d638e472aef0c388b6227f4739fd2e27d (patch) | |
tree | 3ac18d4f8699caa6a009cdca0dc48d62fda09dd6 /test/ruby/test_rubyoptions.rb | |
parent | d03ed07e60f34715298ace6d8b8a3619eb71407c (diff) |
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
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 0291850ba8..5f43ce2da3 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -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 |