Home
last modified time | relevance | path

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

/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil_test.js3391 var byNumber = new i18n.phonenumbers.PhoneNumber();
3392 byNumber.setCountryCode(375);
3393 byNumber.setNationalNumber(8123);
3394 assertTrue(byNumber.equals(phoneUtil.parse('8123', RegionCode.BY)));
3395 byNumber.setNationalNumber(81234);
3396 assertTrue(byNumber.equals(phoneUtil.parse('81234', RegionCode.BY)));
3400 byNumber.setNationalNumber(812345);
3401 assertTrue(byNumber.equals(phoneUtil.parse('812345', RegionCode.BY)));
3404 byNumber.setNationalNumber(123456);
3405 assertTrue(byNumber.equals(phoneUtil.parse('8123456', RegionCode.BY)));
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java2589 PhoneNumber byNumber = new PhoneNumber().setCountryCode(375).setNationalNumber(8123L); in testParseNumberTooShortIfNationalPrefixStripped() local
2590 assertEquals(byNumber, phoneUtil.parse("8123", RegionCode.BY)); in testParseNumberTooShortIfNationalPrefixStripped()
2591 byNumber.setNationalNumber(81234L); in testParseNumberTooShortIfNationalPrefixStripped()
2592 assertEquals(byNumber, phoneUtil.parse("81234", RegionCode.BY)); in testParseNumberTooShortIfNationalPrefixStripped()
2596 byNumber.setNationalNumber(812345L); in testParseNumberTooShortIfNationalPrefixStripped()
2597 assertEquals(byNumber, phoneUtil.parse("812345", RegionCode.BY)); in testParseNumberTooShortIfNationalPrefixStripped()
2600 byNumber.setNationalNumber(123456L); in testParseNumberTooShortIfNationalPrefixStripped()
2601 assertEquals(byNumber, phoneUtil.parse("8123456", RegionCode.BY)); in testParseNumberTooShortIfNationalPrefixStripped()