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_immediatefeedback
31
 * @package    qbehaviour_immediatefeedback
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_immediatefeedback_feedback_multichoice_right() {
36
    public function test_immediatefeedback_feedback_multichoice_right(): 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
        $mc = \test_question_maker::make_a_multichoice_single_question();
39
        $mc = \test_question_maker::make_a_multichoice_single_question();
Línea 132... Línea 132...
132
 
132
 
133
        $autogradedstep = $this->get_step($this->get_step_count() - 2);
133
        $autogradedstep = $this->get_step($this->get_step_count() - 2);
134
        $this->assertEqualsWithDelta($autogradedstep->get_fraction(), -0.3333333, 0.0000001);
134
        $this->assertEqualsWithDelta($autogradedstep->get_fraction(), -0.3333333, 0.0000001);
Línea 135... Línea 135...
135
    }
135
    }
Línea 136... Línea 136...
136
 
136
 
137
    public function test_immediatefeedback_feedback_multichoice_try_to_submit_blank() {
137
    public function test_immediatefeedback_feedback_multichoice_try_to_submit_blank(): void {
138
 
138
 
Línea 187... Línea 187...
187
        $this->check_current_output(
187
        $this->check_current_output(
188
                $this->get_contains_partcorrect_expectation(),
188
                $this->get_contains_partcorrect_expectation(),
189
                new \question_pattern_expectation('/' . preg_quote('Not good enough!', '/') . '/'));
189
                new \question_pattern_expectation('/' . preg_quote('Not good enough!', '/') . '/'));
190
    }
190
    }
Línea 191... Línea 191...
191
 
191
 
Línea 192... Línea 192...
192
    public function test_immediatefeedback_feedback_multichoice_wrong_on_finish() {
192
    public function test_immediatefeedback_feedback_multichoice_wrong_on_finish(): void {
193
 
193
 
194
        // Create a true-false question with correct answer true.
194
        // Create a true-false question with correct answer true.