1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-22 20:20:44 +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

@@ -22509,7 +22509,7 @@ func TestJiebaTokenizerSearchModeWithoutHMM(t *testing.T) {
for _, test := range tests {
actual := tokenizer.Tokenize(test.input)
if !reflect.DeepEqual(actual, test.output) {
t.Errorf("Expected %v, got %v for %s", test.output, actual, string(test.input))
t.Fatalf("Expected %v, got %v for %s", test.output, actual, string(test.input))
}
}
}