Use output of strings.Builder in assert.Equal (#106)
This commit is contained in:
parent
f4da48fb57
commit
3e992ed66c
@ -15,7 +15,7 @@ func Equal(t *testing.T, expected string, actual g.Node) {
|
||||
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())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user