Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Commit

Permalink
test: simple tests for task list
Browse files Browse the repository at this point in the history
  • Loading branch information
a8m committed Mar 5, 2017
1 parent 61d0b02 commit 118f785
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mark_test.go
Expand Up @@ -72,6 +72,10 @@ func TestRender(t *testing.T) {
"1. one\n2. two\n3. three": "<ol>\n<li>one</li>\n<li>two</li>\n<li>three</li>\n</ol>",
"1. one\n 1. one of one": "<ol>\n<li>one<ol>\n<li>one of one</li>\n</ol></li>\n</ol>",
"2. two\n 3. three": "<ol>\n<li>two<ol>\n<li>three</li>\n</ol></li>\n</ol>",
// Task list
"- [ ] foo\n- [ ] bar": "<ul>\n<li><input type=\"checkbox\">foo</li>\n<li><input type=\"checkbox\">bar</li>\n</ul>",
"- [x] foo\n- [x] bar": "<ul>\n<li><input type=\"checkbox\" checked>foo</li>\n<li><input type=\"checkbox\" checked>bar</li>\n</ul>",
"- [ ] foo\n- [x] bar": "<ul>\n<li><input type=\"checkbox\">foo</li>\n<li><input type=\"checkbox\" checked>bar</li>\n</ul>",
// Special characters escaping
"< hello": "<p>&lt; hello</p>",
"hello >": "<p>hello &gt;</p>",
Expand Down

0 comments on commit 118f785

Please sign in to comment.