Skip to content

Commit c5d6691

Browse files
committed
Add test for os._exit
1 parent d2b0fd1 commit c5d6691

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

crates/ty_ide/src/completion.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,20 @@ re.<CURSOR>
509509
test.assert_completions_include("findall");
510510
}
511511

512+
#[test]
513+
fn private_symbol() {
514+
let test = cursor_test(
515+
"\
516+
import os
517+
518+
os.<CURSOR>
519+
",
520+
);
521+
522+
// The `_exit` symbol is private, but is a type that is relevant at runtime.
523+
test.assert_completions_include("_exit");
524+
}
525+
512526
#[test]
513527
fn one_function_prefix() {
514528
let test = cursor_test(

0 commit comments

Comments
 (0)