Miscellaneous
Tests
You can write unit tests for code in test
blocks.
A test
can also be marked summon
or
trusted
if necessary.
A test with extern
modifiers will only run if those externs are available.
All test
blocks in all imported files are included.
(The below example runs more than 2 tests, becuase it picked up some tests from the standard library.)
The standard import
All Crow modules automatically import the file include/crow/std.crow
from where you downloaded Crow.
You can turn this off by writing no-std
at the top of a file;
though there's no real reason to do so.
(This does not disable the runtime, which is still used implicitly.)