test_script hw2 - .. y = myMult(9,2); % y should equal 18...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Test Script % % Since you can't run your functions by pressing F5 (they need input), you % are encouraged to write a test script to help you test your functions. % You can simply open this script and press F5, and all of your code will % be tested at once. After running this script the variables defined % within will appear in the workspace window just like they did for % homework 1. For this homework assignment we'll get you started with an % example. % % If I want to test the included myMult function.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: .. y = myMult(9,2); % y should equal 18 after I run this script. I can check % this by checking the workspace window after pressing F5. % You should fill out this test script with test cases from your other % functions. Use the included test cases, and write your own too. % % Problem 1. (I wrote two tests for you; uncomment them and use them.) % gallons1 = paintHouse(30,50,10,8,2,3); % gallons2 = paintHouse(10,10,10,0,4,5); % % Problem 2. % % Problem 3. % % Problem 4....
View Full Document

This note was uploaded on 02/26/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online