6
6
public class SayTest {
7
7
8
8
private Say say = new Say ();
9
-
9
+
10
10
@ Test
11
11
public void zero () {
12
12
assertThat (say .say (0 )).isEqualTo ("zero" );
13
13
}
14
-
14
+
15
15
@ Ignore ("Remove to run test" )
16
16
@ Test
17
17
public void one () {
@@ -36,6 +36,18 @@ public void twentyTwo() {
36
36
assertThat (say .say (22 )).isEqualTo ("twenty-two" );
37
37
}
38
38
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
+
39
51
@ Ignore ("Remove to run test" )
40
52
@ Test
41
53
public void oneHundred () {
@@ -48,6 +60,18 @@ public void oneHundredTwentyThree() {
48
60
assertThat (say .say (123 )).isEqualTo ("one hundred twenty-three" );
49
61
}
50
62
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
+
51
75
@ Ignore ("Remove to run test" )
52
76
@ Test
53
77
public void oneThousand () {
@@ -65,27 +89,27 @@ public void oneThousandTwoHundredThirtyFour() {
65
89
public void oneMillion () {
66
90
assertThat (say .say (1_000_000 )).isEqualTo ("one million" );
67
91
}
68
-
92
+
69
93
@ Ignore ("Remove to run test" )
70
94
@ Test
71
95
public void oneMillionTwoThousandThreeHundredFortyFive () {
72
96
assertThat (say .say (1_002_345 )).isEqualTo ("one million two thousand three hundred forty-five" );
73
97
}
74
-
98
+
75
99
@ Ignore ("Remove to run test" )
76
100
@ Test
77
101
public void oneBillion () {
78
102
assertThat (say .say (1_000_000_000 )).isEqualTo ("one billion" );
79
103
}
80
-
104
+
81
105
@ Ignore ("Remove to run test" )
82
106
@ Test
83
107
public void nineHundredEightySevenBillionSixHundredFiftyFourThreeHundredTwentyOneThousandOneHundredTwentyThree () {
84
108
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" );
87
111
}
88
-
112
+
89
113
@ Ignore ("Remove to run test" )
90
114
@ Test (expected = IllegalArgumentException .class )
91
115
public void illegalNegativeNumber () {
@@ -96,5 +120,5 @@ public void illegalNegativeNumber() {
96
120
@ Test (expected = IllegalArgumentException .class )
97
121
public void illegalTooBigNumber () {
98
122
say .say (1_000_000_000_000L );
99
- }
123
+ }
100
124
}
0 commit comments