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:39:15 +0000 (17:39 +0100)
commite3bfcb1cde1335cce2cc6632587cb93a62bd876e
tree99d397f7cb214b219a5645f24d60b8ddbbecd165
parent4a6a2636a0505b7bf44334a12fec00470bea514d
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