Add a test for multi-single-line comments as well

This commit is contained in:
Wesley Norris 2022-01-17 17:12:32 -05:00
parent 1c866573cb
commit 7d10752299

View file

@ -401,6 +401,21 @@ use foo::bar::Baz;"#,
); );
} }
#[test]
fn inserts_after_multiple_single_line_comments() {
check_none(
"foo::bar::Baz",
"// Represents a possible license header and/or general module comments
// Second single-line comment
// Third single-line comment",
r#"// Represents a possible license header and/or general module comments
// Second single-line comment
// Third single-line comment
use foo::bar::Baz;"#,
);
}
#[test] #[test]
fn inserts_before_single_line_item_comments() { fn inserts_before_single_line_item_comments() {
check_none( check_none(