BAEL-6846 - change assertNotEquals to assertEquals

This commit is contained in:
mcasari 2023-09-23 17:02:20 +02:00
parent 91c0a3ceb2
commit c56bc04f95
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class FloatToBigDecimalUnitTest {
public void whenCreatedFromCertainFloatValues_thenDoesNotMatch() {
float floatToConvert = 1.1f;
BigDecimal bdFromFloat = new BigDecimal(floatToConvert);
assertNotEquals("1.1", bdFromFloat.toString());
assertEquals("1.10000002384185791015625", bdFromFloat.toString());
}
@Test
@ -40,7 +40,7 @@ class FloatToBigDecimalUnitTest {
public void whenCreatedByValueOfAndIsFloat_thenDoesNotMatch() {
float floatToConvert = 1.1f;
BigDecimal bdByValueOf = BigDecimal.valueOf(floatToConvert);
assertNotEquals("1.1", bdByValueOf.toString());
assertEquals("1.100000023841858", bdByValueOf.toString());
}
@Test