sub unlike

Documentation for sub unlike assembled from the following types:

module Test

From Test

(Test) sub unlike

Defined as:

multi sub unlike(Str() $gotRegex:D $expected$desc = "text does not match $expected.raku()")

Used this way:

unlike 'foo', /bar/'foo does not look like bar';

Marks a test as passed if the first parameter, when coerced to a string, does not match the regular expression specified as the second parameter. The function accepts an optional description of the test, which defaults to printing the text that did not match.