termui/helper_test.go

16 lines
314 B
Go
Raw Normal View History

2015-03-20 20:21:50 +00:00
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
2015-02-03 19:13:51 +00:00
package termui
import "testing"
func TestStr2Rune(t *testing.T) {
s := "你好,世界."
rs := str2runes(s)
if len(rs) != 6 {
t.Error()
}
}