1
0
mirror of https://github.com/fumiama/emozi.git synced 2026-06-12 22:40:38 +08:00
This commit is contained in:
源文雨
2024-02-14 18:39:07 +09:00
parent 9463d5e7b6
commit ceb7686da6
18 changed files with 1776 additions and 0 deletions

20
string_test.go Normal file
View 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()
}
}