Skip to content

Commit

Permalink
fix: override str key test cases (#984)
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy authored Jan 15, 2024
1 parent cbba08f commit e757fb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kclvm/ast_pretty/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ impl<'p> Printer<'p> {
self.write(
&names
.iter()
.map(|n| format!("{n:?}"))
.map(|n| format!("{:?}", n.node))
.collect::<Vec<String>>()
.join(": {"),
);
Expand Down
2 changes: 1 addition & 1 deletion kclvm/query/src/test_data/import_paths.k
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import pkg
import pkg.pkg
import pkg.pkg as alias_pkg1
import pkg.pkg as alias_pkg2
import .relative_pkg
import relative_pkg

schema Data:
id?: int = 0
Expand Down
2 changes: 1 addition & 1 deletion kclvm/query/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ appConfiguration = AppConfiguration {
labels: {
key: {
key: "override_value"
Node { node: "str-key", filename: "", line: 1, column: 1, end_line: 1, end_column: 1 } = "override_value"
"str-key" = "override_value"
}
}
mainContainer: Main {name: "override_name"}
Expand Down

0 comments on commit e757fb5

Please sign in to comment.