Skip to content

Commit c806676

Browse files
committed
Adding tests for full coverage
1 parent 614c0d8 commit c806676

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/helpers/calc/test_expressions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,6 @@ def test_min_max():
278278

279279
def test_large_numbers():
280280
assert evaluator('x', variables={'x': 10 ** 30})[0] == 1e30
281+
282+
def test_nan():
283+
assert np.isnan(evaluator("x^2", {'x': float('nan')}, {}, {})[0])

0 commit comments

Comments
 (0)