Skip to content

Commit 89effaf

Browse files
committed
Merge branch 'main' into multi_response_test
2 parents 4a15154 + d3f985e commit 89effaf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/question_test.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ public function test_get_question_summary(): void {
109109
* LLM is constructed
110110
* @covers ::build_full_ai_prompt
111111
*/
112-
public function test_build_full_ai_prompt() :void {
112+
public function test_build_full_ai_prompt(): void {
113113
$this->resetAfterTest();
114114

115115
$question = qtype_aitext_test_helper::make_aitext_question([]);
116-
set_config('prompt', 'in [responsetext] ','qtype_aitext');
117-
set_config('defaultprompt', 'check this','qtype_aitext');
118-
set_config('markscheme', 'one mark','qtype_aitext');
119-
set_config('jsonprompt', 'testprompt','qtype_aitext');
116+
set_config('prompt', 'in [responsetext] ', 'qtype_aitext');
117+
set_config('defaultprompt', 'check this', 'qtype_aitext');
118+
set_config('markscheme', 'one mark', 'qtype_aitext');
119+
set_config('jsonprompt', 'testprompt', 'qtype_aitext');
120120

121121
$response = '<p> Thank you </p>';
122122
$result = $question->build_full_ai_prompt($response, $aiprompt, $defaultmark, $markscheme);
@@ -128,7 +128,7 @@ public function test_build_full_ai_prompt() :void {
128128
$markscheme = "2 points";
129129
$result = $question->build_full_ai_prompt($response, $aiprompt, $defaultmark, $markscheme);
130130
$this->assertStringContainsString('2 points', $result);
131-
}
131+
}
132132

133133
/**
134134
* Check that non valid json returned from the LLM is

0 commit comments

Comments
 (0)