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.
This commit is contained in:
Tim Hunt
2011-04-28 20:06:47 +01:00
parent 6229791a29
commit dfccb172a4
@@ -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),