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

"Maximum number of runs" in variable testing set to zero or without a value causes variable generation to fail #1049

Closed chrismgraham closed 8 months ago

chrismgraham commented 8 months ago

You can recreate by just removing the value from "Maximum number of runs" in the variable testing tab. We had a question where presumably the variable testing was temporarily used, but the "maximum number of runs" field was also cleared. All variables end up with "Testing condition not satisfied". The same is true if the value is set to zero.

Can we just ignore a testing condition if this is empty or zero?