From 736173e168bfafa64af44a71f135b77e1b6acbf0 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Tue, 26 Sep 2006 15:25:19 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'ruby_1_8'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/optparse/test_getopts.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/optparse/test_getopts.rb (limited to 'test') diff --git a/test/optparse/test_getopts.rb b/test/optparse/test_getopts.rb new file mode 100644 index 0000000000..025adfbfce --- /dev/null +++ b/test/optparse/test_getopts.rb @@ -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 -- cgit v1.2.3