Add test for LetElse case.

Postfix completion is not triggered.
This commit is contained in:
Duong Quoc Khanh 2023-02-08 04:04:10 +09:00
parent 8535f2bb1b
commit 2666e6eda8
No known key found for this signature in database
GPG Key ID: DA52A74E804A00E7

View File

@ -571,6 +571,13 @@ fn main() {
r#"fn main() { let x = if true {1} else {2}.$0 }"#,
r#"fn main() { let x = unsafe { if true {1} else {2} } }"#,
);
// completion will not be triggered
check_edit(
"unsafe",
r#"fn main() { let x = true else {panic!()}.$0}"#,
r#"fn main() { let x = true else {panic!()}.unsafe}"#,
);
}
#[test]