The last few times the teacher is always talking about how to find bugs to clear the bug, but also carried out a small strong sweep activity, so I again review the construction of the Law on Unit testing content. Unit testing is a good way to ensure the stability of program code, and through this simple and effective method can make the code more perfect.
Before I learned the unit test, I always thought unit test is to write the code, when running the program, the input data program can give back to the user the correct results on the line, and other things are trivial, as long as the results are correct. According to the book, performing unit tests is to prove that the behavior of a piece of code is exactly the same as the developer expects. That is, if our code exceeds a certain number, we will find it difficult to find errors in the event of an error, if we test each function, we can find the error and correct the error.
The method of construction read Note 02