Ver código fonte

Fixed merge conflicts

Frida Tveit 9 anos atrás
pai
commit
4576cb04fd

+ 8
- 2
config.json Ver arquivo

@@ -54,7 +54,8 @@
54 54
     "custom-set",
55 55
     "wordy",
56 56
     "palindrome-products",
57
-	"twelve-days"
57
+	"twelve-days",
58
+    "sublist"
58 59
   ],
59 60
   "exercises": [
60 61
     {
@@ -311,7 +312,12 @@
311 312
 	  "slug": "twelve-days",
312 313
 	  "difficulty": 1,
313 314
 	  "topics": []
314
-	}
315
+	},
316
+    {
317
+      "slug": "sublist",
318
+      "difficulty": 1,
319
+      "topics": []
320
+    }
315 321
   ],
316 322
   "deprecated": [
317 323
     "binary",

+ 4
- 4
exercises/etl/src/test/java/EtlTest.java Ver arquivo

@@ -24,7 +24,7 @@ public class EtlTest {
24 24
         };
25 25
         expected = Collections.unmodifiableMap(expected);
26 26
 
27
-        assertEquals(etl.transform(old), expected);
27
+        assertEquals(expected, etl.transform(old));
28 28
     }
29 29
 
30 30
     @Test
@@ -47,7 +47,7 @@ public class EtlTest {
47 47
         };
48 48
         expected = Collections.unmodifiableMap(expected);
49 49
 
50
-        assertEquals(etl.transform(old), expected);
50
+        assertEquals(expected, etl.transform(old));
51 51
     }
52 52
 
53 53
     @Test
@@ -70,7 +70,7 @@ public class EtlTest {
70 70
         };
71 71
         expected = Collections.unmodifiableMap(expected);
72 72
 
73
-        assertEquals(etl.transform(old), expected);
73
+        assertEquals(expected, etl.transform(old));
74 74
     }
75 75
 
76 76
     @Test
@@ -120,6 +120,6 @@ public class EtlTest {
120 120
         };
121 121
         expected = Collections.unmodifiableMap(expected);
122 122
 
123
-        assertEquals(etl.transform(old), expected);
123
+        assertEquals(expected, etl.transform(old));
124 124
     }
125 125
 }

+ 1
- 0
exercises/settings.gradle Ver arquivo

@@ -44,6 +44,7 @@ include 'series'
44 44
 include 'sieve'
45 45
 include 'simple-cipher'
46 46
 include 'simple-linked-list'
47
+include 'sublist'
47 48
 include 'sum-of-multiples'
48 49
 include 'space-age'
49 50
 include 'strain'

+ 6
- 0
exercises/simple-cipher/HINT.md Ver arquivo

@@ -0,0 +1,6 @@
1
+This exercise has three test classes: SimpleCipherStepOneTest.java, SimpleCipherStepTwoTest.java and SimpleCipherStepThreeTest.java.
2
+
3
+To run only one test class (e.g. in this example SimpleCipherStepOneTest.java):
4
+```
5
+$ gradle test --tests *StepOne*
6
+```

+ 0
- 35
exercises/simple-cipher/src/test/java/IncorrectKeyCipherTest.java Ver arquivo

@@ -1,35 +0,0 @@
1
-import org.junit.Test;
2
-import org.junit.Ignore;
3
-
4
-public class IncorrectKeyCipherTest {
5
-
6
-
7
-    @Test(expected = IllegalArgumentException.class)
8
-    public void cipherThrowsWithAllCapsKey() {
9
-        new Cipher("ABCDEF");
10
-    }
11
-
12
-    @Ignore
13
-    @Test(expected = IllegalArgumentException.class)
14
-    public void cipherThrowsWithAnyCapsKey() {
15
-        new Cipher("abcdEFg");
16
-    }
17
-
18
-    @Ignore
19
-    @Test(expected = IllegalArgumentException.class)
20
-    public void cipherThrowsWithNumericKey() {
21
-        new Cipher("12345");
22
-    }
23
-
24
-    @Ignore
25
-    @Test(expected = IllegalArgumentException.class)
26
-    public void cipherThrowsWithAnyNumericKey() {
27
-        new Cipher("abcd345ef");
28
-    }
29
-
30
-    @Ignore
31
-    @Test(expected = IllegalArgumentException.class)
32
-    public void cipherThrowsWithEmptyKey() {
33
-        new Cipher("");
34
-    }
35
-}

