]> git.mjollnir.org Git - moodle.git/commit
numerical and shortanswer question types: problems with compare_responses and test_re...
authortjhunt <tjhunt>
Fri, 12 Dec 2008 03:48:39 +0000 (03:48 +0000)
committertjhunt <tjhunt>
Fri, 12 Dec 2008 03:48:39 +0000 (03:48 +0000)
commitbe8563b63a3c0c4c2d8f05602bfc3d8fb6aa8b72
tree06a9751d4cae59385fe8523d138cf5af0b6af463
parentf77b3caa37e765c24e4071607144c51848f1bf99
numerical and shortanswer question types: problems with compare_responses and test_response.

MDL-15315 The previous fix for this issue with wildcard answers in the item analysis report caused the following two regressions. This patch fixes it properly.

MDL-17247 This is basiclly pointing out the weridness in the previous fix and gave some useful clues as to a proper solution. Thanks Oleg.

MDL-17610 This was a report of a problem with each attempt builds on last, with a shortanswer question, where the sutdent's response contains a '.

Also, lots of unit tests to try to ensure the new code is right.
question/type/numerical/questiontype.php
question/type/shortanswer/questiontype.php
question/type/shortanswer/simpletest/testquestiontype.php