#! /usr/local/bin/perl -w
BEGIN
{
my
$package
;
if
($0 =~ /_pp\.t$/) {
$package
=
'gettext_pp'
;
}
else
{
$package
=
'gettext_xs'
;
}
my
$selected
= Locale::Messages->select_package (
$package
);
if
(
$selected
ne
$package
&&
'gettext_xs'
eq
$package
) {
print
"1..0 # Skip: Locale::$package not available here.\n"
;
exit
0;
}
plan
tests
=> NUM_TESTS;
}
my
$textdomain
=
''
;
my
$bound_domain
= textdomain
''
;
ok
defined
$bound_domain
;
ok
$bound_domain
,
'messages'
;
$textdomain
=
'existing'
;
$bound_domain
= textdomain
$textdomain
;
ok
defined
$bound_domain
;
ok
$bound_domain
,
$textdomain
;