Skip to content
Snippets Groups Projects
Commit 2e2494e5 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Made assert message optional

parent 4da588ad
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
#@ return builtin_assert.fail(msg)
#@ end
#@ def assert(cond, msg):
#@ def assert(cond, msg="Assertion failed"):
#@ if not cond:
#@ return fail(msg)
#@ end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment