mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-06 12:03:50 +08:00
20 lines
278 B
Go
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)
|
|
}
|
|
}
|