コード例 #1
0
def test_tile_with_many_size_check():
    board = Rectangle(8, 8).remove((0, 0))
    with pytest.raises(Exception):
        board.tile_with_many([(0, 0), (1, 0)])
コード例 #2
0
def test_4_square():
    board = Rectangle(4, 4)
    problem = board.tile_with_many(TETROMINOS["T"])
    solution = problem.solve()
    assert solution is not None