% testCountNegativeNumbers.m
% regression/acceptance test for countNegativeNumbers.m
% S. J. Cat, CISC106, sect 99, 11/06/2006

fprintf('Test 1: ');
if (countNegativeNumbers([1 -3 0 -5 6])==2)
  fprintf('passed\n');
else
  fprintf('failed\n');
end
 

fprintf('Test 2: ');
if (countNegativeNumbers(-3:1:3)==3)
  fprintf('passed\n');
else
  fprintf('failed\n');
end
 
fprintf('Test 3: ');
if (countNegativeNumbers([1 3 5])==0)
  fprintf('passed\n');
else
  fprintf('failed\n');
end
 

