"""test_slice_is_copy.py""" from __future__ import annotations from slice_is_copy import snapshot def test_shallow_copies_share_inner_object() -> None: facts = snapshot() assert facts["slice_shares"] is True assert facts["shallow_shares"] is True assert facts["deep_shares"] is False def test_values_after_mutation() -> None: facts = snapshot() assert facts["slice_value"] == [[1, 2, 9], 3] assert facts["deep_value"] == [[1, 2], 3]