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)