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

Function test_check_object_exotic_compare2

tests/test_check_object.py:49–58  ·  view source on GitHub ↗
(stu_code, passes)

Source from the content-addressed store, hash-verified

47 ],
48)
49def test_check_object_exotic_compare2(stu_code, passes):
50 output = helper.run(
51 {
52 "DC_PEC": "import numpy as np",
53 "DC_SOLUTION": "x = (np.array([1, 2]), np.array([3, 4]))",
54 "DC_SCT": "Ex().check_object('x').has_equal_value()",
55 "DC_CODE": stu_code,
56 }
57 )
58 assert output["correct"] == passes
59
60
61@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected