mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-70796 count_words: match the count from LibraOffice & MS Word
This commit is contained in:
parent
d7dd8517fc
commit
9ca6fd447c
3 changed files with 27 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue