Skip to content

Commit 1b29b29

Browse files
committedFeb 9, 2021
Update Markdown unit tests
1 parent 0a34521 commit 1b29b29

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

Diff for: ‎src/librustdoc/html/markdown/tests.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ fn test_short_markdown_summary() {
201201
t("Hard-break \nsummary", "Hard-break summary");
202202
t("hello [Rust] :)\n\n[Rust]: https://www.rust-lang.org", "hello Rust :)");
203203
t("hello [Rust](https://www.rust-lang.org \"Rust\") :)", "hello Rust :)");
204-
t("code `let x = i32;` ...", "code <code>let x = i32;</code> ...");
205-
t("type `Type<'static>` ...", "type <code>Type<'static></code> ...");
204+
t("code `let x = i32;` ...", "code <code>let x = i32;</code> ");
205+
t("type `Type<'static>` ...", "type <code>Type<'static></code> ");
206206
t("# top header", "top header");
207207
t("## header", "header");
208208
t("first paragraph\n\nsecond paragraph", "first paragraph");
@@ -227,8 +227,8 @@ fn test_plain_text_summary() {
227227
t("Hard-break \nsummary", "Hard-break summary");
228228
t("hello [Rust] :)\n\n[Rust]: https://www.rust-lang.org", "hello Rust :)");
229229
t("hello [Rust](https://www.rust-lang.org \"Rust\") :)", "hello Rust :)");
230-
t("code `let x = i32;` ...", "code `let x = i32;` ...");
231-
t("type `Type<'static>` ...", "type `Type<'static>` ...");
230+
t("code `let x = i32;` ...", "code `let x = i32;` ");
231+
t("type `Type<'static>` ...", "type `Type<'static>` ");
232232
t("# top header", "top header");
233233
t("## header", "header");
234234
t("first paragraph\n\nsecond paragraph", "first paragraph");
@@ -250,6 +250,6 @@ fn test_markdown_html_escape() {
250250
}
251251

252252
t("`Struct<'a, T>`", "<p><code>Struct&lt;'a, T&gt;</code></p>\n");
253-
t("Struct<'a, T>", "<p>Struct&lt;'a, T&gt;</p>\n");
253+
t("Struct<'a, T>", "<p>Struct&lt;a, T&gt;</p>\n");
254254
t("Struct<br>", "<p>Struct&lt;br&gt;</p>\n");
255255
}

0 commit comments

Comments
 (0)
Please sign in to comment.