Skip to content

Commit d6f0a21

Browse files
committed
rustdoc: remove redundant test
1 parent d539f45 commit d6f0a21

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/librustdoc/html/markdown.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ pub fn plain_summary_line(md: &str) -> String {
577577
#[cfg(test)]
578578
mod tests {
579579
use super::{LangString, Markdown};
580-
use super::{collapse_whitespace, plain_summary_line};
580+
use super::plain_summary_line;
581581

582582
#[test]
583583
fn test_lang_string_parse() {
@@ -625,18 +625,4 @@ mod tests {
625625
t("# top header", "top header");
626626
t("## header", "header");
627627
}
628-
629-
#[test]
630-
fn test_collapse_whitespace() {
631-
fn t(input: &str, expected: &str) {
632-
let actual = collapse_whitespace(input);
633-
assert_eq!(actual, expected);
634-
}
635-
636-
t("foo", "foo");
637-
t("foo bar baz", "foo bar baz");
638-
t(" foo bar", "foo bar");
639-
t("\tfoo bar\nbaz", "foo bar baz");
640-
t("foo bar \n baz\t\tqux\n", "foo bar baz qux");
641-
}
642628
}

0 commit comments

Comments
 (0)