예제 #1
0
    def test8(self):
        print("\n")

        m = [[1, 0, 0, 0], [1, 0, 0, 1], [1, 0, 1, 1], [0, 1, 0, 0]]

        square = Square(m)
        square.print()
        s = square.get()
        print(s)
        self.assertEqual(s, 0)
예제 #2
0
    def test14(self):
        print("\n")

        m = [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]

        square = Square(m)
        square.print()
        s = square.get()
        print(s)
        self.assertEqual(s, 16)
예제 #3
0
    def test3(self):
        print()

        m = [[1, 0, 0, 0, 1], [1, 0, 1, 1, 1], [0, 0, 1, 1, 1],
             [1, 0, 1, 1, 1]]

        square = Square(m)
        square.print()
        s = square.get()
        print(s)
        self.assertEqual(s, 9)