3 # Copyright (c) 1995-2000, Raphael Manfredi
5 # You may redistribute only under the same terms as Perl 5, as specified
6 # in the README file that comes with the distribution.
11 print "1..0 # Skip: no utf8 support\n";
16 @INC = ('.', '../lib', '../ext/Storable/t');
20 require Config; import Config;
21 if ($ENV{PERL_CORE} and $Config{'extensions'} !~ /\bStorable\b/) {
22 print "1..0 # Skip: Storable was not built\n";
31 use Storable qw(thaw freeze);
36 ok 1, $x eq ${thaw freeze \$x};
39 $x = join '', map {chr $_} (0..1023);
40 ok 2, $x eq ${thaw freeze \$x};
42 # Char in the range 127-255 (probably) in utf8
43 $x = chr (175) . chr (256);
45 ok 3, $x eq ${thaw freeze \$x};