Browse files

Added test for issue #219

  • Loading branch information...
1 parent ecc25e6 commit 9f305841434b53b463ce93f5dcc7826b72cd11db @jcortez committed Aug 19, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/test/java/org/junit/tests/assertion/AssertionTest.java
View
9 src/test/java/org/junit/tests/assertion/AssertionTest.java
@@ -297,6 +297,15 @@ public void IntegerDoesNotEqualLong() {
assertEquals(1.0, 1.1);
}
+ @Test
+ public void floatsNotDoublesInArrays()
+ {
+ float delta = 4.444f;
+ float[] f1 = new float[] {1.111f};
+ float[] f2 = new float[] {5.555f};
+ Assert.assertArrayEquals(f1, f2, delta);
+ }
+
@Test(expected= AssertionError.class) public void bigDecimalsNotEqual() {
assertEquals(new BigDecimal("123.4"), new BigDecimal("123.0"));
}

0 comments on commit 9f30584

Please sign in to comment.