Files
zenml/venv/lib/python3.9/site-packages/scipy/special/tests/test_round.py
Christian Mantha 2ca0b9ef7c star
2026-03-02 19:10:52 -05:00

17 lines
421 B
Python

import numpy as np
import pytest
from scipy.special import _test_internal
@pytest.mark.skipif(not _test_internal.have_fenv(), reason="no fenv()")
def test_add_round_up():
np.random.seed(1234)
_test_internal.test_add_round(10**5, 'up')
@pytest.mark.skipif(not _test_internal.have_fenv(), reason="no fenv()")
def test_add_round_down():
np.random.seed(1234)
_test_internal.test_add_round(10**5, 'down')