ruby/test/optparse
Yusuke Endoh f3ad68dd16 [ruby/optparse] Fix the test failure i ruby/ruby
```
$ make test-all TESTS=test/optparse/
...

[148/178] TestOptionParserDidYouMean#test_raise_unknown = 0.00 s
  1) Failure:
TestOptionParserDidYouMean#test_raise_unknown [/home/mame/work/ruby/test/optparse/test_optparse.rb:106]:
<["--bar"]> expected but was
<[]>.
```

In the old test/unit (bundled in ruby/ruby), when a test class inherits from
another test class, the child class runs all the tests defined in the parent
class.
However, it looks like the new test/unit does not do so. This is because the
test failure does not occur in ruby/optparse.

As a tentative solution, this changes the option names in TestOptionParser to
avoid the name conflict with TestOptionParserDidYouMean.

fee86ef7a4
2022-11-28 16:20:40 +00:00
..
test_acceptable.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_autoconf.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_bash_completion.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_cclass.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_did_you_mean.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_getopts.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_kwargs.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_load.rb [ruby/optparse] Add tests for load(into:) 2022-10-29 13:47:23 +00:00
test_noarg.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_optarg.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_optparse.rb [ruby/optparse] Fix the test failure i ruby/ruby 2022-11-28 16:20:40 +00:00
test_placearg.rb [ruby/optparse] Also accept '-' as an optional argument (https://github.com/ruby/optparse/pull/35) 2022-07-29 19:10:10 +09:00
test_reqarg.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_summary.rb [ruby/optparse] Don't treat empty string as an option description 2022-10-08 19:30:34 +09:00
test_zsh_completion.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00