瀏覽代碼

Change test names and order slightly to match canonical data

Frida Tveit 9 年之前
父節點
當前提交
f664dcd70d
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6
    6
      exercises/anagram/src/test/java/AnagramTest.java

+ 6
- 6
exercises/anagram/src/test/java/AnagramTest.java 查看文件

67
 
67
 
68
     @Ignore
68
     @Ignore
69
     @Test
69
     @Test
70
-    public void testCapitalWordIsNotAnagram() {
71
-        Anagram detector = new Anagram("BANANA");
72
-        assertTrue(detector.match(Arrays.asList("Banana")).isEmpty());
70
+    public void testIdenticalWordRepeatedIsNotAnagram() {
71
+        Anagram detector = new Anagram("go");
72
+        assertTrue(detector.match(Arrays.asList("go Go GO")).isEmpty());
73
     }
73
     }
74
 
74
 
75
     @Ignore
75
     @Ignore
76
     @Test
76
     @Test
77
-    public void testIdenticalWordRepeatedIsNotAnagram() {
78
-        Anagram detector = new Anagram("go");
79
-        assertTrue(detector.match(Arrays.asList("go Go GO")).isEmpty());
77
+    public void testCapitalWordIsNotOwnAnagram() {
78
+        Anagram detector = new Anagram("BANANA");
79
+        assertTrue(detector.match(Arrays.asList("Banana")).isEmpty());
80
     }
80
     }
81
 
81
 
82
     @Ignore
82
     @Ignore