Catching up

I’m catching up with my work ever so slightly. Today i managed to get down to school during the morning despite my leg acting up and got some good job done during the day.

During the morning i went through the erase function of my binary search tree and fixed some of the cases who had the wrong instructions or had instructions which only worked on the high side of the tree.
In the afternoon we had a brief lecture in lighting, how an object is lit using phong lighting, what values the object has and how they change the way light reflects off the object. I understood pretty much all of it, mostly because there were a lot of pictures and a lot of the things tied in with what we learned during our earlier math course.
After the lecture the time was only 2PM so i stayed in the lecture hall and worked on the unit testing for my functions. By the end of the day i was done. Or so i hope at least. After every function i preform in the main i run another function from the main which compares the result to an expected result which is added beforehand.
The comparison function is pretty much the same as the one we received as part of the course material.
It takes two generic values and a string, it then calls another generic bool function using the two values which simply returns true if the two values are equal. Depending on what the second function returns a message is displayed which differs depending on the results of the second function. This message includes the string from the argument list for identification.
I hope this is the way we were intended to do with our unit testing, i’ll have someone look at it tomorrow.
Tomorrow i will also get Visual Leak Detector installed so i can search my code for memory leaks and remove them properly. Then i will finally be able to start working on the web-server.