摘要: In this Experiment, I used RunWith(Parameterized.class) to finish the task. Problems I met in this lab: 1. Install Selenium IDE in FireFox and add Sel 阅读全文
posted @ 2017-03-24 18:11 IdeaL233 阅读(259) 评论(0) 推荐(0)
摘要: Install Junit and Eclemma 1.Junit and Hamcrest First download the junit-4.12.jar and hamcrest-all-1.3.jar and so on from https://github.com/junit-team 阅读全文
posted @ 2017-03-10 21:48 IdeaL233 阅读(330) 评论(0) 推荐(0)
摘要: Source code of printPrimes(int n): a) CFG: b) Let MAXPRIMES = 4. Then if we use t1=(n=3) to test the program, we won’t find a fault. But if we use t2= 阅读全文
posted @ 2017-03-10 21:07 IdeaL233 阅读(185) 评论(0) 推荐(0)
摘要: 题目: 解答: Program 1:(1) Fault: ‘for(int i=x.length-1;i>0;i--)’. It should be “i>=0”.(2) X=[],y=2. Expected=NullPointerException. Output=NullPointerExcep 阅读全文
posted @ 2017-02-25 16:11 IdeaL233 阅读(189) 评论(0) 推荐(0)
摘要: 令我印象最深刻的一次Bug,是在使用c++做作业时,需要用到一个if语句来判断某个浮点数是否等于1,于是我天真的写下了如下代码: 然而结果却并不令人满意,运行结果时对时错。我冥思苦想了很长一段时间,最后才恍然大误:记得老师在课上曾经讲过,浮点数在计算机内的存储并不是精确的,1有可能变成了0.9999 阅读全文
posted @ 2017-02-22 20:35 IdeaL233 阅读(720) 评论(1) 推荐(1)