Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10387524
formatting_test.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
413 B
Subscribers
None
formatting_test.go
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 2:21 PM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3106702
Attached To
rWGO writeas-go
Event Timeline
Log In to Comment