From 1f8c26f25b52d410d126eeeb30f61012094beaaa Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Tue, 2 Jan 2018 22:49:42 +0100 Subject: Small fix to the parser and more Behat tests --- question.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'question.php') diff --git a/question.php b/question.php index bfff2fa..52f8392 100644 --- a/question.php +++ b/question.php @@ -184,10 +184,6 @@ class qtype_algebra_question extends question_graded_by_strategy } public function compare_response_with_answer(array $response, question_answer $answer) { - // Deal with the match anything answer by returning true. - if ($answer->answer == '*') { - return true; - } $expr = $this->parse_expression($response['answer']); // Check that there is a response and if not return false. We do this here // because even an empty response should match a widlcard answer. -- cgit v1.2.3