package writeas import ( "testing" ) func TestMarkdown(t *testing.T) { dwac := NewDevClient() in := "This is *formatted* in __Markdown__." out := `
This is formatted in Markdown.
` 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) } }