0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/caddyhttp/markdown/summary/summary_test.go
2016-06-21 00:11:55 -06:00

11 lines
259 B
Go

package summary
import "testing"
func TestMarkdown(t *testing.T) {
input := []byte(`Testing with just a few words.`)
got := string(Markdown(input, 3))
if want := "Testing with just"; want != got {
t.Errorf("Expected '%s' but got '%s'", want, got)
}
}