Modified regular expression for Hospital Name

This commit is contained in:
Vikram
2018-09-25 21:13:26 +05:30
parent 6303ef3ba6
commit 39eb326ebe
@@ -19,7 +19,7 @@ public class MedicalTest extends AbstractFakerTest {
@Test
public void testHospitalName() {
assertThat(faker.medical().hospitalName(), matchesRegularExpression("([\\w']+\\.?( )?){2,8}"));
assertThat(faker.medical().hospitalName(), matchesRegularExpression("([\\w',]+\\.?.\\(?[\\w']\\)?( )?){2,8}"));
}
@Test
@@ -35,7 +35,7 @@ public class MedicalTest extends AbstractFakerTest {
@Test
public void testHospitalStatic() {
assertThat("IREDELL MEMORIAL HOSPITAL, INCORPORATED", matchesRegularExpression("([\\w',]+\\.?.\\(?[\\w']\\)?( )?){2,4}"));
assertThat("LSU BOGALUSA MEDICAL CENTER (OUTPATIENT CAMPUS)", matchesRegularExpression("([\\w',]+\\.?.\\(?[\\w']\\)?( )?){2,4}"));
}
}