CS 108: Introduction to Computing Spring 2006 |
|||||||
Project #3 |
|||||||
The ProjectCreate an
Use the following questions from the Quick Quizzes to write some tests:
Each question should be written as a separate test method. Use the assertion comments to explain what (most likely) is being tested. Here's an example to get you started. Consider Question #16 of
Quick Quiz #3.3. In public void testQuestion16() { assertEquals("testing operator associativity", 0, 3 - 2 - 1); } If a Quick Quiz declares some variables, go ahead and declare those same variables in your code. You may have to declare the variables more than once in different test methods. If an expression for a question is invalid Java code, write a comment describing the error (instead of writing an assertion for it). |
|||||||
|