Some comment tests

This commit is contained in:
vsrs 2021-07-31 07:34:54 +03:00
parent 4fa66f1e1e
commit 580e5e277a

View File

@ -285,7 +285,11 @@ fn sort_trait() {
sort_items,
r#"
$0trait Bar {
fn a() {}
fn a() {
}
// comment for c
fn c() {}
fn z() {}
fn b() {}
@ -293,8 +297,12 @@ fn b() {}
"#,
r#"
trait Bar {
fn a() {}
fn a() {
}
fn b() {}
// comment for c
fn c() {}
fn z() {}
}
@ -311,6 +319,9 @@ fn sort_impl() {
$0impl Bar {
fn c() {}
fn a() {}
/// long
/// doc
/// comment
fn z() {}
fn d() {}
}
@ -321,6 +332,9 @@ impl Bar {
fn a() {}
fn c() {}
fn d() {}
/// long
/// doc
/// comment
fn z() {}
}
"#,