We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68de1a2 commit 38e8d13Copy full SHA for 38e8d13
src/test/java/g0201_0300/s0273_integer_to_english_words/SolutionTest.java
@@ -10,4 +10,18 @@ public class SolutionTest {
10
public void numberToWords() {
11
assertThat(new Solution().numberToWords(123), equalTo("One Hundred Twenty Three"));
12
}
13
+
14
+ @Test
15
+ public void numberToWords2() {
16
+ assertThat(
17
+ new Solution().numberToWords(12345),
18
+ equalTo("Twelve Thousand Three Hundred Forty Five"));
19
+ }
20
21
22
+ public void numberToWords3() {
23
24
+ new Solution().numberToWords(1234567),
25
+ equalTo("One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven"));
26
27
0 commit comments