Преглед изворни кода

Acronym: Update tests and version

The tests and version number do not tally with the
problem-specifications repository.

Let’s update them.
Zhi Yuan Yong пре 8 година
родитељ
комит
d04c7526e4
2 измењених фајлова са 2 додато и 10 уклоњено
  1. 1
    1
      exercises/acronym/.meta/version
  2. 1
    9
      exercises/acronym/src/test/java/AcronymTest.java

+ 1
- 1
exercises/acronym/.meta/version Прегледај датотеку

@@ -1 +1 @@
1
-1.2.0
1
+1.3.0

+ 1
- 9
exercises/acronym/src/test/java/AcronymTest.java Прегледај датотеку

@@ -30,14 +30,6 @@ public class AcronymTest {
30 30
 
31 31
     @Ignore("Remove to run test")
32 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 33
     public void NonAcronymAllCapsWord() {
42 34
         final String phrase = "GNU Image Manipulation Program";
43 35
         final String expected = "GIMP";
@@ -46,7 +38,7 @@ public class AcronymTest {
46 38
 
47 39
     @Ignore("Remove to run test")
48 40
     @Test
49
-    public void hyphenated() {
41
+    public void punctuationWithoutWhitespace() {
50 42
         final String phrase = "Complementary metal-oxide semiconductor";
51 43
         final String expected = "CMOS";
52 44
         assertEquals(expected, new Acronym(phrase).get());