Commit 9e217bfb by sikang

bug fix

parent e228506e
......@@ -46,7 +46,7 @@ def get_rand_code(isInFunc):
code += "if(\"" + filed_name + "\".equals(\"" + gen_rand_str() + "\")){}//interference code\n"
else:
if random.randint(0, 10) % 2 == 0:
code += "while(" + filed_name + "++<" + str(filed_value) + "+1){}"
code += "while(" + filed_name + "++<" + str(filed_value) + "+1){}\n"
else:
index = gen_rand_str()
code += "for(int " + index + "="+str(filed_value+1)+";"+index+"<"+filed_name+";"+index+"++){}//interference code\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment