摘要:
(a) Draw the control flow graph for the printPrime() method. (b) Consider test cases ti = (n = 3) and t2 = ( n = 5). Although these tour the same prim 阅读全文
摘要:
1.实验要求 安装junit(4.12),Hamcrest(1.3); 安装 Eclemma; 写一个java程序用于判断一个三角形是否是等边、等腰或斜角,并用junit进行软件测试; 2.实验过程 安装junit(4.12)、Hamcrest(1.3) 下载junit和Hamcrest的jar包, 阅读全文
摘要:
program 11.fault:没有判断i=0的情况2.不会执行fault的例子:x=null y=23.执行fault但是不会造成error的例子:x={1} y=24.造成error但没有造成failure的例子:x={1,2,3} y=2 program 21.fault:输出的是数组里第一 阅读全文