/**
 * A driver that can be used to test the SectionComparator class
 *
 * @author  Prof. David Bernstein
 * @version 1.0
 */
public class SectionComparatorDriver
{
    /**
     * The entry point
     *
     * @param args  The command-line arguments (ignored)
     */
    public static void main(String[] args)
    {
       int[]              bA = {80, 30, 75, 95};
       int[]              oA = {40, 50, 90};

       int[]              bB = {40, 50, 60};
       int[]              oB = {70, 90, 80};

       int[]              bC = {90, 80, 100};
       int[]              oC = {70, 60, 50};


       int[]              bD = {50, 60, 70};
       int[]              oD = {70, 60, 50};

       SectionComparator  sc;
       

       sc = new SectionComparator();       
       
       System.out.println("\nTest Case A");
       System.out.println("  Bernstein:  Min= 30.0, Max= 95.0, Mean= 70.0");
       System.out.println("  Other:      Min= 40.0, Max= 90.0, Mean= 60.0");
       System.out.println("  Comparator: " + sc.compare(bA, oA));       
       
       
       System.out.println("\nTest Case B");
       System.out.println("  Bernstein:  Min= 40.0, Max= 60.0, Mean= 50.0");
       System.out.println("  Other:      Min= 70.0, Max= 90.0, Mean= 80.0");
       System.out.println("  Comparator: " + sc.compare(bB, oB));       

       
       System.out.println("\nTest Case C");
       System.out.println("  Bernstein:  Min= 80.0, Max=100.0, Mean=90.0");
       System.out.println("  Other:      Min= 50.0, Max= 70.0, Mean=60.0");
       System.out.println("  Comparator: " + sc.compare(bC, oC));       

       System.out.println("\nTest Case D");
       System.out.println("  Bernstein:  Min= 50.0, Max= 70.0, Mean=60.0");
       System.out.println("  Other:      Min= 50.0, Max= 70.0, Mean=60.0");
       System.out.println("  Comparator: " + sc.compare(bD, oD));       
      
    }
    
}
