trackler 2.1.0.8 → 2.1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -13,7 +13,7 @@ public final class RobotTest {
|
|
13
13
|
assertTrue(robot.getGridPosition().equals(initialGridPosition));
|
14
14
|
}
|
15
15
|
|
16
|
-
@Ignore
|
16
|
+
@Ignore("Remove to run test")
|
17
17
|
@Test
|
18
18
|
public void testRobotIsCreatedWithCorrectInitialOrientation() {
|
19
19
|
final Orientation initialOrientation = Orientation.NORTH;
|
@@ -22,7 +22,7 @@ public final class RobotTest {
|
|
22
22
|
assertTrue(robot.getOrientation().equals(initialOrientation));
|
23
23
|
}
|
24
24
|
|
25
|
-
@Ignore
|
25
|
+
@Ignore("Remove to run test")
|
26
26
|
@Test
|
27
27
|
public void testTurningRightDoesNotChangePosition() {
|
28
28
|
final GridPosition initialGridPosition = new GridPosition(0, 0);
|
@@ -33,7 +33,7 @@ public final class RobotTest {
|
|
33
33
|
assertTrue(robot.getGridPosition().equals(initialGridPosition));
|
34
34
|
}
|
35
35
|
|
36
|
-
@Ignore
|
36
|
+
@Ignore("Remove to run test")
|
37
37
|
@Test
|
38
38
|
public void testTurningRightCorrectlyChangesOrientationFromNorthToEast() {
|
39
39
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.NORTH);
|
@@ -45,7 +45,7 @@ public final class RobotTest {
|
|
45
45
|
assertTrue(robot.getOrientation().equals(expectedOrientation));
|
46
46
|
}
|
47
47
|
|
48
|
-
@Ignore
|
48
|
+
@Ignore("Remove to run test")
|
49
49
|
@Test
|
50
50
|
public void testTurningRightCorrectlyChangesOrientationFromEastToSouth() {
|
51
51
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.EAST);
|
@@ -57,7 +57,7 @@ public final class RobotTest {
|
|
57
57
|
assertTrue(robot.getOrientation().equals(expectedOrientation));
|
58
58
|
}
|
59
59
|
|
60
|
-
@Ignore
|
60
|
+
@Ignore("Remove to run test")
|
61
61
|
@Test
|
62
62
|
public void testTurningRightCorrectlyChangesOrientationFromSouthToWest() {
|
63
63
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.SOUTH);
|
@@ -69,7 +69,7 @@ public final class RobotTest {
|
|
69
69
|
assertTrue(robot.getOrientation().equals(expectedOrientation));
|
70
70
|
}
|
71
71
|
|
72
|
-
@Ignore
|
72
|
+
@Ignore("Remove to run test")
|
73
73
|
@Test
|
74
74
|
public void testTurningRightCorrectlyChangesOrientationFromWestToNorth() {
|
75
75
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.WEST);
|
@@ -81,7 +81,7 @@ public final class RobotTest {
|
|
81
81
|
assertTrue(robot.getOrientation().equals(expectedOrientation));
|
82
82
|
}
|
83
83
|
|
84
|
-
@Ignore
|
84
|
+
@Ignore("Remove to run test")
|
85
85
|
@Test
|
86
86
|
public void testTurningLeftDoesNotChangePosition() {
|
87
87
|
final GridPosition initialGridPosition = new GridPosition(0, 0);
|
@@ -92,7 +92,7 @@ public final class RobotTest {
|
|
92
92
|
assertTrue(robot.getGridPosition().equals(initialGridPosition));
|
93
93
|
}
|
94
94
|
|
95
|
-
@Ignore
|
95
|
+
@Ignore("Remove to run test")
|
96
96
|
@Test
|
97
97
|
public void testTurningLeftCorrectlyChangesOrientationFromNorthToWest() {
|
98
98
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.NORTH);
|
@@ -104,7 +104,7 @@ public final class RobotTest {
|
|
104
104
|
assertTrue(robot.getOrientation().equals(expectedOrientation));
|
105
105
|
}
|
106
106
|
|
107
|
-
@Ignore
|
107
|
+
@Ignore("Remove to run test")
|
108
108
|
@Test
|
109
109
|
public void testTurningLeftCorrectlyChangesOrientationFromWestToSouth() {
|
110
110
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.WEST);
|
@@ -116,7 +116,7 @@ public final class RobotTest {
|
|
116
116
|
assertTrue(robot.getOrientation().equals(expectedOrientation));
|
117
117
|
}
|
118
118
|
|
119
|
-
@Ignore
|
119
|
+
@Ignore("Remove to run test")
|
120
120
|
@Test
|
121
121
|
public void testTurningLeftCorrectlyChangesOrientationFromSouthToEast() {
|
122
122
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.SOUTH);
|
@@ -128,7 +128,7 @@ public final class RobotTest {
|
|
128
128
|
assertTrue(robot.getOrientation().equals(expectedOrientation));
|
129
129
|
}
|
130
130
|
|
131
|
-
@Ignore
|
131
|
+
@Ignore("Remove to run test")
|
132
132
|
@Test
|
133
133
|
public void testTurningLeftCorrectlyChangesOrientationFromEastToNorth() {
|
134
134
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.EAST);
|
@@ -140,7 +140,7 @@ public final class RobotTest {
|
|
140
140
|
assertTrue(robot.getOrientation().equals(expectedOrientation));
|
141
141
|
}
|
142
142
|
|
143
|
-
@Ignore
|
143
|
+
@Ignore("Remove to run test")
|
144
144
|
@Test
|
145
145
|
public void testAdvancingDoesNotChangeOrientation() {
|
146
146
|
final Orientation initialOrientation = Orientation.NORTH;
|
@@ -151,7 +151,7 @@ public final class RobotTest {
|
|
151
151
|
assertTrue(robot.getOrientation().equals(initialOrientation));
|
152
152
|
}
|
153
153
|
|
154
|
-
@Ignore
|
154
|
+
@Ignore("Remove to run test")
|
155
155
|
@Test
|
156
156
|
public void testAdvancingWhenFacingNorthIncreasesYCoordinateByOne() {
|
157
157
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.NORTH);
|
@@ -163,7 +163,7 @@ public final class RobotTest {
|
|
163
163
|
assertTrue(robot.getGridPosition().equals(expectedGridPosition));
|
164
164
|
}
|
165
165
|
|
166
|
-
@Ignore
|
166
|
+
@Ignore("Remove to run test")
|
167
167
|
@Test
|
168
168
|
public void testAdvancingWhenFacingSouthDecreasesYCoordinateByOne() {
|
169
169
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.SOUTH);
|
@@ -175,7 +175,7 @@ public final class RobotTest {
|
|
175
175
|
assertTrue(robot.getGridPosition().equals(expectedGridPosition));
|
176
176
|
}
|
177
177
|
|
178
|
-
@Ignore
|
178
|
+
@Ignore("Remove to run test")
|
179
179
|
@Test
|
180
180
|
public void testAdvancingWhenFacingEastIncreasesXCoordinateByOne() {
|
181
181
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.EAST);
|
@@ -187,7 +187,7 @@ public final class RobotTest {
|
|
187
187
|
assertTrue(robot.getGridPosition().equals(expectedGridPosition));
|
188
188
|
}
|
189
189
|
|
190
|
-
@Ignore
|
190
|
+
@Ignore("Remove to run test")
|
191
191
|
@Test
|
192
192
|
public void testAdvancingWhenFacingWestDecreasesXCoordinateByOne() {
|
193
193
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.WEST);
|
@@ -199,7 +199,7 @@ public final class RobotTest {
|
|
199
199
|
assertTrue(robot.getGridPosition().equals(expectedGridPosition));
|
200
200
|
}
|
201
201
|
|
202
|
-
@Ignore
|
202
|
+
@Ignore("Remove to run test")
|
203
203
|
@Test
|
204
204
|
public void testInstructionsToMoveWestAndNorth() {
|
205
205
|
final Robot robot = new Robot(new GridPosition(0, 0), Orientation.NORTH);
|
@@ -213,7 +213,7 @@ public final class RobotTest {
|
|
213
213
|
assertTrue(robot.getOrientation().equals(expectedOrientation));
|
214
214
|
}
|
215
215
|
|
216
|
-
@Ignore
|
216
|
+
@Ignore("Remove to run test")
|
217
217
|
@Test
|
218
218
|
public void testInstructionsToMoveWestAndSouth() {
|
219
219
|
final Robot robot = new Robot(new GridPosition(2, -7), Orientation.EAST);
|
@@ -227,7 +227,7 @@ public final class RobotTest {
|
|
227
227
|
assertTrue(robot.getOrientation().equals(expectedOrientation));
|
228
228
|
}
|
229
229
|
|
230
|
-
@Ignore
|
230
|
+
@Ignore("Remove to run test")
|
231
231
|
@Test
|
232
232
|
public void testInstructionsToMoveEastAndNorth() {
|
233
233
|
final Robot robot = new Robot(new GridPosition(8, 4), Orientation.SOUTH);
|
@@ -26,7 +26,7 @@ public class SeriesTest {
|
|
26
26
|
}
|
27
27
|
|
28
28
|
@Test
|
29
|
-
@Ignore
|
29
|
+
@Ignore("Remove to run test")
|
30
30
|
public void hasDigitsLong() {
|
31
31
|
Series sut = new Series("0123456789");
|
32
32
|
List<Integer> expected = Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
|
@@ -37,7 +37,7 @@ public class SeriesTest {
|
|
37
37
|
}
|
38
38
|
|
39
39
|
@Test
|
40
|
-
@Ignore
|
40
|
+
@Ignore("Remove to run test")
|
41
41
|
public void keepsTheDigitOrderIfReversed() {
|
42
42
|
Series sut = new Series("9876543210");
|
43
43
|
List<Integer> expected = Arrays.asList(9, 8, 7, 6, 5, 4, 3, 2, 1, 0);
|
@@ -48,7 +48,7 @@ public class SeriesTest {
|
|
48
48
|
}
|
49
49
|
|
50
50
|
@Test
|
51
|
-
@Ignore
|
51
|
+
@Ignore("Remove to run test")
|
52
52
|
public void keepsArbitraryDigitOrder() {
|
53
53
|
Series sut = new Series("936923468");
|
54
54
|
List<Integer> expected = Arrays.asList(9, 3, 6, 9, 2, 3, 4, 6, 8);
|
@@ -59,7 +59,7 @@ public class SeriesTest {
|
|
59
59
|
}
|
60
60
|
|
61
61
|
@Test
|
62
|
-
@Ignore
|
62
|
+
@Ignore("Remove to run test")
|
63
63
|
public void canSliceByOne() {
|
64
64
|
Series sut = new Series("01234");
|
65
65
|
List<List<Integer>> expected = Arrays.asList(
|
@@ -76,7 +76,7 @@ public class SeriesTest {
|
|
76
76
|
}
|
77
77
|
|
78
78
|
@Test
|
79
|
-
@Ignore
|
79
|
+
@Ignore("Remove to run test")
|
80
80
|
public void canSliceByTwo() {
|
81
81
|
Series sut = new Series("98273463");
|
82
82
|
List<List<Integer>> expected = Arrays.asList(
|
@@ -95,7 +95,7 @@ public class SeriesTest {
|
|
95
95
|
}
|
96
96
|
|
97
97
|
@Test
|
98
|
-
@Ignore
|
98
|
+
@Ignore("Remove to run test")
|
99
99
|
public void canSliceByThree() {
|
100
100
|
Series sut = new Series("01234");
|
101
101
|
List<List<Integer>> expected = Arrays.asList(
|
@@ -110,7 +110,7 @@ public class SeriesTest {
|
|
110
110
|
}
|
111
111
|
|
112
112
|
@Test
|
113
|
-
@Ignore
|
113
|
+
@Ignore("Remove to run test")
|
114
114
|
public void canSliceByThreeWithDuplicateDigits() {
|
115
115
|
Series sut = new Series("31001");
|
116
116
|
List<List<Integer>> expected = Arrays.asList(
|
@@ -125,7 +125,7 @@ public class SeriesTest {
|
|
125
125
|
}
|
126
126
|
|
127
127
|
@Test
|
128
|
-
@Ignore
|
128
|
+
@Ignore("Remove to run test")
|
129
129
|
public void canSliceByFour() {
|
130
130
|
Series sut = new Series("91274");
|
131
131
|
List<List<Integer>> expected = Arrays.asList(
|
@@ -139,7 +139,7 @@ public class SeriesTest {
|
|
139
139
|
}
|
140
140
|
|
141
141
|
@Test
|
142
|
-
@Ignore
|
142
|
+
@Ignore("Remove to run test")
|
143
143
|
public void canSliceByFive() {
|
144
144
|
Series sut = new Series("81228");
|
145
145
|
List<List<Integer>> expected = Arrays.asList(
|
@@ -152,7 +152,7 @@ public class SeriesTest {
|
|
152
152
|
}
|
153
153
|
|
154
154
|
@Test
|
155
|
-
@Ignore
|
155
|
+
@Ignore("Remove to run test")
|
156
156
|
public void throwsAnErrorIfNotEnoughDigitsToSlice() {
|
157
157
|
thrown.expect(IllegalArgumentException.class);
|
158
158
|
new Series("01032987583").slices(12);
|
@@ -18,7 +18,7 @@ public class SieveTest {
|
|
18
18
|
assertEquals(expectedOutput, sieve.getPrimes());
|
19
19
|
}
|
20
20
|
|
21
|
-
@Ignore
|
21
|
+
@Ignore("Remove to run test")
|
22
22
|
@Test
|
23
23
|
public void findPrimesUpTo10() {
|
24
24
|
Sieve sieve = new Sieve(10);
|
@@ -27,7 +27,7 @@ public class SieveTest {
|
|
27
27
|
assertEquals(expectedOutput, sieve.getPrimes());
|
28
28
|
}
|
29
29
|
|
30
|
-
@Ignore
|
30
|
+
@Ignore("Remove to run test")
|
31
31
|
@Test
|
32
32
|
public void findPrimesUpTo1000() {
|
33
33
|
Sieve sieve = new Sieve(1000);
|
@@ -25,14 +25,14 @@ public class SimpleCipherStepOneTest {
|
|
25
25
|
assertEquals(cipherText, cipherWithDefaultKey.encode("aaaaaaaaaa"));
|
26
26
|
}
|
27
27
|
|
28
|
-
@Ignore
|
28
|
+
@Ignore("Remove to run test")
|
29
29
|
@Test
|
30
30
|
public void cipherCanDecode() {
|
31
31
|
String cipherText = "aaaaaaaaaa";
|
32
32
|
assertEquals(cipherText, cipherWithDefaultKey.decode(cipherWithDefaultKey.getKey().substring(0, 10)));
|
33
33
|
}
|
34
34
|
|
35
|
-
@Ignore
|
35
|
+
@Ignore("Remove to run test")
|
36
36
|
@Test
|
37
37
|
public void cipherIsReversible() {
|
38
38
|
String plainText = "abcdefghij";
|
@@ -12,19 +12,19 @@ public class SimpleCipherStepThreeTest {
|
|
12
12
|
@Rule
|
13
13
|
public ExpectedException expectedException = ExpectedException.none();
|
14
14
|
|
15
|
-
@Ignore
|
15
|
+
@Ignore("Remove to run test")
|
16
16
|
@Test
|
17
17
|
public void cipherKeyIsMadeOfLetters() {
|
18
18
|
assertTrue(new Cipher().getKey().matches("[a-z]+"));
|
19
19
|
}
|
20
20
|
|
21
|
-
@Ignore
|
21
|
+
@Ignore("Remove to run test")
|
22
22
|
@Test
|
23
23
|
public void defaultCipherKeyIs100Characters() {
|
24
24
|
assertEquals(100, new Cipher().getKey().length());
|
25
25
|
}
|
26
26
|
|
27
|
-
@Ignore
|
27
|
+
@Ignore("Remove to run test")
|
28
28
|
@Test
|
29
29
|
public void cipherKeysAreRandomlyGenerated() {
|
30
30
|
String newKey = new Cipher().getKey();
|
@@ -33,28 +33,28 @@ public class SimpleCipherStepThreeTest {
|
|
33
33
|
"both returned key: " + newKey, newKey.equals(new Cipher().getKey()));
|
34
34
|
}
|
35
35
|
|
36
|
-
@Ignore
|
36
|
+
@Ignore("Remove to run test")
|
37
37
|
@Test
|
38
38
|
public void cipherThrowsWithAllCapsKey() {
|
39
39
|
expectedException.expect(IllegalArgumentException.class);
|
40
40
|
new Cipher("ABCDEF");
|
41
41
|
}
|
42
42
|
|
43
|
-
@Ignore
|
43
|
+
@Ignore("Remove to run test")
|
44
44
|
@Test
|
45
45
|
public void cipherThrowsWithAnyCapsKey() {
|
46
46
|
expectedException.expect(IllegalArgumentException.class);
|
47
47
|
new Cipher("abcdEFg");
|
48
48
|
}
|
49
49
|
|
50
|
-
@Ignore
|
50
|
+
@Ignore("Remove to run test")
|
51
51
|
@Test
|
52
52
|
public void cipherThrowsWithNumericKey() {
|
53
53
|
expectedException.expect(IllegalArgumentException.class);
|
54
54
|
new Cipher("12345");
|
55
55
|
}
|
56
56
|
|
57
|
-
@Ignore
|
57
|
+
@Ignore("Remove to run test")
|
58
58
|
@Test
|
59
59
|
public void cipherThrowsWithAnyNumericKey() {
|
60
60
|
expectedException.expect(IllegalArgumentException.class);
|
@@ -21,62 +21,62 @@ public class SimpleCipherStepTwoTest {
|
|
21
21
|
cipherWithSetKey = new Cipher(key);
|
22
22
|
}
|
23
23
|
|
24
|
-
@Ignore
|
24
|
+
@Ignore("Remove to run test")
|
25
25
|
@Test
|
26
26
|
public void cipherKeepsTheSubmittedKey() {
|
27
27
|
assertEquals(key, cipherWithSetKey.getKey());
|
28
28
|
}
|
29
29
|
|
30
|
-
@Ignore
|
30
|
+
@Ignore("Remove to run test")
|
31
31
|
@Test
|
32
32
|
public void cipherThrowsWithEmptyKey() {
|
33
33
|
expectedException.expect(IllegalArgumentException.class);
|
34
34
|
new Cipher("");
|
35
35
|
}
|
36
36
|
|
37
|
-
@Ignore
|
37
|
+
@Ignore("Remove to run test")
|
38
38
|
@Test
|
39
39
|
public void cipherCanEncodeWithGivenKey() {
|
40
40
|
String cipherText = "abcdefghij";
|
41
41
|
assertEquals(cipherText, cipherWithSetKey.encode("aaaaaaaaaa"));
|
42
42
|
}
|
43
43
|
|
44
|
-
@Ignore
|
44
|
+
@Ignore("Remove to run test")
|
45
45
|
@Test
|
46
46
|
public void cipherCanDecodeWithGivenKey() {
|
47
47
|
String cipherText = "aaaaaaaaaa";
|
48
48
|
assertEquals(cipherText, cipherWithSetKey.decode("abcdefghij"));
|
49
49
|
}
|
50
50
|
|
51
|
-
@Ignore
|
51
|
+
@Ignore("Remove to run test")
|
52
52
|
@Test
|
53
53
|
public void cipherIsReversibleGivenKey() {
|
54
54
|
String plainText = "abcdefghij";
|
55
55
|
assertEquals(plainText, cipherWithSetKey.decode(cipherWithSetKey.encode("abcdefghij")));
|
56
56
|
}
|
57
57
|
|
58
|
-
@Ignore
|
58
|
+
@Ignore("Remove to run test")
|
59
59
|
@Test
|
60
60
|
public void cipherCanWrapEncode() {
|
61
61
|
String cipherText = "zabcdefghi";
|
62
62
|
assertEquals(cipherText, cipherWithSetKey.encode("zzzzzzzzzz"));
|
63
63
|
}
|
64
64
|
|
65
|
-
@Ignore
|
65
|
+
@Ignore("Remove to run test")
|
66
66
|
@Test
|
67
67
|
public void cipherCanEncodeMessageThatIsShorterThanTheKey() {
|
68
68
|
String cipherText = "abcde";
|
69
69
|
assertEquals(cipherText, cipherWithSetKey.encode("aaaaa"));
|
70
70
|
}
|
71
71
|
|
72
|
-
@Ignore
|
72
|
+
@Ignore("Remove to run test")
|
73
73
|
@Test
|
74
74
|
public void cipherCanDecodeMessageThatIsShorterThanTheKey() {
|
75
75
|
String cipherText = "aaaaa";
|
76
76
|
assertEquals(cipherText, cipherWithSetKey.decode("abcde"));
|
77
77
|
}
|
78
78
|
|
79
|
-
@Ignore
|
79
|
+
@Ignore("Remove to run test")
|
80
80
|
@Test
|
81
81
|
public void cipherCanDoubleShiftEncode() {
|
82
82
|
String plainText = "iamapandabear";
|
@@ -18,7 +18,7 @@ public class RelationshipComputerTest {
|
|
18
18
|
assertEquals(Relationship.EQUAL, computedRelationship);
|
19
19
|
}
|
20
20
|
|
21
|
-
@Ignore
|
21
|
+
@Ignore("Remove to run test")
|
22
22
|
@Test
|
23
23
|
public void testEmptyListIsSublistOfNonEmptyList() {
|
24
24
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -28,7 +28,7 @@ public class RelationshipComputerTest {
|
|
28
28
|
assertEquals(Relationship.SUBLIST, relationship);
|
29
29
|
}
|
30
30
|
|
31
|
-
@Ignore
|
31
|
+
@Ignore("Remove to run test")
|
32
32
|
@Test
|
33
33
|
public void testNonEmptyListIsSuperlistOfEmptyList() {
|
34
34
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -38,7 +38,7 @@ public class RelationshipComputerTest {
|
|
38
38
|
assertEquals(Relationship.SUPERLIST, relationship);
|
39
39
|
}
|
40
40
|
|
41
|
-
@Ignore
|
41
|
+
@Ignore("Remove to run test")
|
42
42
|
@Test
|
43
43
|
public void testListIsEqualToItself() {
|
44
44
|
List<String> anyList = asList("1", "2", "3");
|
@@ -50,7 +50,7 @@ public class RelationshipComputerTest {
|
|
50
50
|
assertEquals(Relationship.EQUAL, relationship);
|
51
51
|
}
|
52
52
|
|
53
|
-
@Ignore
|
53
|
+
@Ignore("Remove to run test")
|
54
54
|
@Test
|
55
55
|
public void testDifferentListsOfTheSameLengthAreUnequal() {
|
56
56
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -60,7 +60,7 @@ public class RelationshipComputerTest {
|
|
60
60
|
assertEquals(Relationship.UNEQUAL, relationship);
|
61
61
|
}
|
62
62
|
|
63
|
-
@Ignore
|
63
|
+
@Ignore("Remove to run test")
|
64
64
|
@Test
|
65
65
|
public void testSublistCheckDoesNotAbortAfterFalseStart() {
|
66
66
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -70,7 +70,7 @@ public class RelationshipComputerTest {
|
|
70
70
|
assertEquals(Relationship.SUBLIST, relationship);
|
71
71
|
}
|
72
72
|
|
73
|
-
@Ignore
|
73
|
+
@Ignore("Remove to run test")
|
74
74
|
@Test
|
75
75
|
public void testSublistCheckHandlesExtraneousRepeatsOfFirstEntry() {
|
76
76
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -80,7 +80,7 @@ public class RelationshipComputerTest {
|
|
80
80
|
assertEquals(Relationship.SUBLIST, relationship);
|
81
81
|
}
|
82
82
|
|
83
|
-
@Ignore
|
83
|
+
@Ignore("Remove to run test")
|
84
84
|
@Test
|
85
85
|
public void testSublistAtStart() {
|
86
86
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -90,7 +90,7 @@ public class RelationshipComputerTest {
|
|
90
90
|
assertEquals(Relationship.SUBLIST, relationship);
|
91
91
|
}
|
92
92
|
|
93
|
-
@Ignore
|
93
|
+
@Ignore("Remove to run test")
|
94
94
|
@Test
|
95
95
|
public void testSublistInMiddle() {
|
96
96
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -100,7 +100,7 @@ public class RelationshipComputerTest {
|
|
100
100
|
assertEquals(Relationship.SUBLIST, relationship);
|
101
101
|
}
|
102
102
|
|
103
|
-
@Ignore
|
103
|
+
@Ignore("Remove to run test")
|
104
104
|
@Test
|
105
105
|
public void testSublistAtEnd() {
|
106
106
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -110,7 +110,7 @@ public class RelationshipComputerTest {
|
|
110
110
|
assertEquals(Relationship.SUBLIST, relationship);
|
111
111
|
}
|
112
112
|
|
113
|
-
@Ignore
|
113
|
+
@Ignore("Remove to run test")
|
114
114
|
@Test
|
115
115
|
public void testAtStartOfSuperlist() {
|
116
116
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -120,7 +120,7 @@ public class RelationshipComputerTest {
|
|
120
120
|
assertEquals(Relationship.SUPERLIST, relationship);
|
121
121
|
}
|
122
122
|
|
123
|
-
@Ignore
|
123
|
+
@Ignore("Remove to run test")
|
124
124
|
@Test
|
125
125
|
public void testInMiddleOfSuperlist() {
|
126
126
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -130,7 +130,7 @@ public class RelationshipComputerTest {
|
|
130
130
|
assertEquals(Relationship.SUPERLIST, relationship);
|
131
131
|
}
|
132
132
|
|
133
|
-
@Ignore
|
133
|
+
@Ignore("Remove to run test")
|
134
134
|
@Test
|
135
135
|
public void testAtEndOfSuperlist() {
|
136
136
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -140,7 +140,7 @@ public class RelationshipComputerTest {
|
|
140
140
|
assertEquals(Relationship.SUPERLIST, relationship);
|
141
141
|
}
|
142
142
|
|
143
|
-
@Ignore
|
143
|
+
@Ignore("Remove to run test")
|
144
144
|
@Test
|
145
145
|
public void testFirstListMissingElementFromSecondList() {
|
146
146
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -150,7 +150,7 @@ public class RelationshipComputerTest {
|
|
150
150
|
assertEquals(Relationship.UNEQUAL, relationship);
|
151
151
|
}
|
152
152
|
|
153
|
-
@Ignore
|
153
|
+
@Ignore("Remove to run test")
|
154
154
|
@Test
|
155
155
|
public void testSecondListMissingElementFromFirstList() {
|
156
156
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -160,7 +160,7 @@ public class RelationshipComputerTest {
|
|
160
160
|
assertEquals(Relationship.UNEQUAL, relationship);
|
161
161
|
}
|
162
162
|
|
163
|
-
@Ignore
|
163
|
+
@Ignore("Remove to run test")
|
164
164
|
@Test
|
165
165
|
public void testThatListOrderingIsAccountedFor() {
|
166
166
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -170,7 +170,7 @@ public class RelationshipComputerTest {
|
|
170
170
|
assertEquals(Relationship.UNEQUAL, relationship);
|
171
171
|
}
|
172
172
|
|
173
|
-
@Ignore
|
173
|
+
@Ignore("Remove to run test")
|
174
174
|
@Test
|
175
175
|
public void testThatListsWithSameDigitsButDifferentNumbersAreUnequal() {
|
176
176
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
@@ -18,7 +18,7 @@ public class SumOfMultiplesTest {
|
|
18
18
|
}
|
19
19
|
|
20
20
|
@Test
|
21
|
-
@Ignore
|
21
|
+
@Ignore("Remove to run test")
|
22
22
|
public void testSumOfMultiplesOf3and5UpToFour() {
|
23
23
|
|
24
24
|
int[] set = {
|
@@ -31,7 +31,7 @@ public class SumOfMultiplesTest {
|
|
31
31
|
}
|
32
32
|
|
33
33
|
@Test
|
34
|
-
@Ignore
|
34
|
+
@Ignore("Remove to run test")
|
35
35
|
public void testSumOfMultiplesOf3and5UpToTen() {
|
36
36
|
|
37
37
|
int[] set = {
|
@@ -44,7 +44,7 @@ public class SumOfMultiplesTest {
|
|
44
44
|
}
|
45
45
|
|
46
46
|
@Test
|
47
|
-
@Ignore
|
47
|
+
@Ignore("Remove to run test")
|
48
48
|
public void testSumOfMultiplesOf3and5UpToOneHundred() {
|
49
49
|
|
50
50
|
int[] set = {
|
@@ -57,7 +57,7 @@ public class SumOfMultiplesTest {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
@Test
|
60
|
-
@Ignore
|
60
|
+
@Ignore("Remove to run test")
|
61
61
|
public void testSumOfMultiplesOf3and5UpToOneThousand() {
|
62
62
|
|
63
63
|
int[] set = {
|
@@ -70,7 +70,7 @@ public class SumOfMultiplesTest {
|
|
70
70
|
}
|
71
71
|
|
72
72
|
@Test
|
73
|
-
@Ignore
|
73
|
+
@Ignore("Remove to run test")
|
74
74
|
public void testSumOfMultiplesOf7and13and17UpToTwenty() {
|
75
75
|
|
76
76
|
int[] set = {
|
@@ -84,7 +84,7 @@ public class SumOfMultiplesTest {
|
|
84
84
|
}
|
85
85
|
|
86
86
|
@Test
|
87
|
-
@Ignore
|
87
|
+
@Ignore("Remove to run test")
|
88
88
|
public void testSumOfMultiplesOf4and6UpToFifteen() {
|
89
89
|
|
90
90
|
int[] set = {
|
@@ -97,7 +97,7 @@ public class SumOfMultiplesTest {
|
|
97
97
|
}
|
98
98
|
|
99
99
|
@Test
|
100
|
-
@Ignore
|
100
|
+
@Ignore("Remove to run test")
|
101
101
|
public void testSumOfMultiplesOf5and6and8UpToOneHundredFifty() {
|
102
102
|
|
103
103
|
int[] set = {
|
@@ -111,7 +111,7 @@ public class SumOfMultiplesTest {
|
|
111
111
|
}
|
112
112
|
|
113
113
|
@Test
|
114
|
-
@Ignore
|
114
|
+
@Ignore("Remove to run test")
|
115
115
|
public void testSumOfMultiplesOf5and25UpToTwoHundredSeventyFive() {
|
116
116
|
|
117
117
|
int[] set = {
|
@@ -124,7 +124,7 @@ public class SumOfMultiplesTest {
|
|
124
124
|
}
|
125
125
|
|
126
126
|
@Test
|
127
|
-
@Ignore
|
127
|
+
@Ignore("Remove to run test")
|
128
128
|
public void testSumOfMultiplesOf43and47UpToTenThousand() {
|
129
129
|
|
130
130
|
int[] set = {
|
@@ -137,7 +137,7 @@ public class SumOfMultiplesTest {
|
|
137
137
|
}
|
138
138
|
|
139
139
|
@Test
|
140
|
-
@Ignore
|
140
|
+
@Ignore("Remove to run test")
|
141
141
|
public void testSumOfMultiplesOfOneUpToOneHundred() {
|
142
142
|
|
143
143
|
int[] set = {
|
@@ -149,7 +149,7 @@ public class SumOfMultiplesTest {
|
|
149
149
|
}
|
150
150
|
|
151
151
|
@Test
|
152
|
-
@Ignore
|
152
|
+
@Ignore("Remove to run test")
|
153
153
|
public void testSumOfMultiplesOfNoneUpToTenThousand() {
|
154
154
|
|
155
155
|
int[] set = {};
|