File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed
main/java/com/thealgorithms/datastructures/heaps
test/java/com/thealgorithms/datastructures/heaps Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,6 @@ private void upHeapify(int ci) {
4141 }
4242 }
4343
44- /**
45- * Displays the contents of the heap.
46- */
47- public void display () {
48- System .out .println (this .data );
49- }
50-
5144 /**
5245 * Returns the number of elements in the heap.
5346 *
Original file line number Diff line number Diff line change @@ -82,12 +82,4 @@ void testUpdatePriorityForNonExistentItem() {
8282 Exception exception = assertThrows (IllegalArgumentException .class , () -> heap .updatePriority (100 ));
8383 assertEquals ("Item not found in the heap" , exception .getMessage ());
8484 }
85-
86- @ Test
87- void testDisplay () {
88- heap .add (10 );
89- heap .add (20 );
90- heap .add (5 );
91- heap .display (); // Just checking no exceptions are thrown.
92- }
9385}
You can’t perform that action at this time.
0 commit comments