mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-11-26 20:34:59 +01:00
21 lines
402 B
PHP
21 lines
402 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Psl\Tests\PseudoRandom;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Psl\PseudoRandom;
|
|
|
|
final class FloatTest extends TestCase
|
|
{
|
|
public function testFloat(): void
|
|
{
|
|
$random = PseudoRandom\float();
|
|
|
|
static::assertIsFloat($random);
|
|
static::assertGreaterThanOrEqual(0, $random);
|
|
static::assertLessThanOrEqual(1, $random);
|
|
}
|
|
}
|