Documentation for sub can-ok
assembled from the following pages:
Module: Test §
From Test
(Test) sub can-ok §
Defined as:
multi sub can-ok(Mu , Str , = "..." )
Marks a test as passed if the given $var
can run the method named $meth
. The function accepts an optional description. For instance:
;my = Womble.new; # with automatically generated test description can-ok , 'collect-rubbish';# => An object of type 'Womble' can do the method 'collect-rubbish' # with human-generated test description can-ok , 'collect-rubbish', "Wombles can collect rubbish";# => Wombles can collect rubbish