diff options
author | stomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-21 19:28:48 +0000 |
---|---|---|
committer | stomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-21 19:28:48 +0000 |
commit | 40bc846bf8a0504777c9f5bc4223faa8888889a6 (patch) | |
tree | 1d7cc4f8ab3db30ef86bc73732e228bb522dcc6c /NEWS | |
parent | 913afdf95c3edf40d49d31e9b153ad8ef3cd17dd (diff) | |
download | ruby-40bc846bf8a0504777c9f5bc4223faa8888889a6.tar.gz |
string.c: fix String#{casecmp,casecmp?} for non-string arguments
* string.c: make String#{casecmp,casecmp?} return nil for
non-string arguments instead of raising a TypeError.
* test/ruby/test_string.rb: add tests.
Reported by Marcus Stollsteimer. Based on a patch by Shingo Morita.
[ruby-core:80145] [Bug #13312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions