Skip to content

Commit

Permalink
Add an assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Oct 24, 2023
1 parent f3589b6 commit 07e0bbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scico/test/test_numpy_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,6 @@ def test_broadcast_nested_shapes():
def test_is_scalar_equiv():
assert is_scalar_equiv(1e0)
assert is_scalar_equiv(snp.array(1e0))
assert is_scalar_equiv(snp.sum(snp.zeros(1)))
assert not is_scalar_equiv(snp.array([1e0]))
assert not is_scalar_equiv(snp.array([1e0, 2e0]))

0 comments on commit 07e0bbe

Please sign in to comment.