mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Add two more tests to be more confident on NaN/Indet comparison.
This commit is contained in:
parent
c2560303dc
commit
94ea0a1140
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue