mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/matrix/test_matrix.rb (class): Cleanup tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
782e379f29
commit
daad4e2433
1 changed files with 0 additions and 6 deletions
|
@ -267,10 +267,6 @@ class TestMatrix < Test::Unit::TestCase
|
|||
assert(!Matrix[[1, 0, 0], [0, 1, 0]].square?)
|
||||
end
|
||||
|
||||
def test_compare_by_row_vectors
|
||||
assert(@m1.compare_by_row_vectors([[1, 2, 3], [4, 5, 6]]))
|
||||
end
|
||||
|
||||
def test_mul
|
||||
assert_equal(Matrix[[2,4],[6,8]], Matrix[[2,4],[6,8]] * Matrix.I(2))
|
||||
assert_equal(Matrix[[4,8],[12,16]], Matrix[[2,4],[6,8]] * 2)
|
||||
|
@ -332,14 +328,12 @@ class TestMatrix < Test::Unit::TestCase
|
|||
assert_in_delta(45.0, Matrix[[7,6],[3,9]].det, 0.0001)
|
||||
assert_in_delta(0.0, Matrix[[0,0],[0,0]].det, 0.0001)
|
||||
assert_in_delta(-7.0, Matrix[[0,0,1],[0,7,6],[1,3,9]].det, 0.0001)
|
||||
assert_in_delta(0,0, @m1.det, 0.0001)
|
||||
end
|
||||
|
||||
def test_det_e
|
||||
assert_equal(45, Matrix[[7,6],[3,9]].det_e)
|
||||
assert_equal(0, Matrix[[0,0],[0,0]].det_e)
|
||||
assert_equal(-7, Matrix[[0,0,1],[0,7,6],[1,3,9]].det_e)
|
||||
assert_equal(0, @m1.det_e)
|
||||
end
|
||||
|
||||
def test_rank2
|
||||
|
|
Loading…
Add table
Reference in a new issue