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

* test/optparse/test_getopts.rb: added.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2006-09-26 14:59:20 +00:00
parent 5da1743e3f
commit 6b55a46114

View file

@ -0,0 +1,11 @@
require 'test/unit'
class TestOptionParser < Test::Unit::TestCase
def setup
@opt = OptionParser.new
end
def test_getopts
assert_equal({'a' => true}, @opt.getopts(['-a'], "a"))
end
end