mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
This commit is contained in:
@ -20,10 +20,10 @@ class BasicMathTest extends TestCase
|
|||||||
{
|
{
|
||||||
$arr = [1, 1, 1, 1];
|
$arr = [1, 1, 1, 1];
|
||||||
|
|
||||||
$func_return = function ($f) {
|
$func_return = function (float $f): float {
|
||||||
return $f;
|
return $f;
|
||||||
};
|
};
|
||||||
$func_double = function ($f) {
|
$func_double = function (float $f): float {
|
||||||
return $f * 2;
|
return $f * 2;
|
||||||
};
|
};
|
||||||
$this->assertEquals(4, BasicMath::sum($arr, $func_return));
|
$this->assertEquals(4, BasicMath::sum($arr, $func_return));
|
||||||
|
Reference in New Issue
Block a user