File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
tests/TextAnalysis/NGrams Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1313 "psr-4" : {
1414 "TextAnalysis\\ " : " src/"
1515 },
16- "files" : [" src/helpers/storage.php" , " src/helpers/print.php" , " simplified.php" ]
16+ "files" : [" src/helpers/storage.php" , " src/helpers/print.php" , " src/helpers/ simplified.php" ]
1717 },
1818 "autoload-dev" : {
1919 "files" : [" tests/TestBaseCase.php" ]
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ public function testBiGram()
1616 $ tokens = ["one " ,"two " ,"three " ];
1717 $ expected = ["one two " ,"two three " ];
1818 $ bigrams = NGramFactory::create ($ tokens );
19- $ this ->assertEquals ($ expected , $ bigrams );
19+ $ this ->assertEquals ($ expected , $ bigrams );
20+ $ this ->assertEquals ($ expected , bigrams ($ tokens ));
2021 }
2122
2223 public function testTriGram ()
@@ -25,5 +26,7 @@ public function testTriGram()
2526 $ expected = ["one two three " ,"two three four " ];
2627 $ bigrams = NGramFactory::create ($ tokens , NGramFactory::TRIGRAM );
2728 $ this ->assertEquals ($ expected , $ bigrams );
29+ $ this ->assertEquals ($ expected , trigrams ($ tokens ));
30+
2831 }
2932}
You can’t perform that action at this time.
0 commit comments