blob: 359cdfc7a56047bda780a2540df5710693fc7f0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#!./perl
#
# constants.t - tests for Locale::Constants
#
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
}
use Locale::Constants;
print "1..3\n";
if (defined LOCALE_CODE_ALPHA_2
&& defined LOCALE_CODE_ALPHA_3
&& defined LOCALE_CODE_NUMERIC)
{
print "ok 1\n";
}
else
{
print "not ok 1\n";
}
if (LOCALE_CODE_ALPHA_2 != LOCALE_CODE_ALPHA_3
&& LOCALE_CODE_ALPHA_2 != LOCALE_CODE_NUMERIC
&& LOCALE_CODE_ALPHA_3 != LOCALE_CODE_NUMERIC)
{
print "ok 2\n";
}
else
{
print "not ok 2\n";
}
if (defined LOCALE_CODE_DEFAULT
&& (LOCALE_CODE_DEFAULT == LOCALE_CODE_ALPHA_2
|| LOCALE_CODE_DEFAULT == LOCALE_CODE_ALPHA_3
|| LOCALE_CODE_DEFAULT == LOCALE_CODE_NUMERIC))
{
print "ok 3\n";
}
else
{
print "not ok 3\n";
}
exit 0;
|