String#include? does not take integers

This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-11-17 18:02:10 +09:00
parent 92be276d76
commit 57900d809f
2 changed files with 4 additions and 16 deletions
-2
View File
@@ -381,8 +381,6 @@ assert('String#hash', '15.2.10.5.20') do
end
assert('String#include?', '15.2.10.5.21') do
assert_true 'abc'.include?(97)
assert_false 'abc'.include?(100)
assert_true 'abc'.include?('a')
assert_false 'abc'.include?('d')
end