This commit is contained in:
2022-09-21 14:01:45 +02:00
parent 0a30f39eb4
commit cfee4d93d0
349 changed files with 4 additions and 4 deletions
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace CondorcetPHP\Condorcet\Tests;
use CondorcetPHP\Condorcet\Utils\CondorcetUtil;
use CondorcetPHP\Condorcet\Vote;
use PHPUnit\Framework\TestCase;
class CondorcetUtilTest extends TestCase
{
public function testFormatVote(): void
{
$vote = new Vote('A>B>C');
$this->assertSame('A > B > C', CondorcetUtil::format($vote, true));
}
public function testDeleteComments(): void
{
$result = CondorcetUtil::prepareParse('A > B # This is a comment', false);
$this->assertSame(['A > B'], $result);
}
}