当MAXPRIMES等于3或4时。t2=(n=5)会越界。但t1=(n=3)不越界 n=1 节点覆盖{1,2,3,4,5,6,7,8,9,10,11,12} {(1,2),(2,3),(3,4),(4,5),(5,6),(6,4),(4,5),(5,7),(7,8),(8,2),(2,9),(9,1 ...
分类:
其他好文 时间:
2016-03-31 01:53:15
阅读次数:
185
作业题目:教材49页第7题a到d,并基于Junit及Eclemma实现一个主路径覆盖的测试一、Use the following method printPrimes() for questions a-f below (a) Draw the control flow graph for the ...
分类:
Web程序 时间:
2016-03-30 22:10:34
阅读次数:
624
一、题目要求 使用下面方法printPrimes()完成后面的问题(a)-(d): 代码如下: (a)画出流程控制图 (b)将MAXPRIMES设为4,这样t2=(n=5)就会出现数组越界的错误,但t1=(n=3)无影响。 (c)n=0判断时会不满足numPrimes < n的循环条件,因此不会进入 ...
分类:
其他好文 时间:
2016-03-30 16:27:22
阅读次数:
109
7:题目 Use the following method printPrimes() for questions a-d; (a)为printPrimes()画控制流程图。 (b)考虑测试用例t1=(n=3)和t2=(n=5)。即使这些测试用例游历printPrimes()方法中相同的主路径,他们 ...
分类:
其他好文 时间:
2016-03-30 14:33:27
阅读次数:
147
import java.util.Scanner;public class TestScanner { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub i ...
分类:
其他好文 时间:
2016-03-30 14:31:02
阅读次数:
119
class Employee{ int number; String name; int xinshui; int zengzhang; public void tell(){ System.out.println("编号:"+number+",姓名:"+name+",薪水:"+xinshui+", ...
分类:
其他好文 时间:
2016-03-30 12:26:09
阅读次数:
120
这次作业主要是根据代码,画出控制流图,并涉及计边覆盖,点覆盖,主路径的知识。 具体作业内容如下 一 画出控制流图 二、设计一个t2=(n=5)比t1=(n=3)容易发现发现的错误 三、写一个测试用例,使相应的测试路径访问连接while语句开始到fot语句得边,而不用通过while的循环体 t:n=1 ...
分类:
其他好文 时间:
2016-03-29 23:48:50
阅读次数:
220
import java.util.Scanner; public class Practice { } ...
分类:
其他好文 时间:
2016-03-28 21:38:17
阅读次数:
147
import java.util.Scanner;public class testscanner { /** * @parm args */ public static void main(String[] args) { int nextValue; int sum = 0; Scanner s ...
分类:
编程语言 时间:
2016-03-28 21:33:02
阅读次数:
196