rubinius/rubinius — pull request #1476 by novemberkilo (2011-12-28 12:42:59+00:00)
Title: Fixes to Matrix#symmetric?  and Matrix#hermitian?

Fixes failures in
bin/mspec -tx19 library/matrix/symmetric
bin/mspec -tx19 library/matrix/hermitian

Perhaps the issue is with Matrix#each_with_index but the following spec describes the issue:

@m = Matrix[[1,2,3],[4,5,6],[7,8,9]]
@m.each_with_index.all? { |e, i, j| i == nil }.should be_false # FAILS (also for j == nil)
@m.each_with_index.to_a.all? { |e, i, j| i == nil }.should be_false # PASSES

Without the coercion to an array, the block was getting `nil` for `row` and `col`