aboutsummaryrefslogtreecommitdiff
path: root/go/typdown_test.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-05-02 16:41:33 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-05-02 16:41:33 +0200
commit5556e46cc453c024defa833b964648465ddc9e39 (patch)
tree789d144376970aaeefe14bd491d8edf220aea35c /go/typdown_test.go
parent5bc6edf71afe1d9b115af7363e9ffd867f2a6a57 (diff)
build(zig): link statically typst
Diffstat (limited to 'go/typdown_test.go')
-rw-r--r--go/typdown_test.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/go/typdown_test.go b/go/typdown_test.go
index c1d8985..974f661 100644
--- a/go/typdown_test.go
+++ b/go/typdown_test.go
@@ -7,7 +7,12 @@ func TestParse(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- if res != `<p>hello world</p>` {
- t.Errorf("invalid result: %s", res)
+ defer res.Deinit()
+ got, err := res.RenderHTML()
+ if err != nil {
+ t.Fatal(err)
+ }
+ if got != `<p>hello world</p>` {
+ t.Errorf("invalid result: %s", got)
}
}