git.delta.rocks / jrsonnet / refs/commits / cf772cc3eca0

difftreelog

fix tests after friendly errors feature

Yaroslav Bolyukin2022-05-26parent: #c7d58a2.patch.diff
in: master

3 files changed

modifiedcrates/jrsonnet-evaluator/tests/golden/missing_binding.jsonnetdiffbeforeafterboth
--- a/crates/jrsonnet-evaluator/tests/golden/missing_binding.jsonnet
+++ b/crates/jrsonnet-evaluator/tests/golden/missing_binding.jsonnet
@@ -1 +1 @@
-a
+sta
modifiedcrates/jrsonnet-evaluator/tests/golden/missing_binding.jsonnet.goldendiffbeforeafterboth
--- a/crates/jrsonnet-evaluator/tests/golden/missing_binding.jsonnet.golden
+++ b/crates/jrsonnet-evaluator/tests/golden/missing_binding.jsonnet.golden
@@ -1,3 +1,3 @@
-runtime error: variable is not defined: a
-There is variable(s) with similar names present: std, test
-   missing_binding.jsonnet:1:1-3: variable <a> access
\ No newline at end of file
+variable is not defined: sta
+There is variable with similar name present: std
+   missing_binding.jsonnet:1:1-5: variable <sta> access
\ No newline at end of file
modifiedcrates/jrsonnet-macros/src/lib.rsdiffbeforeafterboth
529 }529 }
530 } else {530 } else {
531 quote! {531 quote! {
532 <#ty>::from_untyped(obj.get(s.clone(), #name.into())?.ok_or_else(|| Error::NoSuchField(#name.into()))?, s.clone())?532 <#ty>::from_untyped(obj.get(s.clone(), #name.into())?.ok_or_else(|| Error::NoSuchField(#name.into(), vec![]))?, s.clone())?
533 }533 }
534 };534 };
535535