NetProg Spring 2004 HW1

Homework #1 FAQ

Question:

What kinds of tests are you going to run on our code?

Answer:

We will try to mess up your layers in all the ways we can think of, including the following:

  • sending varying sizes of messages/chunks
  • trying all possible byte values in the messages/chunks (including nulls!)
  • forcing lower layers to fail (return an error). Any time you call a lower level layer and get an error, you should return an error!
  • Checking for buffer overflow

Do not feel safe if all your testing is with the sample test programs. These programs only send strings (we will send all kinds of stuff). The test programs just call your top level layer once, does it work if it's called twice in a row ?