Add another MOOSE_TEST_MD option, MooseX
[gitmo/Moose.git] / t / attributes / default_undef.t
CommitLineData
47bfa72e 1#!/usr/bin/env perl
2use strict;
3use warnings;
4use Test::More;
5use Test::Moose;
6
7{
8 package Foo;
9 use Moose;
10
11 has foo => (
12 is => 'ro',
13 isa => 'Maybe[Int]',
14 default => undef,
15 predicate => 'has_foo',
16 );
17}
18
19with_immutable {
20 is(Foo->new->foo, undef);
21 ok(Foo->new->has_foo);
22} 'Foo';
23
24done_testing;