66public class SayTest {
77
88 private Say say = new Say ();
9-
9+
1010 @ Test
1111 public void zero () {
1212 assertThat (say .say (0 )).isEqualTo ("zero" );
1313 }
14-
14+
1515 @ Ignore ("Remove to run test" )
1616 @ Test
1717 public void one () {
@@ -36,6 +36,18 @@ public void twentyTwo() {
3636 assertThat (say .say (22 )).isEqualTo ("twenty-two" );
3737 }
3838
39+ @ Ignore ("Remove to run test" )
40+ @ Test
41+ public void thirty () {
42+ assertThat (say .say (30 )).isEqualTo ("thirty" );
43+ }
44+
45+ @ Ignore ("Remove to run test" )
46+ @ Test
47+ public void ninetyNine () {
48+ assertThat (say .say (99 )).isEqualTo ("ninety-nine" );
49+ }
50+
3951 @ Ignore ("Remove to run test" )
4052 @ Test
4153 public void oneHundred () {
@@ -48,6 +60,18 @@ public void oneHundredTwentyThree() {
4860 assertThat (say .say (123 )).isEqualTo ("one hundred twenty-three" );
4961 }
5062
63+ @ Ignore ("Remove to run test" )
64+ @ Test
65+ public void twoHundred () {
66+ assertThat (say .say (200 )).isEqualTo ("two hundred" );
67+ }
68+
69+ @ Ignore ("Remove to run test" )
70+ @ Test
71+ public void nineHundredNinetyNine () {
72+ assertThat (say .say (999 )).isEqualTo ("nine hundred ninety-nine" );
73+ }
74+
5175 @ Ignore ("Remove to run test" )
5276 @ Test
5377 public void oneThousand () {
@@ -65,27 +89,27 @@ public void oneThousandTwoHundredThirtyFour() {
6589 public void oneMillion () {
6690 assertThat (say .say (1_000_000 )).isEqualTo ("one million" );
6791 }
68-
92+
6993 @ Ignore ("Remove to run test" )
7094 @ Test
7195 public void oneMillionTwoThousandThreeHundredFortyFive () {
7296 assertThat (say .say (1_002_345 )).isEqualTo ("one million two thousand three hundred forty-five" );
7397 }
74-
98+
7599 @ Ignore ("Remove to run test" )
76100 @ Test
77101 public void oneBillion () {
78102 assertThat (say .say (1_000_000_000 )).isEqualTo ("one billion" );
79103 }
80-
104+
81105 @ Ignore ("Remove to run test" )
82106 @ Test
83107 public void nineHundredEightySevenBillionSixHundredFiftyFourThreeHundredTwentyOneThousandOneHundredTwentyThree () {
84108 assertThat (say .say (987_654_321_123L ))
85- .isEqualTo ("nine hundred eighty-seven billion six hundred fifty-four million" +
86- " three hundred twenty-one thousand one hundred twenty-three" );
109+ .isEqualTo ("nine hundred eighty-seven billion six hundred fifty-four million" +
110+ " three hundred twenty-one thousand one hundred twenty-three" );
87111 }
88-
112+
89113 @ Ignore ("Remove to run test" )
90114 @ Test (expected = IllegalArgumentException .class )
91115 public void illegalNegativeNumber () {
@@ -96,5 +120,5 @@ public void illegalNegativeNumber() {
96120 @ Test (expected = IllegalArgumentException .class )
97121 public void illegalTooBigNumber () {
98122 say .say (1_000_000_000_000L );
99- }
123+ }
100124}
0 commit comments