mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
fold complete_postfix tests into one
This commit is contained in:
parent
1c5a63e3db
commit
9dd7ccf609
5 changed files with 3 additions and 411 deletions
|
@ -56,9 +56,9 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_filter_postfix_completion1() {
|
||||
fn postfix_completion_works_for_trivial_path_expression() {
|
||||
check_snippet_completion(
|
||||
"filter_postfix_completion1",
|
||||
"postfix_completion_works_for_trivial_path_expression",
|
||||
r#"
|
||||
fn main() {
|
||||
let bar = "a";
|
||||
|
@ -67,43 +67,4 @@ mod tests {
|
|||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_filter_postfix_completion2() {
|
||||
check_snippet_completion(
|
||||
"filter_postfix_completion2",
|
||||
r#"
|
||||
fn main() {
|
||||
let bar = "a";
|
||||
bar.i<|>
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_filter_postfix_completion3() {
|
||||
check_snippet_completion(
|
||||
"filter_postfix_completion3",
|
||||
r#"
|
||||
fn main() {
|
||||
let bar = "a";
|
||||
bar.if<|>
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_filter_postfix_completion4() {
|
||||
check_snippet_completion(
|
||||
"filter_postfix_completion4",
|
||||
r#"
|
||||
fn main() {
|
||||
let bar = "a";
|
||||
bar.dbg<|>
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue