File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -212,13 +212,17 @@ strings, such as C<'=='> or C<'~~'>.
212
212
213
213
= item like($obtained, $expected-regex, $description?)
214
214
215
+ like 'foo', /fo/, 'foo looks like fo';
216
+
215
217
Marks a test as passed if the C < $obtained > C < Str > matches the
216
218
C < $expected-regex > . The function accepts an optional C < $description > of the
217
219
test. The regex to match can be either a pre-declared C < Regex > object or
218
220
defined directly in the argument to C < like > .
219
221
220
222
= item unlike($obtained, $expected-regex, $description?)
221
223
224
+ unlike 'foo', /bar/, 'foo does not look like bar';
225
+
222
226
Marks a test as failed if the C < $obtained > C < Str > matches the
223
227
C < $expected-regex > . The function accepts an optional C < $description > of the
224
228
test. The regex to match can be either a pre-declared C < Regex > object or
You can’t perform that action at this time.
0 commit comments