This is a simple python heap implementation that is buggy.
This was written to help a friend who was learning how debug python code that contains tests.
This is the working
branch. The heap implementation here should work correctly with all the tests passing.
You can compare other branches to this branch to see the changes that were made to introduce the bugs.
https://github.com/marzvrover/buggy_pyheap/compare/working...<branch-name>
The only requirement is pytest
.
If you do not have a python environment set up, you can use the codespace for a fully set up environment.
This code is released under the MIT license. See the LICENSE file for more information.