| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import org.junit.Test;
- import org.junit.Ignore;
-
- import static org.junit.Assert.assertEquals;
-
- /*
- * version: 1.1.0
- */
- public class AcronymTest {
-
- @Test
- public void fromTitleCasedPhrases() {
- final String phrase = "Portable Network Graphics";
- final String expected = "PNG";
- assertEquals(expected, new Acronym(phrase).get());
- }
-
- @Ignore("Remove to run test")
- @Test
- public void fromOtherTitleCasedPhrases() {
- final String phrase = "Ruby on Rails";
- final String expected = "ROR";
- assertEquals(expected, new Acronym(phrase).get());
- }
-
- @Ignore("Remove to run test")
- @Test
- public void fromPhrasesWithPunctuation() {
- final String phrase = "First In, First Out";
- final String expected = "FIFO";
- assertEquals(expected, new Acronym(phrase).get());
- }
-
- @Ignore("Remove to run test")
- @Test
- public void fromOtherPhrasesWithPunctuation() {
- final String phrase = "PHP: Hypertext Preprocessor";
- final String expected = "PHP";
- assertEquals(expected, new Acronym(phrase).get());
- }
-
- @Ignore("Remove to run test")
- @Test
- public void fromPhrasesWithNonAcronymAllCapsWord() {
- final String phrase = "GNU Image Manipulation Program";
- final String expected = "GIMP";
- assertEquals(expected, new Acronym(phrase).get());
- }
-
- @Ignore("Remove to run test")
- @Test
- public void fromPhrasesWithPunctuationAndSentenceCasing() {
- final String phrase = "Complementary metal-oxide semiconductor";
- final String expected = "CMOS";
- assertEquals(expected, new Acronym(phrase).get());
- }
-
- }
|