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_TERM" => LOCALE_CODE_TERM,
28 $test[1] = $type{$test[1]}
29 if (@test == 2 && $test[1] && exists $type{$test[1]});
30 return language2code(@test);
75 print "language2code...\n";
76 test_Func(\&test,$tests,$runtests);
81 # indent-tabs-mode: nil
82 # cperl-indent-level: 3
83 # cperl-continued-statement-offset: 2
84 # cperl-continued-brace-offset: 0
85 # cperl-brace-offset: 0
86 # cperl-brace-imaginary-offset: 0
87 # cperl-label-offset: -2