BAEL-6846 - minor code format fix

This commit is contained in:
mcasari 2023-10-03 18:34:40 +02:00
parent 89e987aa64
commit 6f085f068a
1 changed files with 2 additions and 4 deletions

View File

@ -44,10 +44,8 @@ class FloatToBigDecimalUnitTest {
@Test @Test
public void whenCreatedByValueOf_thenFloatValueGetsTruncated() { public void whenCreatedByValueOf_thenFloatValueGetsTruncated() {
assertEquals("1.100000023841858", BigDecimal.valueOf(1.1f) assertEquals("1.100000023841858", BigDecimal.valueOf(1.1f).toString());
.toString()); assertEquals("1.100000023841858", BigDecimal.valueOf(1.10000002384185791015625f).toString());
assertEquals("1.100000023841858", BigDecimal.valueOf(1.10000002384185791015625f)
.toString());
} }
@Test @Test