Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29408

Unit test failing: qbehaviour_adaptivenopenalty_walkthrough_test::test_multichoice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 2.1.3
    • 2.1.1, 2.2
    • Questions

      Just one little but annoying issue that came up in MDL-28219 but affects the adaptivenopenalty behaviour as well. the unit test qbehaviour_adaptivenopenalty_walkthrough_test::test_multichoice() fails 50% of the time, in the last step (checking the grade after regrading). This is due to randomization in the order of answers, as far as I can see. An easy solution is to treat the two "wrong" answers with equal score.

      Fail: question/behaviour/adaptivenopenalty/simpletest/testwalkthrough.php / ► qbehaviour_adaptivenopenalty_walkthrough_test / ► test_multichoice
      Outside expectation because [Integer: 0] differs from [Float: 0.9999999] by 0.9999999 at [.../question/behaviour/adaptivenopenalty/simpletest/testwalkthrough.php line 143]

            bostelm Henning Bostelmann
            bostelm Henning Bostelmann
            Tim Hunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.