Overview
--------

This tree contains unit tests.

To compile and run the tests, do 'meson test -C build'.  One suite of
them runs with --suite, e.g. 'meson test -C build --suite src/editor',
and one test by its name, e.g. 'meson test -C build edit_fold'.

IMPORTANT: To compile the tests, you need to have the "Check" unit
testing framework[1] installed.[2] If you have it installed, you will see
"Unit tests: YES" in the summary of "meson setup"; if you don't see this,
you won't be able to compile the tests.[3]

Tips and tricks
---------------

* To be able to step with the debugger into test code, see [4]. E.g., do:

    $ export CK_FORK=no

[1]: https://libcheck.github.io/check/
[2]: Your package manager likely has it.
[3]: Every test here uses this framework.
[4]: https://stackoverflow.com/questions/1649814/debugging-unit-test-in-c-using-check
