博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Software Tesing HW2
阅读量:7060 次
发布时间:2019-06-28

本文共 689 字,大约阅读时间需要 2 分钟。

first program

 

fault:

 we can not reach the first element. the conditional statement should be i >= 0;

a test case that does not execute the fault:  x=null;

a test case that execute the fault, but does not result in an erroe state: x={3,4,5},y=5;

a test case that results in an error, but not a failure: x={3,4,5},y=1;

 

 

second program

 

fault:

it would found the first zero, the conditional statement should be(int i=x.length -1; i>=0; i-- )

a test case that does not execute the fault:  x=null;

a test case that execute the fault, but does not result in an erroe state: x={0}

a test case that results in an error, but not a failure: x={3,4,5}

 

转载于:https://www.cnblogs.com/duanyihai/p/6445456.html

你可能感兴趣的文章
open***
查看>>
开启golang之旅
查看>>
Android TableLayout表格布局
查看>>
我的友情链接
查看>>
对于Mysql大量数据查询速度慢的问题
查看>>
tomcat中的server.xml
查看>>
我的友情链接
查看>>
购物车--low版
查看>>
linux
查看>>
PHP中的替换strtr
查看>>
Apache和nginx 301重定向
查看>>
LINQ分页和排序,skip和Take 用法
查看>>
Activiti 查找流程状态(流程下一步)
查看>>
Delphi 密码限3次登录程序(附:源码)
查看>>
Linux中大量TIME_WAIT的解决办法
查看>>
Angular UI Route
查看>>
一个应届毕业生程序员的独白
查看>>
oracle的全局临时表
查看>>
python用sql的limit语句进行分页
查看>>
编译安装ZABBIX客户端(代理)
查看>>