(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestToTextPlain(t *testing.T) { |
| 9 | got := ToText("hello world") |
| 10 | if got != "hello world" { |
| 11 | t.Errorf("ToText plain = %q, want %q", got, "hello world") |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | func TestToTextParagraphs(t *testing.T) { |
| 16 | got := ToText("<p>First</p><p>Second</p>") |