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