Quellcode durchsuchen

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

Acronym: Update tests and version
Sam Warner vor 8 Jahren
Ursprung
Commit
2eb9564c3d
Es ist kein Account mit dieser Commiter-Email verbunden
2 geänderte Dateien mit 2 neuen und 10 gelöschten Zeilen
  1. 1
    1
      exercises/acronym/.meta/version
  2. 1
    9
      exercises/acronym/src/test/java/AcronymTest.java

+ 1
- 1
exercises/acronym/.meta/version Datei anzeigen

1
-1.2.0
1
+1.3.0

+ 1
- 9
exercises/acronym/src/test/java/AcronymTest.java Datei anzeigen

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());