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

* test/optparse/test_summary.rb (test_summary_containing_space): add

test for r35467. OptionParser#to_a shouldn't split banner by spaces.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagachika 2012-04-25 16:36:14 +00:00
parent df79ded691
commit 2bc4268e79
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Apr 26 01:32:33 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* test/optparse/test_summary.rb (test_summary_containing_space): add
test for r35467. OptionParser#to_a shouldn't split banner by spaces.
Wed Apr 25 23:02:46 2012 Tanaka Akira <akr@fsij.org>
* ext/socket/raddrinfo.c (init_unix_addrinfo): refine error message

View file

@ -35,4 +35,12 @@ class TestOptionParser::SummaryTest < TestOptionParser
assert_equal("foo\nbar\n", o.to_s)
assert_equal(["foo\n", "bar"], o.to_a)
end
def test_summary_containing_space
# test for r35467. OptionParser#to_a shouldn't split str by spaces.
bug6348 = '[ruby-dev:45568]'
o = OptionParser.new("foo bar")
assert_equal("foo bar\n", o.to_s, bug6348)
assert_equal(["foo bar"], o.to_a, bug6348)
end
end