1
0
mirror of https://github.com/fumiama/go-base16384.git synced 2026-06-05 00:32:52 +08:00

适配所有架构

This commit is contained in:
fumiama
2022-02-10 13:58:39 +08:00
parent 86dc5b5b23
commit d84411a4ef
6 changed files with 37 additions and 78 deletions

View File

@@ -10,6 +10,9 @@ func TestBase14(t *testing.T) {
es, err := UTF16be2utf8(e)
if err == nil {
t.Log(string(es))
if string(es) != "蜮嘎惢磦筢貊豔耹嫹桊涖犧蟦癎摖壥禦籋萷犸粹瘛榞梄螢圓因苧璡屨灇炀瞸瘊暍严帉戀㴃" {
t.Fail()
}
d, err := UTF82utf16be(es)
if string(d) == string(e) {
if err == nil {