1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
12 func TestRenderer(t *testing.T) {
101 want := `<html><head></head><body>0<1<p id="A" foo="abc"def">` +
102 `2<b empty="">3</b><i backslash="\">&4</i></p>` +
103 `5<blockquote></blockquote><br/>6</body></html>`
104 b := new(bytes.Buffer)
105 if err := Render(b, n); err != nil {
108 if got := b.String(); got != want {
109 t.Errorf("got vs want:\n%s\n%s\n", got, want)