示例#1
0
    def should_get_num_cols(self, num_cols):
        matrix = Matrix(num_cols, 1)

        self.assertEqual(num_cols, matrix.num_cols())
示例#2
0
    def test_should_have_100_columns_after_tranpose(self):
        matrix = Matrix(2, 100, 1)

        matrix.transpose()

        self.assertEquals(100, matrix.num_cols())