From bc3d0f23bd0415ebefe63f818980b6deac5c3ff8 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 26 Sep 2006 14:59:20 +0000 Subject: * test/optparse/test_getopts.rb: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11030 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/optparse') diff --git a/test/optparse/test_getopts.rb b/test/optparse/test_getopts.rb new file mode 100644 index 000000000..025adfbfc --- /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