summaryrefslogtreecommitdiff
path: root/test/optparse/test_getopts.rb
blob: 025adfbfceacab9cfa4e100c85d236169d448a51 (plain)
1
2
3
4
5
6
7
8
9
10
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