mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
optparse.rb: froze string literals
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f36688449b
commit
db1de35a31
2 changed files with 13 additions and 4 deletions
|
@ -44,4 +44,13 @@ class TestOptionParser::SummaryTest < TestOptionParser
|
|||
assert_equal("foo bar\n", o.to_s, bug6348)
|
||||
assert_equal(["foo bar"], o.to_a, bug6348)
|
||||
end
|
||||
|
||||
def test_ver
|
||||
o = OptionParser.new("foo bar")
|
||||
o.program_name = "foo"
|
||||
o.version = [0, 1]
|
||||
assert_equal "foo 0.1", o.ver
|
||||
o.release = "rel"
|
||||
assert_equal "foo 0.1 (rel)", o.ver
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue