% testDistance.m test distance.m % P. Conrad for CISC106, sect 99, 09/25/2007 % Test formula to calculate the distance between two points % in the cartesian plane. Use performDiffTest function to % partially automate the testing. % Use tolerance of 0.001 since calculation involves a square root. performDiffTest( distance(1,5,-2,1), 5, 0.001, '1'); performDiffTest( distance(-2,-3,-4,4), 7.28, 0.001, '2'); % end testDistance.m