Prints an error message if the assertion fails, otherwise does nothing. Error message is of the format (and does not include the function call): "Error: <error_msg>"
1 | .my_assert(error_msg, test)
|
error_msg |
error message to print on failure |
test |
the value to test |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.