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:
parent
5da1743e3f
commit
6b55a46114
1 changed files with 11 additions and 0 deletions
11
test/optparse/test_getopts.rb
Normal file
11
test/optparse/test_getopts.rb
Normal 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
|
Loading…
Add table
Reference in a new issue