Page MenuHomeMusing Studio

formatting_test.go
No OneTemporary

formatting_test.go

package writeas
import (
"testing"
)
func TestMarkdown(t *testing.T) {
dwac := NewDevClient()
in := "This is *formatted* in __Markdown__."
out := `<p>This is <em>formatted</em> in <strong>Markdown</strong>.</p>
`
res, err := dwac.Markdown(in, "")
if err != nil {
t.Errorf("Unexpected fetch results: %+v, err: %v\n", res, err)
}
if res != out {
t.Errorf(`Got: '%s'
Expected: '%s'`, res, out)
}
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 2:21 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3106702

Event Timeline