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
202 stars 117 forks source link

Capitalised functions marked as incorrect when "allow unknown function names" is off #808

Closed georgestagg closed 3 years ago

georgestagg commented 3 years ago

Create a mathematical expression part where the answer is something like e^(-x). When "Allow unknown function names" is on:

But, when "Allow unknown function names" is off:

I would expect "Exp" to be correct either way.

christianp commented 3 years ago

Thanks for spotting this. The expand_juxtapositions routine was case-sensitive, which it shouldn't be.