|
Add fixtures.
Fixtures allow us to use a struct in combination with UTEST_F_SETUP and UTEST_F_TEARDOWN. This means we can instantiate a struct across multiple fixtures and use shared state between them all. The struct's fixture state is re-initialized for every testcase. |
|---|
|
|
| test/test.c |
|---|
| test/test.cpp |
|---|
| utest.h |
|---|