Regression: 17 new RubySpec failures and 3 unit tests falirues caused by r7327 
(Array changes)
----------------------------------------------------------------------------------------------

                 Key: JRUBY-2880
                 URL: http://jira.codehaus.org/browse/JRUBY-2880
             Project: JRuby
          Issue Type: Bug
         Environment: Latest JRuby
            Reporter: Vladimir Sizikov
            Assignee: MenTaLguY
            Priority: Blocker
             Fix For: JRuby 1.1.4


Recent Array changes broke RubySpec tests and unit tests, just run 'ant spec' 
and 'ant test' to see the full list of failures.

{noformat}
run-junit-compiled:
     [echo] compile=JIT, jit.threshold=0, jit.max=-1, objectspace=true 
threadpool=false reflection=false version=ruby1_8
    [junit] Testsuite: org.jruby.test.ScriptTestSuite
    [junit] Tests run: 78, Failures: 0, Errors: 0, Time elapsed: 18.135 sec
    [junit]
    [junit] Testsuite: org.jruby.test.BFTSTestSuite
    [junit] Failure:
    [junit] test_fill(TestArray) 
[/opt/work/jruby.git/./test/externals/bfts/test_array.rb:380]:
    [junit] <[99]> expected but was
    [junit] <[nil]>.
    [junit] Failure:
    [junit] test_sort(TestArray) 
[/opt/work/jruby.git/./test/externals/bfts/test_array.rb:1081]:
    [junit] <[1, 1, 1, 1]> expected but was
    [junit] <[1, 2, 3, 4]>.
    [junit] Failure:
    [junit] test_sort_bang(TestArray) 
[/opt/work/jruby.git/./test/externals/bfts/test_array.rb:1095]:
    [junit] <[1, 1, 1, 1]> expected but was
    [junit] <[1, 2, 3, 4]>.
    [junit] )
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.505 sec
    [junit]
    [junit] Testcase: 
externals/bfts/test_array(org.jruby.test.TestUnitTestSuite$ScriptTest):   FAILED
    [junit] Faults encountered running test/externals/bfts/test_array, complete 
output follows:
    [junit] Failure:
    [junit] test_fill(TestArray) 
[/opt/work/jruby.git/./test/externals/bfts/test_array.rb:380]:
    [junit] <[99]> expected but was
    [junit] <[nil]>.
    [junit] Failure:
    [junit] test_sort(TestArray) 
[/opt/work/jruby.git/./test/externals/bfts/test_array.rb:1081]:
    [junit] <[1, 1, 1, 1]> expected but was
    [junit] <[1, 2, 3, 4]>.
    [junit] Failure:
    [junit] test_sort_bang(TestArray) 
[/opt/work/jruby.git/./test/externals/bfts/test_array.rb:1095]:
    [junit] <[1, 1, 1, 1]> expected but was
    [junit] <[1, 2, 3, 4]>.
    [junit]
    [junit] junit.framework.AssertionFailedError: Faults encountered running 
test/externals/bfts/test_array, complete output follows:
    [junit] Failure:
    [junit] test_fill(TestArray) 
[/opt/work/jruby.git/./test/externals/bfts/test_array.rb:380]:
    [junit] <[99]> expected but was
    [junit] <[nil]>.
    [junit] Failure:
    [junit] test_sort(TestArray) 
[/opt/work/jruby.git/./test/externals/bfts/test_array.rb:1081]:
    [junit] <[1, 1, 1, 1]> expected but was
    [junit] <[1, 2, 3, 4]>.
    [junit] Failure:
    [junit] test_sort_bang(TestArray) 
[/opt/work/jruby.git/./test/externals/bfts/test_array.rb:1095]:
    [junit] <[1, 1, 1, 1]> expected but was
    [junit] <[1, 2, 3, 4]>.
    [junit]
    [junit]     at 
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:206)
    [junit]
    [junit]

BUILD FAILED
/opt/work/jruby.git/build.xml:500: The following error occurred while executing 
this line:
/opt/work/jruby.git/build.xml:587: The following error occurred while executing 
this line:
/opt/work/jruby.git/build.xml:540: Tests failed
{noformat}

Rubyspec faliures:

{noformat}
run-specs-precompiled:
     [echo] Excludes: /opt/work/jruby.git/spec/tags
     [echo] compile=FORCE, threshold=0, objectspace=true threadpool=false 
reflection=false
     [java] jruby 1.1.3 (ruby 1.8.6 patchlevel 114) (2008-07-31 rev 7328+1) 
[i386-java]
     [java] /bin/sh: sad: not found
     [java]
     [java]
     [java] 1)
     [java] Array#fill replaces all elements in the array with object FAILED
     [java] Expected ["a", "b", "c", "duh"]
     [java]  to equal [8, 8, 8, 8]
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:7
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:54:in 
`load'
     [java]
     [java] 2)
     [java] Array#fill replaces length elements with object beginning with 
start index FAILED
     [java] Expected [1, 2, 3, 4, 5]
     [java]  to equal [1, 2, "a", "a", 5]
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:16
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:54:in 
`load'
     [java]
     [java] 3)
     [java] Array#fill tries to convert the passed arguments to Integers using 
