Related Definitions Test Code means randomly generated numeric combinations that serve as a personalised security feature used for the purposes of identification of a Customer in the framework of communication between the Bank and the Customer by fax or by e-mail.
How to write a test in CUnit for a function that prints to stdout, to verify its output?
Example function to test:
void print()
{
printf("Hello world");
}
Its unit test should somehow verify that "Hello world" was printed to the console:
void test_print()
{
// how to assert?
}
How should I go about it?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With