From 94ea0a1140961999e6395d5fabd98e32d9e00c0a Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Sun, 15 May 2016 20:08:09 +0200 Subject: [PATCH] Add two more tests to be more confident on NaN/Indet comparison. --- testfuncs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testfuncs.py b/testfuncs.py index 571d219..4eda72a 100644 --- a/testfuncs.py +++ b/testfuncs.py @@ -507,6 +507,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, float("nan"), 0.0)', True) + test('reallyequal(-float("nan"), Indet, 0.0)', True) shouldexcept('div(1.0, 0.0)', ELSLMathError) shouldexcept('div(1, 0)', ELSLMathError)