Forum: Ruby-core [Ruby 1.8 - Bug #7655][Open] range interval test does not consider string length

Posted by matecsaj (John Matecsa) (Guest)
on 2013-01-05 22:11
(Received via mailing list)
Issue #7655 has been reported by matecsaj (John Matecsa).

----------------------------------------
Bug #7655: range interval test does not consider string length
https://bugs.ruby-lang.org/issues/7655

Author: matecsaj (John Matecsa)
Status: Open
Priority: Normal
Assignee:
Category: build
Target version: Ruby 1.8.7
ruby -v: ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]


>> ('aaaaaa'..'zzzzzz') === 'count'  #is count a 6 letter word?
=> true

IMHO the result should be false


ran code in irb
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.