% testSlope.m  Peggy Hill for CISC106, sect 99, Arlen Comm. College
% regression/acceptance testing for slope.m
  
if (slope(2,2,4,4)==1)
  fprintf('passed\n');
else
  fprintf('failed\n');
end

if (slope(3,1,5,5)==2)
  fprintf('passed\n');
else
  fprintf('failed\n');
end

try
   x = slope(1,4,1,5);
   fprintf('failed\n'               );   % <== fill in some code here
catch
   fprintf('passed\n'               );   % <== fill in some code here
end


  


