Przeglądaj źródła

all-your-base: add hint to @Ignore annotations

Frida Johanne Tveit 9 lat temu
rodzic
commit
615090d76d

+ 19
- 19
exercises/all-your-base/src/test/java/BaseConverterTest.java Wyświetl plik

@@ -32,7 +32,7 @@ public final class BaseConverterTest {
32 32
                 actualDigits);
33 33
     }
34 34
 
35
-    @Ignore
35
+    @Ignore("Remove to run test")
36 36
     @Test
37 37
     public void testBinaryToSingleDecimal() {
38 38
         final BaseConverter baseConverter = new BaseConverter(2, new int[]{1, 0, 1});
@@ -49,7 +49,7 @@ public final class BaseConverterTest {
49 49
                 actualDigits);
50 50
     }
51 51
 
52
-    @Ignore
52
+    @Ignore("Remove to run test")
53 53
     @Test
54 54
     public void testSingleDecimalToBinary() {
55 55
         final BaseConverter baseConverter = new BaseConverter(10, new int[]{5});
@@ -66,7 +66,7 @@ public final class BaseConverterTest {
66 66
                 actualDigits);
67 67
     }
68 68
 
69
-    @Ignore
69
+    @Ignore("Remove to run test")
70 70
     @Test
71 71
     public void testBinaryToMultipleDecimal() {
72 72
         final BaseConverter baseConverter = new BaseConverter(2, new int[]{1, 0, 1, 0, 1, 0});
@@ -83,7 +83,7 @@ public final class BaseConverterTest {
83 83
                 actualDigits);
84 84
     }
85 85
 
86
-    @Ignore
86
+    @Ignore("Remove to run test")
87 87
     @Test
88 88
     public void testDecimalToBinary() {
89 89
         final BaseConverter baseConverter = new BaseConverter(10, new int[]{4, 2});
@@ -100,7 +100,7 @@ public final class BaseConverterTest {
100 100
                 actualDigits);
101 101
     }
102 102
 
103
-    @Ignore
103
+    @Ignore("Remove to run test")
104 104
     @Test
105 105
     public void testTrinaryToHexadecimal() {
106 106
         final BaseConverter baseConverter = new BaseConverter(3, new int[]{1, 1, 2, 0});
@@ -117,7 +117,7 @@ public final class BaseConverterTest {
117 117
                 actualDigits);
118 118
     }
119 119
 
120
-    @Ignore
120
+    @Ignore("Remove to run test")
121 121
     @Test
122 122
     public void testHexadecimalToTrinary() {
123 123
         final BaseConverter baseConverter = new BaseConverter(16, new int[]{2, 10});
@@ -134,7 +134,7 @@ public final class BaseConverterTest {
134 134
                 actualDigits);
135 135
     }
136 136
 
137
-    @Ignore
137
+    @Ignore("Remove to run test")
138 138
     @Test
139 139
     public void test15BitInteger() {
140 140
         final BaseConverter baseConverter = new BaseConverter(97, new int[]{3, 46, 60});
@@ -151,7 +151,7 @@ public final class BaseConverterTest {
151 151
                 actualDigits);
152 152
     }
153 153
 
154
-    @Ignore
154
+    @Ignore("Remove to run test")
155 155
     @Test
156 156
     public void testEmptyDigits() {
157 157
         expectedException.expect(IllegalArgumentException.class);
@@ -160,7 +160,7 @@ public final class BaseConverterTest {
160 160
         new BaseConverter(2, new int[]{});
161 161
     }
162 162
 
163
-    @Ignore
163
+    @Ignore("Remove to run test")
164 164
     @Test
165 165
     public void testSingleZero() {
166 166
         final BaseConverter baseConverter = new BaseConverter(10, new int[]{0});
@@ -177,7 +177,7 @@ public final class BaseConverterTest {
177 177
                 actualDigits);
178 178
     }
179 179
 
180
-    @Ignore
180
+    @Ignore("Remove to run test")
181 181
     @Test
182 182
     public void testMultipleZeros() {
183 183
         expectedException.expect(IllegalArgumentException.class);
@@ -186,7 +186,7 @@ public final class BaseConverterTest {
186 186
         new BaseConverter(10, new int[]{0, 0, 0});
187 187
     }
188 188
 
189
-    @Ignore
189
+    @Ignore("Remove to run test")
190 190
     @Test
191 191
     public void testLeadingZeros() {
192 192
         expectedException.expect(IllegalArgumentException.class);
@@ -195,7 +195,7 @@ public final class BaseConverterTest {
195 195
         new BaseConverter(7, new int[]{0, 6, 0});
196 196
     }
197 197
 
198
-    @Ignore
198
+    @Ignore("Remove to run test")
199 199
     @Test
200 200
     public void testNegativeDigit() {
201 201
         expectedException.expect(IllegalArgumentException.class);
@@ -204,7 +204,7 @@ public final class BaseConverterTest {
204 204
         new BaseConverter(2, new int[]{1, -1, 1, 0, 1, 0});
205 205
     }
206 206
 
207
-    @Ignore
207
+    @Ignore("Remove to run test")
208 208
     @Test
209 209
     public void testInvalidPositiveDigit() {
210 210
         expectedException.expect(IllegalArgumentException.class);
@@ -213,7 +213,7 @@ public final class BaseConverterTest {
213 213
         new BaseConverter(2, new int[]{1, 2, 1, 0, 1, 0});
214 214
     }
215 215
 
216
-    @Ignore
216
+    @Ignore("Remove to run test")
217 217
     @Test
218 218
     public void testFirstBaseIsOne() {
219 219
         expectedException.expect(IllegalArgumentException.class);
@@ -222,7 +222,7 @@ public final class BaseConverterTest {
222 222
         new BaseConverter(1, new int[]{});
223 223
     }
224 224
 
225
-    @Ignore
225
+    @Ignore("Remove to run test")
226 226
     @Test
227 227
     public void testSecondBaseIsOne() {
228 228
         final BaseConverter baseConverter = new BaseConverter(2, new int[]{1, 0, 1, 0, 1, 0});
@@ -233,7 +233,7 @@ public final class BaseConverterTest {
233 233
         baseConverter.convertToBase(1);
234 234
     }
235 235
 
236
-    @Ignore
236
+    @Ignore("Remove to run test")
237 237
     @Test
238 238
     public void testFirstBaseIsZero() {
239 239
         expectedException.expect(IllegalArgumentException.class);
@@ -242,7 +242,7 @@ public final class BaseConverterTest {
242 242
         new BaseConverter(0, new int[]{});
243 243
     }
244 244
 
245
-    @Ignore
245
+    @Ignore("Remove to run test")
246 246
     @Test
247 247
     public void testSecondBaseIsZero() {
248 248
         final BaseConverter baseConverter = new BaseConverter(2, new int[]{1, 0, 1, 0, 1, 0});
@@ -253,7 +253,7 @@ public final class BaseConverterTest {
253 253
         baseConverter.convertToBase(0);
254 254
     }
255 255
 
256
-    @Ignore
256
+    @Ignore("Remove to run test")
257 257
     @Test
258 258
     public void testFirstBaseIsNegative() {
259 259
         expectedException.expect(IllegalArgumentException.class);
@@ -262,7 +262,7 @@ public final class BaseConverterTest {
262 262
         new BaseConverter(-2, new int[]{});
263 263
     }
264 264
 
265
-    @Ignore
265
+    @Ignore("Remove to run test")
266 266
     @Test
267 267
     public void testSecondBaseIsNegative() {
268 268
         final BaseConverter baseConverter = new BaseConverter(2, new int[]{1});