X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F073_make_mutable.t;fp=t%2F073_make_mutable.t;h=1cc9311bddfbfbd66853c3aca17775b9a9f7b7f0;hb=c1809cb18c9ffb1f6fbb152bf546aca88647172b;hp=bbf52041453a829963345f30d4df1381d0336add;hpb=5d9ee40a1f7ab13b3d3c6a03ef903dee69c3c4ac;p=gitmo%2FClass-MOP.git diff --git a/t/073_make_mutable.t b/t/073_make_mutable.t index bbf5204..1cc9311 100644 --- a/t/073_make_mutable.t +++ b/t/073_make_mutable.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 111; +use Test::More tests => 113; use Test::Exception; use Scalar::Util; @@ -51,6 +51,8 @@ use Class::MOP; ok(!$meta->make_immutable, '... make immutable now returns nothing'); ok($meta->get_method_map->{new}, '... inlined constructor created'); ok($meta->has_method('new'), '... inlined constructor created for sure'); + ok($meta->get_immutable_transformer->inlined_constructor, + '... transformer says it did inline the constructor'); lives_ok { $meta->make_mutable; } '... changed Baz to be mutable'; ok($meta->is_mutable, '... our class is mutable'); @@ -58,6 +60,8 @@ use Class::MOP; ok(!$meta->make_mutable, '... make mutable now returns nothing'); ok(!$meta->get_method_map->{new}, '... inlined constructor removed'); ok(!$meta->has_method('new'), '... inlined constructor removed for sure'); + ok(!$meta->get_immutable_transformer->inlined_constructor, + '... transformer says it did not inline the constructor'); my @new_keys = sort grep { !/^_/ } keys %$meta; is_deeply(\@orig_keys, \@new_keys, '... no straneous hashkeys');