In Python I can add a custom message to an assertion to help with code development:
assert False, "Expected true"
How can I do the same in Julia?
From the documentation:
@assert false "Expected true"
@assert cond [text]Throw an
AssertionErrorifcondisfalse. Preferred syntax for writing assertions. Messagetextis optionally displayed upon assertion failure.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With