Searched refs:US_NUMBER (Results 1 – 2 of 2) sorted by relevance
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtilTest.java | 96 private static final PhoneNumber US_NUMBER = field in PhoneNumberUtilTest 286 assertEquals(3, phoneUtil.getLengthOfGeographicalAreaCode(US_NUMBER)); in testGetLengthOfGeographicalAreaCode() 326 assertEquals(3, phoneUtil.getLengthOfNationalDestinationCode(US_NUMBER)); in testGetLengthOfNationalDestinationCode() 375 assertEquals("6502530000", phoneUtil.getNationalSignificantNumber(US_NUMBER)); in testGetNationalSignificantNumber() 491 assertEquals("650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber() 492 assertEquals("+1 650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber() 613 phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.BS)); in testFormatOutOfCountryCallingNumber() 616 phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.PL)); in testFormatOutOfCountryCallingNumber() 656 phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.AQ)); in testFormatOutOfCountryWithInvalidRegion() 659 phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.UN001)); in testFormatOutOfCountryWithInvalidRegion() [all …]
|
/third_party/libphonenumber/javascript/i18n/phonenumbers/ |
D | phonenumberutil_test.js | 182 var US_NUMBER = new i18n.phonenumbers.PhoneNumber(); variable 183 US_NUMBER.setCountryCode(1); 184 US_NUMBER.setNationalNumber(6502530000); 361 assertEquals(3, phoneUtil.getLengthOfGeographicalAreaCode(US_NUMBER)); 396 assertEquals(3, phoneUtil.getLengthOfNationalDestinationCode(US_NUMBER)); 520 assertEquals('6502530000', phoneUtil.getNationalSignificantNumber(US_NUMBER)); 654 assertEquals('650 253 0000', phoneUtil.format(US_NUMBER, PNF.NATIONAL)); 656 '+1 650 253 0000', phoneUtil.format(US_NUMBER, PNF.INTERNATIONAL)); 814 phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.BS)); 818 phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.PL)); [all …]
|