MDL-42704 quiz statistics: make test more tolerant

This commit is contained in:
Dan Poltawski 2013-11-08 11:09:46 +08:00
parent 379cbb459a
commit f9dc4bd78b

View File

@ -113,7 +113,7 @@ class quiz_report_statistics_from_steps extends mod_quiz_attempt_walkthrough_fro
);
foreach ($quizstatsexpected as $statname => $statvalue) {
$this->assertEquals($statvalue, $quizstats->$statname, $quizstats->$statname, abs($statvalue) * 1e-5);
$this->assertEquals($statvalue, $quizstats->$statname, $quizstats->$statname, abs($statvalue) * 1.5e-5);
}
for ($rowno = 0; $rowno < $csvdata['qstats']->getRowCount(); $rowno++) {