Check if an argument is NULL, if not checks if it is of expected value.
Arguments
- x
Function argument that is being asserted.
- arg_value
Expected argument value.
- add_msg
Is an additional message that can be printed over the standard function error message. You can:
pass the names of the arguments that failed the test by using
{x_names}in the message body (e.g. "What are the {x_names}");pass the tested value by using
{arg_value}in the message body (e.g. "I want them to be {arg_value})"pass the values of the arguments that failed the test by using
{wrong_value}in the message body (e.g. "{wrong_value} is wrong")