Skip to content

Commit baaadfd

Browse files
committed
bug fix for path to simplified.php
1 parent 4268ff9 commit baaadfd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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"]

tests/TextAnalysis/NGrams/NGramFactoryTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)