about summary refs log tree commit diff
path: root/src/librustdoc/html/markdown
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-08-21 18:14:25 -0700
committerNoah Lev <camelidcamel@gmail.com>2021-08-25 20:03:25 -0700
commitf8ca5764c36feab162893cd16b567d87edd4cf8e (patch)
treecc320f9baae435e1b06441b441d08ac80d74aaae /src/librustdoc/html/markdown
parentd18936a731fa1d2bf49073bd0f059129ef1b0ef1 (diff)
downloadrust-f8ca5764c36feab162893cd16b567d87edd4cf8e.tar.gz
rust-f8ca5764c36feab162893cd16b567d87edd4cf8e.zip
Add tests for `HtmlWithLimit`
Diffstat (limited to 'src/librustdoc/html/markdown')
-rw-r--r--src/librustdoc/html/markdown/tests.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/markdown/tests.rs b/src/librustdoc/html/markdown/tests.rs
index 1e4bdc2d151..eca75ef013a 100644
--- a/src/librustdoc/html/markdown/tests.rs
+++ b/src/librustdoc/html/markdown/tests.rs
@@ -225,6 +225,7 @@ fn test_short_markdown_summary() {
         assert_eq!(output, expect, "original: {}", input);
     }
 
+    t("", "");
     t("hello [Rust](https://www.rust-lang.org) :)", "hello Rust :)");
     t("*italic*", "<em>italic</em>");
     t("**bold**", "<strong>bold</strong>");
@@ -264,6 +265,7 @@ fn test_plain_text_summary() {
         assert_eq!(output, expect, "original: {}", input);
     }
 
+    t("", "");
     t("hello [Rust](https://www.rust-lang.org) :)", "hello Rust :)");
     t("**bold**", "bold");
     t("Multi-line\nsummary", "Multi-line summary");