|
|
@@ -3,6 +3,9 @@ import org.junit.Ignore;
|
|
3
|
3
|
|
|
4
|
4
|
import static org.junit.Assert.assertEquals;
|
|
5
|
5
|
|
|
|
6
|
+/*
|
|
|
7
|
+ * version: 1.1.0
|
|
|
8
|
+ */
|
|
6
|
9
|
public class AcronymTest {
|
|
7
|
10
|
|
|
8
|
11
|
@Test
|
|
|
@@ -22,14 +25,6 @@ public class AcronymTest {
|
|
22
|
25
|
|
|
23
|
26
|
@Ignore("Remove to run test")
|
|
24
|
27
|
@Test
|
|
25
|
|
- public void fromInconsistentlyCasedPhrases() {
|
|
26
|
|
- final String phrase = "HyperText Markup Language";
|
|
27
|
|
- final String expected = "HTML";
|
|
28
|
|
- assertEquals(expected, new Acronym(phrase).get());
|
|
29
|
|
- }
|
|
30
|
|
-
|
|
31
|
|
- @Ignore("Remove to run test")
|
|
32
|
|
- @Test
|
|
33
|
28
|
public void fromPhrasesWithPunctuation() {
|
|
34
|
29
|
final String phrase = "First In, First Out";
|
|
35
|
30
|
final String expected = "FIFO";
|
|
|
@@ -60,12 +55,4 @@ public class AcronymTest {
|
|
60
|
55
|
assertEquals(expected, new Acronym(phrase).get());
|
|
61
|
56
|
}
|
|
62
|
57
|
|
|
63
|
|
- @Ignore("Remove to run test")
|
|
64
|
|
- @Test
|
|
65
|
|
- public void fromPhraseWithSingleLetterWord() {
|
|
66
|
|
- final String phrase = "Cat in a Hat";
|
|
67
|
|
- final String expected = "CIAH";
|
|
68
|
|
- assertEquals(expected, new Acronym(phrase).get());
|
|
69
|
|
- }
|
|
70
|
|
-
|
|
71
|
58
|
}
|