MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / has_equal_part

Function has_equal_part

pythonwhat/checks/has_funcs.py:61–72  ·  view source on GitHub ↗
(state, name, msg)

Source from the content-addressed store, hash-verified

59
60
61def has_equal_part(state, name, msg):
62 d = {
63 "stu_part": state.student_parts,
64 "sol_part": state.solution_parts,
65 "name": name,
66 }
67
68 state.do_test(
69 EqualTest(d["stu_part"][name], d["sol_part"][name], FeedbackComponent(msg, d))
70 )
71
72 return state
73
74
75# TODO: shouldn't have to hardcode message

Callers 1

test_argsFunction · 0.90

Calls 1

EqualTestClass · 0.90

Tested by 1

test_argsFunction · 0.72