Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: JRuby 1.4
    • Fix Version/s: None
    • Component/s: RubySpec
    • Labels:
      None
    • Number of attachments :
      0

      Description

           [java] 2)
           [java] Matrix#collect returns an enumerator if no block is given ERROR
           [java] LocalJumpError: yield called out of block
           [java] /Users/headius/projects/jruby/spec/../lib/ruby/1.8/matrix.rb:328:in `collect'
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/shared/collect.rb:16
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/collect_spec.rb:5
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/collect_spec.rb:55:in `load'
           [java] 
           [java] 3)
           [java] Matrix#column returns self when called with a block FAILED
           [java] Expected 0
           [java]  to be identical to Matrix[[1, 2, 3], [2, 3, 4]]
           [java] 
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/column_spec.rb:25
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/column_spec.rb:4
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/column_spec.rb:55:in `load'
           [java] 
           [java] 4)
           [java] Matrix#column never yields when out of bounds FAILED
           [java] Expected to not get Exception 
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/column_spec.rb:33
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/column_spec.rb:4
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/column_spec.rb:55:in `load'
           [java] 
           [java] 5)
           [java] Matrix#eql? returns false if some elements are == but not eql? FAILED
           [java] Expected true to be false
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/eql_spec.rb:10
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/eql_spec.rb:5
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/eql_spec.rb:55:in `load'
           [java] 
           [java] 6)
           [java] Matrix#inspect returns 'Matrix.empty(...)' for empty matrices FAILED
           [java] Expected "Matrix[[], [], []]"
           [java]  to equal "Matrix.empty(3, 0)"
           [java] 
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/inspect_spec.rb:12
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/inspect_spec.rb:4
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/inspect_spec.rb:55:in `load'
           [java] 
           [java] 7)
           [java] Matrix#map returns an enumerator if no block is given ERROR
           [java] LocalJumpError: yield called out of block
           [java] /Users/headius/projects/jruby/spec/../lib/ruby/1.8/matrix.rb:328:in `collect'
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/shared/collect.rb:16
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/map_spec.rb:5
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/map_spec.rb:55:in `load'
           [java] 
           [java] 8)
           [java] Matrix#minor with start_row, nrows, start_col, ncols returns nil for negative nrows or ncols FAILED
           [java] Expected Matrix[nil]
           [java]  to equal nil
           [java] 
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/minor_spec.rb:33
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/minor_spec.rb:4
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/minor_spec.rb:55:in `load'
           [java] 
           [java] 9)
           [java] Matrix#minor with col_range, row_range returns nil if col_range or row_range is out of range ERROR
           [java] NoMethodError: undefined method `collect' for nil:NilClass
           [java] /Users/headius/projects/jruby/spec/../lib/ruby/1.8/matrix.rb:360:in `minor'
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/minor_spec.rb:66
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/minor_spec.rb:4
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/minor_spec.rb:55:in `load'
           [java] 
           [java] 10)
           [java] Matrix#row never yields when out of bounds FAILED
           [java] Expected to not get Exception 
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/row_spec.rb:34
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/row_spec.rb:4
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/row_spec.rb:55:in `load'
           [java] 
           [java] 11)
           [java] Matrix#square? returns handles empty matrices ERROR
           [java] NoMethodError: undefined method `size' for nil:NilClass
           [java] /Users/headius/projects/jruby/spec/../lib/ruby/1.8/matrix.rb:283:in `column_size'
           [java] /Users/headius/projects/jruby/spec/../lib/ruby/1.8/matrix.rb:390:in `square?'
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/square_spec.rb:25
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/square_spec.rb:4
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/square_spec.rb:55:in `load'
           [java] 
           [java] 12)
           [java] Matrix#transpose can transpose empty matrices ERROR
           [java] NoMethodError: undefined method `size' for nil:NilClass
           [java] /Users/headius/projects/jruby/spec/../lib/ruby/1.8/matrix.rb:145:in `columns'
           [java] /Users/headius/projects/jruby/spec/../lib/ruby/1.8/matrix.rb:804:in `transpose'
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/shared/transpose.rb:11
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/t_spec.rb:4
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/t_spec.rb:55:in `load'
           [java] 
           [java] 13)
           [java] Matrix#transpose can transpose empty matrices ERROR
           [java] NoMethodError: undefined method `size' for nil:NilClass
           [java] /Users/headius/projects/jruby/spec/../lib/ruby/1.8/matrix.rb:145:in `columns'
           [java] /Users/headius/projects/jruby/spec/../lib/ruby/1.8/matrix.rb:804:in `transpose'
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/shared/transpose.rb:11
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/transpose_spec.rb:4
           [java] /Users/headius/projects/jruby/spec/ruby/library/matrix/transpose_spec.rb:55:in `load'
      

        Activity

        Hide
        Hiro Asari added a comment -

        As of r23943 (http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23943) and RubySpec e1edd20 (http://github.com/rubyspec/rubyspec/commit/e1edd205b1140579676450ad549214a139977fa0), the results look like this:

        jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-04-01 e19e4dd) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
        ...FEFE.EEEEEE.F..E......EEFF.FFE.E........E..............EE..FFE.F..
        
        1)
        Matrix#collect returns an enumerator if no block is given FAILED
        Expected Matrix[[1, 2], [1, 2]] (Matrix)
        to be an instance of Enumerable::Enumerator
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/collect.rb:16
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/collect_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/collect_spec.rb:56:in `load'
        
        2)
        Matrix#column_size returns 0 for empty matrices ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_size_spec.rb:12
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_size_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_size_spec.rb:56:in `load'
        
        3)
        Matrix#column returns self when called with a block FAILED
        Expected 2
         to be identical to Matrix[[1, 2, 3], [2, 3, 4]]
        
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:25
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:56:in `load'
        
        4)
        Matrix#column returns nil when out of bounds FAILED
        Expected Vector[nil, nil]
         to equal nil
        
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:29
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:56:in `load'
        
        5)
        Matrix#column never yields when out of bounds FAILED
        Expected to not get Exception 
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:33
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:56:in `load'
        
        6)
        Matrix.column_vector returns an empty Matrix when called with an empty Array ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_vector_spec.rb:17
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_vector_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_vector_spec.rb:56:in `load'
        
        7)
        Matrix.columns handles empty matrices ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:144:in `columns'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/columns_spec.rb:26
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/columns_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/columns_spec.rb:56:in `load'
        
        8)
        Matrix#conj returns a matrix with all entries 'conjugated' ERROR
        NoMethodError: undefined method `conj' for Matrix[[1, 2], [3, 4]]:Matrix
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/conjugate.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conj_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conj_spec.rb:56:in `load'
        
        9)
        Matrix#conj returns empty matrices on the same size if empty ERROR
        NoMethodError: undefined method `empty' for Matrix:Class
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/conjugate.rb:10
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conj_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conj_spec.rb:56:in `load'
        
        10)
        Matrix#conjugate returns a matrix with all entries 'conjugated' ERROR
        NoMethodError: undefined method `conjugate' for Matrix[[1, 2], [3, 4]]:Matrix
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/conjugate.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conjugate_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conjugate_spec.rb:56:in `load'
        
        11)
        Matrix#conjugate returns empty matrices on the same size if empty ERROR
        NoMethodError: undefined method `empty' for Matrix:Class
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/conjugate.rb:10
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conjugate_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conjugate_spec.rb:56:in `load'
        
        12)
        Matrix.[] requires arrays as parameters FAILED
        Expected TypeError but no exception was raised
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:8
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load'
        
        13)
        Matrix.[] creates an empty Matrix with no arguments ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:16
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load'
        
        14)
        Matrix.[] raises for non-rectangular matrices FAILED
        Expected ExceptionForMatrix::ErrDimensionMismatch but no exception was raised
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:21
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load'
        
        15)
        Matrix.[] accepts vector arguments FAILED
        Expected Matrix[Vector[1, 2], Vector[3, 4]]
         to equal Matrix[[1, 2], [3, 4]]
        
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:30
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load'
        
        16)
        Matrix.[] tries to calls :to_ary on arguments FAILED
        Expected Matrix[#<MockObject:0x7b99f8e6>, [3, 4]]
        to equal Matrix[[1, 2], [3, 4]]
        
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:36
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load'
        
        17)
        An exception occurred during: Mock.verify_count
        Matrix.[] tries to calls :to_ary on arguments FAILED
        Mock 'ary' expected to receive 'to_ary' exactly 1 times but received it 0 times
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load'
        
        18)
        Matrix#det returns the determinant of a square Matrix FAILED
        Expected 63
         to equal 45
        
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:14
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:56:in `load'
        
        19)
        Matrix#det returns 1 for an empty Matrix ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:379:in `square?'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:655:in `determinant'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:32
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:56:in `load'
        
        20)
        Matrix#det raises an error for rectangular matrices FAILED
        Expected ExceptionForMatrix::ErrDimensionMismatch but no exception was raised
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:44
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:56:in `load'
        
        21)
        Matrix#determinant returns the determinant of a square Matrix FAILED
        Expected 63
         to equal 45
        
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:14
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:56:in `load'
        
        22)
        Matrix#determinant returns 1 for an empty Matrix ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:379:in `square?'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:655:in `determinant'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:32
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:56:in `load'
        
        23)
        Matrix#determinant raises an error for rectangular matrices FAILED
        Expected ExceptionForMatrix::ErrDimensionMismatch but no exception was raised
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:44
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:56:in `load'
        
        24)
        Matrix#/ returns the result of dividing self by another Matrix FAILED
        Expected Matrix[[2.5, -1.5], [1.5, -0.5]]
        to be within +/- 3.0e-05 of Matrix[[0, 0], [0, 0]]
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/divide_spec.rb:14
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/divide_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/divide_spec.rb:56:in `load'
        
        25)
        Matrix#[] returns nil for an invalid index pair ERROR
        NoMethodError: undefined method `[]' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:262:in `[]'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/element_reference_spec.rb:20
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/element_reference_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/element_reference_spec.rb:56:in `load'
        
        26)
        Matrix#imag returns a matrix with the imaginary part of the elements of the receiver ERROR
        NoMethodError: undefined method `imag' for Matrix[[1, 2], [3, 4]]:Matrix
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/imaginary.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imag_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imag_spec.rb:56:in `load'
        
        27)
        Matrix#imag returns empty matrices on the same size if empty ERROR
        NoMethodError: undefined method `empty' for Matrix:Class
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/imaginary.rb:10
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imag_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imag_spec.rb:56:in `load'
        
        28)
        Matrix#imaginary returns a matrix with the imaginary part of the elements of the receiver ERROR
        NoMethodError: undefined method `imaginary' for Matrix[[1, 2], [3, 4]]:Matrix
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/imaginary.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imaginary_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imaginary_spec.rb:56:in `load'
        
        29)
        Matrix#imaginary returns empty matrices on the same size if empty ERROR
        NoMethodError: undefined method `empty' for Matrix:Class
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/imaginary.rb:10
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imaginary_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imaginary_spec.rb:56:in `load'
        
        30)
        Matrix#inspect returns 'Matrix.empty(...)' for empty matrices FAILED
        Expected "Matrix[[], [], []]"
         to equal "Matrix.empty(3, 0)"
        
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inspect_spec.rb:12
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inspect_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inspect_spec.rb:56:in `load'
        
        31)
        Matrix#inv returns the inverse of the Matrix (other case) FAILED
        Expected Matrix[[-24, 18, 5], [20, -15, -4], [-5, 4, 1]]
        to be within +/- 3.0e-05 of Matrix[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/inverse.rb:20
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inv_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inv_spec.rb:56:in `load'
        
        32)
        Matrix#inv raises a ErrDimensionMismatch if the Matrix is not square FAILED
        Expected ExceptionForMatrix::ErrDimensionMismatch
        but got NoMethodError (undefined method `-' for nil:NilClass)
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/inverse.rb:29
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inv_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inv_spec.rb:56:in `load'
        
        33)
        Matrix#inverse returns the inverse of the Matrix (other case) FAILED
        Expected Matrix[[-24, 18, 5], [20, -15, -4], [-5, 4, 1]]
        to be within +/- 3.0e-05 of Matrix[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/inverse.rb:20
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inverse_spec.rb:6
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inverse_spec.rb:56:in `load'
        
        34)
        Matrix#inverse raises a ErrDimensionMismatch if the Matrix is not square FAILED
        Expected ExceptionForMatrix::ErrDimensionMismatch
        but got NoMethodError (undefined method `-' for nil:NilClass)
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/inverse.rb:29
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inverse_spec.rb:6
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inverse_spec.rb:56:in `load'
        
        35)
        Matrix#map returns an enumerator if no block is given FAILED
        Expected Matrix[[1, 2], [1, 2]] (Matrix)
        to be an instance of Enumerable::Enumerator
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/collect.rb:16
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/map_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/map_spec.rb:56:in `load'
        
        36)
        Matrix#minor with start_row, nrows, start_col, ncols returns an empty Matrix unless nrows and ncols are greater than 0 ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:144:in `columns'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:19
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:56:in `load'
        
        37)
        Matrix#minor with start_row, nrows, start_col, ncols returns nil for out-of-bounds start_row/col ERROR
        NoMethodError: undefined method `collect' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:349:in `minor'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:26
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:56:in `load'
        
        38)
        Matrix#minor with start_row, nrows, start_col, ncols returns nil for negative nrows or ncols FAILED
        Expected Matrix[nil]
         to equal nil
        
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:33
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:56:in `load'
        
        39)
        Matrix#minor with col_range, row_range returns nil if col_range or row_range is out of range ERROR
        NoMethodError: undefined method `collect' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:349:in `minor'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:66
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:56:in `load'
        
        40)
        Matrix#* returns a zero matrix if (nx0) * (0xn) ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:456:in `*'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:455:in `each'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:455:in `collect'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:455:in `*'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:39
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:56:in `load'
        
        41)
        Matrix#* returns an empty matrix if (0xn) * (nx0) ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:453:in `*'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:43
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:56:in `load'
        
        42)
        Matrix#* returns a 0xm matrix if (0xm) * (mxn) ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:453:in `*'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:51
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:56:in `load'
        
        43)
        Matrix#row returns self when called with a block FAILED
        Expected [1, 2]
         to be identical to Matrix[[1, 2], [2, 3], [3, 4]]
        
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:25
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:56:in `load'
        
        44)
        Matrix#row returns nil when out of bounds ERROR
        TypeError: can't dup NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:977:in `init_elements'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:969:in `initialize'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:962:in `new'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:962:in `elements'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:290:in `row'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:29
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:56:in `load'
        
        45)
        Matrix#row never yields when out of bounds FAILED
        Expected to not get Exception 
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:34
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:56:in `load'
        
        46)
        Matrix#square? returns handles empty matrices ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:379:in `square?'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/square_spec.rb:25
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/square_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/square_spec.rb:56:in `load'
        
        47)
        Matrix#transpose can transpose empty matrices ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:144:in `columns'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:756:in `transpose'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/transpose.rb:11
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/t_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/t_spec.rb:56:in `load'
        
        48)
        Matrix#tr returns the sum of diagonal elements in a rectangular Matrix FAILED
        Expected ExceptionForMatrix::ErrDimensionMismatch
        but got NoMethodError (undefined method `[]' for nil:NilClass)
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/trace.rb:10
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/tr_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/tr_spec.rb:56:in `load'
        
        49)
        Matrix#trace returns the sum of diagonal elements in a rectangular Matrix FAILED
        Expected ExceptionForMatrix::ErrDimensionMismatch
        but got NoMethodError (undefined method `[]' for nil:NilClass)
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/trace.rb:10
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/trace_spec.rb:5
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/trace_spec.rb:56:in `load'
        
        50)
        Matrix#transpose can transpose empty matrices ERROR
        NoMethodError: undefined method `size' for nil:NilClass
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:144:in `columns'
        /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:756:in `transpose'
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/transpose.rb:11
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/transpose_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/transpose_spec.rb:56:in `load'
        
        51)
        Vector.each2 given one argument returns self when given a block FAILED
        Expected 3
         to be identical to Vector[1, 2, 3]
        
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/vector/each2_spec.rb:41
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/vector/each2_spec.rb:4
        /Users/asari/Development/src/jruby/spec/ruby/library/matrix/vector/each2_spec.rb:56:in `load'
        
        Finished in 1.100000 seconds
        
        69 files, 183 examples, 384 expectations, 26 failures, 25 errors
        
        Show
        Hiro Asari added a comment - As of r23943 ( http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23943 ) and RubySpec e1edd20 ( http://github.com/rubyspec/rubyspec/commit/e1edd205b1140579676450ad549214a139977fa0 ), the results look like this: jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-04-01 e19e4dd) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java] ...FEFE.EEEEEE.F..E......EEFF.FFE.E........E..............EE..FFE.F.. 1) Matrix#collect returns an enumerator if no block is given FAILED Expected Matrix[[1, 2], [1, 2]] (Matrix) to be an instance of Enumerable::Enumerator /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/collect.rb:16 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/collect_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/collect_spec.rb:56:in `load' 2) Matrix#column_size returns 0 for empty matrices ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_size_spec.rb:12 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_size_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_size_spec.rb:56:in `load' 3) Matrix#column returns self when called with a block FAILED Expected 2 to be identical to Matrix[[1, 2, 3], [2, 3, 4]] /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:25 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:56:in `load' 4) Matrix#column returns nil when out of bounds FAILED Expected Vector[nil, nil] to equal nil /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:29 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:56:in `load' 5) Matrix#column never yields when out of bounds FAILED Expected to not get Exception /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:33 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_spec.rb:56:in `load' 6) Matrix.column_vector returns an empty Matrix when called with an empty Array ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_vector_spec.rb:17 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_vector_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/column_vector_spec.rb:56:in `load' 7) Matrix.columns handles empty matrices ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:144:in `columns' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/columns_spec.rb:26 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/columns_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/columns_spec.rb:56:in `load' 8) Matrix#conj returns a matrix with all entries 'conjugated' ERROR NoMethodError: undefined method `conj' for Matrix[[1, 2], [3, 4]]:Matrix /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/conjugate.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conj_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conj_spec.rb:56:in `load' 9) Matrix#conj returns empty matrices on the same size if empty ERROR NoMethodError: undefined method `empty' for Matrix:Class /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/conjugate.rb:10 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conj_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conj_spec.rb:56:in `load' 10) Matrix#conjugate returns a matrix with all entries 'conjugated' ERROR NoMethodError: undefined method `conjugate' for Matrix[[1, 2], [3, 4]]:Matrix /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/conjugate.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conjugate_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conjugate_spec.rb:56:in `load' 11) Matrix#conjugate returns empty matrices on the same size if empty ERROR NoMethodError: undefined method `empty' for Matrix:Class /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/conjugate.rb:10 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conjugate_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/conjugate_spec.rb:56:in `load' 12) Matrix.[] requires arrays as parameters FAILED Expected TypeError but no exception was raised /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:8 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load' 13) Matrix.[] creates an empty Matrix with no arguments ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:16 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load' 14) Matrix.[] raises for non-rectangular matrices FAILED Expected ExceptionForMatrix::ErrDimensionMismatch but no exception was raised /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:21 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load' 15) Matrix.[] accepts vector arguments FAILED Expected Matrix[Vector[1, 2], Vector[3, 4]] to equal Matrix[[1, 2], [3, 4]] /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:30 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load' 16) Matrix.[] tries to calls :to_ary on arguments FAILED Expected Matrix[#<MockObject:0x7b99f8e6>, [3, 4]] to equal Matrix[[1, 2], [3, 4]] /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:36 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load' 17) An exception occurred during: Mock.verify_count Matrix.[] tries to calls :to_ary on arguments FAILED Mock 'ary' expected to receive 'to_ary' exactly 1 times but received it 0 times /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/constructor_spec.rb:56:in `load' 18) Matrix#det returns the determinant of a square Matrix FAILED Expected 63 to equal 45 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:14 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:56:in `load' 19) Matrix#det returns 1 for an empty Matrix ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:379:in `square?' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:655:in `determinant' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:32 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:56:in `load' 20) Matrix#det raises an error for rectangular matrices FAILED Expected ExceptionForMatrix::ErrDimensionMismatch but no exception was raised /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:44 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/det_spec.rb:56:in `load' 21) Matrix#determinant returns the determinant of a square Matrix FAILED Expected 63 to equal 45 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:14 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:56:in `load' 22) Matrix#determinant returns 1 for an empty Matrix ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:379:in `square?' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:655:in `determinant' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:32 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:56:in `load' 23) Matrix#determinant raises an error for rectangular matrices FAILED Expected ExceptionForMatrix::ErrDimensionMismatch but no exception was raised /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/determinant.rb:44 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/determinant_spec.rb:56:in `load' 24) Matrix#/ returns the result of dividing self by another Matrix FAILED Expected Matrix[[2.5, -1.5], [1.5, -0.5]] to be within +/- 3.0e-05 of Matrix[[0, 0], [0, 0]] /Users/asari/Development/src/jruby/spec/ruby/library/matrix/divide_spec.rb:14 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/divide_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/divide_spec.rb:56:in `load' 25) Matrix#[] returns nil for an invalid index pair ERROR NoMethodError: undefined method `[]' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:262:in `[]' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/element_reference_spec.rb:20 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/element_reference_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/element_reference_spec.rb:56:in `load' 26) Matrix#imag returns a matrix with the imaginary part of the elements of the receiver ERROR NoMethodError: undefined method `imag' for Matrix[[1, 2], [3, 4]]:Matrix /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/imaginary.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imag_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imag_spec.rb:56:in `load' 27) Matrix#imag returns empty matrices on the same size if empty ERROR NoMethodError: undefined method `empty' for Matrix:Class /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/imaginary.rb:10 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imag_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imag_spec.rb:56:in `load' 28) Matrix#imaginary returns a matrix with the imaginary part of the elements of the receiver ERROR NoMethodError: undefined method `imaginary' for Matrix[[1, 2], [3, 4]]:Matrix /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/imaginary.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imaginary_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imaginary_spec.rb:56:in `load' 29) Matrix#imaginary returns empty matrices on the same size if empty ERROR NoMethodError: undefined method `empty' for Matrix:Class /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/imaginary.rb:10 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imaginary_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/imaginary_spec.rb:56:in `load' 30) Matrix#inspect returns 'Matrix.empty(...)' for empty matrices FAILED Expected "Matrix[[], [], []]" to equal "Matrix.empty(3, 0)" /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inspect_spec.rb:12 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inspect_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inspect_spec.rb:56:in `load' 31) Matrix#inv returns the inverse of the Matrix (other case) FAILED Expected Matrix[[-24, 18, 5], [20, -15, -4], [-5, 4, 1]] to be within +/- 3.0e-05 of Matrix[[0, 0, 0], [0, 0, 0], [0, 0, 0]] /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/inverse.rb:20 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inv_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inv_spec.rb:56:in `load' 32) Matrix#inv raises a ErrDimensionMismatch if the Matrix is not square FAILED Expected ExceptionForMatrix::ErrDimensionMismatch but got NoMethodError (undefined method `-' for nil:NilClass) /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/inverse.rb:29 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inv_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inv_spec.rb:56:in `load' 33) Matrix#inverse returns the inverse of the Matrix (other case) FAILED Expected Matrix[[-24, 18, 5], [20, -15, -4], [-5, 4, 1]] to be within +/- 3.0e-05 of Matrix[[0, 0, 0], [0, 0, 0], [0, 0, 0]] /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/inverse.rb:20 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inverse_spec.rb:6 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inverse_spec.rb:56:in `load' 34) Matrix#inverse raises a ErrDimensionMismatch if the Matrix is not square FAILED Expected ExceptionForMatrix::ErrDimensionMismatch but got NoMethodError (undefined method `-' for nil:NilClass) /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/inverse.rb:29 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inverse_spec.rb:6 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/inverse_spec.rb:56:in `load' 35) Matrix#map returns an enumerator if no block is given FAILED Expected Matrix[[1, 2], [1, 2]] (Matrix) to be an instance of Enumerable::Enumerator /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/collect.rb:16 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/map_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/map_spec.rb:56:in `load' 36) Matrix#minor with start_row, nrows, start_col, ncols returns an empty Matrix unless nrows and ncols are greater than 0 ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:144:in `columns' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:19 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:56:in `load' 37) Matrix#minor with start_row, nrows, start_col, ncols returns nil for out-of-bounds start_row/col ERROR NoMethodError: undefined method `collect' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:349:in `minor' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:26 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:56:in `load' 38) Matrix#minor with start_row, nrows, start_col, ncols returns nil for negative nrows or ncols FAILED Expected Matrix[nil] to equal nil /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:33 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:56:in `load' 39) Matrix#minor with col_range, row_range returns nil if col_range or row_range is out of range ERROR NoMethodError: undefined method `collect' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:349:in `minor' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:66 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/minor_spec.rb:56:in `load' 40) Matrix#* returns a zero matrix if (nx0) * (0xn) ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:456:in `*' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:455:in `each' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:455:in `collect' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:455:in `*' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:39 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:56:in `load' 41) Matrix#* returns an empty matrix if (0xn) * (nx0) ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:453:in `*' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:43 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:56:in `load' 42) Matrix#* returns a 0xm matrix if (0xm) * (mxn) ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:453:in `*' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:51 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/multiply_spec.rb:56:in `load' 43) Matrix#row returns self when called with a block FAILED Expected [1, 2] to be identical to Matrix[[1, 2], [2, 3], [3, 4]] /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:25 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:56:in `load' 44) Matrix#row returns nil when out of bounds ERROR TypeError: can't dup NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:977:in `init_elements' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:969:in `initialize' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:962:in `new' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:962:in `elements' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:290:in `row' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:29 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:56:in `load' 45) Matrix#row never yields when out of bounds FAILED Expected to not get Exception /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:34 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/row_spec.rb:56:in `load' 46) Matrix#square? returns handles empty matrices ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:279:in `column_size' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:379:in `square?' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/square_spec.rb:25 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/square_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/square_spec.rb:56:in `load' 47) Matrix#transpose can transpose empty matrices ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:144:in `columns' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:756:in `transpose' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/transpose.rb:11 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/t_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/t_spec.rb:56:in `load' 48) Matrix#tr returns the sum of diagonal elements in a rectangular Matrix FAILED Expected ExceptionForMatrix::ErrDimensionMismatch but got NoMethodError (undefined method `[]' for nil:NilClass) /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/trace.rb:10 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/tr_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/tr_spec.rb:56:in `load' 49) Matrix#trace returns the sum of diagonal elements in a rectangular Matrix FAILED Expected ExceptionForMatrix::ErrDimensionMismatch but got NoMethodError (undefined method `[]' for nil:NilClass) /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/trace.rb:10 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/trace_spec.rb:5 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/trace_spec.rb:56:in `load' 50) Matrix#transpose can transpose empty matrices ERROR NoMethodError: undefined method `size' for nil:NilClass /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:144:in `columns' /Users/asari/Development/src/jruby/lib/ruby/1.8/matrix.rb:756:in `transpose' /Users/asari/Development/src/jruby/spec/ruby/library/matrix/shared/transpose.rb:11 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/transpose_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/transpose_spec.rb:56:in `load' 51) Vector.each2 given one argument returns self when given a block FAILED Expected 3 to be identical to Vector[1, 2, 3] /Users/asari/Development/src/jruby/spec/ruby/library/matrix/vector/each2_spec.rb:41 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/vector/each2_spec.rb:4 /Users/asari/Development/src/jruby/spec/ruby/library/matrix/vector/each2_spec.rb:56:in `load' Finished in 1.100000 seconds 69 files, 183 examples, 384 expectations, 26 failures, 25 errors
        Hide
        Hiro Asari added a comment -

        Note that Matrix#imaginary, Matrix#real and Matrix#rectangular are 1.9 only methods. RubySpec that I tested above didn't properly guard the specs.

        The results should be something like

        69 files, 175 examples, 384 expectations, 26 failures, 17 errors
        
        Show
        Hiro Asari added a comment - Note that Matrix#imaginary, Matrix#real and Matrix#rectangular are 1.9 only methods. RubySpec that I tested above didn't properly guard the specs. The results should be something like 69 files, 175 examples, 384 expectations, 26 failures, 17 errors
        Hide
        Charles Oliver Nutter added a comment -

        We have tags for RubySpec failures.

        Show
        Charles Oliver Nutter added a comment - We have tags for RubySpec failures.

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Charles Oliver Nutter
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: