pedal-edu / pedal

A collection of tools to analyze student's Python source code
https://pedal-edu.github.io/pedal/
MIT License
29 stars 7 forks source link

function diving in Cait #5

Closed lukesg08 closed 5 years ago

lukesg08 commented 6 years ago

pedal.cait

Tree matching isn't working properly when diving into function arguments. Created test_function_diving test case (that should currently fail).

student_code1 = "print(report['station'])"
matcher1 = StretchyTreeMatcher("___[__expr__]")
matches01 = matcher1.find_matches(student_code1)
lukesg08 commented 5 years ago

Fixed by fixing cutting mechanisms in code.