MDL-37157: Normalize short answers before comparison
authorDidier Raboud <didier.raboud@liip.ch>
Tue, 18 Dec 2012 13:32:15 +0000 (14:32 +0100)
committerDidier Raboud <didier.raboud@liip.ch>
Tue, 18 Dec 2012 17:44:15 +0000 (18:44 +0100)
commit5a449045c220bc4581372456d04ca47b01b4489e
tree22801267ec31e861b754e832aec3148e26f885cc
parent20751863e3a34a2b67bf17bae52d7d51eb1b0574
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