The art of software testing Reading Notes (1)

Source: Internet
Author: User
Chapter 1 Self-Test

Test A small triangle type.ProgramThe program reads three integers from the dialog box, representing the three sides of the length, output the type of the triangle, that is, not equal side, equal waist, equilateral triangle.

The book should include the following points:

  1. There is a test case that forms a valid Non-equi triangle.
  2. There is a test case that forms a valid equi triangle.
  3. There is a test case that forms a valid isosceles triangle.
  4. At least three test cases are a legal arrangement of the three sides of the isosceles triangle (such as 3, 3, 4; 3, 3; 4, 3, 4, 3, 4, 3 ).
  5. There is a test case with one side being 0.
  6. There is a negative test case.
  7. The three sides of a test case are positive numbers, and the sum of the two sides is equal to the third side.
  8. At least three test cases are in the full arrangement of 7th.
  9. The three sides of a test case are positive numbers, and the sum of the two sides is smaller than the third side.
  10. At least three test cases are in the full arrangement of 9th.
  11. There is a test case where all three sides are 0.
  12. At least one test case contains non-integer values.
  13. One test case provides less than or more than three numbers.
  14. Each test case should have an expected output relative to the input.

I did not consider 4, 8, 10, and 14, but two more than the average (7, 8) of professional programmers, but I also thought that the input is not a number, it seems that I have a little understanding about testing :)

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.