Skip to content

Commit 173de65

Browse files
Update test_sample.py
1 parent 5c54835 commit 173de65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/sample/test_sample.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import pytest
12
import numpy as np
23
from numpy.testing import assert_allclose
34

@@ -6,6 +7,7 @@
67

78
def test_add():
89
assert add(1, 2) == 3
10+
assert add(1.5, 2.0) == pytest.approx(3.5)
911

1012
def test_make_array():
1113
assert_allclose(make_array(3), np.array([3, 3, 3]))

0 commit comments

Comments
 (0)