You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
281 B
Go
17 lines
281 B
Go
2 years ago
|
package search
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestEmoji(t *testing.T) {
|
||
|
fmt.Println(replaceUnicodeEmoji("\\U1F441\\UFE0F"))
|
||
|
fmt.Println("👁️")
|
||
|
p, _ := replaceUnicodeEmoji("\\U1F441\\UFE0F")
|
||
|
fmt.Println("👁️" == p)
|
||
|
for _, v := range p {
|
||
|
fmt.Printf("%U", v)
|
||
|
}
|
||
|
}
|