Software Engineering class Assignment (iii)--RIGHT-BICEP test

Source: Internet
Author: User

First, test method: Right-bicep

Right-is the result correct?
B is all the boundary conditions correct?
Can I check the inverse association?
C-Can you cross-check the results with other means?
E-Can you force error conditions to occur?
Does p meet performance requirements?

Second, the test module: Custom printing of the number of topics

1     //number of topics that can be customized for printing2printf"Please enter the number of topics to print:"); 3scanf"%d", &a[0]);4      while(a[0]<=0)//the number of questions must be positive5     {6printf"Please re-enter the number of valid questions:");7scanf"%d", &a[0]);8};

Third, test content: negative (-100), 0, positive (80)

As you can see, when the user enters a negative number or 0 o'clock, an error occurs, and the user is prompted to enter the correct value, and when the number entered is positive, it is executed down.

Software Engineering class Assignment (iii)--RIGHT-BICEP test

Related Article

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.