Beispiel #1
0
    def test_diagonal(self):
        bl = Blacklist()

        self.assertTrue(bl.contains(Tipp([1, 9, 17, 25, 33, 41])))
        self.assertTrue(bl.contains(Tipp([9, 17, 25, 33, 41, 49])))
        
        self.assertTrue(bl.contains(Tipp([1, 9, 17, 33, 41, 3])))
        self.assertTrue(bl.contains(Tipp([9, 17, 25, 33, 41, 5])))

        self.assertTrue(bl.contains(Tipp([29, 23, 17, 11, 5, 9])))
Beispiel #2
0
    def test_line(self):
        bl = Blacklist()

        self.assertTrue(bl.contains(Tipp([1, 2, 3, 4, 5])))
        self.assertTrue(bl.contains(Tipp([1, 2, 3, 4])))
        self.assertTrue(bl.contains(Tipp([1,    3, 4, 5])))
Beispiel #3
0
    def test_fuenfer_abstand(self):
        bl = Blacklist()

        self.assertTrue(bl.contains(Tipp([5, 10, 15, 20, 25, 30])))
Beispiel #4
0
    def test_corners(self):
        bl = Blacklist()

        self.assertTrue(bl.contains(Tipp([1, 7, 43, 49, 24, 33])))
Beispiel #5
0
    def test_little_cup(self):
        bl = Blacklist()

        self.assertTrue(bl.contains(Tipp([17, 24, 26, 32, 37, 48])))