% testMaxheightofBall.m   test maxHeightofBall.m
% S. Deffler for CISC106, sect 080, 10/01/2007

tolerance = 0.01;

% Test 1

expected = 5.102;
actual = maxHeightofBall(10);
diff = abs(expected-actual);

if (diff < tolerance)
  disp('test 1 passed');
else
  disp('test 1 failed');
  expected
  actual
end
  

% Test 2

expected = 13.06;
actual = maxHeightofBall(16);
diff = abs(expected-actual);

if (diff < tolerance)
  disp('test 2 passed');
else
  disp('test 2 failed');
  expected
  actual
end
  

% end testAreaOfPizza.m