From 1acf891ddc1b99ca58990dbb85866069c987c53b Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Tue, 2 Jan 2018 10:21:25 +0100 Subject: Syntax error in tests --- edit_algebra_form.php | 2 +- tests/questiontype_test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edit_algebra_form.php b/edit_algebra_form.php index d7d6b85..5d242b3 100644 --- a/edit_algebra_form.php +++ b/edit_algebra_form.php @@ -391,7 +391,7 @@ class qtype_algebra_edit_form extends question_edit_form { if ($data['tolerance'] < 0) { $errors['tolerance'] = get_string('toleranceltzero', 'qtype_algebra'); } - +var_dump($errors); return $errors; } diff --git a/tests/questiontype_test.php b/tests/questiontype_test.php index 93e5294..745b7c1 100644 --- a/tests/questiontype_test.php +++ b/tests/questiontype_test.php @@ -79,7 +79,7 @@ class qtype_algebra_test extends advanced_testcase { $q->id => array( 13 => new question_possible_response('2*x', 1), 14 => new question_possible_response('x', 0.2), - null => question_possible_response::no_response() + null => question_possible_response::no_response(), 0 => new question_possible_response(get_string('didnotmatchanyanswer', 'question'), 0), ), ), $this->qtype->get_possible_responses($q)); -- cgit v1.2.3