Unverified Commit 8e84f2de authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #133 from olivier-stasse/master

[tests] Split matrix-utils to_tuple test in two.
parents 91ba737b 8a572544
...@@ -10,6 +10,9 @@ class MatrixUtilTest(unittest.TestCase): ...@@ -10,6 +10,9 @@ class MatrixUtilTest(unittest.TestCase):
def test_matrix_to_tuple(self): def test_matrix_to_tuple(self):
mat = ((1, 2), (3, 4)) mat = ((1, 2), (3, 4))
self.assertEqual(mat, mod.matrixToTuple(np.matrix(mat))) self.assertEqual(mat, mod.matrixToTuple(np.matrix(mat)))
def test_array_to_tuple(self):
mat = ((1, 2), (3, 4))
self.assertEqual(mat, mod.matrixToTuple(np.array(mat))) self.assertEqual(mat, mod.matrixToTuple(np.array(mat)))
def test_vector_to_tuple(self): def test_vector_to_tuple(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment