Changeset 16961 for lang/perl/Business-ISRC
- Timestamp:
- 08/02/08 00:08:49 (5 years ago)
- Location:
- lang/perl/Business-ISRC/trunk
- Files:
-
- 8 modified
-
README (modified) (1 diff)
-
lib/Business/ISRC.pm (modified) (2 diffs)
-
t/00_load.t (modified) (1 diff)
-
t/10_basic.t (modified) (1 diff)
-
t/11_overload.t (modified) (1 diff)
-
t/12_invalid.t (modified) (1 diff)
-
t/20_normalize.t (modified) (1 diff)
-
t/50_random.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Business-ISRC/trunk/README
r16900 r16961 15 15 This module requires these other modules and libraries: 16 16 17 Locale::Country 2.07 17 Locale::Country 18 Class::Accessor::Fast 18 19 19 20 COPYRIGHT AND LICENCE -
lang/perl/Business-ISRC/trunk/lib/Business/ISRC.pm
r16920 r16961 41 41 raw_string => $isrc_string, 42 42 country_code => uc($1), 43 registrant_code => $2,43 registrant_code => uc($2), 44 44 year => $3, 45 45 designation_code => $4, … … 135 135 sample: US-L4Q-07-02458 136 136 137 ISRC (4) - prefix (omittable) 138 US (2) - country code (ISO 3166-1-Alpha-2) 139 L4Q (3) - registrant code 140 07 (2) - year (1980=>80, 2012=>12) 141 02458 (5) - designation code (track serial number) 137 name letters desc 138 ------------------------------------- 139 ISRC (4) - prefix (omittable) 140 US (2) - country code (ISO 3166-1-Alpha-2) 141 L4Q (3) - registrant code. case insensitive. 142 07 (2) - year (1980=>80, 2012=>12) 143 02458 (5) - designation code, track serial number. 142 144 143 145 =head1 ACCESSOR -
lang/perl/Business-ISRC/trunk/t/00_load.t
r16920 r16961 4 4 use warnings; 5 5 6 use Test::More qw/no_plan/;6 use Test::More tests => 3; 7 7 8 8 BEGIN { 9 9 use_ok('Locale::Country'); 10 use_ok('Class::Accessor ');10 use_ok('Class::Accessor::Fast'); 11 11 use_ok('Business::ISRC'); 12 12 }; -
lang/perl/Business-ISRC/trunk/t/10_basic.t
r16920 r16961 4 4 use warnings; 5 5 6 use Test::More qw/no_plan/;6 use Test::More tests => 11; 7 7 use Business::ISRC; 8 8 -
lang/perl/Business-ISRC/trunk/t/11_overload.t
r16920 r16961 4 4 use warnings; 5 5 6 use Test::More qw/no_plan/;6 use Test::More tests => 4; 7 7 use Business::ISRC; 8 8 -
lang/perl/Business-ISRC/trunk/t/12_invalid.t
r16920 r16961 4 4 use warnings; 5 5 6 use Test::More qw/no_plan/;6 use Test::More tests => 8; 7 7 use Business::ISRC; 8 8 -
lang/perl/Business-ISRC/trunk/t/20_normalize.t
r16920 r16961 4 4 use warnings; 5 5 6 use Test::More qw/no_plan/;6 use Test::More tests => 16; 7 7 use Business::ISRC; 8 8 9 9 my @isrc_string = qw/ 10 10 ISRC-JP-I4Q-07-00001 11 ISRC-JP-i4q-07-00001 12 ISRC-jp-i4q-07-00001 11 13 ISRCJPI4Q0700001 12 14 JP-I4Q-07-00001 -
lang/perl/Business-ISRC/trunk/t/50_random.t
r16920 r16961 5 5 6 6 use Test::More tests => 2000; 7 8 use Locale::Country qw/all_country_codes/; 7 9 use Business::ISRC; 8 10 9 11 # only officially assigned code 10 my @country_code = qw/ 11 AD AE AF AG AI AL AM AN AO AQ Co AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BM BN BO BR BS BT BV BW BY Co BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CX CY CZ DE Co DJ DK DM DO DZ EC EE EG EH Co ER ES Co ET FI FJ FK FM FO FR GA GB GD GE GF GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IN IO IQ IR IS IT JM JO JP KE KG KH Co KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD MG MH MK Co ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR ST SV SY SZ TC TD TF Co TG TH TJ TK TL TM TN TO TR TT TV TW De TZ UA UG UM US UY UZ VA Pr VC VE VG VI VN VU WF WS YE YT ZA ZM ZW 12 /; 13 # GG ME IM MF JE BL RS UK 14 12 my @country_code = map { uc($_) } all_country_codes(); 15 13 my @registrant = qw/ 16 14 a b c d e f g h i j k l m n o p q r s t u
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)