Skip to content

Commit ae1e657

Browse files
committed
test inf, nan
1 parent 124e098 commit ae1e657

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_pymbolic.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ def test_parser():
290290
with pytest.deprecated_call():
291291
parse("1+if(0, 1, 2)")
292292

293+
import math
294+
assert parse("inf") is math.inf
295+
assert parse("nan") is math.nan
296+
293297
# }}}
294298

295299

0 commit comments

Comments
 (0)