(t *testing.T)
| 796 | } |
| 797 | |
| 798 | func TestDirectiveNode(t *testing.T) { |
| 799 | expected := `<!DOCTYPE people_list SYSTEM "example.dtd">` |
| 800 | n := &Node{Data: `DOCTYPE people_list SYSTEM "example.dtd"`, Type: NotationNode} |
| 801 | if v := n.OutputXML(true); expected != v { |
| 802 | t.Errorf(`expected "%s", obtained "%s"`, expected, v) |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | func TestOutputXMLWithSingleQuotes(t *testing.T) { |
| 807 | s := `<?xml version='1.0' encoding='utf-8'?><a><b c='d'></b></a>` |
nothing calls this directly
no test coverage detected
searching dependent graphs…