瀏覽代碼

Merge pull request #452 from FridaTveit/AllYourBaseAddHint

all-your-base: add hint to @Ignore annotations
Stuart Kent 9 年之前
父節點
當前提交
bbc77030df
共有 1 個文件被更改,包括 19 次插入19 次删除
  1. 19
    19
      exercises/all-your-base/src/test/java/BaseConverterTest.java

+ 19
- 19
exercises/all-your-base/src/test/java/BaseConverterTest.java 查看文件

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