Documentation for sub does-ok
assembled from the following pages:
Module: Test §
From Test
(Test) sub does-ok §
Defined as:
multi sub does-ok(Mu , Mu , = "...")
Marks a test as passed if the given $var
can do the given role $type
. The function accepts an optional description of the test.
# create a Womble who can invent is Womble does Invent # ... and later in the tests use Test; my = Tobermory.new; # with automatically generated test description does-ok , Invent;# => The object does role Type does-ok , Invent, "Tobermory can invent";# => Tobermory can invent