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
@@ -18,7 +18,7 @@ public class CustomSetTest {
|
|
18
18
|
}
|
19
19
|
|
20
20
|
@Test
|
21
|
-
@Ignore
|
21
|
+
@Ignore("Remove to run test")
|
22
22
|
public void setsWithElementsAreNotEmpty() {
|
23
23
|
final boolean actual
|
24
24
|
= new CustomSet<>(Arrays.asList(1))
|
@@ -28,7 +28,7 @@ public class CustomSetTest {
|
|
28
28
|
}
|
29
29
|
|
30
30
|
@Test
|
31
|
-
@Ignore
|
31
|
+
@Ignore("Remove to run test")
|
32
32
|
public void nothingIsContainedInAnEmptySet() {
|
33
33
|
final boolean actual
|
34
34
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -38,7 +38,7 @@ public class CustomSetTest {
|
|
38
38
|
}
|
39
39
|
|
40
40
|
@Test
|
41
|
-
@Ignore
|
41
|
+
@Ignore("Remove to run test")
|
42
42
|
public void whenTheElementIsInTheSet() {
|
43
43
|
final boolean actual
|
44
44
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
@@ -48,7 +48,7 @@ public class CustomSetTest {
|
|
48
48
|
}
|
49
49
|
|
50
50
|
@Test
|
51
|
-
@Ignore
|
51
|
+
@Ignore("Remove to run test")
|
52
52
|
public void whenTheElementIsNotInTheSet() {
|
53
53
|
final boolean actual
|
54
54
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
@@ -58,7 +58,7 @@ public class CustomSetTest {
|
|
58
58
|
}
|
59
59
|
|
60
60
|
@Test
|
61
|
-
@Ignore
|
61
|
+
@Ignore("Remove to run test")
|
62
62
|
public void emptySetIsASubsetOfAnotherEmptySet() {
|
63
63
|
final boolean actual
|
64
64
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -70,7 +70,7 @@ public class CustomSetTest {
|
|
70
70
|
}
|
71
71
|
|
72
72
|
@Test
|
73
|
-
@Ignore
|
73
|
+
@Ignore("Remove to run test")
|
74
74
|
public void emptySetIsASubsetOfNonEemptySet() {
|
75
75
|
final boolean actual
|
76
76
|
= new CustomSet<>(Arrays.asList(1))
|
@@ -82,7 +82,7 @@ public class CustomSetTest {
|
|
82
82
|
}
|
83
83
|
|
84
84
|
@Test
|
85
|
-
@Ignore
|
85
|
+
@Ignore("Remove to run test")
|
86
86
|
public void nonEmptySetIsNotASubsetOfEmptySet() {
|
87
87
|
final boolean actual
|
88
88
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -94,7 +94,7 @@ public class CustomSetTest {
|
|
94
94
|
}
|
95
95
|
|
96
96
|
@Test
|
97
|
-
@Ignore
|
97
|
+
@Ignore("Remove to run test")
|
98
98
|
public void setIsASubsetOfSetWithExactSameElements() {
|
99
99
|
final boolean actual
|
100
100
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
@@ -106,7 +106,7 @@ public class CustomSetTest {
|
|
106
106
|
}
|
107
107
|
|
108
108
|
@Test
|
109
|
-
@Ignore
|
109
|
+
@Ignore("Remove to run test")
|
110
110
|
public void setIsASubsetOfLargerSetWithSameElements() {
|
111
111
|
final boolean actual
|
112
112
|
= new CustomSet<>(Arrays.asList(4, 1, 2, 3))
|
@@ -118,7 +118,7 @@ public class CustomSetTest {
|
|
118
118
|
}
|
119
119
|
|
120
120
|
@Test
|
121
|
-
@Ignore
|
121
|
+
@Ignore("Remove to run test")
|
122
122
|
public void setIsNotASubsetOfSetThatDoesNotContainItsElements() {
|
123
123
|
final boolean actual
|
124
124
|
= new CustomSet<>(Arrays.asList(4, 1, 3))
|
@@ -130,7 +130,7 @@ public class CustomSetTest {
|
|
130
130
|
}
|
131
131
|
|
132
132
|
@Test
|
133
|
-
@Ignore
|
133
|
+
@Ignore("Remove to run test")
|
134
134
|
public void theEmptySetIsDisjointWithItself() {
|
135
135
|
final boolean actual
|
136
136
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -142,7 +142,7 @@ public class CustomSetTest {
|
|
142
142
|
}
|
143
143
|
|
144
144
|
@Test
|
145
|
-
@Ignore
|
145
|
+
@Ignore("Remove to run test")
|
146
146
|
public void emptySetIsDisjointWithNonEmptySet() {
|
147
147
|
final boolean actual
|
148
148
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -154,7 +154,7 @@ public class CustomSetTest {
|
|
154
154
|
}
|
155
155
|
|
156
156
|
@Test
|
157
|
-
@Ignore
|
157
|
+
@Ignore("Remove to run test")
|
158
158
|
public void nonEmptySetIsDisjointWithEmptySet() {
|
159
159
|
final boolean actual
|
160
160
|
= new CustomSet<>(Arrays.asList(1))
|
@@ -166,7 +166,7 @@ public class CustomSetTest {
|
|
166
166
|
}
|
167
167
|
|
168
168
|
@Test
|
169
|
-
@Ignore
|
169
|
+
@Ignore("Remove to run test")
|
170
170
|
public void setsAreNotDisjointIfTheyShareAnElement() {
|
171
171
|
final boolean actual
|
172
172
|
= new CustomSet<>(Arrays.asList(1, 2))
|
@@ -178,7 +178,7 @@ public class CustomSetTest {
|
|
178
178
|
}
|
179
179
|
|
180
180
|
@Test
|
181
|
-
@Ignore
|
181
|
+
@Ignore("Remove to run test")
|
182
182
|
public void setsAreDisjointIfTheyShareNoElements() {
|
183
183
|
final boolean actual
|
184
184
|
= new CustomSet<>(Arrays.asList(1, 2))
|
@@ -190,7 +190,7 @@ public class CustomSetTest {
|
|
190
190
|
}
|
191
191
|
|
192
192
|
@Test
|
193
|
-
@Ignore
|
193
|
+
@Ignore("Remove to run test")
|
194
194
|
public void emptySetsAreEqual() {
|
195
195
|
final boolean actual
|
196
196
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -202,7 +202,7 @@ public class CustomSetTest {
|
|
202
202
|
}
|
203
203
|
|
204
204
|
@Test
|
205
|
-
@Ignore
|
205
|
+
@Ignore("Remove to run test")
|
206
206
|
public void emptySetIsNotEqualToNonEmptySet() {
|
207
207
|
final boolean actual
|
208
208
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -214,7 +214,7 @@ public class CustomSetTest {
|
|
214
214
|
}
|
215
215
|
|
216
216
|
@Test
|
217
|
-
@Ignore
|
217
|
+
@Ignore("Remove to run test")
|
218
218
|
public void nonEmptySetIsNotEqualToEmptySet() {
|
219
219
|
final boolean actual
|
220
220
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
@@ -226,7 +226,7 @@ public class CustomSetTest {
|
|
226
226
|
}
|
227
227
|
|
228
228
|
@Test
|
229
|
-
@Ignore
|
229
|
+
@Ignore("Remove to run test")
|
230
230
|
public void setsWithTheSameElementsAreEqual() {
|
231
231
|
final boolean actual
|
232
232
|
= new CustomSet<>(Arrays.asList(1, 2))
|
@@ -238,7 +238,7 @@ public class CustomSetTest {
|
|
238
238
|
}
|
239
239
|
|
240
240
|
@Test
|
241
|
-
@Ignore
|
241
|
+
@Ignore("Remove to run test")
|
242
242
|
public void setsWithDifferentElementsAreNotEqual() {
|
243
243
|
final boolean actual
|
244
244
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
@@ -250,7 +250,7 @@ public class CustomSetTest {
|
|
250
250
|
}
|
251
251
|
|
252
252
|
@Test
|
253
|
-
@Ignore
|
253
|
+
@Ignore("Remove to run test")
|
254
254
|
public void addToEmptySet() {
|
255
255
|
final int element = 3;
|
256
256
|
final CustomSet<Integer> expected
|
@@ -268,7 +268,7 @@ public class CustomSetTest {
|
|
268
268
|
}
|
269
269
|
|
270
270
|
@Test
|
271
|
-
@Ignore
|
271
|
+
@Ignore("Remove to run test")
|
272
272
|
public void addToNonEmptySet() {
|
273
273
|
final int element = 3;
|
274
274
|
final CustomSet<Integer> expected
|
@@ -286,7 +286,7 @@ public class CustomSetTest {
|
|
286
286
|
}
|
287
287
|
|
288
288
|
@Test
|
289
|
-
@Ignore
|
289
|
+
@Ignore("Remove to run test")
|
290
290
|
public void addingAnExistingElementDoesNotChangeTheSet() {
|
291
291
|
final int element = 3;
|
292
292
|
final CustomSet<Integer> expected
|
@@ -303,7 +303,7 @@ public class CustomSetTest {
|
|
303
303
|
}
|
304
304
|
|
305
305
|
@Test
|
306
|
-
@Ignore
|
306
|
+
@Ignore("Remove to run test")
|
307
307
|
public void intersectionOfTwoEmptySetsIsAnEmptySet() {
|
308
308
|
final CustomSet<Integer> actual
|
309
309
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -316,7 +316,7 @@ public class CustomSetTest {
|
|
316
316
|
}
|
317
317
|
|
318
318
|
@Test
|
319
|
-
@Ignore
|
319
|
+
@Ignore("Remove to run test")
|
320
320
|
public void intersectionOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
|
321
321
|
final CustomSet<Integer> actual
|
322
322
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -329,7 +329,7 @@ public class CustomSetTest {
|
|
329
329
|
}
|
330
330
|
|
331
331
|
@Test
|
332
|
-
@Ignore
|
332
|
+
@Ignore("Remove to run test")
|
333
333
|
public void intersectionOfANonEmptySetAndAnEmptySetIsAnEmptySet() {
|
334
334
|
final CustomSet<Integer> actual
|
335
335
|
= new CustomSet<>(Arrays.asList(1, 2, 3, 4))
|
@@ -343,7 +343,7 @@ public class CustomSetTest {
|
|
343
343
|
}
|
344
344
|
|
345
345
|
@Test
|
346
|
-
@Ignore
|
346
|
+
@Ignore("Remove to run test")
|
347
347
|
public void intersectionOfTwoSetsWithNoSharedElementsIsAnEmptySet() {
|
348
348
|
final CustomSet<Integer> actual
|
349
349
|
= new CustomSet<>(Arrays.asList(1, 2, 3))
|
@@ -356,7 +356,7 @@ public class CustomSetTest {
|
|
356
356
|
}
|
357
357
|
|
358
358
|
@Test
|
359
|
-
@Ignore
|
359
|
+
@Ignore("Remove to run test")
|
360
360
|
public void intersectionOfTwoSetsWithSharedElementsIsASetOfTheSharedElements() {
|
361
361
|
final CustomSet<Integer> expected
|
362
362
|
= new CustomSet<>(
|
@@ -374,7 +374,7 @@ public class CustomSetTest {
|
|
374
374
|
}
|
375
375
|
|
376
376
|
@Test
|
377
|
-
@Ignore
|
377
|
+
@Ignore("Remove to run test")
|
378
378
|
public void differenceOfTwoEmptySetsIsAnEmptySet() {
|
379
379
|
final CustomSet<Integer> actual
|
380
380
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -387,7 +387,7 @@ public class CustomSetTest {
|
|
387
387
|
}
|
388
388
|
|
389
389
|
@Test
|
390
|
-
@Ignore
|
390
|
+
@Ignore("Remove to run test")
|
391
391
|
public void differenceOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
|
392
392
|
final CustomSet<Integer> actual
|
393
393
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -400,7 +400,7 @@ public class CustomSetTest {
|
|
400
400
|
}
|
401
401
|
|
402
402
|
@Test
|
403
|
-
@Ignore
|
403
|
+
@Ignore("Remove to run test")
|
404
404
|
public void differenceOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
|
405
405
|
final CustomSet<Integer> expected
|
406
406
|
= new CustomSet<>(
|
@@ -418,7 +418,7 @@ public class CustomSetTest {
|
|
418
418
|
}
|
419
419
|
|
420
420
|
@Test
|
421
|
-
@Ignore
|
421
|
+
@Ignore("Remove to run test")
|
422
422
|
public void differenceOfTwoNonEmptySetsIsASetOfElementsThatAreOnlyInTheFirstSet() {
|
423
423
|
final CustomSet<Integer> expected
|
424
424
|
= new CustomSet<>(
|
@@ -436,7 +436,7 @@ public class CustomSetTest {
|
|
436
436
|
}
|
437
437
|
|
438
438
|
@Test
|
439
|
-
@Ignore
|
439
|
+
@Ignore("Remove to run test")
|
440
440
|
public void unionOfTwoEmptySetsIsAnEmptySet() {
|
441
441
|
final CustomSet<Integer> actual
|
442
442
|
= new CustomSet<>(Collections.EMPTY_LIST)
|
@@ -449,7 +449,7 @@ public class CustomSetTest {
|
|
449
449
|
}
|
450
450
|
|
451
451
|
@Test
|
452
|
-
@Ignore
|
452
|
+
@Ignore("Remove to run test")
|
453
453
|
public void unionOfAnEmptySetAndNonEmptySetIsTheNonEmptySet() {
|
454
454
|
final CustomSet<Integer> expected
|
455
455
|
= new CustomSet<>(
|
@@ -467,7 +467,7 @@ public class CustomSetTest {
|
|
467
467
|
}
|
468
468
|
|
469
469
|
@Test
|
470
|
-
@Ignore
|
470
|
+
@Ignore("Remove to run test")
|
471
471
|
public void unionOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
|
472
472
|
final CustomSet<Integer> expected
|
473
473
|
= new CustomSet<>(
|
@@ -485,7 +485,7 @@ public class CustomSetTest {
|
|
485
485
|
}
|
486
486
|
|
487
487
|
@Test
|
488
|
-
@Ignore
|
488
|
+
@Ignore("Remove to run test")
|
489
489
|
public void unionOfTwoNonEmptySetsContainsAllUniqueElements() {
|
490
490
|
final CustomSet<Integer> expected
|
491
491
|
= new CustomSet<>(
|
@@ -23,7 +23,7 @@ public final class DiamondPrinterTest {
|
|
23
23
|
assertThat(output, is(singletonList("A")));
|
24
24
|
}
|
25
25
|
|
26
|
-
@Ignore
|
26
|
+
@Ignore("Remove to run test")
|
27
27
|
@Test
|
28
28
|
public void testTwoByTwoDiamond() {
|
29
29
|
List<String> output = diamondPrinter.printToList('B');
|
@@ -32,7 +32,7 @@ public final class DiamondPrinterTest {
|
|
32
32
|
" A ")));
|
33
33
|
}
|
34
34
|
|
35
|
-
@Ignore
|
35
|
+
@Ignore("Remove to run test")
|
36
36
|
@Test
|
37
37
|
public void testThreeByThreeDiamond() {
|
38
38
|
List<String> output = diamondPrinter.printToList('C');
|
@@ -43,7 +43,7 @@ public final class DiamondPrinterTest {
|
|
43
43
|
" A ")));
|
44
44
|
}
|
45
45
|
|
46
|
-
@Ignore
|
46
|
+
@Ignore("Remove to run test")
|
47
47
|
@Test
|
48
48
|
public void testFiveByFiveDiamond() {
|
49
49
|
List<String> output = diamondPrinter.printToList('E');
|
@@ -58,7 +58,7 @@ public final class DiamondPrinterTest {
|
|
58
58
|
" A ")));
|
59
59
|
}
|
60
60
|
|
61
|
-
@Ignore
|
61
|
+
@Ignore("Remove to run test")
|
62
62
|
@Test
|
63
63
|
public void testFullDiamond() {
|
64
64
|
List<String> output = diamondPrinter.printToList('Z');
|
@@ -28,7 +28,7 @@ public class EtlTest {
|
|
28
28
|
assertEquals(expected, etl.transform(old));
|
29
29
|
}
|
30
30
|
|
31
|
-
@Ignore
|
31
|
+
@Ignore("Remove to run test")
|
32
32
|
@Test
|
33
33
|
public void testTransformMoreValues() {
|
34
34
|
Map<Integer, List<String>> old = new HashMap<Integer, List<String>>() {
|
@@ -52,7 +52,7 @@ public class EtlTest {
|
|
52
52
|
assertEquals(expected, etl.transform(old));
|
53
53
|
}
|
54
54
|
|
55
|
-
@Ignore
|
55
|
+
@Ignore("Remove to run test")
|
56
56
|
@Test
|
57
57
|
public void testMoreKeys() {
|
58
58
|
Map<Integer, List<String>> old = new HashMap<Integer, List<String>>() {
|
@@ -76,7 +76,7 @@ public class EtlTest {
|
|
76
76
|
assertEquals(expected, etl.transform(old));
|
77
77
|
}
|
78
78
|
|
79
|
-
@Ignore
|
79
|
+
@Ignore("Remove to run test")
|
80
80
|
@Test
|
81
81
|
public void testFullDataset() {
|
82
82
|
Map<Integer, List<String>> old = new HashMap<Integer, List<String>>() {
|
@@ -30,7 +30,7 @@ public final class FlattenerTest {
|
|
30
30
|
"two")));
|
31
31
|
}
|
32
32
|
|
33
|
-
@Ignore
|
33
|
+
@Ignore("Remove to run test")
|
34
34
|
@Test
|
35
35
|
public void testASingleLevelOfNestingWithNoNulls() {
|
36
36
|
assertEquals(
|
@@ -48,7 +48,7 @@ public final class FlattenerTest {
|
|
48
48
|
8)));
|
49
49
|
}
|
50
50
|
|
51
|
-
@Ignore
|
51
|
+
@Ignore("Remove to run test")
|
52
52
|
@Test
|
53
53
|
public void testFiveLevelsOfNestingWithNoNulls() {
|
54
54
|
assertEquals(
|
@@ -71,7 +71,7 @@ public final class FlattenerTest {
|
|
71
71
|
"-2")));
|
72
72
|
}
|
73
73
|
|
74
|
-
@Ignore
|
74
|
+
@Ignore("Remove to run test")
|
75
75
|
@Test
|
76
76
|
public void testSixLevelsOfNestingWithNoNulls() {
|
77
77
|
assertEquals(
|
@@ -94,7 +94,7 @@ public final class FlattenerTest {
|
|
94
94
|
"8")));
|
95
95
|
}
|
96
96
|
|
97
|
-
@Ignore
|
97
|
+
@Ignore("Remove to run test")
|
98
98
|
@Test
|
99
99
|
public void testSixLevelsOfNestingWithNulls() {
|
100
100
|
assertEquals(
|
@@ -118,7 +118,7 @@ public final class FlattenerTest {
|
|
118
118
|
"negative two")));
|
119
119
|
}
|
120
120
|
|
121
|
-
@Ignore
|
121
|
+
@Ignore("Remove to run test")
|
122
122
|
@Test
|
123
123
|
public void testNestedListsFullOfNullsOnly() {
|
124
124
|
assertEquals(
|
@@ -28,14 +28,14 @@ public class SchoolTest {
|
|
28
28
|
assertThat(school.numberOfStudents(), is(0));
|
29
29
|
}
|
30
30
|
|
31
|
-
@Ignore
|
31
|
+
@Ignore("Remove to run test")
|
32
32
|
@Test
|
33
33
|
public void addsStudents() {
|
34
34
|
school.add("Aimee", 2);
|
35
35
|
assertThat(school.grade(2), hasItem("Aimee"));
|
36
36
|
}
|
37
37
|
|
38
|
-
@Ignore
|
38
|
+
@Ignore("Remove to run test")
|
39
39
|
@Test
|
40
40
|
public void addsMoreStudentsInSameGrade() {
|
41
41
|
final int grade = 2;
|
@@ -47,7 +47,7 @@ public class SchoolTest {
|
|
47
47
|
assertThat(school.grade(grade), allOf(hasItem("James"), hasItem("Blair"), hasItem("Paul")));
|
48
48
|
}
|
49
49
|
|
50
|
-
@Ignore
|
50
|
+
@Ignore("Remove to run test")
|
51
51
|
@Test
|
52
52
|
public void addsStudentsInMultipleGrades() {
|
53
53
|
school.add("Chelsea", 3);
|
@@ -60,13 +60,13 @@ public class SchoolTest {
|
|
60
60
|
assertThat(school.grade(7), hasItem("Logan"));
|
61
61
|
}
|
62
62
|
|
63
|
-
@Ignore
|
63
|
+
@Ignore("Remove to run test")
|
64
64
|
@Test
|
65
65
|
public void getsStudentsInEmptyGrade() {
|
66
66
|
assertTrue(school.grade(1).isEmpty());
|
67
67
|
}
|
68
68
|
|
69
|
-
@Ignore
|
69
|
+
@Ignore("Remove to run test")
|
70
70
|
@Test
|
71
71
|
public void sortsSchool() {
|
72
72
|
school.add("Kyle", 4);
|
@@ -91,7 +91,7 @@ public class SchoolTest {
|
|
91
91
|
}
|
92
92
|
}
|
93
93
|
|
94
|
-
@Ignore
|
94
|
+
@Ignore("Remove to run test")
|
95
95
|
@Test
|
96
96
|
public void modifyingFetchedGradeShouldNotModifyInternalDatabase() {
|
97
97
|
String shouldNotBeAdded = "Should not be added to school";
|
@@ -109,7 +109,7 @@ public class SchoolTest {
|
|
109
109
|
assertThat(school.grade(grade), not(hasItem(shouldNotBeAdded)));
|
110
110
|
}
|
111
111
|
|
112
|
-
@Ignore
|
112
|
+
@Ignore("Remove to run test")
|
113
113
|
@Test
|
114
114
|
public void modifyingSortedStudentsShouldNotModifyInternalDatabase() {
|
115
115
|
int grade = 2;
|
@@ -16,51 +16,51 @@ public class HammingTest {
|
|
16
16
|
assertThat(new Hamming("A", "A").getHammingDistance(), is(0));
|
17
17
|
}
|
18
18
|
|
19
|
-
@Ignore
|
19
|
+
@Ignore("Remove to run test")
|
20
20
|
@Test
|
21
21
|
public void testHammingDistanceForSingleNucleotideStrand() {
|
22
22
|
assertThat(new Hamming("A", "G").getHammingDistance(), is(1));
|
23
23
|
}
|
24
24
|
|
25
|
-
@Ignore
|
25
|
+
@Ignore("Remove to run test")
|
26
26
|
@Test
|
27
27
|
public void testHammingDistanceForSmallStrand() {
|
28
28
|
assertThat(new Hamming("AG", "CT").getHammingDistance(), is(2));
|
29
29
|
}
|
30
30
|
|
31
|
-
@Ignore
|
31
|
+
@Ignore("Remove to run test")
|
32
32
|
@Test
|
33
33
|
public void testSmallHammingDistance() {
|
34
34
|
assertThat(new Hamming("AT", "CT").getHammingDistance(), is(1));
|
35
35
|
}
|
36
36
|
|
37
|
-
@Ignore
|
37
|
+
@Ignore("Remove to run test")
|
38
38
|
@Test
|
39
39
|
public void testSmallHammingDistanceInLongerStrand() {
|
40
40
|
assertThat(new Hamming("GGACG", "GGTCG").getHammingDistance(), is(1));
|
41
41
|
}
|
42
42
|
|
43
|
-
@Ignore
|
43
|
+
@Ignore("Remove to run test")
|
44
44
|
@Test
|
45
45
|
public void testValidatesFirstStrandNotLonger() {
|
46
46
|
thrown.expect(IllegalArgumentException.class);
|
47
47
|
new Hamming("AAAG", "AAA");
|
48
48
|
}
|
49
49
|
|
50
|
-
@Ignore
|
50
|
+
@Ignore("Remove to run test")
|
51
51
|
@Test
|
52
52
|
public void testValidatesOtherStrandNotLonger() {
|
53
53
|
thrown.expect(IllegalArgumentException.class);
|
54
54
|
new Hamming("AAA", "AAAG");
|
55
55
|
}
|
56
56
|
|
57
|
-
@Ignore
|
57
|
+
@Ignore("Remove to run test")
|
58
58
|
@Test
|
59
59
|
public void testLargeHammingDistance() {
|
60
60
|
assertThat(new Hamming("GATACA", "GCATAA").getHammingDistance(), is(4));
|
61
61
|
}
|
62
62
|
|
63
|
-
@Ignore
|
63
|
+
@Ignore("Remove to run test")
|
64
64
|
@Test
|
65
65
|
public void testHammingDistanceInVeryLongStrand() {
|
66
66
|
assertThat(new Hamming("GGACGGATTCTG", "AGGACGGATTCT").getHammingDistance(), is(9));
|
@@ -11,63 +11,63 @@ public class IsogramCheckerTest {
|
|
11
11
|
assertTrue(iso.isIsogram("duplicates"));
|
12
12
|
}
|
13
13
|
|
14
|
-
@Ignore
|
14
|
+
@Ignore("Remove to run test")
|
15
15
|
@Test
|
16
16
|
public void testNotIsogram() {
|
17
17
|
IsogramChecker iso = new IsogramChecker();
|
18
18
|
assertFalse(iso.isIsogram("eleven"));
|
19
19
|
}
|
20
20
|
|
21
|
-
@Ignore
|
21
|
+
@Ignore("Remove to run test")
|
22
22
|
@Test
|
23
23
|
public void testMediumLongIsogram() {
|
24
24
|
IsogramChecker iso = new IsogramChecker();
|
25
25
|
assertTrue(iso.isIsogram("subdermatoglyphic"));
|
26
26
|
}
|
27
27
|
|
28
|
-
@Ignore
|
28
|
+
@Ignore("Remove to run test")
|
29
29
|
@Test
|
30
30
|
public void testCaseInsensitive() {
|
31
31
|
IsogramChecker iso = new IsogramChecker();
|
32
32
|
assertFalse(iso.isIsogram("Alphabet"));
|
33
33
|
}
|
34
34
|
|
35
|
-
@Ignore
|
35
|
+
@Ignore("Remove to run test")
|
36
36
|
@Test
|
37
37
|
public void testIsogramWithHyphen() {
|
38
38
|
IsogramChecker iso = new IsogramChecker();
|
39
39
|
assertTrue(iso.isIsogram("thumbscrew-japingly"));
|
40
40
|
}
|
41
41
|
|
42
|
-
@Ignore
|
42
|
+
@Ignore("Remove to run test")
|
43
43
|
@Test
|
44
44
|
public void testIgnoresMultipleHyphens() {
|
45
45
|
IsogramChecker iso = new IsogramChecker();
|
46
46
|
assertTrue(iso.isIsogram("Hjelmqvist-Gryb-Zock-Pfund-Wax"));
|
47
47
|
}
|
48
48
|
|
49
|
-
@Ignore
|
49
|
+
@Ignore("Remove to run test")
|
50
50
|
@Test
|
51
51
|
public void testWorksWithGermanLetters() {
|
52
52
|
IsogramChecker iso = new IsogramChecker();
|
53
53
|
assertTrue(iso.isIsogram("Heizölrückstoßabdämpfung"));
|
54
54
|
}
|
55
55
|
|
56
|
-
@Ignore
|
56
|
+
@Ignore("Remove to run test")
|
57
57
|
@Test
|
58
58
|
public void testIgnoresSpaces() {
|
59
59
|
IsogramChecker iso = new IsogramChecker();
|
60
60
|
assertFalse(iso.isIsogram("the quick brown fox"));
|
61
61
|
}
|
62
62
|
|
63
|
-
@Ignore
|
63
|
+
@Ignore("Remove to run test")
|
64
64
|
@Test
|
65
65
|
public void testIgnoresSpaces2() {
|
66
66
|
IsogramChecker iso = new IsogramChecker();
|
67
67
|
assertTrue(iso.isIsogram("Emily Jung Schwartzkopf"));
|
68
68
|
}
|
69
69
|
|
70
|
-
@Ignore
|
70
|
+
@Ignore("Remove to run test")
|
71
71
|
@Test
|
72
72
|
public void testDuplicateAccentedLetters() {
|
73
73
|
IsogramChecker iso = new IsogramChecker();
|