summaryrefslogtreecommitdiffstats
path: root/t/005-moose.t
diff options
context:
space:
mode:
Diffstat (limited to 't/005-moose.t')
-rw-r--r--t/005-moose.t16
1 files changed, 8 insertions, 8 deletions
diff --git a/t/005-moose.t b/t/005-moose.t
index 75f9f78..33a14b1 100644
--- a/t/005-moose.t
+++ b/t/005-moose.t
@@ -18,16 +18,16 @@ extends 'Foo';
package main;
my $foo_sub = Foo::Sub->new;
-isa_ok $foo_sub, 'Foo';
-is $foo_sub->foo, 'FOO', 'inheritance works';
+isa_ok($foo_sub, 'Foo');
+is($foo_sub->foo, 'FOO', 'inheritance works');
ok(!Foo::Sub->meta->has_method('new'),
'Foo::Sub doesn\'t have its own new method');
$_->meta->make_immutable for qw(Foo Foo::Sub);
$foo_sub = Foo::Sub->new;
-isa_ok $foo_sub, 'Foo';
-is $foo_sub->foo, 'FOO', 'inheritance works (immutable)';
+isa_ok($foo_sub, 'Foo');
+is($foo_sub->foo, 'FOO', 'inheritance works (immutable)');
ok(Foo::Sub->meta->has_method('new'),
'Foo::Sub has its own new method (immutable)');
@@ -38,14 +38,14 @@ extends 'Foo';
package main;
my $foo_othersub = Foo::OtherSub->new;
-isa_ok $foo_othersub, 'Foo';
-is $foo_othersub->foo, 'FOO', 'inheritance works (immutable when extending)';
+isa_ok($foo_othersub, 'Foo');
+is($foo_othersub->foo, 'FOO', 'inheritance works (immutable when extending)');
ok(!Foo::OtherSub->meta->has_method('new'),
'Foo::OtherSub doesn\'t have its own new method (immutable when extending)');
Foo::OtherSub->meta->make_immutable;
$foo_othersub = Foo::OtherSub->new;
-isa_ok $foo_othersub, 'Foo';
-is $foo_othersub->foo, 'FOO', 'inheritance works (all immutable)';
+isa_ok($foo_othersub, 'Foo');
+is($foo_othersub->foo, 'FOO', 'inheritance works (all immutable)');
ok(Foo::OtherSub->meta->has_method('new'),
'Foo::OtherSub has its own new method (all immutable)');