We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7920764 commit ad791daCopy full SHA for ad791da
doc/Language/testing.pod
@@ -290,7 +290,12 @@ as a type object, or as a string containing its type name.
290
291
If an exception was thrown, it will also try to match the matcher hash, in
292
which the key is the name of the method to be called on the exception, and
293
-the value is the value it should have to pass.
+the value is the value it should have to pass. For example:
294
+
295
+=begin code
296
+sub frodo { fail "Oops. Frodo dies" unless $destroys-ring };
297
+throws-like { frodo }, Exception, message => /dies/;
298
+=end code
299
300
=comment Someone needs to clarify the preceding paragraph, because I have
301
no idea what it is talking about... ;)
0 commit comments