Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 LegacyserverSystem JIRAcolumnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolutionserverId6df7ba0d-c6df-39f5-b19f-bb96d235af5fkeyhttps://uwmidsun.atlassian.net/browse/SOFT-420

Aside: the TEST_CASE macro is defined in test_helpers.h, so you’ll have to include it.