+ 0
- 62
exercises/simple-cipher/src/test/java/RandomKeyCipherTest.java Ver arquivo

@@ -1,62 +0,0 @@
1
-import org.junit.Before;
2
-import org.junit.Test;
3
-import org.junit.Ignore;
4
-
5
-import static org.junit.Assert.assertEquals;
6
-import static org.junit.Assert.assertTrue;
7
-
8
-public class RandomKeyCipherTest {
9
-
10
-    private Cipher cipher;
11
-
12
-    @Before
13
-    public void setup() {
14
-        this.cipher = new Cipher();
15
-    }
16
-
17
-
18
-    @Test
19
-    public void cipherKeyIsMadeOfLetters() {
20
-        assertTrue(cipher.getKey().matches("[a-z]+"));
21
-    }
22
-
23
-    @Ignore
24
-    @Test
25
-    public void defaultCipherKeyIs100Characters() {
26
-        assertEquals(100, cipher.getKey().length());
27
-    }
28
-
29
-    @Ignore
30
-    @Test
31
-    public void cipherKeysAreRandomlyGenerated() {
32
-        assertTrue(!(new Cipher().getKey().equals(cipher.getKey())));
33
-    }
34
-
35
-    /**
36
-     * Here we take advantage of the fact that plaintext of "aaa..." doesn't output the key. This is a critical problem
37
-     * with shift ciphers, some characters will always output the key verbatim.
38
-     */
39
-    @Ignore
40
-    @Test
41
-    public void cipherCanEncode() {
42
-        String expectedOutput = cipher.getKey().substring(0, 10);
43
-
44
-        assertEquals(expectedOutput, cipher.encode("aaaaaaaaaa"));
45
-    }
46
-
47
-    @Ignore
48
-    @Test
49
-    public void cipherCanDecode() {
50
-        String expectedOutput = "aaaaaaaaaa";
51
-
52
-        assertEquals(expectedOutput, cipher.decode(cipher.getKey().substring(0, 10)));
53
-    }
54
-
55
-    @Ignore
56
-    @Test
57
-    public void cipherIsReversible() {
58
-        String plainText = "abcdefghij";
59
-
60
-        assertEquals(plainText, cipher.decode(cipher.encode(plainText)));
61
-    }
62
-}

+ 41
- 0
exercises/simple-cipher/src/test/java/SimpleCipherStepOneTest.java Ver arquivo

@@ -0,0 +1,41 @@
1
+import org.junit.Before;
2
+import org.junit.Ignore;
3
+import org.junit.Test;
4
+
5
+import static org.junit.Assert.assertEquals;
6
+
7
+/**
8
+ * Step 1: Make a simple shift cipher
9
+ */
10
+public class SimpleCipherStepOneTest {
11
+    private Cipher cipherWithDefaultKey;
12
+
13
+    @Before
14
+    public void setup() {
15
+        cipherWithDefaultKey = new Cipher();
16
+    }
17
+
18
+    /**
19
+     * Here we take advantage of the fact that plaintext of "aaa..." doesn't output the key. This is a critical problem
20
+     * with shift ciphers, some characters will always output the key verbatim.
21
+     */
22
+    @Test
23
+    public void cipherCanEncode() {
24
+        String cipherText = cipherWithDefaultKey.getKey().substring(0, 10);
25
+        assertEquals(cipherText, cipherWithDefaultKey.encode("aaaaaaaaaa"));
26
+    }
27
+
28
+    @Ignore
29
+    @Test
30
+    public void cipherCanDecode() {
31
+        String cipherText = "aaaaaaaaaa";
32
+        assertEquals(cipherText, cipherWithDefaultKey.decode(cipherWithDefaultKey.getKey().substring(0, 10)));
33
+    }
34
+
35
+    @Ignore
36
+    @Test
37
+    public void cipherIsReversible() {
38
+        String plainText = "abcdefghij";
39
+        assertEquals(plainText, cipherWithDefaultKey.decode(cipherWithDefaultKey.encode(plainText)));
40
+    }
41
+}

+ 63
- 0
exercises/simple-cipher/src/test/java/SimpleCipherStepThreeTest.java Ver arquivo

