mirror of
https://github.com/fumiama/jieba.git
synced 2026-07-01 17:40:29 +08:00
updated all tests to use Fatal/Fatalf to fail tests ealier
This commit is contained in:
@@ -32,11 +32,11 @@ func TestViterbi(t *testing.T) {
|
||||
ss := "李小福是创新办主任也是云计算方面的专家;"
|
||||
route := viterbi([]rune(ss))
|
||||
if len(route) != len(route1) {
|
||||
t.Error(len(route))
|
||||
t.Fatal(len(route))
|
||||
}
|
||||
for index, _ := range route {
|
||||
if route[index] != route1[index] {
|
||||
t.Error(route[index])
|
||||
t.Fatal(route[index])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user