cii-text-analysis/vendor/yooper/php-text-analysis/tests/TextAnalysis/Comparisons/LevenshteinComparisonTest.php

19 lines
369 B
PHP
Raw Permalink Normal View History

2026-02-10 16:19:59 +01:00
<?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'));
}
}