Skip to content

Commit

Permalink
SpecFunc: Drop sum(x) assert
Browse files Browse the repository at this point in the history
Python 3.12 uses Neumaier summation too
  • Loading branch information
jschueller committed Nov 7, 2023
1 parent 708ffdc commit fe388ec
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/test/t_SpecFunc_std.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
)

x = [1.0, 2.0 ** 53, -(2.0 ** 53)]
s1 = sum(x)
s2 = ot.SpecFunc.AccurateSum(x)
assert s1 == 0.0, "sum(x) nonzero"
assert s2 == 1.0, "accurate sum(x) not 1"

# Clip01
Expand Down

0 comments on commit fe388ec

Please sign in to comment.