Skip to content

Commit

Permalink
TEST: nonempty result
Browse files Browse the repository at this point in the history
As proposed by @kp992, check that multilinear call returns non-None result
  • Loading branch information
albop authored Mar 18, 2024
1 parent 705cbce commit 3e2f3c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interpolation/multilinear/tests/test_multilinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ def test_mlinterp():
pp = np.random.random((2000, 2))

res0 = mlinterp((x1, x2), y, pp)
assert res0 is not None

res0 = mlinterp((x1, x2), y, (0.1, 0.2))
assert res0 is not None


def test_multilinear():
Expand All @@ -125,6 +128,8 @@ def test_multilinear():
tt = [typeof(e) for e in t]
rr = interp(*t)

assert rr is not None

try:
print(f"{tt}: {rr.shape}")
except:
Expand Down

0 comments on commit 3e2f3c1

Please sign in to comment.