MDL-40264 fix essay handling of zero-string response
authorKyle Temkin <ktemkin@binghamton.edu>
Fri, 21 Jun 2013 07:28:59 +0000 (03:28 -0400)
committerKyle Temkin <ktemkin@binghamton.edu>
Fri, 21 Jun 2013 07:39:23 +0000 (03:39 -0400)
commit3553982d6d2d7866b13efe20890bb62c2f979925
tree025472b016912ec3b1de58d67574aa9efa4ce2ae
parent6420fea64b5b026c3b91633cd2b66992e4d5ba74
MDL-40264 fix essay handling of zero-string response

Fixes an inappropriate behavior of the is_complete_response() function
for the Essay question type, which caused the string "0" to be
inappropriately marked as an incomplete response.

Also adds a set of unit tests for the Essay question type's
is_complete_response.
question/type/essay/question.php
question/type/essay/tests/question_test.php