Skip to contents

Function that returns the assertion fail on the specified type. This can be with an AssertCollection, a warning or a stop.

Usage

assertion_message(message, assertion_fail = "stop")

Arguments

message

The assertion message to return.

assertion_fail

The type on which the assertion is returned. The possible ways are "AssertCollection", where the message belongs to an assertion collection is added, "warning", giving only a warning and the function continues, or "stop", where the function stops and returns the message.