Fix some warnings and typos
This commit is contained in:
@ -180,7 +180,7 @@ func (m Message) ClearString() string {
|
||||
|
||||
// String return the message string with escape sequence for ansi color.
|
||||
// To convert Translated Message to string, you must set
|
||||
// On windows, you may want print this string using github.com/mattn/go-colorable.
|
||||
// On windows, you may want print this string using github.com/matte/go-colorable.
|
||||
func (m Message) String() string {
|
||||
var msg, format strings.Builder
|
||||
if m.Bold {
|
||||
|
@ -55,7 +55,7 @@ var texts = []string{
|
||||
" ",
|
||||
}
|
||||
|
||||
var ctexts = []string{
|
||||
var clearTexts = []string{
|
||||
"故我依然™ Kun_QwQ: 为什么想要用炼药锅灭火时总是跳不进去",
|
||||
|
||||
"<Xi_Xi_Mi> 好像是这个id。。",
|
||||
@ -95,7 +95,7 @@ func TestChatMsgClearString(t *testing.T) {
|
||||
}
|
||||
|
||||
str := cm.ClearString()
|
||||
if str != ctexts[i] {
|
||||
if str != clearTexts[i] {
|
||||
t.Errorf("gets %q, wants %q", str, texts[i])
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user