Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Less wombles, more butterflies
Fixes #577
  • Loading branch information
AlexDaniel committed Jun 10, 2016
1 parent e8811b5 commit 64bc5f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/Language/testing.pod
Expand Up @@ -202,12 +202,12 @@ Marks a test as passed if the given object C<$value> is, or inherits from, the
given C<$expected-type>. For convenience, types may also be specified as a
string. The function accepts an optional C<$description> of the test.
class Womble {}
class GreatUncleBulgaria is Womble {}
my $womble = GreatUncleBulgaria.new;
class Butterfly {}
class Camelia is Butterfly {}
my $creature = Camelia.new;
isa-ok $womble, Womble, "Great Uncle Bulgaria is a womble";
isa-ok $womble, 'Womble'; # equivalent
isa-ok $creature, Butterfly, "Camelia is a butterfly";
isa-ok $creature, 'Butterfly'; # equivalent
=head2 By method name
Expand Down

0 comments on commit 64bc5f3

Please sign in to comment.