mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-02 17:56:09 +01:00
18 lines
318 B
PHP
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())));
|
|
}
|
|
}
|