The method of construction read Note 02

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.