Unit Test Activity 1
Overview
The purpose of this activity is to become acquainted with the unit test framework that
we will be using for the rest of the term. This framework will be used in the mid-term practicum.
Requirements
- All of the software you need to write is in unit_tests.c and functions_to_test.c
- Work incrementally to make your life less painful!
- Fix the error in the example_2 function.
- Implement the test_for_bit_value function.
- Implement the swap_case_in_string function.
- Implement unit tests 9 and 10 per the instructions in unit_tests.c.
These are two additional tests for the swap_case_in_string function.
Startup Code
Rubric and Late Policy
100 possible points as described below. Your code must compile, link, and run without blowing up.
You will receive a zero if your code does not compile, link, and run without crashing.
- 10 -- Correct example_2 function
- 20 -- Implement test_for_bit_value function.
- 35 -- Implement swap_case_in_string function.
- 10 -- Create two valid unit tests 9 and 10 for the swap_case_in_string function
- 10 -- Code compiles without warnings.
- 15 -- The code uses good variable naming and formatting.
- Late penalties of 5% per day apply.
Submission
Submit your updated functions_to_test.c and unit_tests.c files to the Unit Test Activity 1 dropbox.