MDL-52567 Core: amend existing test to new counting rules
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 26 Jan 2016 23:36:32 +0000 (00:36 +0100)
committerDavid Monllao <davidm@moodle.com>
Fri, 29 Jan 2016 02:15:24 +0000 (10:15 +0800)
lib/tests/moodlelib_test.php

index c976de3..229e918 100644 (file)
@@ -2846,7 +2846,7 @@ class core_moodlelib_testcase extends advanced_testcase {
         $this->assertEquals(3, $count);
 
         $count = count_words('one"two three-four');
-        $this->assertEquals(3, $count);
+        $this->assertEquals(2, $count);
 
         $count = count_words('one@two three_four');
         $this->assertEquals(4, $count);