5 $runtests=shift(@ARGV);
6 if ( -f "t/testfunc.pl" ) {
7 require "t/testfunc.pl";
10 } elsif ( -f "testfunc.pl" ) {
11 require "testfunc.pl";
15 die "ERROR: cannot find testfunc.pl\n";
21 %type = ( "LOCALE_CODE_ALPHA_2" => LOCALE_CODE_ALPHA_2,
22 "LOCALE_CODE_ALPHA_3" => LOCALE_CODE_ALPHA_3,
23 "LOCALE_CODE_NUMERIC" => LOCALE_CODE_NUMERIC,
28 $test[1] = $type{$test[1]} if (@test == 2 && $test[1] && exists $type{$test[1]});
29 return country2code(@test);
117 United States of America
129 French Southern and Antarctic Lands
141 Serbia and Montenegro
153 Congo, The Democratic Republic of the
157 Congo, The Democratic Republic of the
162 Congo, The Democratic Republic of the
169 print "country2code...\n";
170 test_Func(\&test,$tests,$runtests);
175 # indent-tabs-mode: nil
176 # cperl-indent-level: 3
177 # cperl-continued-statement-offset: 2
178 # cperl-continued-brace-offset: 0
179 # cperl-brace-offset: 0
180 # cperl-brace-imaginary-offset: 0
181 # cperl-label-offset: -2