Skip to content

Commit 428b44e

Browse files
committed
calling ot.emd test
1 parent 92233f7 commit 428b44e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_ot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
import pytest
1515

1616

17+
1718
def test_emd_dimension_mismatch():
18-
# test emd and emd2 for simple identity
19+
# test emd and emd2 for dimension mismatch
1920
n_samples = 100
2021
n_features = 2
2122
rng = np.random.RandomState(0)
@@ -25,9 +26,9 @@ def test_emd_dimension_mismatch():
2526

2627
M = ot.dist(x, x)
2728

28-
np.testing.assert_raises(AssertionError, emd, a, a, M)
29+
np.testing.assert_raises(AssertionError, ot.emd, a, a, M)
2930

30-
np.testing.assert_raises(AssertionError, emd2, a, a, M)
31+
np.testing.assert_raises(AssertionError, ot.emd2, a, a, M)
3132

3233

3334
def test_emd_emd2():

0 commit comments

Comments
 (0)