aboutsummaryrefslogtreecommitdiff
path: root/go/typdown_test.go
blob: c1d8985fb7a2748e7dcd04eb86de6f8dc4f38612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package typdown

import "testing"

func TestParse(t *testing.T) {
	res, err := Parse("hello world")
	if err != nil {
		t.Fatal(err)
	}
	if res != `<p>hello world</p>` {
		t.Errorf("invalid result: %s", res)
	}
}