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]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-11-19 23:57:56 +00:00
Родитель 6f4e3f05f5
Коммит 1bfee27795
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -102,7 +102,7 @@ class TestVector < Test::Unit::TestCase
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]))