Test NaN behaviour in more detail.

This commit is contained in:
Sei Lisa 2016-12-22 05:30:39 +01:00
parent 91fd9734c8
commit e8d7dd50f3

View file

@ -516,6 +516,8 @@ def test_jira_fixes():
def do_tests():
# Test our own test function for NaNs
test('reallyequal(NaN, Indet, 0.0)', False)
test('reallyequal(-NaN, Indet, 0.0)', True)
test('reallyequal(NaN, -Indet, 0.0)', True)
test('reallyequal(NaN, float("nan"), 0.0)', True)
test('reallyequal(-float("nan"), Indet, 0.0)', True)