Skip to content

Commit

Permalink
fix: lsp kcl mod test cases (#993)
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy authored Jan 17, 2024
1 parent 985bc6b commit 48ed3b7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kclvm/tools/src/LSP/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ fn file_path_from_url_test() {
}

#[test]
fn test_lsp_with_kpm_in_order() {
fn test_lsp_with_kcl_mod_in_order() {
goto_import_external_file_test();
println!("goto_import_external_file_test PASS");
goto_import_pkg_with_line_test();
println!("goto_import_pkg_with_line_test PASS");
complete_import_external_file_test();
Expand All @@ -398,7 +400,7 @@ fn goto_import_pkg_with_line_test() {
let pos = KCLPos {
filename: file,
line: 1,
column: Some(15),
column: Some(27),
};

let res = goto_definition_with_gs(&program, &pos, &gs);
Expand Down Expand Up @@ -481,7 +483,6 @@ fn complete_import_external_file_test() {
assert_eq!(got_labels, expected_labels);
}

#[test]
fn goto_import_external_file_test() {
let path = PathBuf::from(".")
.join("src")
Expand Down Expand Up @@ -524,7 +525,7 @@ fn goto_import_external_file_test() {
let pos = KCLPos {
filename: path.to_string(),
line: 1,
column: Some(15),
column: Some(57),
};
let res = goto_definition_with_gs(&program, &pos, &gs);
assert!(res.is_some());
Expand Down

0 comments on commit 48ed3b7

Please sign in to comment.