Przeglądaj źródła

Merge pull request #1228 from Zhiyuan-Amos/acronym-test

Acronym: Update tests and version
Sam Warner 8 lat temu
rodzic
commit
2eb9564c3d
Brak konta powiązanego z e-mailem autora

+ 1
- 1
exercises/acronym/.meta/version Wyświetl plik

1
-1.2.0
1
+1.3.0

+ 1
- 9
exercises/acronym/src/test/java/AcronymTest.java Wyświetl plik

30
 
30
 
31
     @Ignore("Remove to run test")
31
     @Ignore("Remove to run test")
32
     @Test
32
     @Test
33
-    public void allCapsWords() {
34
-        final String phrase = "PHP: Hypertext Preprocessor";
35
-        final String expected = "PHP";
36
-        assertEquals(expected, new Acronym(phrase).get());
37
-    }
38
-
39
-    @Ignore("Remove to run test")
40
-    @Test
41
     public void NonAcronymAllCapsWord() {
33
     public void NonAcronymAllCapsWord() {
42
         final String phrase = "GNU Image Manipulation Program";
34
         final String phrase = "GNU Image Manipulation Program";
43
         final String expected = "GIMP";
35
         final String expected = "GIMP";
46
 
38
 
47
     @Ignore("Remove to run test")
39
     @Ignore("Remove to run test")
48
     @Test
40
     @Test
49
-    public void hyphenated() {
41
+    public void punctuationWithoutWhitespace() {
50
         final String phrase = "Complementary metal-oxide semiconductor";
42
         final String phrase = "Complementary metal-oxide semiconductor";
51
         final String expected = "CMOS";
43
         final String expected = "CMOS";
52
         assertEquals(expected, new Acronym(phrase).get());
44
         assertEquals(expected, new Acronym(phrase).get());