Przeglądaj źródła

Merge pull request #516 from Smarticles101/ignore-strain

strain: add hint to @Ignore annotations
FridaTveit 9 lat temu
rodzic
commit
5cfb19d56e
1 zmienionych plików z 11 dodań i 11 usunięć
  1. 11
    11
      exercises/strain/src/test/java/StrainTest.java

+ 11
- 11
exercises/strain/src/test/java/StrainTest.java Wyświetl plik

16
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x < 10));
16
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x < 10));
17
     }
17
     }
18
 
18
 
19
-    @Ignore
19
+    @Ignore("Remove to run test")
20
     @Test
20
     @Test
21
     public void keepEverything() {
21
     public void keepEverything() {
22
         List<Integer> input = Arrays.asList(1, 2, 3);
22
         List<Integer> input = Arrays.asList(1, 2, 3);
24
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x < 10));
24
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x < 10));
25
     }
25
     }
26
 
26
 
27
-    @Ignore
27
+    @Ignore("Remove to run test")
28
     @Test
28
     @Test
29
     public void keepFirstAndLast() {
29
     public void keepFirstAndLast() {
30
         List<Integer> input = Arrays.asList(1, 2, 3);
30
         List<Integer> input = Arrays.asList(1, 2, 3);
32
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x % 2 != 0));
32
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x % 2 != 0));
33
     }
33
     }
34
 
34
 
35
-    @Ignore
35
+    @Ignore("Remove to run test")
36
     @Test
36
     @Test
37
     public void keepNeitherFirstNorLast() {
37
     public void keepNeitherFirstNorLast() {
38
         List<Integer> input = Arrays.asList(1, 2, 3, 4, 5);
38
         List<Integer> input = Arrays.asList(1, 2, 3, 4, 5);
40
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x % 2 == 0));
40
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x % 2 == 0));
41
     }
41
     }
42
 
42
 
43
-    @Ignore
43
+    @Ignore("Remove to run test")
44
     @Test
44
     @Test
45
     public void KeepStrings() {
45
     public void KeepStrings() {
46
         List<String> words = Arrays
46
         List<String> words = Arrays
50
                 Strain.keep(words, x -> x.startsWith("z")));
50
                 Strain.keep(words, x -> x.startsWith("z")));
51
     }
51
     }
52
 
52
 
53
-    @Ignore
53
+    @Ignore("Remove to run test")
54
     @Test
54
     @Test
55
     public void KeepArrays() {
55
     public void KeepArrays() {
56
         List<List<Integer>> actual = Arrays.asList(
56
         List<List<Integer>> actual = Arrays.asList(
70
                 Strain.keep(actual, col -> col.contains(5)));
70
                 Strain.keep(actual, col -> col.contains(5)));
71
     }
71
     }
72
 
72
 
73
-    @Ignore
73
+    @Ignore("Remove to run test")
74
     @Test
74
     @Test
75
     public void emptyDiscard() {
75
     public void emptyDiscard() {
76
         List<Integer> input = new LinkedList<>();
76
         List<Integer> input = new LinkedList<>();
78
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x < 10));
78
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x < 10));
79
     }
79
     }
80
 
80
 
81
-    @Ignore
81
+    @Ignore("Remove to run test")
82
     @Test
82
     @Test
83
     public void discardNothing() {
83
     public void discardNothing() {
84
         List<Integer> input = Arrays.asList(1, 2, 3);
84
         List<Integer> input = Arrays.asList(1, 2, 3);
86
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x > 10));
86
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x > 10));
87
     }
87
     }
88
 
88
 
89
-    @Ignore
89
+    @Ignore("Remove to run test")
90
     @Test
90
     @Test
91
     public void discardFirstAndLast() {
91
     public void discardFirstAndLast() {
92
         List<Integer> input = Arrays.asList(1, 2, 3);
92
         List<Integer> input = Arrays.asList(1, 2, 3);
95
 
95
 
96
     }
96
     }
97
 
97
 
98
-    @Ignore
98
+    @Ignore("Remove to run test")
99
     @Test
99
     @Test
100
     public void discardNeitherFirstNorLast() {
100
     public void discardNeitherFirstNorLast() {
101
         List<Integer> input = Arrays.asList(1, 2, 3, 4, 5);
101
         List<Integer> input = Arrays.asList(1, 2, 3, 4, 5);
103
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x % 2 == 0));
103
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x % 2 == 0));
104
     }
104
     }
105
 
105
 
106
-    @Ignore
106
+    @Ignore("Remove to run test")
107
     @Test
107
     @Test
108
     public void discardStrings() {
108
     public void discardStrings() {
109
         List<String> words = Arrays
109
         List<String> words = Arrays
113
                 Strain.discard(words, x -> x.startsWith("z")));
113
                 Strain.discard(words, x -> x.startsWith("z")));
114
     }
114
     }
115
 
115
 
116
-    @Ignore
116
+    @Ignore("Remove to run test")
117
     @Test
117
     @Test
118
     public void discardArrays() {
118
     public void discardArrays() {
119
         List<List<Integer>> actual = Arrays.asList(
119
         List<List<Integer>> actual = Arrays.asList(