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

ruby-changes:36428

From: nobu <ko1@a...>
Date: Thu, 20 Nov 2014 08:58:03 +0900 (JST)
Subject: [ruby-changes:36428] nobu:r48509 (trunk): test_vector.rb: fix exception class

nobu	2014-11-20 08:57:56 +0900 (Thu, 20 Nov 2014)

  New Revision: 48509

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

  Log:
    test_vector.rb: fix exception class
    
    * test/matrix/test_vector.rb (test_independent): fix exception
      class path, Vector does not have its own TypeError.  [#10451]

  Modified files:
    trunk/test/matrix/test_vector.rb
Index: test/matrix/test_vector.rb
===================================================================
--- test/matrix/test_vector.rb	(revision 48508)
+++ test/matrix/test_vector.rb	(revision 48509)
@@ -102,7 +102,7 @@ class TestVector < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/matrix/test_vector.rb#L102
     refute(Vector.independent?(@v1, Vector[2,4,6]))
     refute(Vector.independent?(Vector[2,4], Vector[1,3], Vector[5,6]))
 
-    assert_raise(Vector::TypeError) { Vector.independent?(@v1, 3) }
+    assert_raise(TypeError) { Vector.independent?(@v1, 3) }
     assert_raise(Vector::ErrDimensionMismatch) { Vector.independent?(@v1, Vector[2,4]) }
 
     assert(@v1.independent?(Vector[1,2,4], Vector[1,3,4]))

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

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