package paradigm_project3;

/**
 * Created by yichenzhou on 9/28/16.
 */
public class TestClass {
    public static void main(String args[]) {
        PriorityQueue queue = new PriorityQueue();
        String[] names = new String[] {"Karen Rose", "Cora Faison", "Donna Jones", "Robert Lowe", "Patricia Johnston", "Maryanne Hicks", "James Mcmurray", "Maria Obando", "Lenora Reiter", "William Demers"};
        Integer[] priorities = new Integer[] { 12, 11, 49, 31, 17, 40, 53, 77, 76, 33};

        for (int i = 0; i < 10; i++) {
            queue.enqueue(names[i], priorities[i]);
        }

        PriorityQueue.Node dequeuedNode = queue.dequeue();

        System.out.println("Dequeued: The highest priority: " + dequeuedNode.priority + "; Node's name: " + dequeuedNode.name);
        System.out.println(queue.count + " elements left in Queue.");

        PriorityQueue copy = queue.clone();
        if (queue.equals(copy)) {
            System.out.println("Test for equal() and clone() succeed.");
        } else {
            System.out.println("Test for equal() failed.");
        }
        System.out.println("Test for toString(): " + queue.toString());
        System.out.println("Test for hashCode(): " + queue.hashCode());
        int[] arr=new int[3];
        System.out.println(arr.toString());
    }


}

@@ -843,17 +843,16 @@
 eue.%22);%0A
-%0A
         
@@ -882,24 +882,93 @@
 eue.clone();
+%0A%0A        System.out.println(%22Test for clone(): %22 + copy.toString());
 %0A        if 
@@ -1306,73 +1306,8 @@
     
-int%5B%5D arr=new int%5B3%5D;%0A        System.out.println(arr.toString());
 %0A   

Add test for clone