q.push( five ); assertEquals( "5 should be the only element of the list", five, q.pop() );
q.add(five); assertEquals("5 should be the only element of the list", five, q.pop());
	public void testMinQueue() {		LinkedPriorityQueue q = new LinkedPriorityQueue( LinkedPriorityQueue.MIN_QUEUE );		q.push( four );		q.push( three );		q.push( five );		assertEquals( "3 should come off first", three, q.pop() );		assertEquals( "4 next", four, q.pop() );		assertEquals( "5 next", five, q.pop() );		q.clear();		q.push( five );		assertEquals( "5 should be the only element of the list", five, q.pop() );		q.clear();		assertEquals( "Popping an empty queue gives null", null, q.pop() );	}