Modified regex for Medical Symptom match

This commit is contained in:
Vikram
2018-09-25 15:44:11 +05:30
parent 6d64f8538b
commit 414c2c8a7d
@@ -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}"));
}
}