MDL-69246 questions: allow for float issues when validating manual marks
authorTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 9 Jul 2020 21:30:18 +0000 (22:30 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 27 Aug 2020 16:41:02 +0000 (17:41 +0100)
commit10f03d2a996939b0b2f7e285a6a6829abad5519b
treed065213162e40f864263682adc1b45ce20b392b0
parentb3b04e083bceb9ef999b01d1f8e97adf69dc52a9
MDL-69246 questions: allow for float issues when validating manual marks

As well as fixing the bug, I also rewrote the test to use
data providers, which should lead to more useful failure messages.

And, I moved the magic number we used as the float tolerence to
be a named constant.
question/behaviour/behaviourbase.php
question/engine/lib.php
question/engine/questionattempt.php
question/engine/tests/questionattempt_with_steps_test.php