trackler 2.1.0.8 → 2.1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitmodules +3 -0
- data/lib/trackler/version.rb +1 -1
- data/tracks/coq/.git +1 -0
- data/tracks/coq/.github/PULL_REQUEST_TEMPLATE.md +23 -0
- data/tracks/coq/.gitignore +4 -0
- data/tracks/coq/.travis.yml +5 -0
- data/tracks/coq/LICENSE +21 -0
- data/tracks/coq/README.md +84 -0
- data/tracks/coq/bin/fetch-configlet +32 -0
- data/tracks/coq/config.json +21 -0
- data/tracks/coq/docs/ABOUT.md +0 -0
- data/tracks/coq/docs/INSTALLATION.md +0 -0
- data/tracks/coq/docs/LEARNING.md +0 -0
- data/tracks/coq/docs/RESOURCES.md +0 -0
- data/tracks/coq/docs/TESTS.md +0 -0
- data/tracks/coq/exercises/TRACK_HINTS.md +0 -0
- data/tracks/coq/img/.keep +0 -0
- data/tracks/cpp/docs/INSTALLATION.md +1 -0
- data/tracks/go/exercises/phone-number/.meta/gen.go +82 -0
- data/tracks/go/exercises/phone-number/cases_test.go +91 -0
- data/tracks/go/exercises/phone-number/example.go +20 -18
- data/tracks/go/exercises/phone-number/phone_number_test.go +17 -52
- data/tracks/go/exercises/scrabble-score/.meta/gen.go +45 -0
- data/tracks/go/exercises/scrabble-score/cases_test.go +24 -0
- data/tracks/go/exercises/scrabble-score/example.go +1 -1
- data/tracks/go/exercises/scrabble-score/scrabble_score_test.go +3 -17
- data/tracks/java/exercises/binary-search-tree/src/test/java/BSTTest.java +2 -2
- data/tracks/java/exercises/change/src/test/java/ChangeCalculatorTest.java +8 -8
- data/tracks/java/exercises/clock/src/test/java/ClockAddTest.java +16 -16
- data/tracks/java/exercises/clock/src/test/java/ClockCreationTest.java +18 -18
- data/tracks/java/exercises/clock/src/test/java/ClockEqualTest.java +15 -15
- data/tracks/java/exercises/custom-set/src/test/java/CustomSetTest.java +36 -36
- data/tracks/java/exercises/diamond/src/test/java/DiamondPrinterTest.java +4 -4
- data/tracks/java/exercises/etl/src/test/java/EtlTest.java +3 -3
- data/tracks/java/exercises/flatten-array/src/test/java/FlattenerTest.java +5 -5
- data/tracks/java/exercises/grade-school/src/test/java/SchoolTest.java +7 -7
- data/tracks/java/exercises/hamming/src/test/java/HammingTest.java +8 -8
- data/tracks/java/exercises/isogram/src/test/java/IsogramCheckerTest.java +9 -9
- data/tracks/java/exercises/largest-series-product/src/test/java/LargestSeriesProductCalculatorTest.java +17 -17
- data/tracks/java/exercises/linked-list/src/test/java/DoublyLinkedListTest.java +4 -4
- data/tracks/java/exercises/list-ops/src/test/java/ListOpsTest.java +19 -19
- data/tracks/java/exercises/luhn/src/test/java/LuhnValidatorTest.java +12 -12
- data/tracks/java/exercises/matrix/src/test/java/MatrixTest.java +5 -5
- data/tracks/java/exercises/meetup/src/test/java/MeetupTest.java +90 -90
- data/tracks/java/exercises/minesweeper/src/test/java/MinesweeperBoardTest.java +14 -14
- data/tracks/java/exercises/nth-prime/src/test/java/PrimeCalculatorTest.java +4 -4
- data/tracks/java/exercises/nucleotide-count/src/test/java/NucleotideTest.java +8 -8
- data/tracks/java/exercises/palindrome-products/src/test/java/PalindromeCalculatorTest.java +4 -4
- data/tracks/java/exercises/pascals-triangle/src/test/java/PascalsTriangleGeneratorTest.java +5 -5
- data/tracks/java/exercises/phone-number/src/test/java/PhoneNumberTest.java +9 -9
- data/tracks/java/exercises/pythagorean-triplet/src/test/java/PythagoreanTripletTest.java +6 -6
- data/tracks/java/exercises/queen-attack/src/test/java/QueenAttackCalculatorTest.java +12 -12
- data/tracks/java/exercises/rectangles/src/test/java/RectangleCounterTest.java +11 -11
- data/tracks/java/exercises/robot-name/src/test/java/RobotTest.java +2 -2
- data/tracks/java/exercises/robot-simulator/src/test/java/RobotTest.java +19 -19
- data/tracks/java/exercises/series/src/test/java/SeriesTest.java +10 -10
- data/tracks/java/exercises/sieve/src/test/java/SieveTest.java +2 -2
- data/tracks/java/exercises/simple-cipher/src/test/java/SimpleCipherStepOneTest.java +2 -2
- data/tracks/java/exercises/simple-cipher/src/test/java/SimpleCipherStepThreeTest.java +7 -7
- data/tracks/java/exercises/simple-cipher/src/test/java/SimpleCipherStepTwoTest.java +9 -9
- data/tracks/java/exercises/sublist/src/test/java/RelationshipComputerTest.java +16 -16
- data/tracks/java/exercises/sum-of-multiples/src/test/java/SumOfMultiplesTest.java +11 -11
- data/tracks/java/exercises/triangle/src/test/java/TriangleTest.java +14 -14
- data/tracks/java/exercises/twelve-days/src/test/java/TwelveDaysTest.java +13 -13
- data/tracks/java/exercises/word-count/src/test/java/WordCountTest.java +5 -5
- data/tracks/java/exercises/wordy/src/test/java/WordProblemSolverTest.java +15 -15
- data/tracks/perl6/.travis.yml +4 -8
- metadata +21 -2
@@ -24,7 +24,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
24
24
|
assertEquals(expectedProduct, actualProduct);
|
25
25
|
}
|
26
26
|
|
27
|
-
@Ignore
|
27
|
+
@Ignore("Remove to run test")
|
28
28
|
@Test
|
29
29
|
public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersNotInOrder() {
|
30
30
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("576802143");
|
@@ -35,7 +35,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
35
35
|
assertEquals(expectedProduct, actualProduct);
|
36
36
|
}
|
37
37
|
|
38
|
-
@Ignore
|
38
|
+
@Ignore("Remove to run test")
|
39
39
|
@Test
|
40
40
|
public void testCorrectlyCalculatesLargestProductWhenSeriesLengthEqualsStringToSearchLength() {
|
41
41
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("29");
|
@@ -46,7 +46,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
46
46
|
assertEquals(expectedProduct, actualProduct);
|
47
47
|
}
|
48
48
|
|
49
|
-
@Ignore
|
49
|
+
@Ignore("Remove to run test")
|
50
50
|
@Test
|
51
51
|
public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersInOrder() {
|
52
52
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
|
@@ -57,7 +57,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
57
57
|
assertEquals(expectedProduct, actualProduct);
|
58
58
|
}
|
59
59
|
|
60
|
-
@Ignore
|
60
|
+
@Ignore("Remove to run test")
|
61
61
|
@Test
|
62
62
|
public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersNotInOrder() {
|
63
63
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("1027839564");
|
@@ -68,7 +68,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
68
68
|
assertEquals(expectedProduct, actualProduct);
|
69
69
|
}
|
70
70
|
|
71
|
-
@Ignore
|
71
|
+
@Ignore("Remove to run test")
|
72
72
|
@Test
|
73
73
|
public void testCorrectlyCalculatesLargestProductOfLengthFiveWithNumbersInOrder() {
|
74
74
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
|
@@ -79,7 +79,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
79
79
|
assertEquals(expectedProduct, actualProduct);
|
80
80
|
}
|
81
81
|
|
82
|
-
@Ignore
|
82
|
+
@Ignore("Remove to run test")
|
83
83
|
@Test
|
84
84
|
public void testCorrectlyCalculatesLargestProductInLongStringToSearchV1() {
|
85
85
|
final LargestSeriesProductCalculator calculator
|
@@ -92,7 +92,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
92
92
|
assertEquals(expectedProduct, actualProduct);
|
93
93
|
}
|
94
94
|
|
95
|
-
@Ignore
|
95
|
+
@Ignore("Remove to run test")
|
96
96
|
@Test
|
97
97
|
public void testCorrectlyCalculatesLargestProductInLongStringToSearchV2() {
|
98
98
|
final LargestSeriesProductCalculator calculator
|
@@ -105,7 +105,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
105
105
|
assertEquals(expectedProduct, actualProduct);
|
106
106
|
}
|
107
107
|
|
108
|
-
@Ignore
|
108
|
+
@Ignore("Remove to run test")
|
109
109
|
@Test
|
110
110
|
public void testCorrectlyCalculatesLargestProductInLongStringToSearchFromProjectEuler() {
|
111
111
|
final LargestSeriesProductCalculator calculator
|
@@ -118,7 +118,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
118
118
|
assertEquals(expectedProduct, actualProduct);
|
119
119
|
}
|
120
120
|
|
121
|
-
@Ignore
|
121
|
+
@Ignore("Remove to run test")
|
122
122
|
@Test
|
123
123
|
public void testCorrectlyCalculatesLargestProductOfZeroIfAllDigitsAreZeroes() {
|
124
124
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0000");
|
@@ -129,7 +129,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
129
129
|
assertEquals(expectedProduct, actualProduct);
|
130
130
|
}
|
131
131
|
|
132
|
-
@Ignore
|
132
|
+
@Ignore("Remove to run test")
|
133
133
|
@Test
|
134
134
|
public void testCorrectlyCalculatesLargestProductOfZeroIfAllSeriesOfGivenLengthContainZero() {
|
135
135
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("99099");
|
@@ -140,7 +140,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
140
140
|
assertEquals(expectedProduct, actualProduct);
|
141
141
|
}
|
142
142
|
|
143
|
-
@Ignore
|
143
|
+
@Ignore("Remove to run test")
|
144
144
|
@Test
|
145
145
|
public void testSeriesLengthLongerThanLengthOfStringToTestIsRejected() {
|
146
146
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
|
@@ -152,7 +152,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
152
152
|
calculator.calculateLargestProductForSeriesLength(4);
|
153
153
|
}
|
154
154
|
|
155
|
-
@Ignore
|
155
|
+
@Ignore("Remove to run test")
|
156
156
|
@Test
|
157
157
|
public void testCorrectlyCalculatesLargestProductOfLength0ForEmptyStringToSearch() {
|
158
158
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
|
@@ -163,7 +163,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
163
163
|
assertEquals(expectedProduct, actualProduct);
|
164
164
|
}
|
165
165
|
|
166
|
-
@Ignore
|
166
|
+
@Ignore("Remove to run test")
|
167
167
|
@Test
|
168
168
|
public void testCorrectlyCalculatesLargestProductOfLength0ForNonEmptyStringToSearch() {
|
169
169
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
|
@@ -174,7 +174,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
174
174
|
assertEquals(expectedProduct, actualProduct);
|
175
175
|
}
|
176
176
|
|
177
|
-
@Ignore
|
177
|
+
@Ignore("Remove to run test")
|
178
178
|
@Test
|
179
179
|
public void testEmptyStringToSearchAndSeriesOfNonZeroLengthIsRejected() {
|
180
180
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
|
@@ -186,7 +186,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
186
186
|
calculator.calculateLargestProductForSeriesLength(1);
|
187
187
|
}
|
188
188
|
|
189
|
-
@Ignore
|
189
|
+
@Ignore("Remove to run test")
|
190
190
|
@Test
|
191
191
|
public void testStringToSearchContainingNonDigitCharacterIsRejected() {
|
192
192
|
expectedException.expect(IllegalArgumentException.class);
|
@@ -195,7 +195,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
195
195
|
new LargestSeriesProductCalculator("1234a5");
|
196
196
|
}
|
197
197
|
|
198
|
-
@Ignore
|
198
|
+
@Ignore("Remove to run test")
|
199
199
|
@Test
|
200
200
|
public void testNegativeSeriesLengthIsRejected() {
|
201
201
|
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("12345");
|
@@ -206,7 +206,7 @@ public final class LargestSeriesProductCalculatorTest {
|
|
206
206
|
calculator.calculateLargestProductForSeriesLength(-1);
|
207
207
|
}
|
208
208
|
|
209
|
-
@Ignore
|
209
|
+
@Ignore("Remove to run test")
|
210
210
|
@Test
|
211
211
|
public void testNullStringToSearchIsRejected() {
|
212
212
|
expectedException.expect(IllegalArgumentException.class);
|
@@ -22,7 +22,7 @@ public class DoublyLinkedListTest {
|
|
22
22
|
assertThat(subject.pop(), is(10));
|
23
23
|
}
|
24
24
|
|
25
|
-
@Ignore
|
25
|
+
@Ignore("Remove to run test")
|
26
26
|
@Test
|
27
27
|
public void testPushShift() {
|
28
28
|
subject.push(10);
|
@@ -31,7 +31,7 @@ public class DoublyLinkedListTest {
|
|
31
31
|
assertThat(subject.shift(), is(20));
|
32
32
|
}
|
33
33
|
|
34
|
-
@Ignore
|
34
|
+
@Ignore("Remove to run test")
|
35
35
|
@Test
|
36
36
|
public void testUnshiftShift() {
|
37
37
|
subject.unshift(10);
|
@@ -40,7 +40,7 @@ public class DoublyLinkedListTest {
|
|
40
40
|
assertThat(subject.shift(), is(10));
|
41
41
|
}
|
42
42
|
|
43
|
-
@Ignore
|
43
|
+
@Ignore("Remove to run test")
|
44
44
|
@Test
|
45
45
|
public void testUnshiftPop() {
|
46
46
|
subject.unshift(10);
|
@@ -49,7 +49,7 @@ public class DoublyLinkedListTest {
|
|
49
49
|
assertThat(subject.pop(), is(20));
|
50
50
|
}
|
51
51
|
|
52
|
-
@Ignore
|
52
|
+
@Ignore("Remove to run test")
|
53
53
|
@Test
|
54
54
|
public void testExample() {
|
55
55
|
subject.push(10);
|
@@ -29,7 +29,7 @@ public class ListOpsTest {
|
|
29
29
|
}
|
30
30
|
|
31
31
|
@Test
|
32
|
-
@Ignore
|
32
|
+
@Ignore("Remove to run test")
|
33
33
|
public void shouldReturnTheCorrectLengthOfAnNonEmptyList() {
|
34
34
|
final List<Integer> list = Collections.unmodifiableList(
|
35
35
|
Arrays.asList(0, 1, 2, 3, 4)
|
@@ -41,7 +41,7 @@ public class ListOpsTest {
|
|
41
41
|
}
|
42
42
|
|
43
43
|
@Test
|
44
|
-
@Ignore
|
44
|
+
@Ignore("Remove to run test")
|
45
45
|
public void shouldReverseAnEmptyList() {
|
46
46
|
final List<Integer> actual = ListOps.reverse(EMPTY_LIST);
|
47
47
|
|
@@ -50,7 +50,7 @@ public class ListOpsTest {
|
|
50
50
|
}
|
51
51
|
|
52
52
|
@Test
|
53
|
-
@Ignore
|
53
|
+
@Ignore("Remove to run test")
|
54
54
|
public void shouldReverseANonEmptyList() {
|
55
55
|
final List<Integer> list = Collections.unmodifiableList(
|
56
56
|
Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8)
|
@@ -66,7 +66,7 @@ public class ListOpsTest {
|
|
66
66
|
}
|
67
67
|
|
68
68
|
@Test
|
69
|
-
@Ignore
|
69
|
+
@Ignore("Remove to run test")
|
70
70
|
public void shouldMapAnEmptyListAndReturnAnEmptyList() {
|
71
71
|
final List<Integer> actual = ListOps.map(EMPTY_LIST, x -> x + 1);
|
72
72
|
|
@@ -75,7 +75,7 @@ public class ListOpsTest {
|
|
75
75
|
}
|
76
76
|
|
77
77
|
@Test
|
78
|
-
@Ignore
|
78
|
+
@Ignore("Remove to run test")
|
79
79
|
public void shouldMapNonEmptyList() {
|
80
80
|
final List<Integer> list
|
81
81
|
= Collections.unmodifiableList(Arrays.asList(1, 3, 5, 7));
|
@@ -87,7 +87,7 @@ public class ListOpsTest {
|
|
87
87
|
}
|
88
88
|
|
89
89
|
@Test
|
90
|
-
@Ignore
|
90
|
+
@Ignore("Remove to run test")
|
91
91
|
public void shouldFilterAnEmptyListanddReturnAnEmptyList() {
|
92
92
|
final List<Integer> actual = ListOps.filter(EMPTY_LIST, x -> x > 0);
|
93
93
|
|
@@ -96,7 +96,7 @@ public class ListOpsTest {
|
|
96
96
|
}
|
97
97
|
|
98
98
|
@Test
|
99
|
-
@Ignore
|
99
|
+
@Ignore("Remove to run test")
|
100
100
|
public void shouldFilterNonEmptyList() {
|
101
101
|
Predicate<Integer> predicate = x -> x % 2 > 0;
|
102
102
|
final List<Integer> list = Collections.unmodifiableList(
|
@@ -113,7 +113,7 @@ public class ListOpsTest {
|
|
113
113
|
}
|
114
114
|
|
115
115
|
@Test
|
116
|
-
@Ignore
|
116
|
+
@Ignore("Remove to run test")
|
117
117
|
public void shouldConcatenateZeroLists() {
|
118
118
|
List<Integer> actual = ListOps.concat();
|
119
119
|
|
@@ -122,7 +122,7 @@ public class ListOpsTest {
|
|
122
122
|
}
|
123
123
|
|
124
124
|
@Test
|
125
|
-
@Ignore
|
125
|
+
@Ignore("Remove to run test")
|
126
126
|
public void shouldConcatenateOneNonEmptyList() {
|
127
127
|
final List<Integer> list
|
128
128
|
= Collections.unmodifiableList(
|
@@ -137,7 +137,7 @@ public class ListOpsTest {
|
|
137
137
|
}
|
138
138
|
|
139
139
|
@Test
|
140
|
-
@Ignore
|
140
|
+
@Ignore("Remove to run test")
|
141
141
|
public void shouldConcatenateOneEmptyList() {
|
142
142
|
final List<Integer> actual = ListOps.concat(EMPTY_LIST);
|
143
143
|
|
@@ -146,7 +146,7 @@ public class ListOpsTest {
|
|
146
146
|
}
|
147
147
|
|
148
148
|
@Test
|
149
|
-
@Ignore
|
149
|
+
@Ignore("Remove to run test")
|
150
150
|
public void shouldConcatenateTwoEmptyLists() {
|
151
151
|
final List<Integer> actual = ListOps.concat(EMPTY_LIST, EMPTY_LIST);
|
152
152
|
|
@@ -155,7 +155,7 @@ public class ListOpsTest {
|
|
155
155
|
}
|
156
156
|
|
157
157
|
@Test
|
158
|
-
@Ignore
|
158
|
+
@Ignore("Remove to run test")
|
159
159
|
public void shouldConcatenateOneEmptyAndOneNonEmptyLists() {
|
160
160
|
final List<Integer> list
|
161
161
|
= Collections.unmodifiableList(
|
@@ -171,7 +171,7 @@ public class ListOpsTest {
|
|
171
171
|
}
|
172
172
|
|
173
173
|
@Test
|
174
|
-
@Ignore
|
174
|
+
@Ignore("Remove to run test")
|
175
175
|
public void shouldConcatenateOneNonEmptyAndOneEmptyLists() {
|
176
176
|
final List<Integer> list
|
177
177
|
= Collections.unmodifiableList(
|
@@ -187,7 +187,7 @@ public class ListOpsTest {
|
|
187
187
|
}
|
188
188
|
|
189
189
|
@Test
|
190
|
-
@Ignore
|
190
|
+
@Ignore("Remove to run test")
|
191
191
|
public void shouldConcatenateTwoListsWithSameElements() {
|
192
192
|
final List<Integer> list1 = Collections.unmodifiableList(
|
193
193
|
Arrays.asList(0, 1, 2, 3, 4)
|
@@ -205,7 +205,7 @@ public class ListOpsTest {
|
|
205
205
|
}
|
206
206
|
|
207
207
|
@Test
|
208
|
-
@Ignore
|
208
|
+
@Ignore("Remove to run test")
|
209
209
|
public void shouldConcatenateSeveralLists() {
|
210
210
|
final List<Integer> list1 = Collections.unmodifiableList(
|
211
211
|
Arrays.asList(0, 1, 2, 3)
|
@@ -232,7 +232,7 @@ public class ListOpsTest {
|
|
232
232
|
}
|
233
233
|
|
234
234
|
@Test
|
235
|
-
@Ignore
|
235
|
+
@Ignore("Remove to run test")
|
236
236
|
public void shouldReturnIdentityWhenAnEmptyListIsReduced() {
|
237
237
|
final int expected = 0;
|
238
238
|
final int actual
|
@@ -242,7 +242,7 @@ public class ListOpsTest {
|
|
242
242
|
}
|
243
243
|
|
244
244
|
@Test
|
245
|
-
@Ignore
|
245
|
+
@Ignore("Remove to run test")
|
246
246
|
public void shouldCalculateTheSumOfANonEmptyIntegerList() {
|
247
247
|
final List<Integer> list = Collections.unmodifiableList(
|
248
248
|
Arrays.asList(0, 1, 2, 3, 4)
|
@@ -273,7 +273,7 @@ public class ListOpsTest {
|
|
273
273
|
};
|
274
274
|
|
275
275
|
@Test
|
276
|
-
@Ignore
|
276
|
+
@Ignore("Remove to run test")
|
277
277
|
public void shouldReduceAnEmptyListAndANonEmptyListAndReturnConcatenation() {
|
278
278
|
final List<Integer> list = Collections.unmodifiableList(
|
279
279
|
Arrays.asList(0, 1, 2, 3, 4, 5)
|
@@ -292,7 +292,7 @@ public class ListOpsTest {
|
|
292
292
|
}
|
293
293
|
|
294
294
|
@Test
|
295
|
-
@Ignore
|
295
|
+
@Ignore("Remove to run test")
|
296
296
|
public void shouldReduceTwoNonEmptyListsAndReturnConcatenation() {
|
297
297
|
final List<Integer> listOne = Collections.unmodifiableList(
|
298
298
|
Arrays.asList(0, 1, 2, 3, 4)
|
@@ -18,73 +18,73 @@ public class LuhnValidatorTest {
|
|
18
18
|
assertFalse(luhnValidator.isValid("1"));
|
19
19
|
}
|
20
20
|
|
21
|
-
@Ignore
|
21
|
+
@Ignore("Remove to run test")
|
22
22
|
@Test
|
23
23
|
public void testThatTheStringConsistingOfASingleZeroIsInvalid() {
|
24
24
|
assertFalse(luhnValidator.isValid("0"));
|
25
25
|
}
|
26
26
|
|
27
|
-
@Ignore
|
27
|
+
@Ignore("Remove to run test")
|
28
28
|
@Test
|
29
29
|
public void testThatASimpleValidNumberIsIdentifiedAsValid() {
|
30
30
|
assertTrue(luhnValidator.isValid(" 5 9 "));
|
31
31
|
}
|
32
32
|
|
33
|
-
@Ignore
|
33
|
+
@Ignore("Remove to run test")
|
34
34
|
@Test
|
35
35
|
public void testThatAValidCanadianSocialInsuranceNumberIsIdentifiedAsValidV1() {
|
36
36
|
assertTrue(luhnValidator.isValid("046 454 286"));
|
37
37
|
}
|
38
38
|
|
39
|
-
@Ignore
|
39
|
+
@Ignore("Remove to run test")
|
40
40
|
@Test
|
41
41
|
public void testThatAValidCanadianSocialInsuranceNumberIsIdentifiedAsValidV2() {
|
42
42
|
assertTrue(luhnValidator.isValid("055 444 285"));
|
43
43
|
}
|
44
44
|
|
45
|
-
@Ignore
|
45
|
+
@Ignore("Remove to run test")
|
46
46
|
@Test
|
47
47
|
public void testThatAnInvalidCanadianSocialInsuranceNumberIsIdentifiedAsInvalid() {
|
48
48
|
assertFalse(luhnValidator.isValid("046 454 287"));
|
49
49
|
}
|
50
50
|
|
51
|
-
@Ignore
|
51
|
+
@Ignore("Remove to run test")
|
52
52
|
@Test
|
53
53
|
public void testThatAnInvalidCreditCardIsIdentifiedAsInvalid() {
|
54
54
|
assertFalse(luhnValidator.isValid("8273 1232 7352 0569"));
|
55
55
|
}
|
56
56
|
|
57
|
-
@Ignore
|
57
|
+
@Ignore("Remove to run test")
|
58
58
|
@Test
|
59
59
|
public void testThatAddingANonDigitCharacterToAValidStringInvalidatesTheString() {
|
60
60
|
assertFalse(luhnValidator.isValid("046a 454 286"));
|
61
61
|
}
|
62
62
|
|
63
|
-
@Ignore
|
63
|
+
@Ignore("Remove to run test")
|
64
64
|
@Test
|
65
65
|
public void testThatStringContainingPunctuationIsInvalid() {
|
66
66
|
assertFalse(luhnValidator.isValid("055-444-285"));
|
67
67
|
}
|
68
68
|
|
69
|
-
@Ignore
|
69
|
+
@Ignore("Remove to run test")
|
70
70
|
@Test
|
71
71
|
public void testThatStringContainingSymbolsIsInvalid() {
|
72
72
|
assertFalse(luhnValidator.isValid("055£ 444$ 285"));
|
73
73
|
}
|
74
74
|
|
75
|
-
@Ignore
|
75
|
+
@Ignore("Remove to run test")
|
76
76
|
@Test
|
77
77
|
public void testThatTheStringConsistingOfASpaceAndASingleZeroIsInvalid() {
|
78
78
|
assertFalse(luhnValidator.isValid(" 0"));
|
79
79
|
}
|
80
80
|
|
81
|
-
@Ignore
|
81
|
+
@Ignore("Remove to run test")
|
82
82
|
@Test
|
83
83
|
public void testThatStringContainingMultipleZerosIsValid() {
|
84
84
|
assertTrue(luhnValidator.isValid(" 00000"));
|
85
85
|
}
|
86
86
|
|
87
|
-
@Ignore
|
87
|
+
@Ignore("Remove to run test")
|
88
88
|
@Test
|
89
89
|
public void testThatDoublingNineIsHandledCorrectly() {
|
90
90
|
assertTrue(luhnValidator.isValid("091"));
|
@@ -44,7 +44,7 @@ public class MatrixTest {
|
|
44
44
|
}
|
45
45
|
}
|
46
46
|
|
47
|
-
@Ignore
|
47
|
+
@Ignore("Remove to run test")
|
48
48
|
@RunWith(Parameterized.class)
|
49
49
|
public static class CountColumnsTest {
|
50
50
|
private Matrix matrix;
|
@@ -76,7 +76,7 @@ public class MatrixTest {
|
|
76
76
|
}
|
77
77
|
}
|
78
78
|
|
79
|
-
@Ignore
|
79
|
+
@Ignore("Remove to run test")
|
80
80
|
@RunWith(Parameterized.class)
|
81
81
|
public static class GetFirstRowTest {
|
82
82
|
private Matrix matrix;
|
@@ -108,7 +108,7 @@ public class MatrixTest {
|
|
108
108
|
}
|
109
109
|
}
|
110
110
|
|
111
|
-
@Ignore
|
111
|
+
@Ignore("Remove to run test")
|
112
112
|
@RunWith(Parameterized.class)
|
113
113
|
public static class GetLastRowTest {
|
114
114
|
private Matrix matrix;
|
@@ -140,7 +140,7 @@ public class MatrixTest {
|
|
140
140
|
}
|
141
141
|
}
|
142
142
|
|
143
|
-
@Ignore
|
143
|
+
@Ignore("Remove to run test")
|
144
144
|
@RunWith(Parameterized.class)
|
145
145
|
public static class GetFirstColumnTest {
|
146
146
|
private Matrix matrix;
|
@@ -173,7 +173,7 @@ public class MatrixTest {
|
|
173
173
|
}
|
174
174
|
|
175
175
|
|
176
|
-
@Ignore
|
176
|
+
@Ignore("Remove to run test")
|
177
177
|
@RunWith(Parameterized.class)
|
178
178
|
public static class GetLastColumnTest {
|
179
179
|
private Matrix matrix;
|