Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 31... Línea 31...
31
 * @package    qbehaviour_deferredfeedback
31
 * @package    qbehaviour_deferredfeedback
32
 * @copyright  2009 The Open University
32
 * @copyright  2009 The Open University
33
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34
 */
34
 */
35
class walkthrough_test extends \qbehaviour_walkthrough_test_base {
35
class walkthrough_test extends \qbehaviour_walkthrough_test_base {
36
    public function test_deferredfeedback_feedback_truefalse() {
36
    public function test_deferredfeedback_feedback_truefalse(): void {
Línea 37... Línea 37...
37
 
37
 
38
        // Create a true-false question with correct answer true.
38
        // Create a true-false question with correct answer true.
39
        $tf = \test_question_maker::make_question('truefalse', 'true');
39
        $tf = \test_question_maker::make_question('truefalse', 'true');
Línea 105... Línea 105...
105
 
105
 
106
        $autogradedstep = $this->get_step($this->get_step_count() - 2);
106
        $autogradedstep = $this->get_step($this->get_step_count() - 2);
107
        $this->assertEqualsWithDelta($autogradedstep->get_fraction(), 0, 0.0000001);
107
        $this->assertEqualsWithDelta($autogradedstep->get_fraction(), 0, 0.0000001);
Línea 108... Línea 108...
108
    }
108
    }
Línea 109... Línea 109...
109
 
109
 
110
    public function test_deferredfeedback_feedback_multichoice_single() {
110
    public function test_deferredfeedback_feedback_multichoice_single(): void {
111
 
111
 
Línea 160... Línea 160...
160
        $this->check_current_mark(-1);
160
        $this->check_current_mark(-1);
161
        $this->check_current_output(
161
        $this->check_current_output(
162
                $this->get_contains_incorrect_expectation());
162
                $this->get_contains_incorrect_expectation());
163
    }
163
    }
Línea 164... Línea 164...
164
 
164
 
Línea 165... Línea 165...
165
    public function test_deferredfeedback_resume_multichoice_single() {
165
    public function test_deferredfeedback_resume_multichoice_single(): void {
166
 
166
 
Línea 167... Línea 167...
167
        // Create a multiple-choice question.
167
        // Create a multiple-choice question.
Línea 213... Línea 213...
213
        $this->check_current_output(
213
        $this->check_current_output(
214
                $this->get_contains_mc_radio_expectation($rightindex, false, true),
214
                $this->get_contains_mc_radio_expectation($rightindex, false, true),
215
                $this->get_contains_correct_expectation());
215
                $this->get_contains_correct_expectation());
216
    }
216
    }
Línea 217... Línea 217...
217
 
217
 
Línea 218... Línea 218...
218
    public function test_deferredfeedback_resume_multichoice_single_emptyanswer_first() {
218
    public function test_deferredfeedback_resume_multichoice_single_emptyanswer_first(): void {
219
 
219
 
Línea 220... Línea 220...
220
        // Create a multiple-choice question.
220
        // Create a multiple-choice question.