diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 22:49:42 +0100 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 22:49:42 +0100 |
commit | 1f8c26f25b52d410d126eeeb30f61012094beaaa (patch) | |
tree | 2100701a3c96d28b4236f527815ca94a369d3ca0 /tests/helper.php | |
parent | 6e9f189cdba529e41c345abfd26ffecaede65c4b (diff) |
Small fix to the parser and more Behat tests
Diffstat (limited to 'tests/helper.php')
-rw-r--r-- | tests/helper.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/helper.php b/tests/helper.php index 5af6a9b..e0f0381 100644 --- a/tests/helper.php +++ b/tests/helper.php @@ -55,7 +55,6 @@ class qtype_algebra_test_helper extends question_test_helper { $q->answerprefix = ''; $q->answers = array( 13 => new question_answer(13, '7*x', 1.0, 'This is a very good answer.', FORMAT_HTML), - 14 => new question_answer(14, '*', 0.0, 'This is completely wrong.', FORMAT_HTML), ); $q->variables = array( 7 => new qtype_algebra_variable(7, 'x', -5, 5) @@ -88,7 +87,6 @@ class qtype_algebra_test_helper extends question_test_helper { $qdata->options->answerprefix = ''; $qdata->options->answers = array( 13 => new question_answer(13, '7*x', 1.0, 'This is a very good answer.', FORMAT_HTML), - 14 => new question_answer(14, '*', 0.0, 'This is completely wrong.', FORMAT_HTML), ); $qdata->options->variables = array( 7 => new qtype_algebra_variable(7, 'x', -5, 5) @@ -116,14 +114,13 @@ class qtype_algebra_test_helper extends question_test_helper { $form->allowedfuncs = array('all' => 1); $form->disallow = ''; $form->answerprefix = ''; - $form->answer = array('7*x', '*'); - $form->fraction = array('1.0', '0.0'); + $form->answer = array('7*x'); + $form->fraction = array('1.0'); $form->variable = array('x'); $form->varmin = array('-5'); $form->varmax = array('5'); $form->feedback = array( array('text' => 'This is a very good answer.', 'format' => FORMAT_HTML), - array('text' => 'This is completely wrong.', 'format' => FORMAT_HTML), ); $form->penalty = 0.3333333; |