Projects

Ticket #644 (closed defect: fixed)

Opened 23 months ago

Last modified 23 months ago

String.include? bug

Reported by: jankassens@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.6
Component: MacRuby Keywords:
Cc: jankassens@…

Description

"foo".include?("") returns false, but should return true for any string.

Change History

Changed 23 months ago by jankassens@…

  • cc jankassens@… added

Cc Me!

Changed 23 months ago by lsansonetti@…

What version of MacRuby do you run? This seems to work on trunk as of r3901:

$ ./miniruby -e "p 'foo'.include?('')"
true

Changed 23 months ago by jankassens@…

The 0.5 installer version:

~$ macruby --version
MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
~$ macruby -e "p 'foo'.include?('')"
false

Changed 23 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacRuby 0.5 to MacRuby 0.6

Ah, then it has been fixed in trunk/0.6 :-) Thanks for the report anyway.

Note: See TracTickets for help on using tickets.