Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vovaf709 committed Jul 30, 2024
1 parent c5d1f18 commit 781ee73
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,10 @@ def test_make_immutable():
make_immutable(x)
with pytest.raises(ValueError):
x[0] = 1337


def test_make_mutable():
x = np.ones(3)
make_immutable(x)
make_mutable(x)
x[0] = 1337

0 comments on commit 781ee73

Please sign in to comment.