Skip to content

Commit

Permalink
Minor changes to cope with telcos changing names;
Browse files Browse the repository at this point in the history
Switch from testing +1 630 847 for range consolidation, because it's not a full range, it's partially allocated now, and partially allocated for use in the future
  • Loading branch information
DrHyde committed Nov 6, 2024
1 parent 6af12c7 commit 53ca491
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions t/inc/common-nanp_and_libphonenumber_tests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -194,25 +194,24 @@
"Oh good, the database contains data for all the non-US/CA area codes (except 658, for which no data are yet available)"
);

# checked on 2023-12-10 that these are consolidated ten-thousand blocks
# next check due 2024-12-01 (annually)
# https://localcallingguide.com/xmlprefix.php?npa=630&blocks=1
is($CLASS->new('+1 630 847 0000')->operator(), 'YMAX COMMUNICATIONS CORP. - IL', 'USA, thousands blocks all for same operator, so consolidated into one to save space in database');
# checked on 2022-12-10
# next check due 2024-12-01 (annually)
# checked on 2024-11-06 that these are consolidated ten-thousand blocks
# next check due 2025-12-01 (annually)
is($CLASS->new('+1 202 201 0000')->operator(), 'VERIZON WASHINGTON DC, INC.', 'USA, thousands blocks all for same operator, so consolidated into one to save space in database');
# checked on 2024-11-06
# next check due 2025-12-01 (annually)
# https://localcallingguide.com/xmlprefix.php?npa=242&blocks=1
is($CLASS->new('+1 242 367 0000')->operator(), 'BARTELCO (BA)', 'Bahamas, thousands blocks all for same operator, so consolidated into one to save space in database');

foreach my $number(
[ 'USA', '+1 512 373 0000', 'METROPCS, INC.' ],
[ 'USA', '+1 512 373 1000', undef ],
[ 'USA', '+1 512 373 2000', 'METROPCS, INC.', ],
[ 'USA', '+1 512 373 3000', 'TIME WARNER CBLE INFO SVC (TX) DBA TIME WARNER CBL', ],
[ 'USA', '+1 512 373 3000', 'TWC IP ENABLED SERVICES, LLC', ],
[ 'USA', '+1 512 373 4000', undef ],
[ 'USA', '+1 512 373 5000', 'METROPCS, INC.' ],
[ 'USA', '+1 512 373 6000', 'METROPCS, INC.' ],
[ 'USA', '+1 512 373 7000', undef ],
[ 'USA', '+1 512 373 8000', 'TIME WARNER CBLE INFO SVC (TX) DBA TIME WARNER CBL' ],
[ 'USA', '+1 512 373 8000', 'TWC IP ENABLED SERVICES, LLC' ],
[ 'USA', '+1 512 373 9000', 'METROPCS, INC.' ]
) {
is(
Expand Down

0 comments on commit 53ca491

Please sign in to comment.