diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-05 10:39:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-05 10:39:58 +0000 |
commit | af3da7d124e67a195e761d2b8e82f80320f57387 (patch) | |
tree | 43932329cfd3263545639cc67fe8cf6b0f21d113 /test/optparse/test_noarg.rb | |
parent | 174052749c836c59dcdb13a38c181bb3374b66e6 (diff) |
* lib/optparse.rb (OptionParser::Completion#complete): new parameter
to direct case insensitiveness.
* lib/optparse.rb (OptionParser#order!): ignore case only for long
option. [ruby-dev:25048]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/optparse/test_noarg.rb')
-rw-r--r-- | test/optparse/test_noarg.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/optparse/test_noarg.rb b/test/optparse/test_noarg.rb index cd57ed5a56..28c469093d 100644 --- a/test/optparse/test_noarg.rb +++ b/test/optparse/test_noarg.rb @@ -31,8 +31,8 @@ module TestOptionParser::NoArg assert_equal(%w"", no_error {@opt.parse!(%w"-o")}) assert_equal(true, @flag) @flag = nil - no_error {@opt.parse!(%w"-O")} - assert_equal(true, @flag) + assert_raises(OptionParser::InvalidOption) {@opt.parse!(%w"-O")} + assert_nil(@flag) @flag = nil assert_equal(%w"foo", no_error {@opt.parse!(%w"-o foo")}) assert_equal(true, @flag) |