This commit is contained in:
Evgenii P
2019-07-30 21:02:29 +07:00
parent e7cdbe795a
commit 06c3de310e
+14 -9
View File
@@ -49,15 +49,20 @@ fn flip_comma_before_punct() {
// See https://github.com/rust-analyzer/rust-analyzer/issues/1619
// "Flip comma" assist shouldn't be applicable to the last comma in enum or struct
// declaration body.
check_assist_target(flip_comma,
"pub enum Test { \
A,<|> \
}", ",");
check_assist_target(
flip_comma,
"pub enum Test { \
A,<|> \
}",
",",
);
check_assist_target(flip_comma,
"pub struct Test { \
foo: usize,<|> \
}", ",");
check_assist_target(
flip_comma,
"pub struct Test { \
foo: usize,<|> \
}",
",",
);
}
}