From: tjhunt Date: Mon, 6 Apr 2009 02:03:10 +0000 (+0000) Subject: shortanswer qtype: Add the problem case from http://moodle.org/mod/forum/discuss... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f13b675702244089d621ea27c63b953e06680a4b;p=moodle.git shortanswer qtype: Add the problem case from http://moodle.org/mod/forum/discuss.php?d=120557 to the unit tests. --- diff --git a/question/type/shortanswer/simpletest/testquestiontype.php b/question/type/shortanswer/simpletest/testquestiontype.php index 288ec7c432..bde47f7ec7 100644 --- a/question/type/shortanswer/simpletest/testquestiontype.php +++ b/question/type/shortanswer/simpletest/testquestiontype.php @@ -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() {