@@ -0,0 +1,63 @@
1
+import org.junit.Ignore;
2
+import org.junit.Rule;
3
+import org.junit.Test;
4
+import org.junit.rules.ExpectedException;
5
+
6
+import static org.junit.Assert.*;
7
+
8
+/**
9
+ * Step 3: Generate random key if key isn't specified. Check key is right format
10
+ */
11
+public class SimpleCipherStepThreeTest {
12
+    @Rule
13
+    public ExpectedException expectedException = ExpectedException.none();
14
+
15
+    @Ignore
16
+    @Test
17
+    public void cipherKeyIsMadeOfLetters() {
18
+        assertTrue(new Cipher().getKey().matches("[a-z]+"));
19
+    }
20
+
21
+    @Ignore
22
+    @Test
23
+    public void defaultCipherKeyIs100Characters() {
24
+        assertEquals(100, new Cipher().getKey().length());
25
+    }
26
+
27
+    @Ignore
28
+    @Test
29
+    public void cipherKeysAreRandomlyGenerated() {
30
+        String newKey = new Cipher().getKey();
31
+        assertFalse("Cipher constructor without argument should generate a random key. No two calls to the" +
32
+                " constructor should generate the same key. Two calls to the constructor " +
33
+                "both returned key: " + newKey, newKey.equals(new Cipher().getKey()));
34
+    }
35
+
36
+    @Ignore
37
+    @Test
38
+    public void cipherThrowsWithAllCapsKey() {
39
+        expectedException.expect(IllegalArgumentException.class);
40
+        new Cipher("ABCDEF");
41
+    }
42
+
43
+    @Ignore
44
+    @Test
45
+    public void cipherThrowsWithAnyCapsKey() {
46
+        expectedException.expect(IllegalArgumentException.class);
47
+        new Cipher("abcdEFg");
48
+    }
49
+
50
+    @Ignore
51
+    @Test
52
+    public void cipherThrowsWithNumericKey() {
53
+        expectedException.expect(IllegalArgumentException.class);
54
+        new Cipher("12345");
55
+    }
56
+
57
+    @Ignore
58
+    @Test
59
+    public void cipherThrowsWithAnyNumericKey() {
60
+        expectedException.expect(IllegalArgumentException.class);
61
+        new Cipher("abcd345ef");
62
+    }
63
+}

+ 86
- 0
exercises/simple-cipher/src/test/java/SimpleCipherStepTwoTest.java Ver arquivo

@@ -0,0 +1,86 @@
1
+import org.junit.Before;
2
+import org.junit.Ignore;
3
+import org.junit.Rule;
4
+import org.junit.Test;
5
+import org.junit.rules.ExpectedException;
6
+
7
+import static org.junit.Assert.assertEquals;
8
+
9
+/**
10
+ * Step 2: Specify key and use that for shift distance : substitution cipher
11
+ */
12
+public class SimpleCipherStepTwoTest {
13
+    private Cipher cipherWithSetKey;
14
+    private static final String key = "abcdefghij";
15
+
16
+    @Rule
17
+    public ExpectedException expectedException = ExpectedException.none();
18
+
19
+    @Before
20
+    public void setup() {
21
+        cipherWithSetKey = new Cipher(key);
22
+    }
23
+
24
+    @Ignore
25
+    @Test
26
+    public void cipherKeepsTheSubmittedKey() {
27
+        assertEquals(key, cipherWithSetKey.getKey());
28
+    }
29
+
30
+    @Ignore
31
+    @Test
32
+    public void cipherThrowsWithEmptyKey() {
33
+        expectedException.expect(IllegalArgumentException.class);
34
+        new Cipher("");
35
+    }
36
+
37
+    @Ignore
38
+    @Test
39
+    public void cipherCanEncodeWithGivenKey() {
40
+        String cipherText = "abcdefghij";
41
+        assertEquals(cipherText, cipherWithSetKey.encode("aaaaaaaaaa"));
42
+    }
43
+
44
+    @Ignore
45
+    @Test
46
+    public void cipherCanDecodeWithGivenKey() {
47
+        String cipherText = "aaaaaaaaaa";
48
+        assertEquals(cipherText, cipherWithSetKey.decode("abcdefghij"));
49
+    }
50
+
51
+    @Ignore
52
+    @Test
53
+    public void cipherIsReversibleGivenKey() {
54
+        String plainText = "abcdefghij";
55
+        assertEquals(plainText, cipherWithSetKey.decode(cipherWithSetKey.encode("abcdefghij")));
56
+    }
57
+
58
+    @Ignore
59
+    @Test
60
+    public void cipherCanWrapEncode() {
61
+        String cipherText = "zabcdefghi";
62
+        assertEquals(cipherText, cipherWithSetKey.encode("zzzzzzzzzz"));
63
+    }
64
+
65
+    @Ignore
66
+    @Test
67
+    public void cipherCanEncodeMessageThatIsShorterThanTheKey() {
68
+        String cipherText = "abcde";
69
+        assertEquals(cipherText, cipherWithSetKey.encode("aaaaa"));
70
+    }
71
+
72
+    @Ignore
73
+    @Test
74
+    public void cipherCanDecodeMessageThatIsShorterThanTheKey() {
75
+        String cipherText = "aaaaa";
76
+        assertEquals(cipherText, cipherWithSetKey.decode("abcde"));
77
+    }
78
+
79
+    @Ignore
80
+    @Test
81
+    public void cipherCanDoubleShiftEncode() {
82
+        String plainText = "iamapandabear";
83
+        String cipherText = "qayaeaagaciai";
84
+        assertEquals(cipherText, new Cipher(plainText).encode(plainText));
85
+    }
86
+}

