Advanced C Programming

Summer 2023 ECE 264 :: Purdue University

This is a past semester (Summer 2023)
Due 7/9

Mini-unit: unit testing resubmit

About this homework

RE01 is a chance to resubmit HW07 after viewing your score to get back the majority of lost credit. We encourage using your miniunit in later homeworks, but inevitably some students will feel its faster to test without miniunit than it would be to fix your miniunit. Ultimately, it will end up taking more time in the long run to test without a working test framework, so this assignment is meant to incentivise fixing it before moving onto later homeworks.

This homework is at the same time as HW09 as the intention is you will make fixes to your miniunit during your HW09 testing. Assuming you mostly understood HW07, it should not take you long to make those fixes. If you are confused on why you are failing a test in HW07, or you need help getting your miniunit working, feel free to ask in office hours.

About RE01

The requirements for RE01 are exactly the same as HW07, except you submit your final code to RE01.

Requirements

Refer to the "Requirements" section from HW07.

Submit

To submit RE01 from within your re01 directory, type 264submit RE01 miniunit.h clog.h test_count_words.c

Pre-tester

The pre-tester for RE01 has been released and is ready to use.

A pretester has been enabled for RE01 to ensure that your miniunit.h does not have any major errors preventing it from compiling with our tests. This is not a subsitute for testing the requirements, but it may help for those who were getting compiler errors.

Q&A

  1. How much credit will this be worth?

    This homework will let you earn back some of the points you lost on HW07. It will not increase your score beyond what a 100% on HW07 would have gotten you. Your final grade for HW07 will be the higher grade of the grade between HW07 and RE01. This means if you do not improve your miniunit, your score will not improve.
  2. Should I still do this homework if I did well on HW07?

    If you got a perfect score on HW07, there is no reason to do this homework as your grade will not improve. If you scored less than perfect on HW07, you are encouraged to make a resubmission as most of the tester cases are to prevent bugs in your miniunit from preventing you from testing later homeworks.
  3. Can I simply copy my submission to RE01?

    To earn credit on RE01, you must either:
    • Be passing every test case giving you 100%.
    • Be passing more tests with your than you were passing on HW07.
    In other words, unless your HW07 was late but perfect otherwise, you should improve your code before submitting to RE01.
  4. Why is the submission on the scores page not my latest submission?

    The grader always shows your best submission. If you had a late submission, it is possible it was passing more tests but scored less due to the late penalty.
  5. I do not understand why I am failing a test?

    Please come to office hours and we can help you debug the issue.
  6. Will you allow improved resubmissions like this on future homeworks?

    I may do that, but do not rely on it.

Updates

Clarifications or corrections may be posted here.