03 2016 档案
摘要:(a) (b) 如果MAXPRIMES的值等于3,则n=5的时候将发生数组越界的错误,而n=3的时候程序将正常进行 (c) n=1 (d) Node Coverage TR={1,2,3,4,5,6,7,8,9,10,11,12,13} Edge Coverage TR={(1,2),(2,3),(
阅读全文
摘要:一、实验目的 1.下载Junit(4.12),Hamcrest(1.3),并将两个jar添加到项目中 2.写一个判断三角形形状问题的函数(等边三角形,等腰三角形,非等边三角形) 3.下载eclemma,并使用其判断程序的覆盖率 二、实验过程 1.下载junit-4.12.jar和hamcrest-a
阅读全文
摘要:第一个程序的错误是i>0,i的取值应该是从0开始的,所以这里应该是i>=0。test: x=null does not execute the fault.test: x=[2,3,2];y=2 executes the fault, but does not result in an error
阅读全文
摘要:我印象最深刻的error就是JAVA中equals和==的区别。 这是我在写web大作业时出现的错误: 1 public void doPost(HttpServletRequest request, HttpServletResponse response) 2 throws ServletExc
阅读全文