cii-text-analysis/vendor/yooper/php-text-analysis/tests/TextAnalysis/Comparisons/LevenshteinComparisonTest.php
Jéremy Munsch f68d2ac333
premier poc
2026-02-11 08:24:04 +01:00

18 lines
369 B
PHP
Executable file

<?php
namespace Tests\TextAnalysis\Comparisons;
use TextAnalysis\Comparisons\LevenshteinComparison;
/**
*
* @author yooper
*/
class LevenshteinComparisonTest extends \PHPUnit\Framework\TestCase
{
public function testHatCat()
{
$comparison = new LevenshteinComparison();
$this->assertEquals(1, $comparison->distance('hat', 'cat'));
}
}