MDL-70796 count_words: match the count from LibraOffice & MS Word

This commit is contained in:
Tim Hunt 2021-02-04 18:17:35 +00:00
parent d7dd8517fc
commit 9ca6fd447c
3 changed files with 27 additions and 17 deletions

View file

@ -295,7 +295,7 @@ class qtype_essay_question_test extends advanced_testcase {
public function test_get_validation_error(int $responserequired,
int $minwordlimit, int $maxwordlimit, string $expected): void {
$question = test_question_maker::make_an_essay_question();
$response = ['answer' => 'In this essay, I will be testing a function called check_input_word_count().'];
$response = ['answer' => 'One two three four five six seven eight nine ten eleven twelve thirteen fourteen.'];
$question->responserequired = $responserequired;
$question->minwordlimit = $minwordlimit;
$question->maxwordlimit = $maxwordlimit;