numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
197 stars 118 forks source link

Destructured variables aren't re-evaluated during adaptive marking or explore mode #1075

Closed christianp closed 5 months ago

christianp commented 5 months ago

An example with adaptive marking: https://numbas.mathcentre.ac.uk/question/share/view/5be5a8cd-0fc2-4f6f-a938-1a19ecf938b1 I have a variable n, and then x,y := [2n,3n]. The variable n is replaced in adaptive marking for part b, but x and y aren't re-evaluated. The same happens in explore mode, when a variable value is replaced during a next part move.