sub isa-ok
1 | module Test |
1.1 | (Test) sub isa-ok |
Documentation for sub isa-ok
assembled from the following types:
module Test
From Test
(Test) sub isa-ok
Defined as:
multi sub isa-ok(Mu , Mu , = "The object is-a '$type.perl()'")
Marks a test as passed if the given object $value
is, or inherits from, the given $expected-type
. For convenience, types may also be specified as a string. The function accepts an optional description of the test, which defaults to a string that describes the object.
is Womblemy = GreatUncleBulgaria.new;isa-ok , Womble, "Great Uncle Bulgaria is a womble";isa-ok , 'Womble'; # equivalent