public class SumTest extends Object
| Constructor and Description |
|---|
SumTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
exactValuesSumExactly()
Test that exactly representable values sum exactly, and that no values sum to zero.
|
void |
matchesDoubleStreamSum()
Test that summing matches the stream the callers previously used, whichever JDK this is.
|
void |
mixedNumberTypesAreSummed()
Test that mixed number types are summed by their double value.
|
void |
nullValuesCountAsZero()
Test that a null value counts as zero, and that a zero result is a positive zero.
|
void |
sameSignedInfinitiesDoNotBecomeNaN()
Test that same signed infinities sum to that infinity rather than NaN, which is what the
simple sum held alongside the compensated one is for.
|
@Test public void matchesDoubleStreamSum()
@Test public void exactValuesSumExactly()
@Test public void nullValuesCountAsZero()
@Test public void sameSignedInfinitiesDoNotBecomeNaN()
@Test public void mixedNumberTypesAreSummed()
Copyright © 2000–2026 MPXJ. All rights reserved.