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:
nobu 2018-01-26 03:41:04 +00:00
parent f36688449b
commit db1de35a31
2 changed files with 13 additions and 4 deletions

View file

@ -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