Skip to content

Commit 9dd7ccf

Browse files
committed
fold complete_postfix tests into one
1 parent 1c5a63e commit 9dd7ccf

5 files changed

+3
-411
lines changed

crates/ra_ide_api/src/completion/complete_postfix.rs

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ mod tests {
5656
}
5757

5858
#[test]
59-
fn test_filter_postfix_completion1() {
59+
fn postfix_completion_works_for_trivial_path_expression() {
6060
check_snippet_completion(
61-
"filter_postfix_completion1",
61+
"postfix_completion_works_for_trivial_path_expression",
6262
r#"
6363
fn main() {
6464
let bar = "a";
@@ -67,43 +67,4 @@ mod tests {
6767
"#,
6868
);
6969
}
70-
71-
#[test]
72-
fn test_filter_postfix_completion2() {
73-
check_snippet_completion(
74-
"filter_postfix_completion2",
75-
r#"
76-
fn main() {
77-
let bar = "a";
78-
bar.i<|>
79-
}
80-
"#,
81-
);
82-
}
83-
84-
#[test]
85-
fn test_filter_postfix_completion3() {
86-
check_snippet_completion(
87-
"filter_postfix_completion3",
88-
r#"
89-
fn main() {
90-
let bar = "a";
91-
bar.if<|>
92-
}
93-
"#,
94-
);
95-
}
96-
97-
#[test]
98-
fn test_filter_postfix_completion4() {
99-
check_snippet_completion(
100-
"filter_postfix_completion4",
101-
r#"
102-
fn main() {
103-
let bar = "a";
104-
bar.dbg<|>
105-
}
106-
"#,
107-
);
108-
}
10970
}

crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion2.snap

Lines changed: 0 additions & 123 deletions
This file was deleted.

crates/ra_ide_api/src/completion/snapshots/completion_item__filter_postfix_completion3.snap

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)