File: undef-bug.t

package info (click to toggle)
libmoo-perl 2.002005-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 856 kB
  • ctags: 192
  • sloc: perl: 2,561; makefile: 6
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";