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

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

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

