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
200 stars 118 forks source link

Boolean 'not' operator does not display correctly in Numbas.jme.display.texify #422

Closed graemechester closed 8 years ago

graemechester commented 8 years ago

I have been experimenting with writing custom scripts to use JME for checking Boolean expressions, it seems to be working OK but the input box won't accept '!' or 'not' operators. The error message reads:-

texOps[tok.name.toLowerCase(...)] is not a function

I traced this through and found that both ops are translated to 'not', though only '!' is define in texOps. Both the editor and runtime are affected.

christianp commented 8 years ago

Whoops, can't think how long that's been broken! Fixed it. Thanks for letting me know.

graemechester commented 8 years ago

Thanks for the quick response – looks like no-one else is using Booleans!

Kind regards,

Graeme Chester

Dr. E.G. Chester, School of EEE, Newcastle University Tel: 0191 208 7325 Email: graeme.chester@ncl.ac.ukmailto:graeme.chester@ncl.ac.uk

From: Christian Lawson-Perfect [mailto:notifications@github.com] Sent: 12 January 2016 15:22 To: numbas/Numbas Numbas@noreply.github.com Cc: Graeme Chester graeme.chester@newcastle.ac.uk Subject: Re: [Numbas] Boolean 'not' operator does not display correctly in Numbas.jme.display.texify (#422)

Whoops, can't think how long that's been broken! Fixed it. Thanks for letting me know.

— Reply to this email directly or view it on GitHubhttps://github.com/numbas/Numbas/issues/422#issuecomment-170945277.