1
0
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:
Wang Bin
2015-03-30 18:01:21 +08:00
parent c397cafe8a
commit 7cf16072e6
7 changed files with 53 additions and 53 deletions

View File

@@ -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])
}
}
}