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:
parent
df79ded691
commit
2bc4268e79
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue