From f13b675702244089d621ea27c63b953e06680a4b Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 6 Apr 2009 02:03:10 +0000 Subject: [PATCH] shortanswer qtype: Add the problem case from http://moodle.org/mod/forum/discuss.php?d=120557 to the unit tests. --- question/type/shortanswer/simpletest/testquestiontype.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/question/type/shortanswer/simpletest/testquestiontype.php b/question/type/shortanswer/simpletest/testquestiontype.php index 288ec7c4325..bde47f7ec72 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() {