MDL-37157: Normalize short answers before comparison
authorDidier Raboud <didier.raboud@liip.ch>
Tue, 18 Dec 2012 13:32:15 +0000 (14:32 +0100)
committerDan Poltawski <dan@moodle.com>
Mon, 7 Jan 2013 06:00:26 +0000 (14:00 +0800)
commit7db20e007358cb558ce0292e6f806e45b544d931
tree547b9f49819c0619858d06658e288699c02f5ced
parent1f1dc87fc18589d68d8aa490984f61fdb8477fd7
MDL-37157: Normalize short answers before comparison

This ensures that ambiguous Unicode representations can be compared sanely.
Also add some tests to ensure it keeps working.

Thanks to Tim Hunt for the syntax check.
question/type/shortanswer/question.php
question/type/shortanswer/tests/question_test.php