-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.17, 3.11.10, 4.0.4, 4.1
-
MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
-
MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
Stuff like:
qbehaviour_deferredcbm_type_test::test_calculate_bonus
Failed asserting that -0.010000000000000054 matches expected -0.01.
question/behaviour/deferredcbm/tests/behaviourtype_test.php:148
qtype_multianswer_question_test::test_compute_final_grade
Failed asserting that 0.7333333333333334 matches expected 0.7333333333333333.
question/type/multianswer/tests/question_test.php:211
2) qbehaviour_deferredcbm_type_test::test_calculate_bonus
Failed asserting that -0.010000000000000054 matches expected -0.01.
question/behaviour/deferredcbm/tests/behaviourtype_test.php:149
Appears to be caused by the change here:
https://github.com/sebastianbergmann/comparator/pull/102
But - those tests should be tidied up so that they don't depend on rounding for assertEquals to work.
- blocks
-
MDL-75776 Bump behat and phpunit (composer) dependencies to current ones
- Closed