mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-08-01 18:49:39 +08:00
style: enable MethodName
in CheckStyle (#5182)
enabled: MethodName in CheckStyle
This commit is contained in:

committed by
GitHub

parent
ea4dc15a24
commit
295e7436b1
@ -14,14 +14,14 @@ public class LeftistHeapTest {
|
||||
heap.insert(2);
|
||||
heap.insert(3);
|
||||
heap.insert(1);
|
||||
heap.in_order();
|
||||
Assertions.assertTrue(heap.in_order().toString().equals("[6, 2, 3, 1]"));
|
||||
Assertions.assertTrue(heap.extract_min() == 1);
|
||||
Assertions.assertTrue(heap.in_order().toString().equals("[6, 2, 3]"));
|
||||
heap.inOrder();
|
||||
Assertions.assertTrue(heap.inOrder().toString().equals("[6, 2, 3, 1]"));
|
||||
Assertions.assertTrue(heap.extractMin() == 1);
|
||||
Assertions.assertTrue(heap.inOrder().toString().equals("[6, 2, 3]"));
|
||||
heap.insert(8);
|
||||
heap.insert(12);
|
||||
heap.insert(4);
|
||||
Assertions.assertTrue(heap.in_order().toString().equals("[8, 3, 12, 2, 6, 4]"));
|
||||
Assertions.assertTrue(heap.inOrder().toString().equals("[8, 3, 12, 2, 6, 4]"));
|
||||
heap.clear();
|
||||
Assertions.assertTrue(heap.isEmpty());
|
||||
}
|
||||
|
Reference in New Issue
Block a user