diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_assists/src/flip_comma.rs | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/crates/ra_assists/src/flip_comma.rs b/crates/ra_assists/src/flip_comma.rs index 1b7521e8b..5ee7561bc 100644 --- a/crates/ra_assists/src/flip_comma.rs +++ b/crates/ra_assists/src/flip_comma.rs | |||
@@ -49,15 +49,20 @@ mod tests { | |||
49 | // See https://github.com/rust-analyzer/rust-analyzer/issues/1619 | 49 | // See https://github.com/rust-analyzer/rust-analyzer/issues/1619 |
50 | // "Flip comma" assist shouldn't be applicable to the last comma in enum or struct | 50 | // "Flip comma" assist shouldn't be applicable to the last comma in enum or struct |
51 | // declaration body. | 51 | // declaration body. |
52 | check_assist_target(flip_comma, | 52 | check_assist_target( |
53 | "pub enum Test { \ | 53 | flip_comma, |
54 | A,<|> \ | 54 | "pub enum Test { \ |
55 | }", ","); | 55 | A,<|> \ |
56 | 56 | }", | |
57 | 57 | ",", | |
58 | check_assist_target(flip_comma, | 58 | ); |
59 | "pub struct Test { \ | 59 | |
60 | foo: usize,<|> \ | 60 | check_assist_target( |
61 | }", ","); | 61 | flip_comma, |
62 | "pub struct Test { \ | ||
63 | foo: usize,<|> \ | ||
64 | }", | ||
65 | ",", | ||
66 | ); | ||
62 | } | 67 | } |
63 | } | 68 | } |