mirror of
https://github.com/fumiama/emozi.git
synced 2026-06-12 22:40:38 +08:00
init
This commit is contained in:
20
string_test.go
Normal file
20
string_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package emozi
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestWrapUnwrap(t *testing.T) {
|
||||
t.Log(校验表长度)
|
||||
if !WrapRawEmoziString("😨😨😨😨").IsValid() {
|
||||
t.Fail()
|
||||
}
|
||||
if EmoziString("😨😨😨😨😨😨😨").IsValid() {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
func TestString(t *testing.T) {
|
||||
t.Log(校验表长度)
|
||||
if WrapRawEmoziString("😨😨😨😨").String() != "😨😨😨😨" {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user