summaryrefslogtreecommitdiffstats
path: root/vendor/pulldown-cmark/tests/suite/gfm_strikethrough.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /vendor/pulldown-cmark/tests/suite/gfm_strikethrough.rs
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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);
+}