diff options
Diffstat (limited to 'test/matrix')
-rw-r--r-- | test/matrix/test_vector.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/matrix/test_vector.rb b/test/matrix/test_vector.rb index fa29496451..4e2bca6ef6 100644 --- a/test/matrix/test_vector.rb +++ b/test/matrix/test_vector.rb @@ -131,6 +131,7 @@ class TestVector < Test::Unit::TestCase def test_inner_product assert_equal(1+4+9, @v1.inner_product(@v1)) + assert_equal(1+4+9, @v1.dot(@v1)) end def test_r @@ -168,5 +169,7 @@ class TestVector < Test::Unit::TestCase def test_cross_product v = Vector[1, 0, 0].cross_product Vector[0, 1, 0] assert_equal(Vector[0, 0, 1], v) + v = Vector[1, 0, 0].cross Vector[0, 1, 0] + assert_equal(Vector[0, 0, 1], v) end end |