sub nok

Documentation for sub nok assembled from the following types:

class Test

From Test

(Test) sub nok

Defined as:

multi sub nok(Mu $cond$desc = '')

The nok function marks a test as passed if the given value evaluates to False. It also accepts an optional description of the test as second argument.

my $responsemy $query...;
ok  $response.success'HTTP response was successful';
nok $query.error,      'Query completed without error';