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