mirror of https://github.com/gizak/termui.git
12 lines
147 B
Go
12 lines
147 B
Go
|
package termui
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestStr2Rune(t *testing.T) {
|
||
|
s := "你好,世界."
|
||
|
rs := str2runes(s)
|
||
|
if len(rs) != 6 {
|
||
|
t.Error()
|
||
|
}
|
||
|
}
|