// Path: kawala-testing/src/main/java/com/kaching/platform/testing/Assert.java
// public static void assertBigDecimalEquals(double d1, BigDecimal d2) {
//   assertBigDecimalEquals(null, d1, d2);
// }
// 
// Path: kawala-testing/src/main/java/com/kaching/platform/testing/Assert.java
// public static void assertFloatEquals(float f1, float f2) {
//   assertBigDecimalEquals(null, new BigDecimal(Float.toString(f1)),
//       new BigDecimal(Float.toString(f2)));
// }
// 
// Path: kawala-testing/src/main/java/com/kaching/platform/testing/Assert.java
// @SuppressWarnings("finally")
// public static void assertNotEquals(Object expected, Object actual) {
//   boolean wasEqual = false;
//   try {
//     assertEquals(expected, actual);
//     wasEqual = true;
//   } catch (AssertionError e) {
//   } finally {
//     if (wasEqual) {
//       fail();
//     }
//     return;
//   }
// }


import static com.google.common.collect.Lists.newArrayList;
import static com.kaching.platform.testing.Assert.assertBigDecimalEquals;
import static com.kaching.platform.testing.Assert.assertFloatEquals;
import static com.kaching.platform.testing.Assert.assertNotEquals;
import static java.math.BigDecimal.ONE;
import static java.math.BigDecimal.ZERO;
import static java.math.BigDecimal.valueOf;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.math.BigDecimal;
import java.util.List;
import org.junit.ComparisonFailure;
import org.junit.Test;
  public void assertFloatEquals1() throws Exception {
    assertFloatEquals(0.00100f, 0.001f);
    assertFloatEquals(0.001f, 0.001f);
    assertFloatEquals(0.00100f, 0.00100000f);
    assertFloatEquals(0, 0.0000f);
  }

  @Test
  public void assertFloatEquals2() {
    try {
      assertFloatEquals(1.2f, 1);
      fail();
    } catch (ComparisonFailure e) {
      assertEquals("expected:<1.[2]> but was:<1.[0]>", e.getMessage());
    }
  }

  @Test
  public void assertFloatEquals3() {
    try {
      assertFloatEquals(0, 0.1f);
      fail();
    } catch (ComparisonFailure e) {
      assertEquals("expected:<0.[0]> but was:<0.[1]>", e.getMessage());
    }
  }

  @Test
  public void assertFloatEquals4() {
    try {
// Path: kawala-testing/src/main/java/com/kaching/platform/testing/Assert.java
// public static void assertBigDecimalEquals(double d1, BigDecimal d2) {
//   assertBigDecimalEquals(null, d1, d2);
// }
// 
// Path: kawala-testing/src/main/java/com/kaching/platform/testing/Assert.java
// public static void assertFloatEquals(float f1, float f2) {
//   assertBigDecimalEquals(null, new BigDecimal(Float.toString(f1)),
//       new BigDecimal(Float.toString(f2)));
// }
// 
// Path: kawala-testing/src/main/java/com/kaching/platform/testing/Assert.java
// @SuppressWarnings("finally")
// public static void assertNotEquals(Object expected, Object actual) {
//   boolean wasEqual = false;
//   try {
//     assertEquals(expected, actual);
//     wasEqual = true;
//   } catch (AssertionError e) {
//   } finally {
//     if (wasEqual) {
//       fail();
//     }
//     return;
//   }
// }


// Path: kawala-testing/src/test/java/com/kaching/platform/testing/AssertTest.java
import static com.google.common.collect.Lists.newArrayList;
import static com.kaching.platform.testing.Assert.assertBigDecimalEquals;
import static com.kaching.platform.testing.Assert.assertFloatEquals;
import static com.kaching.platform.testing.Assert.assertNotEquals;
import static java.math.BigDecimal.ONE;
import static java.math.BigDecimal.ZERO;
import static java.math.BigDecimal.valueOf;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.math.BigDecimal;
import java.util.List;
import org.junit.ComparisonFailure;
import org.junit.Test;

  public void assertFloatEquals1() throws Exception {
    assertFloatEquals(0.00100f, 0.001f);
    assertFloatEquals(0.001f, 0.001f);
    assertFloatEquals(0.00100f, 0.00100000f);
    assertFloatEquals(0, 0.0000f);
  }

  @Test
  public void assertFloatEquals2() {
    try {
      assertFloatEquals(1.2f, 1);
      fail();
    } catch (ComparisonFailure e) {
      assertEquals("expected:<1.[2]> but was:<1.[0]>", e.getMessage());
    }
  }

  @Test
  public void assertFloatEquals3() {
    try {
      assertFloatEquals(0, 0.1f);
      fail();
    } catch (ComparisonFailure e) {
      assertEquals("expected:<0.[0]> but was:<0.[1]>", e.getMessage());
    }
  }

  @Test
  public void assertFloatEquals4() {
    try {
      assertFloatEquals(1.22300f, 1, 3);