Ruby 1.9, OS X 10.5.2 Test Fail! After Build

L

Luis Mcdoguall

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
:eek:k
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
:eek:k
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
:eek:k
end
#=> "ng" (expected "ok") [ruby-core:15551]
FAIL 3/807 tests failed
make: *** [btest-miniruby] Error 1
 
T

ts

Luis said:
#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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top