コード例 #1
0
 def test_blocksandborders_constrained_3_2(self):
     """ """
     ans = blocksandborders_constrained(3, 2, self.edge, self.edge_star)
     self.assertListEqual(ans, [4, 2])
コード例 #2
0
 def test_blocksandborders_constrained_5_5(self):
     """ """
     ans = blocksandborders_constrained(6, 6, self.edge, self.edge_star)
     self.assertListEqual(ans, [6])
コード例 #3
0
 def test_blocksandborders_constrained_2_3(self):
     """ """
     ans = blocksandborders_constrained(2, 3, self.edge, self.edge_star)
     self.assertListEqual(ans, [2, 1, 3])
コード例 #4
0
 def test_blocksandborders_constrained_1_1(self):
     """ """
     ans = blocksandborders_constrained(1, 1, self.edge, self.edge_star)
     self.assertListEqual(ans, [1, 3, 1, 1])