Question: Write a single complete C file containing automated unit tests for the functions from mystring.h . Cover all the types of test cases we have

Write a single complete C file containing automated unit tests for the
functions from mystring.h. Cover all the types of test cases we have learned as
thoroughly as possible, and organize your tests into functions called from a main
program. Write the main program as well.
You may call the following functions after including a header file "tests.h" where
the first four are identical to those used in the assignments and model solutions.
VERIFY_INT(expected, test) and VERIFY_STR(expected, test)will
compare the test value to expected; test may be a function call.
VERIFY_NULL(test) and VERIFY_NOT_NULL(test)will compare the test to
NULL; test may be a function call.
print_summary() prints a summary showing the number of tests passed and
failed; you do not have to count this yourself.
You can choose a testing-appropriate value for MAX_STRING_LENGTH here.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!