Ruby 1.9, OS X 10.5.2 Test Fail! After Build

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

Luis M. 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs