File tree 1 file changed +4
-3
lines changed
src/test/java/com/thealgorithms/datastructures/heaps 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
package com .thealgorithms .datastructures .heaps ;
2
2
3
3
import static org .junit .jupiter .api .Assertions .assertEquals ;
4
+
4
5
import org .junit .jupiter .api .Test ;
5
6
6
7
public class LeonardoHeapTest {
7
8
8
9
@ Test
9
- public < T extends Comparable < T >> void testEmpty () {
10
+ public void testEmpty () {
10
11
LeonardoHeap <Integer > heap = new LeonardoHeap <Integer >();
11
12
assertEquals (0 , heap .getHeapsize ());
12
13
}
13
14
14
15
@ Test
15
- public < T extends Comparable < T >> void testAddElement () {
16
+ public void testAddElement () {
16
17
LeonardoHeap <Integer > heap = new LeonardoHeap <>();
17
18
heap .addElement (5 );
18
19
heap .addElement (3 );
@@ -53,7 +54,7 @@ public void testHeapSize() {
53
54
}
54
55
55
56
@ Test
56
- public < T extends Comparable < T >> void testAddElementStrings () {
57
+ public void testAddElementStrings () {
57
58
LeonardoHeap <String > heap = new LeonardoHeap <String >();
58
59
heap .addElement ("z" );
59
60
heap .addElement ("a" );
You can’t perform that action at this time.
0 commit comments