package markup import ( "io" "strings" "testing" ) func TestSmartify(t *testing.T) { input := `

the album is "Joe's Garage" --by Frank Zappa...

` output, err := Smartify(".html", strings.NewReader(input)) assertEqual(t, err, nil) buf := new(strings.Builder) _, err = io.Copy(buf, output) assertEqual(t, err, nil) assertEqual(t, buf.String(), `

the album is “Joe’s Garage” –by Frank Zappa…

`) }