Skip to content

Commit

Permalink
Fixed comparison, to use the proper double assertEquals method
Browse files Browse the repository at this point in the history
Signed-off-by: Rajarshi Guha <rajarshi.guha@gmail.com>
  • Loading branch information
egonw authored and rajarshi committed Dec 16, 2011
1 parent 1d34aac commit 1ecc22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/org/openscience/cdk/stereo/StereoToolTest.java
Expand Up @@ -59,7 +59,7 @@ public void positivePointPlaneDistanceTest() {

double distancePos = StereoTool.signedDistanceToPlane(
planeNormal, pointInPlane, pointToMeasurePos);
Assert.assertEquals(2.0, distancePos);
Assert.assertEquals(2.0, distancePos, 0.1);
}
@Test
public void negativePointPlaneDistanceTest() {
Expand All @@ -75,7 +75,7 @@ public void negativePointPlaneDistanceTest() {

double distance = StereoTool.signedDistanceToPlane(
planeNormal, pointInPlane, pointToMeasureNeg);
Assert.assertEquals(-2.0, distance);
Assert.assertEquals(-2.0, distance, 0.1);
}

@Test
Expand Down

0 comments on commit 1ecc22b

Please sign in to comment.