1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_rubyoptions.rb (test_usage, test_usage_long):

reduced, renamed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2012-11-24 10:31:10 +00:00
parent 757413f6bb
commit 0114fde85a
2 changed files with 8 additions and 6 deletions

View file

@ -1,3 +1,8 @@
Sat Nov 24 19:29:18 2012 Tadayoshi Funaba <tadf@dotrb.org>
* test/ruby/test_rubyoptions.rb (test_usage, test_usage_long):
reduced, renamed.
Sat Nov 24 13:10:14 2012 Koichi Sasada <ko1@atdot.net> Sat Nov 24 13:10:14 2012 Koichi Sasada <ko1@atdot.net>
* vm_trace.c (rb_tracepoint_attr_raised_exception): should not check * vm_trace.c (rb_tracepoint_attr_raised_exception): should not check

View file

@ -30,16 +30,13 @@ class TestRubyOptions < Test::Unit::TestCase
def test_usage def test_usage
assert_in_out_err(%w(-h)) do |r, e| assert_in_out_err(%w(-h)) do |r, e|
assert_operator(r.size, :<=, 24) assert_operator(r.size, :<=, 24)
assert_equal([], e)
end
end
def test_usage2
assert_in_out_err(%w(-h)) do |r, e|
longer = r[1..-1].select {|x| x.size > 80} longer = r[1..-1].select {|x| x.size > 80}
assert_equal([], longer) assert_equal([], longer)
assert_equal([], e) assert_equal([], e)
end end
end
def test_usage_long
assert_in_out_err(%w(--help)) do |r, e| assert_in_out_err(%w(--help)) do |r, e|
longer = r[1..-1].select {|x| x.size > 80} longer = r[1..-1].select {|x| x.size > 80}
assert_equal([], longer) assert_equal([], longer)