diff --git a/src/test/java/com/github/javafaker/MedicalTest.java b/src/test/java/com/github/javafaker/MedicalTest.java index 11d84251..aa4de5d2 100644 --- a/src/test/java/com/github/javafaker/MedicalTest.java +++ b/src/test/java/com/github/javafaker/MedicalTest.java @@ -21,7 +21,13 @@ public class MedicalTest extends AbstractFakerTest { } @Test public void testSymptom() { - assertThat(faker.medical().symptoms(), matchesRegularExpression("([\\w']+\\.?( )?){2,4}")); + assertThat(faker.medical().symptoms(), matchesRegularExpression("([\\w']+\\.?.\\(?[\\w']\\)?( )?){2,4}")); } -} + + @Test + public void testSymptomStatic() { + assertThat("Infertility (Female)", matchesRegularExpression("([\\w']+\\.?.\\(?[\\w']\\)?( )?){2,4}")); + } + +} \ No newline at end of file