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

17 lines
382 B
PHP

<?php
namespace Tests\TextAnalysis\LexicalDiversity;
/**
* Description of Yule I Test
*
* @author yooper
*/
class YuleITest extends \TestBaseCase
{
public function testDiversity()
{
$result = lexical_diversity( tokenize( $this->getText() ), \TextAnalysis\LexicalDiversity\YuleI::class);
$this->assertEqualsWithDelta(135.9226, $result, 0.0001);
}
}