Commit | Line | Data |
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 | |
16 | sub BEGIN { |
17 | if ($] < 5.006) { |
18 | print "1..0 # Skip: no utf8 support\n"; |
19 | exit 0; |
20 | } |
0c384302 |
21 | if ($ENV{PERL_CORE}){ |
22 | chdir('t') if -d 't'; |
23 | @INC = '.'; |
24 | push @INC, '../lib'; |
25 | } |
dd19458b |
26 | require Config; import Config; |
0c384302 |
27 | if ($ENV{PERL_CORE} and $Config{'extensions'} !~ /\bStorable\b/) { |
dd19458b |
28 | print "1..0 # Skip: Storable was not built\n"; |
29 | exit 0; |
30 | } |
31 | require 'lib/st-dump.pl'; |
32 | } |
33 | |
34 | sub ok; |
35 | |
36 | use Storable qw(thaw freeze); |
37 | |
38 | print "1..1\n"; |
39 | |
40 | $x = chr(1234); |
41 | ok 1, $x eq ${thaw freeze \$x}; |
42 | |