Beispiel #1
0
 def test_line_match(self):
     n = Nonogram()
     prof = [1]
     data = [[[UN,UN], [UN,UN]],
             [[UN,BK], [WT,BK]],
             [[BK,UN], [BK,WT]],
             [[UN,WT], [BK,WT]],
             [[WT,UN], [WT,BK]]
             ]
     while data:
         (f, expect) = data.pop(0)
         result = n._line_match(f, prof)
         self.assertEqual(result, expect)