From dfccb172a4226fbb556dac1aecebcc3db638c49f Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 27 Apr 2011 18:00:14 +0100 Subject: [PATCH] MDL-47494 ddwtos: numerical qtype: assorted changes 1. database upgrade to merge instructions into the questiontext field, and remove the UNITDISPLAY option. 2. Changes to the validation in deferred feedback mode, so students are warned about incomplete answers. 3. Using this to wark students if they enter an answer that is not recognised as a number. --- question/type/ddwtos/simpletest/testwalkthrough.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/type/ddwtos/simpletest/testwalkthrough.php b/question/type/ddwtos/simpletest/testwalkthrough.php index 11adf6388b0..1435dd1e0f5 100755 --- a/question/type/ddwtos/simpletest/testwalkthrough.php +++ b/question/type/ddwtos/simpletest/testwalkthrough.php @@ -198,7 +198,7 @@ class qtype_ddwtos_walkthrough_test extends qbehaviour_walkthrough_test_base { $this->process_submission(array('p1' => '1', 'p2' => '2')); // Verify. - $this->check_current_state(question_state::$todo); + $this->check_current_state(question_state::$invalid); $this->check_current_mark(null); $this->check_current_output( $this->get_contains_drop_box_expectation('p1', 1, false), @@ -338,7 +338,7 @@ class qtype_ddwtos_walkthrough_test extends qbehaviour_walkthrough_test_base { $this->process_submission(array('p1' => '1', 'p2' => '0', 'p3' => '0')); // Verify. - $this->check_current_state(question_state::$todo); + $this->check_current_state(question_state::$invalid); $this->check_current_mark(null); $this->check_current_output( $this->get_contains_drop_box_expectation('p1', 1, false), -- 2.11.4.GIT