diff --git a/test/matrix/test_matrix.rb b/test/matrix/test_matrix.rb index 6bbea28..d73cbb5 100644 --- a/test/matrix/test_matrix.rb +++ b/test/matrix/test_matrix.rb @@ -394,6 +394,10 @@ class TestMatrix < Test::Unit::TestCase assert_equal(Matrix[[Complex(1,-2), Complex(0,-1), 0], [1, 2, 3]], @c1.conjugate) end + def test_real + assert_equal(Matrix[[1, 0, 0], [1, 2, 3]], @c1.real) + end + def test_row_vectors assert_equal([Vector[1,2,3], Vector[4,5,6]], @m1.row_vectors) end