endtoend-test-psl/tests/Psl/Vec/PartitionTest.php
2021-02-13 20:16:20 +01:00

18 lines
318 B
PHP

<?php
declare(strict_types=1);
namespace Psl\Tests\Vec;
use PHPUnit\Framework\TestCase;
use Psl\Fun;
use Psl\Vec;
final class PartitionTest extends TestCase
{
public function testPartition(): void
{
static::assertSame([[1, 2, 3, 4], [0]], (Vec\partition([0, 1, 2, 3, 4], Fun\identity())));
}
}