Description Usage Arguments Details Value Author(s) Examples
Test that an expression throws an error
1 |
call |
An expression to evaluate |
regex |
A regular expression to match the error against. If omitted then don't test the exception text. |
testname |
A name for the test. Defaults to deparsing the call. |
Test that an expression throws an error.
Runs one or two tests (the second test to match the error message against regex, if it was provided and if an error was successfully thrown).
Brad Friedman
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.