aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2018-01-02 10:21:25 +0100
committerJean-Michel Vedrine <vedrine@vedrine.org>2018-01-02 10:21:25 +0100
commit1acf891ddc1b99ca58990dbb85866069c987c53b (patch)
tree4f761f4c056373ee8952c91f8455186d38e55172
parent0eb3c569ff1bcd9dc8273ed6b7d8899238c5c13f (diff)
Syntax error in tests
-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));