shortanswer qtype: Add the problem case from http://moodle.org/mod/forum/discuss.php?d=120557 to the unit tests.

This commit is contained in:
tjhunt 2009-04-06 02:03:10 +00:00
parent 4429b23770
commit f13b675702

View File

@ -66,6 +66,9 @@ class question_shortanswer_qtype_test extends UnitTestCase {
$this->assertFalse($this->qtype->compare_string_with_wildcard('a', '[a-z]', false));
$this->assertTrue($this->qtype->compare_string_with_wildcard('[a-z]', '[a-z]', false));
$this->assertTrue($this->qtype->compare_string_with_wildcard('\{}/', '\{}/', true));
// See http://moodle.org/mod/forum/discuss.php?d=120557
$this->assertTrue($this->qtype->compare_string_with_wildcard('ITÁLIE', 'Itálie', true));
}
function test_check_response() {