~ken-vandine/+junk/libphonenumber

« back to all changes in this revision

Viewing changes to java/libphonenumber/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2015-09-25 13:20:24 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20150925132024-jhc5afks3lirr982
Tags: 7.0.11-2
* Split libgeocoding out into a separate package.
* Make library packages Multi-Arch: same
* Rename -dev package to not include the version - this means that
  our reverse build-deps don't need to have source changes whenever we bump
  the ABI version.
* debian/patches/0001-Boost-build-fix.patch: Make sure to install all the
  headers.
* debian/patches/0002-C-symbols-map.patch: Control our exported symbols to
  not leak those of libraries we depend on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
  }
67
67
 
68
68
  public void testTooLongNumberMatchingMultipleLeadingDigits() {
69
 
    // See http://code.google.com/p/libphonenumber/issues/detail?id=36
 
69
    // See https://github.com/googlei18n/libphonenumber/issues/36
70
70
    // The bug occurred last time for countries which have two formatting rules with exactly the
71
71
    // same leading digits pattern but differ in length.
72
72
    AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ);
1164
1164
    // when we try again to extract a country code we should ensure we use the last leading digit
1165
1165
    // pattern, rather than the first one such that it *thinks* it's found a valid formatting rule
1166
1166
    // again.
1167
 
    // https://code.google.com/p/libphonenumber/issues/detail?id=437
 
1167
    // https://github.com/googlei18n/libphonenumber/issues/437
1168
1168
    assertEquals("+8698812", formatter.inputDigit('2'));
1169
1169
    assertEquals("+86988123", formatter.inputDigit('3'));
1170
1170
    assertEquals("+869881234", formatter.inputDigit('4'));