Skip to content

Commit

Permalink
test: add unit test for goto dict key def containing two more elements
Browse files Browse the repository at this point in the history
  • Loading branch information
He1pa committed Aug 28, 2023
1 parent 80dd579 commit 9806555
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions kclvm/tools/src/LSP/src/test_data/goto_def_test/goto_def.k
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ fib8 = Fib {n = 8}.value

schema_map: {str: Person} = {
person: p2
person1: p2
}

p3 = schema_map.person.n.name
2 changes: 1 addition & 1 deletion kclvm/tools/src/LSP/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ fn goto_dict_key_def_test() {

let pos = KCLPos {
filename: file.clone(),
line: 58,
line: 59,
column: Some(28),
};
let res = goto_definition(&program, &pos, &prog_scope);
Expand Down

0 comments on commit 9806555

Please sign in to comment.