コード例 #1
0
ファイル: test_matrix.py プロジェクト: robinrob/flask-hello
    def should_get_num_rows(self, num_rows):
        matrix = Matrix(1, num_rows)

        self.assertEqual(num_rows, matrix.num_rows())
コード例 #2
0
ファイル: test_matrix.py プロジェクト: robinrob/flask-hello
    def test_should_have_10_rows_after_tranpose(self):
        matrix = Matrix(10, 100, 1)

        matrix.transpose()

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