mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-33911 mathslib: add unit test to demonstrate problem
This commit is contained in:
parent
1e485acd7d
commit
2a67e6f28b
@ -231,4 +231,10 @@ class mathsslib_testcase extends basic_testcase {
|
||||
$this->assertEquals($formula->evaluate(), 1e22, '', 1e22*1e-15);
|
||||
|
||||
}
|
||||
|
||||
public function test_rand_float() {
|
||||
$formula = new calc_formula('=rand_float()');
|
||||
$result = $formula->evaluate();
|
||||
$this->assertTrue(is_float($result));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user