def test_clear_tile(): tile = Tile(['x1'], True, True) assert tile.array() == ['x1'] assert tile.is_collapsed() is True assert tile.is_entanglement() is True tile.clear_tile() assert tile.array() == [] assert tile.is_entanglement() is False
def test_create_tile_with_parameters(): tile = Tile(['x1', 'x1'], True, False) assert tile.array() == ['x1', 'x1'] assert tile.is_entanglement() is True
def test_set_is_entanglement(): tile = Tile() tile.set_is_entanglement(True) assert tile.is_entanglement() is True