Hi all,
I am new to Ruby and IronRuby as well, but I would like to help if I can.
Last week, I submitted a request for ssiadmin, but haven't heard back yet.

Meanwhile, I am trying to find some low hanging fruit.
I found a test in rspec that is failing, namely:

Time#asctime returns a canonical string representation of time FAILED
Expected "Fri May 29 13:44:16 2009"
 to equal ""

It looks like the underlying spec was mistyped:
It currently reads:
    t.send(@method).should == t.strftime("%a %b %e %H:%M:%S %Y")
but I believe should read:
    t.send(@method).should == t.strftime("%a %b %d %H:%M:%S %Y")

Of course, it isn't quite as easy as that. I tried the above string on 1.86 and 
received the following:
irb(main):005:0> t.strftime("%a %b %e %H:%M:%S %Y")
=> ""

However, IronRuby puts out:
>>> Time.now.strftime("%a %b %e %H:%M:%S %Y")
=> "Fri May e 14:00:42 2009"

So, we have two issues here, and this leads me to one more issue. The error 
that rspec out puts:

Time#asctime returns a canonical string representation of time FAILED
Expected "Fri May 29 13:44:16 2009"
 to equal ""

This error would suggest to me that the constant of what SHOULD happen is 
Expected "Fri May 29 13:44:16 2009", but what actually is happen in IronRuby 
was the empty string, "".

In reality, IronRuby is putting out the formatted String, and I think what 
should happen is the NULL string. Is this just backwards, or is this just an 
artifact of the dispatch from one test to another.

Thanks for the help.
joshua

PS
I also noticed a number of tests that were 'gig'ing IronRuby for capitalization 
issues like:
String#% supports float formats using %E, and upcases Inf, -Inf, and NaN FAILED
Expected "Inf"
 to equal "INF"

How are you all going to handle that? Is that an rspec issue or an IronRuby 
issue?

_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to