(stu_code, passes)
| 62 | "stu_code, passes", [("x = [1, 2, 3]", True), ("x = [1, 2, 3, 4]", False)] |
| 63 | ) |
| 64 | def test_check_object_custom_compare(stu_code, passes): |
| 65 | output = helper.run( |
| 66 | { |
| 67 | "DC_SOLUTION": "x = [4, 5, 6]", |
| 68 | "DC_CODE": stu_code, |
| 69 | "DC_SCT": 'Ex().check_object("x").has_equal_value(func = lambda x,y: len(x) == len(y))', |
| 70 | } |
| 71 | ) |
| 72 | assert output["correct"] == passes |
| 73 | |
| 74 | |
| 75 | def test_check_object_single_process(): |