Línea 28... |
Línea 28... |
28 |
*
|
28 |
*
|
29 |
* @package qbehaviour_deferredcbm
|
29 |
* @package qbehaviour_deferredcbm
|
30 |
* @copyright 2009 The Open University
|
30 |
* @copyright 2009 The Open University
|
31 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
31 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
32 |
*/
|
32 |
*/
|
33 |
class question_cbm_test extends \basic_testcase {
|
33 |
final class question_cbm_test extends \basic_testcase {
|
Línea 34... |
Línea 34... |
34 |
|
34 |
|
35 |
public function test_adjust_fraction(): void {
|
35 |
public function test_adjust_fraction(): void {
|
36 |
$this->assertEqualsWithDelta( 1, question_cbm::adjust_fraction( 1, question_cbm::LOW), 0.0000001);
|
36 |
$this->assertEqualsWithDelta( 1, question_cbm::adjust_fraction( 1, question_cbm::LOW), 0.0000001);
|
37 |
$this->assertEqualsWithDelta( 2, question_cbm::adjust_fraction( 1, question_cbm::MED), 0.0000001);
|
37 |
$this->assertEqualsWithDelta( 2, question_cbm::adjust_fraction( 1, question_cbm::MED), 0.0000001);
|