[MacRuby] #865: String#lines(separator) is broken when specified separator == "".
#865: String#lines(separator) is broken when specified separator == "". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby $ cat test_lines.rb p "hello\n\n\nworld".lines().to_a p "hello\n\n\nworld".lines('\n').to_a p "hello\n\n\nworld".lines('').to_a }}} Result of Ruby 1.9.1: {{{ $ ruby test_lines.rb ["hello\n", "\n", "\n", "world"] ["hello\n\n\nworld"] ["hello\n\n\n", "world"] }}} Result of MacRuby Trunk: {{{ $ macruby test_lines.rb ["hello\n", "\n", "\n", "world"] ["hello\n\n\nworld"] ["hello\n", "\n", "\n", "world"] }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/865> MacRuby <http://macruby.org/>
#865: String#lines(separator) is broken when specified separator == "". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by martinlagardette@…): I'm not sure I understand why it works like that..., but I'll try to see if I can fix that :-) -- Ticket URL: <http://www.macruby.org/trac/ticket/865#comment:1> MacRuby <http://macruby.org/>
#865: String#lines(separator) is broken when specified separator == "". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: watson1978@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Changes (by watson1978@…): * owner: lsansonetti@… => watson1978@… * milestone: => MacRuby 1.0 -- Ticket URL: <http://www.macruby.org/trac/ticket/865#comment:2> MacRuby <http://macruby.org/>
#865: String#lines(separator) is broken when specified separator == "". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: watson1978@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 1.0 => MacRuby 0.8 Comment: Fixed with r5010. -- Ticket URL: <http://www.macruby.org/trac/ticket/865#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby