[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby 1.9, OS X 10.5.2 Test Fail! After Build

Luis Mcdoguall

5/6/2008 4:15:00 AM

I bet someone knows how to fix this one!
Help Please

Thanks
-L

Source form ruby-1.9.0-1.tar.gz

test_thread.rb .......................
#230 test_knownbug.rb:19:in `<top (required)>':
class C
define_method(:foo) {
if block_given?
:ng
else
:ok
end
}
end
C.new.foo
#=> "ng" (expected "ok") [ruby-core:14813]
#231 test_knownbug.rb:32:in `<top (required)>':
class X < RuntimeError;end
x = [X]
begin
raise X
rescue *x
:ok
end
#=> "" (expected "ok") [ruby-core:14537]
#235 test_knownbug.rb:54:in `<top (required)>':
a = lambda {|x, y, &b| b }
b = a.curry[1]
if b.call(2){} == nil
:ng
else
:ok
end
#=> "ng" (expected "ok") [ruby-core:15551]
FAIL 3/807 tests failed
make: *** [btest-miniruby] Error 1
--
Posted via http://www.ruby-....

1 Answer

ts

5/6/2008 7:58:00 AM

0

Luis Mcdoguall wrote:
> #230 test_knownbug.rb:19:in `<top (required)>':
^^^^^^^^

Like said these are known bugs in the current implementation

> #231 test_knownbug.rb:32:in `<top (required)>':
> class X < RuntimeError;end

this bug is fixed in the latest implementation

> #230 test_knownbug.rb:19:in `<top (required)>':
> class C
> define_method(:foo) {

> #235 test_knownbug.rb:54:in `<top (required)>':
> a = lambda {|x, y, &b| b }

This two bugs are related, i.e. if you fix the first problem then
it's easy to fix the second.


Guy Decoux