Home
last modified time | relevance | path

Searched refs:invalidNumber (Results 1 – 5 of 5) sorted by relevance

/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil_test.js1755 var invalidNumber = new i18n.phonenumbers.PhoneNumber();
1757 invalidNumber.setCountryCode(3923);
1758 invalidNumber.setNationalNumber(2366);
1759 assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.ZZ));
1761 phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.UN001));
1762 invalidNumber.setCountryCode(0);
1764 phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.UN001));
1765 assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.ZZ));
1772 var invalidNumber = new i18n.phonenumbers.PhoneNumber();
1773 invalidNumber.setCountryCode(39);
[all …]
Dshortnumberinfo_test.js186 var invalidNumber = new i18n.phonenumbers.PhoneNumber();
187 invalidNumber.setCountryCode(33);
188 invalidNumber.setNationalNumber(116123);
189 assertFalse(shortInfo.isValidShortNumber(invalidNumber));
192 shortInfo.getExpectedCost(invalidNumber));
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java1258 PhoneNumber invalidNumber = new PhoneNumber(); in testIsValidForRegion() local
1260 invalidNumber.setCountryCode(3923).setNationalNumber(2366L); in testIsValidForRegion()
1261 assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.ZZ)); in testIsValidForRegion()
1262 assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.UN001)); in testIsValidForRegion()
1263 invalidNumber.setCountryCode(0); in testIsValidForRegion()
1264 assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.UN001)); in testIsValidForRegion()
1265 assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.ZZ)); in testIsValidForRegion()
1271 PhoneNumber invalidNumber = new PhoneNumber(); in testIsNotValidNumber() local
1272 invalidNumber.setCountryCode(39).setNationalNumber(23661830000L).setItalianLeadingZero(true); in testIsNotValidNumber()
1273 assertFalse(phoneUtil.isValidNumber(invalidNumber)); in testIsNotValidNumber()
[all …]
DShortNumberInfoTest.java129 PhoneNumber invalidNumber = new PhoneNumber(); in testGetExpectedCost() local
130 invalidNumber.setCountryCode(33).setNationalNumber(116123L); in testGetExpectedCost()
131 assertFalse(shortInfo.isValidShortNumber(invalidNumber)); in testGetExpectedCost()
133 shortInfo.getExpectedCost(invalidNumber)); in testGetExpectedCost()
/third_party/libphonenumber/migrator/src/test/java/com/google/phonenumbers/migrator/
DMigrationJobTest.java170 String invalidNumber = "1234567"; in standardMigration_invalidNumberNoRecipe_expectNoMigration() local
171 MigrationJob job = MigrationFactory.createMigration(invalidNumber, COUNTRY_CODE); in standardMigration_invalidNumberNoRecipe_expectNoMigration()
176 .containsExactly(invalidNumber); in standardMigration_invalidNumberNoRecipe_expectNoMigration()