Skip to content

Commit cabbd32

Browse files
committed
minor refactor
1 parent e3e0c6d commit cabbd32

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

data_structures/non_linear/trees/heaps/max_binary_heap.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ void main() {
9696
});
9797

9898
group('extract', () {
99-
test('should extract last item and sift-down', () {
99+
test(
100+
'should extract root item after swapping with last item, then sift-down',
101+
() {
100102
final heap = MaxBinaryHeap();
101103
// 41
102104
// 39 33

data_structures/non_linear/trees/heaps/min_binary_heap.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ void main() {
9696
});
9797

9898
group('extract', () {
99-
test('should extract last item and sift-down', () {
99+
test(
100+
'should extract root item after swapping with last item, then sift-down',
101+
() {
100102
final heap = MinBinaryHeap();
101103
// 6
102104
// 12 15

0 commit comments

Comments
 (0)