Permalink
Browse files

MDL-33911 mathslib: add unit test to demonstrate problem

  • Loading branch information...
danpoltawski committed Jun 21, 2012
1 parent 1e485ac commit 2a67e6f28bb9d20794a11e858a37032eacbcf00b
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/tests/mathslib_test.php
@@ -231,4 +231,10 @@ public function test_scientific_notation() {
$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));
}
}

0 comments on commit 2a67e6f

Please sign in to comment.