mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-05 00:32:51 +08:00
17 lines
227 B
Go
Executable File
17 lines
227 B
Go
Executable File
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()
|
|
}
|
|
}
|