1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-07-14 17:23:48 +00:00
Files
MiraiGo/utils/string_test.go
2022-03-18 17:35:44 +08:00

15 lines
255 B
Go

package utils
import (
"testing"
)
func TestXmlEscape(t *testing.T) {
input := "A \x00 terminated string."
expected := "A \uFFFD terminated string."
text := XmlEscape(input)
if text != expected {
t.Errorf("have %v, want %v", text, expected)
}
}