File: undef-bug.t

package info (click to toggle)
libmoo-perl 0.091011-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 476 kB
  • sloc: perl: 1,688; makefile: 4; sh: 1
file content (13 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Test::More tests => 1;

package Foo;
use Moo;

has this => (is => 'ro');

package main;

my $foo = Foo->new;

ok not(exists($foo->{this})),
    "new objects don't have undef attributes";