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";
19 use Locale::Codes::Language;
21 %type = ( "LOCALE_LANG_ALPHA_2" => LOCALE_LANG_ALPHA_2,
22 "LOCALE_LANG_ALPHA_3" => LOCALE_LANG_ALPHA_3,
23 "LOCALE_LANG_TERM" => LOCALE_LANG_TERM,
28 $test[1] = $type{$test[1]}
29 if (@test == 2 && $test[1] && exists $type{$test[1]});
30 return language2code(@test);
73 # Last ones in the list
102 print "language2code...\n";
103 test_Func(\&test,$tests,$runtests);
108 # indent-tabs-mode: nil
109 # cperl-indent-level: 3
110 # cperl-continued-statement-offset: 2
111 # cperl-continued-brace-offset: 0
112 # cperl-brace-offset: 0
113 # cperl-brace-imaginary-offset: 0
114 # cperl-label-offset: -2