Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4c78c67

Browse files
committedApr 26, 2025·
complete tests
1 parent 9ed3b15 commit 4c78c67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎test/test_utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -746,3 +746,6 @@ def fun(x): # backend function
746746
res_np = fun_numpy(arr)
747747

748748
np.testing.assert_allclose(res, res_np)
749+
750+
with pytest.raises(ValueError):
751+
ot.utils.fun_to_numpy(fun, None, nx, warn=True)

0 commit comments

Comments
 (0)
Please sign in to comment.