summaryrefslogtreecommitdiff
path: root/gemini/gemtext/sub_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'gemini/gemtext/sub_test.go')
-rw-r--r--gemini/gemtext/sub_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/gemini/gemtext/sub_test.go b/gemini/gemtext/sub_test.go
index 26f98ed..f080705 100644
--- a/gemini/gemtext/sub_test.go
+++ b/gemini/gemtext/sub_test.go
@@ -51,8 +51,11 @@ func TestGemsubToAtom(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- xml := GmisubToAtom(doc, *loc)
- if xml != test.output {
+ out := &bytes.Buffer{}
+ if err := GmisubToAtom(doc, *loc, out); err != nil {
+ t.Fatal(err)
+ }
+ if out.String() != test.output {
t.Fatal("mismatched output")
}
})