cii-text-analysis/vendor/yooper/php-text-analysis/tests/TextAnalysis/LexicalDiversity/NaiveTest.php

18 lines
334 B
PHP
Raw Permalink Normal View History

2026-02-10 16:19:59 +01:00
<?php
namespace Tests\TextAnalysis\LexicalDiversity;
/**
* Description of NaiveTest
*
* @author yooper
*/
class NaiveTest extends \TestBaseCase
{
public function testDiversity()
{
$result = lexical_diversity( tokenize( $this->getText() ));
$this->assertEqualsWithDelta(0.03461, $result, 0.0001);
}
}