Closed guidorice closed 2 months ago
Need to re-evaluate if this is feasible, after #17 .
It appears that -D MOJO_ENABLE_ASSERTIONS
does not currently work with mojo test
so I am closing this issue. In v24.4 the pytest-mojo
plugin will wrap the mojo test
cli utility.
This code from the README shows the opt-in behavior. In early mojo days, this option caused spurious errors and was not reliable.
I would like to convert this to a default and change it to an opt-out like:
The docs should also explain that this not any assertion, it's a Debug Assertion which the compiler can elide. (https://docs.modular.com/mojo/stdlib/builtin/debug_assert/debug_assert). Show some code snippets as well to explain the concept.