mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-10364 improved internal formula format
This commit is contained in:
parent
713b2a2f71
commit
9acbd7269c
3 changed files with 16 additions and 16 deletions
|
@ -754,7 +754,7 @@ class grade_test extends UnitTestCase {
|
|||
$grade_item->itemname = 'unittestgradeitem2';
|
||||
$grade_item->itemtype = 'import';
|
||||
$grade_item->itemmodule = 'assignment';
|
||||
$grade_item->calculation = '= [#gi'.$this->grade_items[0]->id.'#] + 30 + [item id 0] - [item id 0]';
|
||||
$grade_item->calculation = '= ##gi'.$this->grade_items[0]->id.'## + 30 + [[item id 0]] - [[item id 0]]';
|
||||
$grade_item->gradetype = GRADE_TYPE_VALUE;
|
||||
$grade_item->iteminstance = 2;
|
||||
$grade_item->itemnumber = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue