TODO test for immutable bug
[gitmo/Moose.git] / t / 300_immutable / 013_immutable_roundtrip.t
CommitLineData
43d2935a 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More;
7
8eval "use Test::Output";
9plan skip_all => "Test::Output is required for this test" if $@;
10
11plan tests => 1;
12
13{
14 package Foo;
15 use Moose;
16 __PACKAGE__->meta->make_immutable;
17}
18TODO: {
19 package Bar;
20 use Moose;
21
22 extends 'Foo';
23
24 __PACKAGE__->meta->make_immutable;
25 __PACKAGE__->meta->make_mutable;
26
27 use Test::More;
28 local $TODO = 'Known bug';
29
30 ::stderr_unlike(
31 sub { Bar->meta->make_immutable },
32 qr/Not inlining a constructor/,
33 'no warning that Bar may not have an inlined constructor'
34 );
35}
36