diff options
Diffstat (limited to 'test/matrix/test_matrix.rb')
-rw-r--r-- | test/matrix/test_matrix.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/matrix/test_matrix.rb b/test/matrix/test_matrix.rb index 425ec25a52..0831ac6362 100644 --- a/test/matrix/test_matrix.rb +++ b/test/matrix/test_matrix.rb @@ -218,6 +218,10 @@ class TestMatrix < Test::Unit::TestCase assert_equal([[1], [1]], m2.to_a) end + def test_to_matrix + assert @m1.equal? @m1.to_matrix + end + def test_columns assert_equal(@m1, Matrix.columns([[1, 4], [2, 5], [3, 6]])) end |