#to_int FAILED
     [java] Expected [1, 2, 3, 4, 5]
     [java]  to equal [1, 2, "a", "a", 5]
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:34
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:54:in 
`load'
     [java]
     [java] 4)
     [java] Array#fill checks whether the passed arguments respond to #to_int 
FAILED
     [java] Expected [1, 2, 3, 4, 5]
     [java]  to equal [1, 2, "a", "a", 5]
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:41
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:54:in 
`load'
     [java]
     [java] 5)
     [java] Array#fill starts at 0 if the negative index is before the start of 
the array FAILED
     [java] Expected [1, 2, 3, 4, 5]
     [java]  to equal ["a", "a", "a", 4, 5]
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:45
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:54:in 
`load'
     [java]
     [java] 6)
     [java] Array#fill replaces elements in range with object FAILED
     [java] Expected [1, 2, 3, 4, 5, 6]
     [java]  to equal [8, 8, 8, 8, 5, 6]
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:70
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:54:in 
`load'
     [java]
     [java] 7)
     [java] Array#fill ignores length if it is nil FAILED
     [java] Expected [1, 2, 3]
     [java]  to equal [1, "x", "x"]
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:124
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/fill_spec.rb:54:in 
`load'
     [java]
     [java] 8)
     [java] Array#hash returns same hash code for arrays with the same content 
FAILED
     [java] Expected 66
     [java]  to equal 604
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/hash_spec.rb:50
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/hash_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/hash_spec.rb:54:in 
`load'
     [java]
     [java] 9)
     [java] Array#hash returns the same value if arrays are #eql? FAILED
     [java] Expected 66
     [java]  to equal 604
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/hash_spec.rb:57
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/hash_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/core/array/hash_spec.rb:54:in 
`load'
     [java]
     [java] 10)
     [java] Matrix.diagonal fills all non-diagonal cells with 0 FAILED
     [java] Expected nil
     [java]  to equal 0
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/diagonal_spec.rb:23
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/diagonal_spec.rb:21:in `each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/diagonal_spec.rb:21
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/diagonal_spec.rb:20:in `each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/diagonal_spec.rb:20
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/diagonal_spec.rb:4
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/diagonal_spec.rb:54:in `load'
     [java]
     [java] 11)
     [java] Matrix#/ returns an instance of Matrix ERROR
     [java] NoMethodError: undefined method `*' for nil:NilClass
     [java] /opt/work/jruby.git/lib/ruby/1.8/matrix.rb:614:in `inverse_from'
     [java] /opt/work/jruby.git/lib/ruby/1.8/matrix.rb:612:in `upto'
     [java] /opt/work/jruby.git/lib/ruby/1.8/matrix.rb:612:in `inverse_from'
     [java] /opt/work/jruby.git/lib/ruby/1.8/matrix.rb:603:in `each'
     [java] /opt/work/jruby.git/lib/ruby/1.8/matrix.rb:603:in `inverse_from'
     [java] /opt/work/jruby.git/lib/ruby/1.8/matrix.rb:592:in `each'
     [java] /opt/work/jruby.git/lib/ruby/1.8/matrix.rb:592:in `inverse_from'
     [java] /opt/work/jruby.git/lib/ruby/1.8/matrix.rb:581:in `inverse'
     [java] /opt/work/jruby.git/lib/ruby/1.8/matrix.rb:566:in `/'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/divide_spec.rb:39
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/divide_spec.rb:4
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/divide_spec.rb:54:in `load'
     [java]
     [java] 12)
     [java] Matrix.scalar initializes diagonal to value FAILED
     [java] Expected nil
     [java]  to equal 8
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:23
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:22:in `each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:22
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:4
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:54:in `load'
     [java]
     [java] 13)
     [java] Matrix.scalar initializes all non-diagonal values to 0 FAILED
     [java] Expected nil
     [java]  to equal 0
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:31
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:29:in `each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:29
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:28:in `each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:28
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:4
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:54:in `load'
     [java]
     [java] 14)
     [java] Matrix.scalar puts the second argument in all diagonal values FAILED
     [java] Expected nil
     [java]  to equal 8
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:54
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:53:in `each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:53
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:4
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:54:in `load'
     [java]
     [java] 15)
     [java] Matrix.scalar fills all values not on the main diagonal with 0 
FAILED
     [java] Expected nil
     [java]  to equal 0
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:62
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:60:in `each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:60
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:59:in `each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:59
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:4
     [java] 
/opt/work/jruby.git/spec/ruby/1.8/library/matrix/scalar_spec.rb:54:in `load'
     [java]
     [java] 16)
     [java] Matrix.zero initializes all cells to 0 FAILED
     [java] Expected nil
     [java]  to equal 0
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:25
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:24:in 
`each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:24
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:23:in 
`each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:23
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:54:in 
`load'
     [java]
     [java] 17)
     [java] Matrix.zero initializes all cells to 0 FAILED
     [java] Expected nil
     [java]  to equal 0
     [java]
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:50
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:49:in 
`each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:49
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:48:in 
`each'
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:48
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:4
     [java] /opt/work/jruby.git/spec/ruby/1.8/library/matrix/zero_spec.rb:54:in 
`load'
     [java]
     [java] Finished in 83.839000 seconds
     [java]
     [java] 2421 files, 8285 examples, 30463 expectations, 16 failures, 1 error
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to