MDL-28942 qtype multichoice, multi-response. Avoid computing the wrong random guess...
commit8c412f122cc6acd0965c99190c0c16400554ccb4
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 17 Aug 2011 11:33:00 +0000 (17 12:33 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 23 Aug 2011 23:53:26 +0000 (24 01:53 +0200)
tree920abd8bdb576de234f4c15361684c2862d212f0
parent7a4a1f14ca2e772e5d24c20c422d19cd9ec314fa
MDL-28942 qtype multichoice, multi-response. Avoid computing the wrong random guess score.

It is effectively impossible to compute the right random guess score, so we should not compute anything, rather than computing a number that we know is wrong.

This patch also fixes a multianswer unit test error that was shown up by this fix.
question/type/multianswer/simpletest/testquestiontype.php
question/type/multichoice/questiontype.php
question/type/multichoice/simpletest/testquestiontype.php