Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: he1pa <[email protected]>
  • Loading branch information
He1pa committed Oct 11, 2024
1 parent e6cfb91 commit d61b808
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kclvm/tools/src/LSP/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ fn goto_import_pkg_with_line_test() {
let (file, _program, _, gs) =
compile_test_file("src/test_data/goto_def_with_line_test/main_pkg/main.k");
let pos = KCLPos {
filename: file,
filename: file.adjust_canonicalization(),
line: 1,
column: Some(27),
};
Expand Down Expand Up @@ -533,7 +533,7 @@ fn complete_import_external_file_test() {
.unwrap();

let pos = KCLPos {
filename: path.to_string(),
filename: path.to_string().adjust_canonicalization(),
line: 1,
column: Some(11),
};
Expand Down Expand Up @@ -595,7 +595,7 @@ fn goto_import_external_file_test() {

// test goto import file: import .pkg.schema_def
let pos = KCLPos {
filename: path.to_string(),
filename: path.to_string().adjust_canonicalization(),
line: 1,
column: Some(57),
};
Expand Down

0 comments on commit d61b808

Please sign in to comment.