Skip to content

Commit 0436a62

Browse files
Test to concordance method to handle portuguese
1 parent ffb3b59 commit 0436a62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/TextAnalysis/Corpus/TextCorpusTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ public function testConcordance()
2424
$this->assertCount(34, $results);
2525
}
2626

27+
public function testConcordancePtBr()
28+
{
29+
$corpus = new TextCorpus($this->getText('ptbr'));
30+
$results = $corpus->concordance("José",20, true, 'equal');
31+
$this->assertCount(160, $results);
32+
}
33+
2734
public function testTokenizer()
2835
{
2936
$corpus = new TextCorpus($this->getText());

0 commit comments

Comments
 (0)