+ 0
- 11
exercises/simple-cipher/src/test/java/SimpleCipherTest.java Ver arquivo

@@ -1,11 +0,0 @@
1
-import org.junit.runner.RunWith;
2
-import org.junit.runners.Suite;
3
-
4
-@RunWith(Suite.class)
5
-@Suite.SuiteClasses({
6
-        RandomKeyCipherTest.class,
7
-        IncorrectKeyCipherTest.class,
8
-        SubstitutionCipherTest.class
9
-})
10
-public class SimpleCipherTest {
11
-}

+ 0
- 79
exercises/simple-cipher/src/test/java/SubstitutionCipherTest.java Ver arquivo

@@ -1,79 +0,0 @@
1
-import org.junit.Before;
2
-import org.junit.Test;
3
-import org.junit.Ignore;
4
-
5
-import static org.junit.Assert.assertEquals;
6
-
7
-public class SubstitutionCipherTest {
8
-
9
-    private static final String KEY = "abcdefghij";
10
-    private Cipher cipher;
11
-
12
-    @Before
13
-    public void setup() {
14
-        this.cipher = new Cipher(KEY);
15
-    }
16
-
17
-
18
-    @Test
19
-    public void cipherKeepsTheSubmittedKey() {
20
-        assertEquals(KEY, cipher.getKey());
21
-    }
22
-
23
-    @Ignore
24
-    @Test
25
-    public void cipherCanEncodeWithGivenKey() {
26
-        String expectedOutput = "abcdefghij";
27
-
28
-        assertEquals(expectedOutput, cipher.encode("aaaaaaaaaa"));
29
-    }
30
-
31
-    @Ignore
32
-    @Test
33
-    public void cipherCanDecodeWithGivenKey() {
34
-        String expectedOutput = "aaaaaaaaaa";
35
-
36
-        assertEquals(expectedOutput, cipher.decode("abcdefghij"));
37
-    }
38
-
39
-    @Ignore
40
-    @Test
41
-    public void cipherIsReversibleGivenKey() {
42
-        String plainText = "abcdefghij";
43
-
44
-        assertEquals(plainText, cipher.decode(cipher.encode("abcdefghij")));
45
-    }
46
-
47
-    @Ignore
48
-    @Test
49
-    public void cipherCanDoubleShiftEncode() {
50
-        String plainText = "iamapandabear";
51
-        String expectedOutput = "qayaeaagaciai";
52
-
53
-        assertEquals(expectedOutput, new Cipher(plainText).encode(plainText));
54
-    }
55
-
56
-    @Ignore
57
-    @Test
58
-    public void cipherCanWrapEncode() {
59
-        String expectedOutput = "zabcdefghi";
60
-
61
-        assertEquals(expectedOutput, cipher.encode("zzzzzzzzzz"));
62
-    }
63
-
64
-    @Ignore
65
-    @Test
66
-    public void cipherCanEncodeMessageThatIsShorterThanTheKey() {
67
-        String expectedOutput = "abcde";
68
-
69
-        assertEquals(expectedOutput, cipher.encode("aaaaa"));
70
-    }
71
-
72
-    @Ignore
73
-    @Test
74
-    public void cipherCanDecodeMessageThatIsShorterThanTheKey() {
75
-        String expectedOutput = "aaaaa";
76
-
77
-        assertEquals(expectedOutput, cipher.decode("abcde"));
78
-    }
79
-}

