change string constructor test case in simpler form

This commit is contained in:
mcasari 2023-10-06 21:57:56 +02:00
parent a8290e27cd
commit 68fd94288d
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ class FloatToBigDecimalUnitTest {
@Test
public void whenCreatedFromString_thenPreservesTheOriginal() {
BigDecimal bdFromString = new BigDecimal("1.10000002384185791015625");
assertEquals("1.10000002384185791015625", bdFromString.toString());
BigDecimal bdFromString = new BigDecimal("1.1");
assertEquals("1.1", bdFromString.toString());
}
@Test