From 441a859ee443fd6c46d8d4582c66aca259807d79 Mon Sep 17 00:00:00 2001 From: bashbunni Date: Mon, 14 Aug 2023 15:31:05 -0700 Subject: [PATCH] refactor: try printing string(diff) --- glamour_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamour_test.go b/glamour_test.go index 0aa707b9..2cf1bb6d 100644 --- a/glamour_test.go +++ b/glamour_test.go @@ -270,7 +270,7 @@ func TestWrapping(t *testing.T) { } if diff := cmp.Diff(string(got), string(want)); diff != "" { - t.Fatalf("got != want\n-want +got:\ndiff:\n%s", diff) + t.Fatalf("got != want\n-want +got:\ndiff:\n%s", string(diff)) } }) }