Additional unit tests for RANDARRAY() Math/Trig function implementation (#2563)

This commit is contained in:
Mark Baker 2022-02-07 10:19:19 +01:00 committed by GitHub
parent 69fe30a135
commit d0965298d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -53,8 +53,16 @@ class RandArrayTest extends AllSetupTeardown
);
}
public function testRANDARRAYException(): void
public function testRANDARRAYExceptions(): void
{
$rows = 'THREE';
$cols = 2;
$min = 2;
$max = -2;
$result = MathTrig\Random::randArray($rows, $cols, $min, $max, false);
self::assertSame(Functions::VALUE(), $result);
$rows = 3;
$cols = 2;
$min = 2;