A test program for PIE on a pair project

Source: Internet
Author: User

Project requirements:

Construct the program, respectively:

Fault cannot be triggered.

Triggers the fault, but does not trigger the error.

Triggers the error, but does not produce failure.

Pairs of objects: Chiuyue No.: 2013110404 Blog Address: http://www.cnblogs.com/Issing/

contribution ratio:1:1

Pair programming Photos:

Source:

Analysis: The control conditions for the for loop of code 19 lines i > 0 here should be i>=0, otherwise the element labeled 0 will not be accessed;

1. Fault test cases are not triggered:

str = NULL;

2. Fault triggered but no error triggered

str = "Pictures";

The expectation is 7, and the actual is 7.

3. Error triggered but no trigger failure

str = "We are One";

The expectation is-1, actually also-1

A bit of achievement Study time Newly written lines of code Blog Volume Learn the point of knowledge
First week 11 0 0 Software
Second week 12 0 1 Software
Third week 12 0 1 Software
Week Four 12 100 1 Software
Week Five 11 0 0 Software
Week Six 11 210 0 Compilation principle
Seventh Week 13 56 1 Software
Eighth Week 13 26 1 Software Testing

A test program for PIE on a pair project

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.