[Ironruby-core] changes to extname_spec.rb

Unnikrishnan Nair ksunair at yahoo.com
Wed May 14 09:34:32 EDT 2008


You are right, when I ran against MRI I got the "". In my case I always use _why's web page to test the results and unfortunatly the result was ".bashrc", you see I trust _why :) 
So if this has to match MRI, yes, then I need to change the code. Let me know.
Thanks.



----- Original Message ----
From: Alex Young <alex at blackkettle.org>
To: ironruby-core at rubyforge.org
Sent: Wednesday, May 14, 2008 5:43:59 AM
Subject: Re: [Ironruby-core] changes to extname_spec.rb

Unnikrishnan Nair wrote:
> One more spec change. Could you please review line 8 of this spec, it 
> should read
> 
>    File.extname(".bashrc").should == ".bashrc"
> 
> instead of
> 
>    File.extname(".bashrc").should == ""
Quick question:  are the specs supposed to ensure that IronRuby matches 
MRI's behaviour, or just that it's internally consistent?  I get this in 
MRI's IRB:

irb(main):001:0> File.extname(".bashrc")
=> ""

Also in YARV:

irb(main):002:0> File.extname(".bashrc")
=> ""

-- 
Alex
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080514/d58a9212/attachment.html>


More information about the Ironruby-core mailing list