瀏覽代碼

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.2.0
1
+1.3.0

+ 1
- 9
exercises/acronym/src/test/java/AcronymTest.java 查看文件

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