Skip to content

Commit

Permalink
Add more description to and change name of hard example
Browse files Browse the repository at this point in the history
  • Loading branch information
minnerbe authored and tpietzsch committed Mar 28, 2024
1 parent aedcdeb commit 0d9fc6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/net/imglib2/util/RealSumTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ public void testAdd()
}

/**
* Test method for {@link net.imglib2.util.RealSum#add(double)}.
* Test method for {@link net.imglib2.util.RealSum#add(double)} on a hard
* example that fails for naive double summation.
*/
@Test
public void testDoubleHard() {
public void testHardExample() {
final double[] values = new double[]{1.0, 1.0e100, 1.0, -1.0e100};
final RealSum sum = new RealSum();
for (double value : values) {
Expand Down

0 comments on commit 0d9fc6b

Please sign in to comment.