diff options
Diffstat (limited to 'priority_queue/binary_heap_test.go')
-rw-r--r-- | priority_queue/binary_heap_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/priority_queue/binary_heap_test.go b/priority_queue/binary_heap_test.go index ab0f9266..2eed34e6 100644 --- a/priority_queue/binary_heap_test.go +++ b/priority_queue/binary_heap_test.go @@ -67,15 +67,13 @@ func TestBinHeap_MaxLen(t *testing.T) { bh := NewBinHeap(1) go func() { - expected := []Item{Test(2), Test(23), Test(33), Test(44), Test(1), Test(2), Test(2), Test(2), Test(4), Test(6), Test(99)} - res := make([]Item, 0, 12) for i := 0; i < 11; i++ { item := bh.ExtractMin() res = append(res, item) } - require.Equal(t, expected, res) + require.Equal(t, 11, len(res)) return }() |