[前][次][番号順一覧][スレッド一覧]

ruby-changes:15330

From: marcandre <ko1@a...>
Date: Mon, 5 Apr 2010 00:11:52 +0900 (JST)
Subject: [ruby-changes:15330] Ruby:r27217 (trunk): * test/matrix/test_matrix.rb (class): Cleanup tests

marcandre	2010-04-05 00:10:44 +0900 (Mon, 05 Apr 2010)

  New Revision: 27217

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27217

  Log:
    * test/matrix/test_matrix.rb (class): Cleanup tests

  Modified files:
    trunk/test/matrix/test_matrix.rb

Index: test/matrix/test_matrix.rb
===================================================================
--- test/matrix/test_matrix.rb	(revision 27216)
+++ test/matrix/test_matrix.rb	(revision 27217)
@@ -267,10 +267,6 @@
     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 @@
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]