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
205 stars 120 forks source link

Rather strange feedback #913

Closed msgj603 closed 2 years ago

msgj603 commented 2 years ago

Just putting this here in case it is useful. This arose when allowing an alternative answer for a matrix question. The alternative answer gains the full 2 marks, but I do not know where it got 1.5 marks from. image

christianp commented 2 years ago

Can you give me a link to the questoin on the editor, please?

msgj603 commented 2 years ago

It's part (c) of this question: https://numbas.mathcentre.ac.uk/question/121681/matrix-arithmetic-mixed-2/

christianp commented 2 years ago

Thanks! I've managed to reproduce it by setting a variable testing condition to get exactly the same expected answer as in your screenshot.

At the moment it looks like there's a bug to do with not fully clearing the feedback while marking alternatives, which is surprising, but I'm now at the end of my working week so I'll have to leave this until Monday.

christianp commented 2 years ago

Well, it took until Wednesday, but this is now fixed.

The code to apply feedback from an alternative didn't reset the part's credit to 0, so it was only reporting the amount awarded in addition to whatever the main part awarded.