blob: f9c57f354506b8f569f17b8eb7ab422b2dbc1e6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package markdown
import "testing"
func TestCode(t *testing.T) {
t.Run("code", func(t *testing.T) {
t.Run("mono", test("`mono`", `<p><code>mono</code></p>`))
t.Run("combo", test("bonjour `code` !", `<p>bonjour <code>code</code> !</p>`))
t.Run("mult-line", test("```\n"+"raw\nhehe"+"```", `<pre><code>raw
hehe</code></pre>`))
})
}
|