mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-27 15:40:32 +08:00
fixed a typo in jieba_test.go
This commit is contained in:
@@ -690,8 +690,8 @@ func TestCutAll(t *testing.T) {
|
|||||||
if len(result) != len(cutAllResult[index]) {
|
if len(result) != len(cutAllResult[index]) {
|
||||||
t.Errorf("cut all for %s length should be %d not %d\n",
|
t.Errorf("cut all for %s length should be %d not %d\n",
|
||||||
content, len(cutAllResult[index]), len(result))
|
content, len(cutAllResult[index]), len(result))
|
||||||
t.Errorf("expect: %v\n", strings.Join(defaultCutResult[index], "/"))
|
t.Errorf("expect: %v\n", defaultCutResult[index])
|
||||||
t.Fatalf("got: %v\n", strings.Join(result, "/"))
|
t.Fatalf("got: %v\n", result)
|
||||||
}
|
}
|
||||||
for i, c := range result {
|
for i, c := range result {
|
||||||
if c != cutAllResult[index][i] {
|
if c != cutAllResult[index][i] {
|
||||||
|
|||||||
Reference in New Issue
Block a user