Browse Source

Add test for phone context without semicolon.

improve-rfc-handling-java
Silvio Brändle 11 months ago
parent
commit
016ccd0511
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java

+ 1
- 0
java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java View File

@ -2957,6 +2957,7 @@ public class PhoneNumberUtilTest extends TestMetadataTestCase {
// The phone-context parameter comes before the phone number.
assertThrowsForInvalidPhoneContext(";phone-context=+64;tel:03-331-6005");
assertThrowsForInvalidPhoneContext("phone-context=+64;tel:03-331-6005");
}
private void assertThrowsForInvalidPhoneContext(String numberToParse) {


Loading…
Cancel
Save