Commit bd555b17 by nzy

step1: evaluate code: fix a small bug

parent 8db3b29c
......@@ -67,9 +67,8 @@ def test_generation(args, debug=False):
print(f"Compilation failed, test framework exception = {repr(e)}{e}\n")
finally:
assert isinstance(curr_res, list)
problem_results = np.asarray(curr_res)
code_sample["eval_result"] = bool(np.all(problem_results > 0))
code_sample["eval_result"] = curr_res
return code_sample
......
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