...
This is because our old version of the Unity test framework (http://www.throwtheswitch.org/unity) literally copies the arguments you put in the TEST_CASE
call to the generated test runner file, which runs your tests. It doesn’t have access to any of the symbols defined in your test file, but it does include everything your test file does. It’s also really dumb, so it does silly things like not recognizing multiple line TEST_CASE
calls, and interpreting }
as marking a new line.
A lot of this weirdness will be fixed when we update Unity: Jira Legacy
Aside: the TEST_CASE
macro is defined in test_helpers.h, so you’ll have to include it.