Re: A new PerlIO coredump
[p5sagit/p5-mst-13.2.git] / t / lib / u-blessed.t
CommitLineData
f4a2945e 1BEGIN {
2 chdir 't' if -d 't';
3 @INC = '../lib';
4}
5
6use Scalar::Util qw(blessed);
7use vars qw($t $y $x);
8
9print "1..7\n";
10
11print "not " if blessed(1);
12print "ok 1\n";
13
14print "not " if blessed('A');
15print "ok 2\n";
16
17print "not " if blessed({});
18print "ok 3\n";
19
20print "not " if blessed([]);
21print "ok 4\n";
22
23$y = \$t;
24
25print "not " if blessed($y);
26print "ok 5\n";
27
28$x = bless [], "ABC";
29
30print "not " unless blessed($x);
31print "ok 6\n";
32
33print "not " unless blessed($x) eq 'ABC';
34print "ok 7\n";