瀏覽代碼

ocr-numbers: add hint to @Ignore annotations

Logan Stucki 9 年之前
父節點
當前提交
baf7d0083b
共有 1 個文件被更改,包括 16 次插入16 次删除
  1. 16
    16
      exercises/ocr-numbers/src/test/java/OpticalCharacterReaderTest.java

+ 16
- 16
exercises/ocr-numbers/src/test/java/OpticalCharacterReaderTest.java 查看文件

28
         assertEquals("0", parsedInput);
28
         assertEquals("0", parsedInput);
29
     }
29
     }
30
 
30
 
31
-    @Ignore
31
+    @Ignore("Remove to run test")
32
     @Test
32
     @Test
33
     public void testReaderRecognizesSingle1() {
33
     public void testReaderRecognizesSingle1() {
34
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
34
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
41
         assertEquals("1", parsedInput);
41
         assertEquals("1", parsedInput);
42
     }
42
     }
43
 
43
 
44
-    @Ignore
44
+    @Ignore("Remove to run test")
45
     @Test
45
     @Test
46
     public void testReaderReturnsQuestionMarkForUnreadableButCorrectlySizedInput() {
46
     public void testReaderReturnsQuestionMarkForUnreadableButCorrectlySizedInput() {
47
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
47
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
54
         assertEquals("?", parsedInput);
54
         assertEquals("?", parsedInput);
55
     }
55
     }
56
 
56
 
57
-    @Ignore
57
+    @Ignore("Remove to run test")
58
     @Test
58
     @Test
59
     public void testReaderThrowsExceptionWhenNumberOfInputLinesIsNotAMultipleOf4() {
59
     public void testReaderThrowsExceptionWhenNumberOfInputLinesIsNotAMultipleOf4() {
60
         expectedException.expect(IllegalArgumentException.class);
60
         expectedException.expect(IllegalArgumentException.class);
67
         ));
67
         ));
68
     }
68
     }
69
 
69
 
70
-    @Ignore
70
+    @Ignore("Remove to run test")
71
     @Test
71
     @Test
72
     public void testReaderThrowsExceptionWhenNumberOfInputColumnsIsNotAMultipleOf3() {
72
     public void testReaderThrowsExceptionWhenNumberOfInputColumnsIsNotAMultipleOf3() {
73
         expectedException.expect(IllegalArgumentException.class);
73
         expectedException.expect(IllegalArgumentException.class);
81
         ));
81
         ));
82
     }
82
     }
83
 
83
 
84
-    @Ignore
84
+    @Ignore("Remove to run test")
85
     @Test
85
     @Test
86
     public void testReaderRecognizesBinarySequence110101100() {
86
     public void testReaderRecognizesBinarySequence110101100() {
87
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
87
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
94
         assertEquals("110101100", parsedInput);
94
         assertEquals("110101100", parsedInput);
95
     }
95
     }
96
 
96
 
97
-    @Ignore
97
+    @Ignore("Remove to run test")
98
     @Test
98
     @Test
99
     public void testReaderReplacesUnreadableDigitsWithQuestionMarksWithinSequence() {
99
     public void testReaderReplacesUnreadableDigitsWithQuestionMarksWithinSequence() {
100
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
100
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
107
         assertEquals("11?10?1?0", parsedInput);
107
         assertEquals("11?10?1?0", parsedInput);
108
     }
108
     }
109
 
109
 
110
-    @Ignore
110
+    @Ignore("Remove to run test")
111
     @Test
111
     @Test
112
     public void testReaderRecognizesSingle2() {
112
     public void testReaderRecognizesSingle2() {
113
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
113
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
120
         assertEquals("2", parsedInput);
120
         assertEquals("2", parsedInput);
121
     }
121
     }
122
 
122
 
123
-    @Ignore
123
+    @Ignore("Remove to run test")
124
     @Test
124
     @Test
125
     public void testReaderRecognizesSingle3() {
125
     public void testReaderRecognizesSingle3() {
126
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
126
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
133
         assertEquals("3", parsedInput);
133
         assertEquals("3", parsedInput);
134
     }
134
     }
135
 
135
 
136
-    @Ignore
136
+    @Ignore("Remove to run test")
137
     @Test
137
     @Test
138
     public void testReaderRecognizesSingle4() {
138
     public void testReaderRecognizesSingle4() {
139
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
139
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
146
         assertEquals("4", parsedInput);
146
         assertEquals("4", parsedInput);
147
     }
147
     }
148
 
148
 
149
-    @Ignore
149
+    @Ignore("Remove to run test")
150
     @Test
150
     @Test
151
     public void testReaderRecognizesSingle5() {
151
     public void testReaderRecognizesSingle5() {
152
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
152
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
159
         assertEquals("5", parsedInput);
159
         assertEquals("5", parsedInput);
160
     }
160
     }
161
 
161
 
162
-    @Ignore
162
+    @Ignore("Remove to run test")
163
     @Test
163
     @Test
164
     public void testReaderRecognizesSingle6() {
164
     public void testReaderRecognizesSingle6() {
165
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
165
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
172
         assertEquals("6", parsedInput);
172
         assertEquals("6", parsedInput);
173
     }
173
     }
174
 
174
 
175
-    @Ignore
175
+    @Ignore("Remove to run test")
176
     @Test
176
     @Test
177
     public void testReaderRecognizesSingle7() {
177
     public void testReaderRecognizesSingle7() {
178
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
178
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
185
         assertEquals("7", parsedInput);
185
         assertEquals("7", parsedInput);
186
     }
186
     }
187
 
187
 
188
-    @Ignore
188
+    @Ignore("Remove to run test")
189
     @Test
189
     @Test
190
     public void testReaderRecognizesSingle8() {
190
     public void testReaderRecognizesSingle8() {
191
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
191
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
198
         assertEquals("8", parsedInput);
198
         assertEquals("8", parsedInput);
199
     }
199
     }
200
 
200
 
201
-    @Ignore
201
+    @Ignore("Remove to run test")
202
     @Test
202
     @Test
203
     public void testReaderRecognizesSingle9() {
203
     public void testReaderRecognizesSingle9() {
204
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
204
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
211
         assertEquals("9", parsedInput);
211
         assertEquals("9", parsedInput);
212
     }
212
     }
213
 
213
 
214
-    @Ignore
214
+    @Ignore("Remove to run test")
215
     @Test
215
     @Test
216
     public void testReaderRecognizesSequence1234567890() {
216
     public void testReaderRecognizesSequence1234567890() {
217
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
217
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
224
         assertEquals("1234567890", parsedInput);
224
         assertEquals("1234567890", parsedInput);
225
     }
225
     }
226
 
226
 
227
-    @Ignore
227
+    @Ignore("Remove to run test")
228
     @Test
228
     @Test
229
     public void testReaderRecognizesAndCorrectlyFormatsMultiRowInput() {
229
     public void testReaderRecognizesAndCorrectlyFormatsMultiRowInput() {
230
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(
230
         String parsedInput = new OpticalCharacterReader().parse(Arrays.asList(