Skip to content

Commit d096529

Browse files
author
Mark Baker
authored
Additional unit tests for RANDARRAY() Math/Trig function implementation (#2563)
1 parent 69fe30a commit d096529

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/RandArrayTest.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,16 @@ function ($value) use ($min, $max): void {
5353
);
5454
}
5555

56-
public function testRANDARRAYException(): void
56+
public function testRANDARRAYExceptions(): void
5757
{
58+
$rows = 'THREE';
59+
$cols = 2;
60+
$min = 2;
61+
$max = -2;
62+
63+
$result = MathTrig\Random::randArray($rows, $cols, $min, $max, false);
64+
self::assertSame(Functions::VALUE(), $result);
65+
5866
$rows = 3;
5967
$cols = 2;
6068
$min = 2;

0 commit comments

Comments
 (0)