Unit Testing

From AstroBaki
Revision as of 17:12, 20 January 2014 by Aparsons (talk | contribs)
Jump to navigationJump to search

The basic idea of unit testing is to verify that a piece of code works the way it is supposed to work. That is, have the code try to solve the a problem with a known answer, and if the code does not give the right answer, it does not work. There is a module for doing this in python called unittest (or, alternatively, PyUnit).