We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8e13eb commit 686a96eCopy full SHA for 686a96e
1 file changed
pythonwhat/check_funcs.py
@@ -405,6 +405,20 @@ def has_equal_ast(incorrect_msg="FMT: Your code does not seem to match the solut
405
code: optional code to use instead of the solution AST
406
exact: whether the representations must match exactly. If false, the solution AST
407
only needs to be contained within the student AST (similar to using test student typed).
408
+
409
+ :Example:
410
411
+ Student and Solution Code::
412
413
+ dict(a = 'value').keys()
414
415
+ SCT::
416
417
+ # all pass
418
+ Ex().has_equal_ast()
419
+ Ex().has_equal_ast(code = "dict(a = 'value').keys()")
420
+ Ex().has_equal_ast(code = "dict(a = 'value')", exact = False)
421
422
"""
423
rep = Reporter.active_reporter
424
0 commit comments