Skip to content

Commit a1c8064

Browse files
author
Rithvik Donnipadu
committed
Modified test_RcppPseudoApprox.py
1 parent e191f4e commit a1c8064

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test_RcppPseudoApprox.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
import sys
44
import os
55
sys.path.append(os.path.abspath('src'))
6-
from RcppPseudoApprox import PseudoApprox
6+
from RcppPseudoApprox import pseudo_approx
77

88
def test_RcppPseudoApprox_trivial_example():
99
np.random.seed(111)
1010
z = np.random.uniform(0, 1, 44)
1111

1212
# Testing the interpolation function
13-
result = PseudoApprox(np.array([0, 1]), np.array([0, 2]), z)
13+
result = pseudo_approx(np.array([0, 1]), np.array([0, 2]), z)
1414

1515
# Expected result is 2 * z
1616
expected = 2 * z
1717
np.testing.assert_allclose(result, expected, rtol=1e-7)
1818

1919
def test_RcppPseudoApprox_wrong_data():
2020
with pytest.raises(RuntimeError, match="Unequal vector sizes for linear interpolation"):
21-
PseudoApprox(np.array([0, 1]), np.array([0, 2, 4]), np.array([0]))
21+
pseudo_approx(np.array([0, 1]), np.array([0, 2, 4]), np.array([0]))
2222

2323
if __name__ == "__main__":
2424
pytest.main()

0 commit comments

Comments
 (0)