mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 15:06:10 +02:00
![]() ```
$ 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.
|
||
---|---|---|
.. | ||
test_acceptable.rb | ||
test_autoconf.rb | ||
test_bash_completion.rb | ||
test_cclass.rb | ||
test_did_you_mean.rb | ||
test_getopts.rb | ||
test_kwargs.rb | ||
test_load.rb | ||
test_noarg.rb | ||
test_optarg.rb | ||
test_optparse.rb | ||
test_placearg.rb | ||
test_reqarg.rb | ||
test_summary.rb | ||
test_zsh_completion.rb |