Been hitting my head on the wall before as I don’t make any test classes while using c/c++ (but instead have a lot of print methods).
What is the most used method to perform testing in the c/c++ code? Java’s JUnit has only left me with good memories while debugging things.
I know that using asserts in code with a defined debug header should work, but aren’t there any better ways?
And since I have the intention to make test classes in the future, any useful tips are welcome.
You can check these out:
http://gamesfromwithin.com/?p=29
http://www.opensourcetesting.org/unit_c.php
http://msdn.microsoft.com/en-us/magazine/cc136757.aspx