In case your project uses a C99 compliant C compiler you can even combine all this in a single unit test function so you can easily oversee all details of the test.
in the context of the code example that follows the paragraph:
// ...
TEST_F(FFFTestSuite, when_value_custom_fake_called_THEN_it_returns_custom_output)
{
Time t;
Time getTime_custom_now;
void getTime_custom_fake(Time *now) {
*now = getTime_custom_now;
}
// ...
}
ISO C99 doesn't specify nested functions. Nested functions aren't included in C11, as well. They are a GCC extension.
Perhaps you want to change this sentence to something like: In case your project uses a C compiler that supports nested functions (e.g. GCC) you can even combine all this in a single unit test function so you can easily oversee all details of the test.
This statement from the README isn't accurate:
in the context of the code example that follows the paragraph:
ISO C99 doesn't specify nested functions. Nested functions aren't included in C11, as well. They are a GCC extension.
Perhaps you want to change this sentence to something like: In case your project uses a C compiler that supports nested functions (e.g. GCC) you can even combine all this in a single unit test function so you can easily oversee all details of the test.