diff options
author | doy <doy@tozt.net> | 2009-04-20 02:58:09 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-04-20 02:58:09 -0500 |
commit | b68490edda877bcda983c96f728d1e04a583eb4f (patch) | |
tree | 3130a282f45bd374b1b7dd0afab5f2cc22006f91 /t/005-moose.t | |
parent | f1753ca22ba232a7509f3b59979b8ad960d8197a (diff) | |
download | moosex-nonmoose-b68490edda877bcda983c96f728d1e04a583eb4f.tar.gz moosex-nonmoose-b68490edda877bcda983c96f728d1e04a583eb4f.zip |
clean up tests a bit
Diffstat (limited to 't/005-moose.t')
-rw-r--r-- | t/005-moose.t | 16 |
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)'); |