File: uk_data.t

package info (click to toggle)
libnumber-phone-perl 4.0008-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,772 kB
  • sloc: perl: 1,954; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 418 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;
use lib 't/inc';
use nptestutils;

use Test::More;
# see t/stubs.t for when uk_tests.pl are run against N::P::StubCountry::GB
plan skip_all => 'not relevant if building --without_uk' if(building_without_uk());

use Number::Phone;

require 'uk_tests.pl';

ok(Number::Phone->new('+442087712924')->regulator() eq 'OFCOM, http://www.ofcom.org.uk/', "N:P:UK->regulator() works");

done_testing();