47 }, undef, 'class definition' );
50 my $o = My::Class->new();
52 is_deeply [scalar $o->s_rw], [undef], 'uninitialized scalar attribute/rw in scalar context';
53 is_deeply [$o->s_rw], [undef], 'uninitialized scalar attribute/rw in list context';
54 is_deeply [scalar $o->s_ro], [undef], 'uninitialized scalar attribute/ro in scalar context';
55 is_deeply [$o->s_ro], [undef], 'uninitialized scalar attribute/ro in list context';
58 is_deeply [scalar $o->a_rw], [undef], 'uninitialized ArrayRef attribute/rw in scalar context';
59 is_deeply [$o->a_rw], [], 'uninitialized ArrayRef attribute/rw in list context';
60 is_deeply [scalar $o->a_ro], [undef], 'uninitialized ArrayRef attribute/ro in scalar context';
61 is_deeply [$o->a_ro], [], 'uninitialized ArrayRef attribute/ro in list context';
63 is_deeply [scalar $o->h_rw], [undef], 'uninitialized HashRef attribute/rw in scalar context';
64 is_deeply [$o->h_rw], [], 'uninitialized HashRef attribute/rw in list context';
65 is_deeply [scalar $o->h_ro], [undef], 'uninitialized HashRef attribute/ro in scalar context';
66 is_deeply [$o->h_ro], [], 'uninitialized HashRef attribute/ro in list context';
68 }, undef, 'testing' );