fold complete_postfix tests into one

This commit is contained in:
Hoàng Đức Hiếu 2019-02-03 20:12:57 +07:00
parent 1c5a63e3db
commit 9dd7ccf609
5 changed files with 3 additions and 411 deletions

View file

@ -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<|>
}
"#,
);
}
}