Skip to content

Commit d660b2e

Browse files
committed
More tests
1 parent 24d3402 commit d660b2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/evalica/test_evalica.py

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from hypothesis.extra._array_helpers import array_shapes
1313
from hypothesis.extra.numpy import arrays
1414
from hypothesis.extra.pandas import series
15+
from numpy.testing import assert_array_equal
1516
from pandas._testing import assert_series_equal
1617

1718
import evalica
@@ -534,6 +535,8 @@ def test_pairwise_scores(scores: npt.NDArray[np.float64]) -> None:
534535
assert pairwise.shape == (len(scores), len(scores))
535536
assert np.isfinite(pairwise).all()
536537

538+
assert_array_equal(pairwise_pyo3, pairwise_naive)
539+
537540

538541
@pytest.mark.parametrize("solver", ["pyo3", "naive"])
539542
def test_pairwise_scores_empty(solver: Literal["pyo3", "naive"]) -> None:

0 commit comments

Comments
 (0)