termui/helper_test.go

12 lines
147 B
Go
Raw Normal View History

2015-02-03 12:13:51 -07:00
package termui
import "testing"
func TestStr2Rune(t *testing.T) {
s := "你好,世界."
rs := str2runes(s)
if len(rs) != 6 {
t.Error()
}
}