+ 17
- 0
exercises/sublist/build.gradle Ver arquivo

@@ -0,0 +1,17 @@
1
+apply plugin: "java"
2
+apply plugin: "eclipse"
3
+apply plugin: "idea"
4
+
5
+repositories {
6
+  mavenCentral()
7
+}
8
+
9
+dependencies {
10
+  testCompile "junit:junit:4.12"
11
+}
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 1
- 0
exercises/sublist/src/example/java/Relationship.java Ver arquivo

@@ -0,0 +1 @@
1
+../../main/java/Relationship.java

+ 29
- 0
exercises/sublist/src/example/java/RelationshipComputer.java Ver arquivo

@@ -0,0 +1,29 @@
1
+import java.util.List;
2
+
3
+final class RelationshipComputer<T extends Comparable> {
4
+
5
+    Relationship computeRelationship(final List<T> firstList, final List<T> secondList) {
6
+        if (firstList.equals(secondList))          return Relationship.EQUAL;
7
+        if (checkIfSublist(firstList, secondList)) return Relationship.SUBLIST;
8
+        if (checkIfSublist(secondList, firstList)) return Relationship.SUPERLIST;
9
+        return Relationship.UNEQUAL;
10
+    }
11
+
12
+    private boolean checkIfSublist(final List<T> firstList, final List<T> secondList) {
13
+        final int firstListSize = firstList.size();
14
+        final int secondListSize = secondList.size();
15
+
16
+        if (firstListSize > secondListSize) return false;
17
+
18
+        final int numberOfSublistCandidates = secondListSize - firstListSize + 1;
19
+
20
+        for (int startIndex = 0; startIndex < numberOfSublistCandidates; startIndex++) {
21
+            if (secondList.subList(startIndex, startIndex + firstListSize).equals(firstList)) {
22
+                return true;
23
+            }
24
+        }
25
+
26
+        return false;
27
+    }
28
+
29
+}

+ 5
- 0
exercises/sublist/src/main/java/Relationship.java Ver arquivo

@@ -0,0 +1,5 @@
1
+enum Relationship {
2
+
3
+    EQUAL, SUBLIST, SUPERLIST, UNEQUAL
4
+
5
+}

+ 5
- 0
exercises/sublist/src/main/java/RelationshipComputer.java Ver arquivo

@@ -0,0 +1,5 @@
1
+final class RelationshipComputer<T extends Comparable> {
2
+
3
+
4
+
5
+}

+ 183
- 0
exercises/sublist/src/test/java/RelationshipComputerTest.java Ver arquivo

