mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-27 07:30:32 +08:00
initial commit
This commit is contained in:
16
posseg/char_state_tab_test.go
Normal file
16
posseg/char_state_tab_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package posseg
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGet(t *testing.T) {
|
||||
result := CharStateTab.Get('\u8000')
|
||||
if len(result) != 17 {
|
||||
t.FailNow()
|
||||
}
|
||||
result = CharStateTab.Get('\uaaaa')
|
||||
if len(result) == 17 {
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user