diff options
author | Valery Piashchynski <[email protected]> | 2021-10-02 18:38:35 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-10-02 18:38:35 +0300 |
commit | 6e0b122a020fd90b7d8fd17f26bff49250a71300 (patch) | |
tree | 13592faf4cdf534a0ecb1d9f89b3ef8f9fd23032 /priority_queue/binary_heap_test.go | |
parent | 2cd9fd5cf3b734fa247701dafded853d5ef0a38d (diff) |
- Update dependencies
- Cleanup tests
Signed-off-by: Valery Piashchynski <[email protected]>
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 }() |