public void testConnectsToEmergencyNumberWithPlusSign_US() { assertFalse(shortUtil.connectsToEmergencyNumber("+911", RegionCode.US)); assertFalse(shortUtil.connectsToEmergencyNumber("\uFF0B911", RegionCode.US)); assertFalse(shortUtil.connectsToEmergencyNumber(" +911", RegionCode.US)); assertFalse(shortUtil.connectsToEmergencyNumber("+119", RegionCode.US)); assertFalse(shortUtil.connectsToEmergencyNumber("+999", RegionCode.US)); }
public void testIsEmergencyNumberWithFormatting_US() { assertTrue(shortUtil.isEmergencyNumber("9-1-1", RegionCode.US)); assertTrue(shortUtil.isEmergencyNumber("*911", RegionCode.US)); assertTrue(shortUtil.isEmergencyNumber("1-1-9", RegionCode.US)); assertTrue(shortUtil.isEmergencyNumber("*119", RegionCode.US)); assertFalse(shortUtil.isEmergencyNumber("9-9-9", RegionCode.US)); assertFalse(shortUtil.isEmergencyNumber("*999", RegionCode.US)); }
public void testIsEmergencyNumberLongNumber_US() { assertFalse(shortUtil.isEmergencyNumber("9116666666", RegionCode.US)); assertFalse(shortUtil.isEmergencyNumber("1196666666", RegionCode.US)); assertFalse(shortUtil.isEmergencyNumber("9996666666", RegionCode.US)); }
public void testIsEmergencyNumber_US() { assertTrue(shortUtil.isEmergencyNumber("911", RegionCode.US)); assertTrue(shortUtil.isEmergencyNumber("119", RegionCode.US)); assertFalse(shortUtil.isEmergencyNumber("999", RegionCode.US)); }
public void testConnectsToEmergencyNumber_ZW() { // Zimbabwe doesn't have any metadata in the test metadata. assertFalse(shortUtil.connectsToEmergencyNumber("911", RegionCode.ZW)); assertFalse(shortUtil.connectsToEmergencyNumber("01312345", RegionCode.ZW)); assertFalse(shortUtil.connectsToEmergencyNumber("0711234567", RegionCode.ZW)); }
public void testConnectsToEmergencyNumber_AO() { // Angola doesn't have any metadata for emergency numbers in the test metadata. assertFalse(shortUtil.connectsToEmergencyNumber("911", RegionCode.AO)); assertFalse(shortUtil.connectsToEmergencyNumber("222123456", RegionCode.AO)); assertFalse(shortUtil.connectsToEmergencyNumber("923123456", RegionCode.AO)); }
public void testConnectsToEmergencyNumberLongNumber_BR() { // Brazilian emergency numbers don't work when additional digits are appended. assertFalse(shortUtil.connectsToEmergencyNumber("9111", RegionCode.BR)); assertFalse(shortUtil.connectsToEmergencyNumber("1900", RegionCode.BR)); assertFalse(shortUtil.connectsToEmergencyNumber("9996", RegionCode.BR)); }
public void testConnectsToEmergencyNumber_BR() { assertTrue(shortUtil.connectsToEmergencyNumber("911", RegionCode.BR)); assertTrue(shortUtil.connectsToEmergencyNumber("190", RegionCode.BR)); assertFalse(shortUtil.connectsToEmergencyNumber("999", RegionCode.BR)); }
public void testConnectsToEmergencyNumberWithFormatting_US() { assertTrue(shortUtil.connectsToEmergencyNumber("9-1-1", RegionCode.US)); assertTrue(shortUtil.connectsToEmergencyNumber("1-1-9", RegionCode.US)); assertFalse(shortUtil.connectsToEmergencyNumber("9-9-9", RegionCode.US)); }
public void testConnectsToEmergencyNumberLongNumber_US() { assertTrue(shortUtil.connectsToEmergencyNumber("9116666666", RegionCode.US)); assertTrue(shortUtil.connectsToEmergencyNumber("1196666666", RegionCode.US)); assertFalse(shortUtil.connectsToEmergencyNumber("9996666666", RegionCode.US)); }
public void testIsEmergencyNumberLongNumber_BR() { assertFalse(shortUtil.isEmergencyNumber("9111", RegionCode.BR)); assertFalse(shortUtil.isEmergencyNumber("1900", RegionCode.BR)); assertFalse(shortUtil.isEmergencyNumber("9996", RegionCode.BR)); }