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

Function test_check_call_lambda

tests/test_check_function_def.py:188–194  ·  view source on GitHub ↗
(stu, passes)

Source from the content-addressed store, hash-verified

186 "stu, passes", [("lambda a,b: 1", False), ("lambda a,b: a + b", True)]
187)
188def test_check_call_lambda(stu, passes):
189 s = setup_state(stu, "lambda a, b: a + b")
190 with helper.verify_sct(passes):
191 s.check_lambda_function().multi(
192 check_call("f(1,2)").has_equal_value(),
193 check_call("f(1,2)").has_equal_output(),
194 )
195
196
197def test_check_call_error_types():

Callers

nothing calls this directly

Calls 2

setup_stateFunction · 0.90
check_callFunction · 0.85

Tested by

no test coverage detected