7
© 2003 John D. McGregor
Unit tests – functional tests
 Based on the public interface of the unit
 
 public int largest(int a, int b, int c)
 
 Test cases sample from the “domain” of the input
 Possible inputs are divided into equivalence classes
 
 a b c correct answer
 1 3 5 5
 1 5 3 5
 5 1 3 5
 5 3 1 5