Skip to content

Commit def0346

Browse files
committed
Fixing broken unittests.
The test here is partly fixed by Change I38c54265. However, the test itself still needs to be fixed as local numbers in US never starts with a '1'. Bug: 5599741 Change-Id: I3a3961331961f4f535d30dec884babdb32e8b67b
1 parent 815af1f commit def0346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneNumberUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ public void testFormatNumberToE164() {
511511
@SmallTest
512512
public void testFormatNumber() {
513513
assertEquals("(650) 291-0000", PhoneNumberUtils.formatNumber("650 2910000", "US"));
514-
assertEquals("123-4567", PhoneNumberUtils.formatNumber("1234567", "US"));
514+
assertEquals("223-4567", PhoneNumberUtils.formatNumber("2234567", "US"));
515515
assertEquals("(800) 466-4114", PhoneNumberUtils.formatNumber("800-GOOG-114", "US"));
516516
}
517517

0 commit comments

Comments
 (0)