Example #1
0
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
Example #2
0
def test_create_tile_with_parameters():
    tile = Tile(['x1', 'x1'], True, False)
    assert tile.array() == ['x1', 'x1']
    assert tile.is_entanglement() is True
Example #3
0
def test_set_is_entanglement():
    tile = Tile()
    tile.set_is_entanglement(True)
    assert tile.is_entanglement() is True