# | Line 102 | Line 102 | public class PriorityQueueTest extends J | |
---|---|---|
102 | ||
103 | public void testConstructor7(){ | |
104 | try { | |
105 | < | PriorityQueue q = new PriorityQueue(SIZE, new MyReverseComparator()); |
105 | > | MyReverseComparator cmp = new MyReverseComparator(); |
106 | > | PriorityQueue q = new PriorityQueue(SIZE, cmp); |
107 | > | assertEquals(cmp, q.comparator()); |
108 | Integer[] ints = new Integer[SIZE]; | |
109 | for (int i = 0; i < SIZE; ++i) | |
110 | ints[i] = new Integer(i); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |