Skip to content

Commit 38e8d13

Browse files
committed
Added tests for task 273.
1 parent 68de1a2 commit 38e8d13

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/java/g0201_0300/s0273_integer_to_english_words/SolutionTest.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,18 @@ public class SolutionTest {
1010
public void numberToWords() {
1111
assertThat(new Solution().numberToWords(123), equalTo("One Hundred Twenty Three"));
1212
}
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+
@Test
22+
public void numberToWords3() {
23+
assertThat(
24+
new Solution().numberToWords(1234567),
25+
equalTo("One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven"));
26+
}
1327
}

0 commit comments

Comments
 (0)