CPSC 221, 2014W2
Lab5 (Minheap)
Addressing the Inadequate Unit Tests

Very little work for you to do
And will likely help with your HeapPriorityQueue, too

Mea culpa1

We have excellent beta testers in this course. When they find a bug or an error, it's like they solved a really hard puzzle. Simply put, they found that the Unit tests for lab5 were inadequate. In one case, a student had errors in all four of the methods to be implemented, and yet no unit test failed.

LEARN FROM THIS. The mere fact that some tests exist and say that your code is okay does not, in itself, mean anything at all. Maybe the tests are out-dated. Maybe they “pass” by default. Maybe some possible scenarios have not been considered.

I've tried to make this as painless as possible for you but there is some work for you to do if you want to actually understand these Priority Queues before you find yourself face to face with them on another Exam.

But FIRST: Back up your existing work, so you know you can get back to where you are now. This is almost always a very good idea, and very rarely a waste of time. (Note that there is an automated way to do everything outlined below EXCEPT completing the visit_tree method and fixing any bugs the new tests turn up. But it's not that much work to do manually and you should at LEAST know what's going to happen before you run some shell script.)

Assuming you are logged on to your ugrad account on our servers (whether you're local or remote), and your work is in ~/cs221/lab5 (i.e. there is a folder in your home directory called “cs221” and a sub-folder in that called “lab5”, and your work on this lab is in that folder), enter

Fri 27 Feb, 2015