mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-10 03:30:24 +08:00
17 lines
227 B
Go
17 lines
227 B
Go
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()
|
|
}
|
|
}
|