Skip to content
Snippets Groups Projects
Commit 958fff97 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

heap fix

parent de69ca02
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ class TestHeap(unittest.TestCase):
tb = [(10, 'ala'), (20, 'ma'), (30, 'kota'), (5, 'yo')]
tbh.push_many(tb)
self.assertEqual(sorted(tb), list(tbh.iter_ascending()))
self.assertEqual(sorted(tb, reverse=True), list(tbh.iter_descending()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment