all repos — gomponents @ 3e992ed66c3800ce9c6e14bafd44291450a9aabf

HTML components in pure Go

Use output of strings.Builder in assert.Equal (#106)

Markus Wüstenberg markus@maragu.dk
Wed, 21 Sep 2022 10:37:44 +0200
commit

3e992ed66c3800ce9c6e14bafd44291450a9aabf

parent

f4da48fb5707b19b500d05d5e7bc675b59b3e127

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M internal/assert/assert.gointernal/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())
 	}
 }