Change project from java-numbers to java-numbers-3

This commit is contained in:
Marcin Krykowski
2020-05-30 05:22:10 +01:00
parent a34da64e71
commit d697e7f7d5
2 changed files with 3 additions and 1 deletions

View File

@@ -41,3 +41,4 @@ public class FormatNumber {
return String.format("%." + places + "f", value);
}
}

View File

@@ -9,7 +9,8 @@ public class FormatNumberUnitTest {
private static final double D = 4.2352989244d;
private static final double F = 8.6994540927d;
@Test public void givenDecimalNumber_whenFormatNumberToNDecimalPlaces_thenGetExpectedResult() {
@Test
public void givenDecimalNumber_whenFormatNumberToNDecimalPlaces_thenGetExpectedResult() {
assertThat(withBigDecimal(D, 2)).isEqualTo(4.24);
assertThat(withBigDecimal(D, 3)).isEqualTo(4.235);