diff options
| author | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-26 15:25:19 +0000 |
|---|---|---|
| committer | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-26 15:25:19 +0000 |
| commit | 6e5fd0dff347bb3749bee019b670991818f8f856 (patch) | |
| tree | ba454b6b184fbd2edb1060b1ea0f22fc480ee10f /test/optparse | |
| parent | 1f3e7d7a55ecbbfe108c446933e32c060f6f2369 (diff) | |
| download | ruby-6e5fd0dff347bb3749bee019b670991818f8f856.tar.gz ruby-6e5fd0dff347bb3749bee019b670991818f8f856.tar.xz ruby-6e5fd0dff347bb3749bee019b670991818f8f856.zip | |
This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/optparse')
| -rw-r--r-- | test/optparse/test_getopts.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
