aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--edit_algebra_form.php2
-rw-r--r--tests/questiontype_test.php2
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));