|
|
@@ -116,4 +116,18 @@ public class AnagramTest {
|
|
116
|
116
|
List<String> anagrams = detector.match(Arrays.asList("cashregister", "Carthorse", "radishes"));
|
|
117
|
117
|
assertThat(anagrams, hasItem("Carthorse"));
|
|
118
|
118
|
}
|
|
|
119
|
+
|
|
|
120
|
+ @Ignore
|
|
|
121
|
+ @Test
|
|
|
122
|
+ public void testWordIsNotItsOwnAnagram() {
|
|
|
123
|
+ Anagram detector = new Anagram("banana");
|
|
|
124
|
+ assertTrue(detector.match(Arrays.asList("Banana")).isEmpty());
|
|
|
125
|
+ }
|
|
|
126
|
+
|
|
|
127
|
+ @Ignore
|
|
|
128
|
+ @Test
|
|
|
129
|
+ public void testAnagramMustUseAllLettersExactlyOnce() {
|
|
|
130
|
+ Anagram detector = new Anagram("tapper");
|
|
|
131
|
+ assertTrue(detector.match(Arrays.asList("patter")).isEmpty());
|
|
|
132
|
+ }
|
|
119
|
133
|
}
|