Exemplo n.º 1
0
    def should_get_num_rows(self, num_rows):
        matrix = Matrix(1, num_rows)

        self.assertEqual(num_rows, matrix.num_rows())
Exemplo n.º 2
0
    def test_should_have_10_rows_after_tranpose(self):
        matrix = Matrix(10, 100, 1)

        matrix.transpose()

        self.assertEquals(10, matrix.num_rows())