diff options
Diffstat (limited to 'test/optparse/test_bash_completion.rb')
| -rw-r--r-- | test/optparse/test_bash_completion.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/optparse/test_bash_completion.rb b/test/optparse/test_bash_completion.rb index baeb6d9882..60c82f7136 100644 --- a/test/optparse/test_bash_completion.rb +++ b/test/optparse/test_bash_completion.rb @@ -1,9 +1,8 @@ +# frozen_string_literal: false require 'test/unit' require 'optparse' -class TestOptionParser < Test::Unit::TestCase -end -class TestOptionParser::BashCompletion < Test::Unit::TestCase +class TestOptionParserBashCompletion < Test::Unit::TestCase def setup @opt = OptionParser.new @opt.define("-z", "zzz") {} @@ -39,4 +38,9 @@ class TestOptionParser::BashCompletion < Test::Unit::TestCase def test_long_for_option_complete assert_equal(%w[hello help], @opt.candidate("--for=h")) end + + def test_case_sensitive + @opt.define("-Z") {} + assert_equal(%w[-z], @opt.candidate("-z")) + end end |
