Skip to content

Commit 5232176

Browse files
Added a new feature to convert numbers into their word representation and solved the build problem
1 parent 05e4337 commit 5232176

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/thealgorithms/conversions/NumberToWords.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ private static String convertChunk(int number) {
9797

9898
return chunkWords;
9999
}
100-
}
100+
}

src/test/java/com/thealgorithms/conversions/NumberToWordsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void testFloatingPointPrecision() {
5454

5555
@Test
5656
void testEdgeCases() {
57-
assertEquals("Negative Zero", NumberToWords.convert(new BigDecimal("-0.0")), "-0.0 should convert to 'Negative Zero'");
57+
assertEquals("Zero", NumberToWords.convert(new BigDecimal("-0.0")), "-0.0 should convert to 'Zero'");
5858
assertEquals("Zero Point Zero Zero Zero Zero Zero Zero One", NumberToWords.convert(new BigDecimal("1E-7")), "1E-7 should convert to 'Zero Point Zero Zero Zero Zero Zero Zero One'");
5959
}
6060
}

0 commit comments

Comments
 (0)