Ruby 1.9, OS X 10.5.2 Test Fail! After Build

Discussion in 'Ruby' started by Luis Mcdoguall, May 6, 2008.

  1. 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
    --
    Posted via http://www.ruby-forum.com/.
     
    Luis Mcdoguall, May 6, 2008
    #1
    1. Advertising

  2. Luis Mcdoguall

    ts Guest

    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
     
    ts, May 6, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wenjie

    if (f() != FAIL) or if (FAIL != f())?

    Wenjie, Jul 28, 2003, in forum: C Programming
    Replies:
    3
    Views:
    452
    E. Robert Tisdale
    Jul 31, 2003
  2. Replies:
    3
    Views:
    1,491
  3. Skybuck Flying

    Call oddities: &Test() vs &Test vs Test

    Skybuck Flying, Oct 4, 2009, in forum: C Programming
    Replies:
    1
    Views:
    706
    Skybuck Flying
    Oct 4, 2009
  4. nyiotis
    Replies:
    7
    Views:
    722
    nyiotis
    Dec 21, 2010
  5. DFS
    Replies:
    2
    Views:
    79
Loading...

Share This Page