In module Test§

See primary documentation in context for sub unlike

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.