Home
last modified time | relevance | path

Searched refs:BS_NUMBER (Results 1 – 2 of 2) sorted by relevance

/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil_test.js88 var BS_NUMBER = new i18n.phonenumbers.PhoneNumber(); variable
89 BS_NUMBER.setCountryCode(1);
90 BS_NUMBER.setNationalNumber(2423651234);
677 assertEquals('242 365 1234', phoneUtil.format(BS_NUMBER, PNF.NATIONAL));
679 '+1 242 365 1234', phoneUtil.format(BS_NUMBER, PNF.INTERNATIONAL));
1311 phoneUtil.formatByPattern(BS_NUMBER, PNF.NATIONAL, [newNumFormat]));
1314 phoneUtil.formatByPattern(BS_NUMBER, PNF.INTERNATIONAL, [newNumFormat]));
1645 assertEquals(PNT.FIXED_LINE, phoneUtil.getNumberType(BS_NUMBER));
1713 assertTrue(phoneUtil.isValidNumber(BS_NUMBER));
1714 assertTrue(phoneUtil.isValidNumberForRegion(BS_NUMBER, RegionCode.BS));
[all …]
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java62 private static final PhoneNumber BS_NUMBER = field in PhoneNumberUtilTest
508 assertEquals("242 365 1234", phoneUtil.format(BS_NUMBER, PhoneNumberFormat.NATIONAL)); in testFormatBSNumber()
509 assertEquals("+1 242 365 1234", phoneUtil.format(BS_NUMBER, PhoneNumberFormat.INTERNATIONAL)); in testFormatBSNumber()
939 phoneUtil.formatByPattern(BS_NUMBER, PhoneNumberFormat.NATIONAL, in testFormatByPattern()
942 phoneUtil.formatByPattern(BS_NUMBER, PhoneNumberFormat.INTERNATIONAL, in testFormatByPattern()
1174 assertEquals(PhoneNumberType.FIXED_LINE, phoneUtil.getNumberType(BS_NUMBER)); in testIsFixedLine()
1225 assertTrue(phoneUtil.isValidNumber(BS_NUMBER)); in testIsValidForRegion()
1226 assertTrue(phoneUtil.isValidNumberForRegion(BS_NUMBER, RegionCode.BS)); in testIsValidForRegion()
1227 assertFalse(phoneUtil.isValidNumberForRegion(BS_NUMBER, RegionCode.US)); in testIsValidForRegion()
1306 assertEquals(RegionCode.BS, phoneUtil.getRegionCodeForNumber(BS_NUMBER)); in testGetRegionCodeForNumber()