summaryrefslogtreecommitdiff
path: root/ext/Storable/t/utf8.t
blob: 2160308a288464293df55c1ca488553778bc5a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!./perl

# $Id: utf8.t,v 1.0.1.2 2000/09/28 21:44:17 ram Exp $
#
#  @COPYRIGHT@
#
# $Log: utf8.t,v $
# Revision 1.0.1.2  2000/09/28 21:44:17  ram
# patch2: fixed stupid typo
#
# Revision 1.0.1.1  2000/09/17 16:48:12  ram
# patch1: created.
#
#

sub BEGIN {
    if ($] < 5.006) {
	print "1..0 # Skip: no utf8 support\n";
	exit 0;
    }
    chdir('t') if -d 't';
    @INC = '.'; 
    push @INC, '../lib';
    require Config; import Config;
    if ($Config{'extensions'} !~ /\bStorable\b/) {
        print "1..0 # Skip: Storable was not built\n";
        exit 0;
    }
    require 'lib/st-dump.pl';
}

sub ok;

use Storable qw(thaw freeze);

print "1..1\n";

$x = chr(1234);
ok 1, $x eq ${thaw freeze \$x};