1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 20:13:50 +08:00
go-cqhttp/coolq/cqcode/all_test.go
2023-01-26 23:58:43 +08:00

20 lines
278 B
Go

package cqcode
import (
"bytes"
"testing"
)
func TestIssue1733(t *testing.T) {
const (
input = "\u0005"
expected = `"\u0005"`
)
var b bytes.Buffer
writeQuote(&b, input)
got := b.String()
if got != expected {
t.Errorf("want %v but got %v", expected, got)
}
}