Fix VERSION in lib/Module/Build/YAML.pm (resubmitted)
[p5sagit/p5-mst-13.2.git] / lib / Locale / Maketext / t / 30_local.t
CommitLineData
5350a4e5 1
2require 5;
3use Test;
4BEGIN { plan tests => 4; }
5use Locale::Maketext;
6print "# Hi there...\n";
7ok 1;
8
9print "# --- Making sure that Perl globals are localized ---\n";
10
11# declare a class...
12{
13 package Woozle;
14 @ISA = ('Locale::Maketext');
15 %Lexicon = (
16 _AUTO => 1
17 );
18 keys %Lexicon; # dodges the 'used only once' warning
19}
20
21my $lh;
22print "# Basic sanity:\n";
23ok defined( $lh = Woozle->new() ) && ref($lh);
24
25print "# Make sure \$@ is localized...\n";
26$@ = 'foo';
27ok $lh && $lh->maketext('Eval error: [_1]', $@), "Eval error: foo";
28
29print "# Byebye!\n";
30ok 1;