Integrate perlio:
[p5sagit/p5-mst-13.2.git] / t / lib / st-utf8.t
CommitLineData
dd19458b 1#!./perl
2
3# $Id: utf8.t,v 1.0.1.2 2000/09/28 21:44:17 ram Exp $
4#
5# @COPYRIGHT@
6#
7# $Log: utf8.t,v $
8# Revision 1.0.1.2 2000/09/28 21:44:17 ram
9# patch2: fixed stupid typo
10#
11# Revision 1.0.1.1 2000/09/17 16:48:12 ram
12# patch1: created.
13#
14#
15
16sub BEGIN {
17 if ($] < 5.006) {
18 print "1..0 # Skip: no utf8 support\n";
19 exit 0;
20 }
21 chdir('t') if -d 't';
22 @INC = '.';
23 push @INC, '../lib';
24 require Config; import Config;
25 if ($Config{'extensions'} !~ /\bStorable\b/) {
26 print "1..0 # Skip: Storable was not built\n";
27 exit 0;
28 }
29 require 'lib/st-dump.pl';
30}
31
32sub ok;
33
34use Storable qw(thaw freeze);
35
36print "1..1\n";
37
38$x = chr(1234);
39ok 1, $x eq ${thaw freeze \$x};
40