@@ -0,0 +1,183 @@
1
+import org.junit.Ignore;
2
+import org.junit.Test;
3
+
4
+import java.util.List;
5
+
6
+import static java.util.Arrays.asList;
7
+import static java.util.Collections.emptyList;
8
+import static org.junit.Assert.assertEquals;
9
+
10
+public class RelationshipComputerTest {
11
+
12
+    @Test
13
+    public void testThatTwoEmptyListsAreConsideredEqual() {
14
+        Relationship computedRelationship = new RelationshipComputer<>().computeRelationship(
15
+                emptyList(),
16
+                emptyList());
17
+
18
+        assertEquals(Relationship.EQUAL, computedRelationship);
19
+    }
20
+
21
+    @Ignore
22
+    @Test
23
+    public void testEmptyListIsSublistOfNonEmptyList() {
24
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
25
+                emptyList(),
26
+                asList(1, 2, 3));
27
+
28
+        assertEquals(Relationship.SUBLIST, relationship);
29
+    }
30
+
31
+    @Ignore
32
+    @Test
33
+    public void testNonEmptyListIsSuperlistOfEmptyList() {
34
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
35
+                asList('1', '2', '3'),
36
+                emptyList());
37
+
38
+        assertEquals(Relationship.SUPERLIST, relationship);
39
+    }
40
+
41
+    @Ignore
42
+    @Test
43
+    public void testListIsEqualToItself() {
44
+        List<String> anyList = asList("1", "2", "3");
45
+
46
+        Relationship relationship = new RelationshipComputer<String>().computeRelationship(
47
+                anyList,
48
+                anyList);
49
+
50
+        assertEquals(Relationship.EQUAL, relationship);
51
+    }
52
+
53
+    @Ignore
54
+    @Test
55
+    public void testDifferentListsOfTheSameLengthAreUnequal() {
56
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
57
+                asList(1, 2, 3),
58
+                asList(2, 3, 4));
59
+
60
+        assertEquals(Relationship.UNEQUAL, relationship);
61
+    }
62
+
63
+    @Ignore
64
+    @Test
65
+    public void testSublistCheckDoesNotAbortAfterFalseStart() {
66
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
67
+                asList('1', '2', '5'),
68
+                asList('0', '1', '2', '3', '1', '2', '5', '6'));
69
+
70
+        assertEquals(Relationship.SUBLIST, relationship);
71
+    }
72
+
73
+    @Ignore
74
+    @Test
75
+    public void testSublistCheckHandlesExtraneousRepeatsOfFirstEntry() {
76
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
77
+                asList("1", "1", "2"),
78
+                asList("0", "1", "1", "1", "2", "1", "2"));
79
+
80
+        assertEquals(Relationship.SUBLIST, relationship);
81
+    }
82
+
83
+    @Ignore
84
+    @Test
85
+    public void testSublistAtStart() {
86
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
87
+                asList(0, 1, 2),
88
+                asList(0, 1, 2, 3, 4, 5));
89
+
90
+        assertEquals(Relationship.SUBLIST, relationship);
91
+    }
92
+
93
+    @Ignore
94
+    @Test
95
+    public void testSublistInMiddle() {
96
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
97
+                asList('2', '3', '4'),
98
+                asList('0', '1', '2', '3', '4', '5'));
99
+
100
+        assertEquals(Relationship.SUBLIST, relationship);
101
+    }
102
+
103
+    @Ignore
104
+    @Test
105
+    public void testSublistAtEnd() {
106
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
107
+                asList("3", "4", "5"),
108
+                asList("0", "1", "2", "3", "4", "5"));
109
+
110
+        assertEquals(Relationship.SUBLIST, relationship);
111
+    }
112
+
113
+    @Ignore
114
+    @Test
115
+    public void testAtStartOfSuperlist() {
116
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
117
+                asList(0, 1, 2, 3, 4, 5),
118
+                asList(0, 1, 2));
119
+
120
+        assertEquals(Relationship.SUPERLIST, relationship);
121
+    }
122
+
123
+    @Ignore
124
+    @Test
125
+    public void testInMiddleOfSuperlist() {
126
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
127
+                asList('0', '1', '2', '3', '4', '5'),
128
+                asList('2', '3'));
129
+
130
+        assertEquals(Relationship.SUPERLIST, relationship);
131
+    }
132
+
133
+    @Ignore
134
+    @Test
135
+    public void testAtEndOfSuperlist() {
136
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
137
+                asList("0", "1", "2", "3", "4", "5"),
138
+                asList("3", "4", "5"));
139
+
140
+        assertEquals(Relationship.SUPERLIST, relationship);
141
+    }
142
+
143
+    @Ignore
144
+    @Test
145
+    public void testFirstListMissingElementFromSecondList() {
146
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
147
+                asList(1, 3),
148
+                asList(1, 2, 3));
149
+
150
+        assertEquals(Relationship.UNEQUAL, relationship);
151
+    }
152
+
153
+    @Ignore
154
+    @Test
155
+    public void testSecondListMissingElementFromFirstList() {
156
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
157
+                asList('1', '2', '3'),
158
+                asList('1', '3'));
159
+
160
+        assertEquals(Relationship.UNEQUAL, relationship);
161
+    }
162
+
163
+    @Ignore
164
+    @Test
165
+    public void testThatListOrderingIsAccountedFor() {
166
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
167
+                asList("1", "2", "3"),
168
+                asList("3", "2", "1"));
169
+
170
+        assertEquals(Relationship.UNEQUAL, relationship);
171
+    }
172
+
173
+    @Ignore
174
+    @Test
175
+    public void testThatListsWithSameDigitsButDifferentNumbersAreUnequal() {
176
+        Relationship relationship = new RelationshipComputer<>().computeRelationship(
177
+                asList(1, 0, 1),
178
+                asList(10, 1));
179
+
180
+        assertEquals(Relationship.UNEQUAL, relationship);
181
+    }
182
+
183
+}