[MacRuby] #853: File.extname('.....x') should return "".
#853: File.extname('.....x') should return "". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ $ cat test_extname.rb p File.extname('test.rb') # => ".rb" p File.extname('.emacs.el') # => ".el" p File.extname('.profile') # => "" p File.extname('.x') # => "" p File.extname('..x') # => "" p File.extname('.....x') # => "" p File.extname('..profile') # => "" }}} Result of Ruby 1.9.1: {{{ $ ruby test_extname.rb ".rb" ".el" "" "" "" "" "" }}} Result of MacRuby Trunk: {{{ $ DYLD_LIBRARY_PATH=. ./macruby -I./lib test_extname.rb ".rb" ".el" "" "" ".x" ".x" ".profile" }}} I merged rb_file_s_extname() from Ruby 1.9 to add a necessary codes.[[BR]] I atach a patch file. -- Ticket URL: <http://www.macruby.org/trac/ticket/853> MacRuby <http://macruby.org/>
#853: File.extname('.....x') should return "". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): Looks good, please commit :) (Maybe run spec:ci first to see if there are no problems.) -- Ticket URL: <http://www.macruby.org/trac/ticket/853#comment:1> MacRuby <http://macruby.org/>
#853: File.extname('.....x') should return "". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: Thanks. Should be fixed in r4433. -- Ticket URL: <http://www.macruby.org/trac/ticket/853#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby