aboutsummaryrefslogtreecommitdiff
path: root/stemmer_test.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-05-28 13:24:40 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-05-28 13:24:40 +0300
commit5c7748b15e2fcc616c89492b85f367750e327d79 (patch)
treeec477f84fef127c42c3df0db55ab9792a74d4c99 /stemmer_test.go
parent0911847693eac96cce52f18a6592a93e50464cf2 (diff)
Compatibility with https://github.com/caneroj1/stemmer libraryHEADmaster
Diffstat (limited to 'stemmer_test.go')
-rw-r--r--stemmer_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/stemmer_test.go b/stemmer_test.go
index 8b27774..334a329 100644
--- a/stemmer_test.go
+++ b/stemmer_test.go
@@ -1,9 +1,9 @@
package StemmerRu
import (
- "testing"
- "io/ioutil"
"encoding/json"
+ "io/ioutil"
+ "testing"
)
var testFile = `tests.json`
@@ -19,7 +19,7 @@ func TestStemWord(t *testing.T) {
t.Error("Can't parse json", err)
}
for source, expected := range *tests {
- result := StemWord(source);
+ result := Stem(source)
if expected != result {
t.Errorf(`Expected "%s" (source: %s) but got "%s"`, result, source, result)
}