Skip to content

Commit

Permalink
fixup! tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed Nov 24, 2024
1 parent d6e9b62 commit 9519618
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions crates/jrsonnet-evaluator/src/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ impl AsPathLike for IStr {
ResolvePath::Str(self)
}
}
impl AsPathLike for Path {
fn as_path(&self) -> ResolvePath<'_> {
ResolvePath::Path(self)
}
}
impl AsPathLike for Cow<'_, Path> {
fn as_path(&self) -> ResolvePath<'_> {
ResolvePath::Path(self.as_ref())
Expand Down
4 changes: 2 additions & 2 deletions tests/golden/issue172.jsonnet.golden
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable is not defined: b
issue172.jsonnet:1:45-47: variable <b> access
local is not defined: b
issue172.jsonnet:1:45-47: local <b> access
issue172.jsonnet:1:4-10: field <value> access
elem <0> evaluation
6 changes: 3 additions & 3 deletions tests/golden/missing_binding.jsonnet.golden
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
variable is not defined: sta
There is variable with similar name present: std
missing_binding.jsonnet:1:1-5: variable <sta> access
local is not defined: sta
There is a local with similar name present: std
missing_binding.jsonnet:1:1-5: local <sta> access

0 comments on commit 9519618

Please sign in to comment.