diff options
Diffstat (limited to 'go/typdown_test.go')
| -rw-r--r-- | go/typdown_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/go/typdown_test.go b/go/typdown_test.go new file mode 100644 index 0000000..c1d8985 --- /dev/null +++ b/go/typdown_test.go @@ -0,0 +1,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) + } +} |
