Use output of strings.Builder in assert.Equal (#106)
Markus Wüstenberg markus@maragu.dk
Wed, 21 Sep 2022 10:37:44 +0200
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M internal/assert/assert.go → internal/assert/assert.go
@@ -15,7 +15,7 @@ var b strings.Builder _ = actual.Render(&b) if expected != b.String() { - t.Fatalf(`expected "%v" but got "%v"`, expected, actual) + t.Fatalf(`expected "%v" but got "%v"`, expected, b.String()) } }