summaryrefslogtreecommitdiffstats
path: root/vendor/pulldown-cmark/tests/suite/gfm_strikethrough.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/pulldown-cmark/tests/suite/gfm_strikethrough.rs')
-rw-r--r--vendor/pulldown-cmark/tests/suite/gfm_strikethrough.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/pulldown-cmark/tests/suite/gfm_strikethrough.rs b/vendor/pulldown-cmark/tests/suite/gfm_strikethrough.rs
new file mode 100644
index 000000000..92413c306
--- /dev/null
+++ b/vendor/pulldown-cmark/tests/suite/gfm_strikethrough.rs
@@ -0,0 +1,27 @@
+// This file is auto-generated by the build script
+// Please, do not modify it manually
+
+use super::test_markdown_html;
+
+#[test]
+fn gfm_strikethrough_test_1() {
+ let original = r##"~~Hi~~ Hello, world!
+"##;
+ let expected = r##"<p><del>Hi</del> Hello, world!</p>
+"##;
+
+ test_markdown_html(original, expected, false);
+}
+
+#[test]
+fn gfm_strikethrough_test_2() {
+ let original = r##"This ~~has a
+
+new paragraph~~.
+"##;
+ let expected = r##"<p>This ~~has a</p>
+<p>new paragraph~~.</p>
+"##;
+
+ test_markdown_html(original, expected, false);
+}