test fixup

This commit is contained in:
adman
2026-03-20 17:57:03 +01:00
parent 43fea40d08
commit 29baf8da9f
6 changed files with 57 additions and 4 deletions
+2 -2
View File
@@ -167,14 +167,14 @@ func TestPretty(t *testing.T) {
func TestPrettyF(t *testing.T) {
got := PrettyF("Hello §b%s", "World")
want := Component{
want := &Component{
Text: "Hello ",
Extra: []Component{
{Text: "World", Color: "aqua"},
},
}
if !reflect.DeepEqual(got, want) {
t.Errorf("PrettyF() = %+v, want %+v", got, want)
t.Errorf("PrettyF() = \n%+v\n, want \n%+v", got, want)
}
}