]> git.mjollnir.org Git - moodle.git/commitdiff
shortanswer qtype: Add the problem case from http://moodle.org/mod/forum/discuss...
authortjhunt <tjhunt>
Mon, 6 Apr 2009 02:03:10 +0000 (02:03 +0000)
committertjhunt <tjhunt>
Mon, 6 Apr 2009 02:03:10 +0000 (02:03 +0000)
question/type/shortanswer/simpletest/testquestiontype.php

index 288ec7c43259c242c2142edc882c957dc4a7f696..bde47f7ec72769ebac16ddaafe78fea855ed0c1a 100644 (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() {