From: gfx Date: Mon, 17 Aug 2009 05:36:59 +0000 (+0900) Subject: Whether is_inline is true or not does not matter. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd4505a209a5bda5962d6cd8e4b39d7e381e7cc6;p=gitmo%2FClass-MOP.git Whether is_inline is true or not does not matter. --- diff --git a/t/072_immutable_w_constructors.t b/t/072_immutable_w_constructors.t index 906d359..6ec3449 100644 --- a/t/072_immutable_w_constructors.t +++ b/t/072_immutable_w_constructors.t @@ -1,7 +1,7 @@ use strict; use warnings; -use Test::More tests => 91; +use Test::More tests => 79; use Test::Exception; use Class::MOP; @@ -75,8 +75,6 @@ use Class::MOP; my $bar_accessor = $meta->get_method('bar'); isa_ok($bar_accessor, 'Class::MOP::Method::Accessor'); isa_ok($bar_accessor, 'Class::MOP::Method'); - - ok(!$bar_accessor->is_inline, '... the bar accessor is not inlined'); } ok(!$meta->is_immutable, '... our class is not immutable'); @@ -121,8 +119,6 @@ use Class::MOP; my $bar_accessor = $meta->get_method('bar'); isa_ok($bar_accessor, 'Class::MOP::Method::Accessor'); isa_ok($bar_accessor, 'Class::MOP::Method'); - - ok(!$bar_accessor->is_inline, '... the bar accessor is still not inlined'); } } @@ -135,13 +131,9 @@ use Class::MOP; isa_ok($bar_accessor, 'Class::MOP::Method::Accessor'); isa_ok($bar_accessor, 'Class::MOP::Method'); - ok(!$bar_accessor->is_inline, '... the bar accessor is not inlined'); - my $baz_accessor = $meta->get_method('baz'); isa_ok($baz_accessor, 'Class::MOP::Method::Accessor'); isa_ok($baz_accessor, 'Class::MOP::Method'); - - ok(!$baz_accessor->is_inline, '... the baz accessor is not inlined'); } ok(!$meta->is_immutable, '... our class is not immutable'); @@ -179,13 +171,10 @@ use Class::MOP; isa_ok($bar_accessor, 'Class::MOP::Method::Accessor'); isa_ok($bar_accessor, 'Class::MOP::Method'); - ok(!$bar_accessor->is_inline, '... the bar accessor is still not inlined'); - my $baz_accessor = $meta->get_method('baz'); isa_ok($baz_accessor, 'Class::MOP::Method::Accessor'); isa_ok($baz_accessor, 'Class::MOP::Method'); - ok($baz_accessor->is_inline, '... the baz accessor is not inlined'); } } @@ -198,19 +187,13 @@ use Class::MOP; isa_ok($bar_accessor, 'Class::MOP::Method::Accessor'); isa_ok($bar_accessor, 'Class::MOP::Method'); - ok(!$bar_accessor->is_inline, '... the bar accessor is not inlined'); - my $baz_accessor = $meta->find_method_by_name('baz'); isa_ok($baz_accessor, 'Class::MOP::Method::Accessor'); isa_ok($baz_accessor, 'Class::MOP::Method'); - ok($baz_accessor->is_inline, '... the baz accessor is inlined'); - my $bah_accessor = $meta->get_method('bah'); isa_ok($bah_accessor, 'Class::MOP::Method::Accessor'); isa_ok($bah_accessor, 'Class::MOP::Method'); - - ok(!$bah_accessor->is_inline, '... the baz accessor is not inlined'); } ok(!$meta->is_immutable, '... our class is not immutable'); @@ -248,19 +231,14 @@ use Class::MOP; isa_ok($bar_accessor, 'Class::MOP::Method::Accessor'); isa_ok($bar_accessor, 'Class::MOP::Method'); - ok(!$bar_accessor->is_inline, '... the bar accessor is still not inlined'); - my $baz_accessor = $meta->find_method_by_name('baz'); isa_ok($baz_accessor, 'Class::MOP::Method::Accessor'); isa_ok($baz_accessor, 'Class::MOP::Method'); - ok($baz_accessor->is_inline, '... the baz accessor is not inlined'); - my $bah_accessor = $meta->get_method('bah'); isa_ok($bah_accessor, 'Class::MOP::Method::Accessor'); isa_ok($bah_accessor, 'Class::MOP::Method'); - ok($bah_accessor->is_inline, '... the baz accessor is not inlined'); } }