summaryrefslogtreecommitdiffstats
path: root/vendor/pulldown-cmark/tests/suite/gfm_tasklist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/pulldown-cmark/tests/suite/gfm_tasklist.rs')
-rw-r--r--vendor/pulldown-cmark/tests/suite/gfm_tasklist.rs39
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/pulldown-cmark/tests/suite/gfm_tasklist.rs b/vendor/pulldown-cmark/tests/suite/gfm_tasklist.rs
new file mode 100644
index 000000000..2962d545b
--- /dev/null
+++ b/vendor/pulldown-cmark/tests/suite/gfm_tasklist.rs
@@ -0,0 +1,39 @@
+// This file is auto-generated by the build script
+// Please, do not modify it manually
+
+use super::test_markdown_html;
+
+#[test]
+fn gfm_tasklist_test_1() {
+ let original = r##"- [ ] foo
+- [x] bar
+"##;
+ let expected = r##"<ul>
+<li><input disabled="" type="checkbox"> foo</li>
+<li><input checked="" disabled="" type="checkbox"> bar</li>
+</ul>
+"##;
+
+ test_markdown_html(original, expected, false);
+}
+
+#[test]
+fn gfm_tasklist_test_2() {
+ let original = r##"- [x] foo
+ - [ ] bar
+ - [x] baz
+- [ ] bim
+"##;
+ let expected = r##"<ul>
+<li><input checked="" disabled="" type="checkbox"> foo
+<ul>
+<li><input disabled="" type="checkbox"> bar</li>
+<li><input checked="" disabled="" type="checkbox"> baz</li>
+</ul>
+</li>
+<li><input disabled="" type="checkbox"> bim</li>
+</ul>
+"##;
+
+ test_markdown_html(original, expected, false);
+}