TimoleonLatinopoulos 8 лет назад
Родитель
Сommit
d934893412
2 измененных файлов: 7 добавлений и 7 удалений
  1. 1
    1
      exercises/acronym/.meta/version
  2. 6
    6
      exercises/acronym/src/test/java/AcronymTest.java

+ 1
- 1
exercises/acronym/.meta/version Просмотреть файл

@@ -1 +1 @@
1
-1.1.0
1
+1.2.0

+ 6
- 6
exercises/acronym/src/test/java/AcronymTest.java Просмотреть файл

@@ -6,7 +6,7 @@ import static org.junit.Assert.assertEquals;
6 6
 public class AcronymTest {
7 7
 
8 8
     @Test
9
-    public void fromTitleCasedPhrases() {
9
+    public void basic() {
10 10
         final String phrase = "Portable Network Graphics";
11 11
         final String expected = "PNG";
12 12
         assertEquals(expected, new Acronym(phrase).get());
@@ -14,7 +14,7 @@ public class AcronymTest {
14 14
 
15 15
     @Ignore("Remove to run test")
16 16
     @Test
17
-    public void fromOtherTitleCasedPhrases() {
17
+    public void lowercaseWords() {
18 18
         final String phrase = "Ruby on Rails";
19 19
         final String expected = "ROR";
20 20
         assertEquals(expected, new Acronym(phrase).get());
@@ -22,7 +22,7 @@ public class AcronymTest {
22 22
 
23 23
     @Ignore("Remove to run test")
24 24
     @Test
25
-    public void fromPhrasesWithPunctuation() {
25
+    public void punctuation() {
26 26
         final String phrase = "First In, First Out";
27 27
         final String expected = "FIFO";
28 28
         assertEquals(expected, new Acronym(phrase).get());
@@ -30,7 +30,7 @@ public class AcronymTest {
30 30
 
31 31
     @Ignore("Remove to run test")
32 32
     @Test
33
-    public void fromOtherPhrasesWithPunctuation() {
33
+    public void allCapsWords() {
34 34
         final String phrase = "PHP: Hypertext Preprocessor";
35 35
         final String expected = "PHP";
36 36
         assertEquals(expected, new Acronym(phrase).get());
@@ -38,7 +38,7 @@ public class AcronymTest {
38 38
 
39 39
     @Ignore("Remove to run test")
40 40
     @Test
41
-    public void fromPhrasesWithNonAcronymAllCapsWord() {
41
+    public void NonAcronymAllCapsWord() {
42 42
         final String phrase = "GNU Image Manipulation Program";
43 43
         final String expected = "GIMP";
44 44
         assertEquals(expected, new Acronym(phrase).get());
@@ -46,7 +46,7 @@ public class AcronymTest {
46 46
 
47 47
     @Ignore("Remove to run test")
48 48
     @Test
49
-    public void fromPhrasesWithPunctuationAndSentenceCasing() {
49
+    public void hyphenated() {
50 50
         final String phrase = "Complementary metal-oxide semiconductor";
51 51
         final String expected = "CMOS";
52 52
         assertEquals(expected, new Acronym(phrase).get());