From e8d7dd50f3a7f0ff6d9d9e2536db17402761fd2a Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Thu, 22 Dec 2016 05:30:39 +0100 Subject: [PATCH] Test NaN behaviour in more detail. --- testfuncs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testfuncs.py b/testfuncs.py index 14bdad9..b8cf1b5 100644 --- a/testfuncs.py +++ b/testfuncs.py @@ -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)