From 4f65a31dcef91cb70cb8e446999d21e4f6e285c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Sat, 6 Jul 2024 17:57:37 +0200 Subject: [PATCH] fix: update golden test `zrealm_tests0_stdlibs.gno` (#2524) ## Description This PR is a hotfix for `gnovm/tests/files/zrealm_tests0_stdlibs.gno`, and updates the golden tests accordingly
Contributors' checklist... - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
--- gnovm/tests/files/zrealm_tests0_stdlibs.gno | 200 ++++++++++++++++++-- 1 file changed, 184 insertions(+), 16 deletions(-) diff --git a/gnovm/tests/files/zrealm_tests0_stdlibs.gno b/gnovm/tests/files/zrealm_tests0_stdlibs.gno index 70ac3dd810d..768ea40bb58 100644 --- a/gnovm/tests/files/zrealm_tests0_stdlibs.gno +++ b/gnovm/tests/files/zrealm_tests0_stdlibs.gno @@ -400,7 +400,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "56", +// "Line": "57", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -796,7 +796,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "11", +// "Line": "12", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -842,7 +842,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "15", +// "Line": "16", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -898,7 +898,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "19", +// "Line": "20", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -954,7 +954,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "25", +// "Line": "26", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1000,7 +1000,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "29", +// "Line": "30", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1046,7 +1046,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "33", +// "Line": "34", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1092,7 +1092,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "37", +// "Line": "38", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1138,7 +1138,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "41", +// "Line": "42", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1197,7 +1197,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "52", +// "Line": "53", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1246,7 +1246,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "74", +// "Line": "75", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1282,7 +1282,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "79", +// "Line": "80", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1318,7 +1318,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "87", +// "Line": "88", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1364,7 +1364,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "91", +// "Line": "92", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1420,7 +1420,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "95", +// "Line": "96", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1477,7 +1477,7 @@ func main() { // "Location": { // "Column": "1", // "File": "tests.gno", -// "Line": "99", +// "Line": "100", // "PkgPath": "gno.land/r/demo/tests" // } // }, @@ -1501,6 +1501,174 @@ func main() { // }, // { // "T": { +// "@type": "/gno.FuncType", +// "Params": [], +// "Results": [ +// { +// "Embedded": false, +// "Name": "", +// "Tag": "", +// "Type": { +// "@type": "/gno.PrimitiveType", +// "value": "4" +// } +// } +// ] +// }, +// "V": { +// "@type": "/gno.FuncValue", +// "Closure": { +// "@type": "/gno.RefValue", +// "Escaped": true, +// "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:6" +// }, +// "FileName": "tests.gno", +// "IsMethod": false, +// "Name": "IsCallerSubPath", +// "NativeName": "", +// "NativePkg": "", +// "PkgPath": "gno.land/r/demo/tests", +// "Source": { +// "@type": "/gno.RefNode", +// "BlockNode": null, +// "Location": { +// "Column": "1", +// "File": "tests.gno", +// "Line": "104", +// "PkgPath": "gno.land/r/demo/tests" +// } +// }, +// "Type": { +// "@type": "/gno.FuncType", +// "Params": [], +// "Results": [ +// { +// "Embedded": false, +// "Name": "", +// "Tag": "", +// "Type": { +// "@type": "/gno.PrimitiveType", +// "value": "4" +// } +// } +// ] +// } +// } +// }, +// { +// "T": { +// "@type": "/gno.FuncType", +// "Params": [], +// "Results": [ +// { +// "Embedded": false, +// "Name": "", +// "Tag": "", +// "Type": { +// "@type": "/gno.PrimitiveType", +// "value": "4" +// } +// } +// ] +// }, +// "V": { +// "@type": "/gno.FuncValue", +// "Closure": { +// "@type": "/gno.RefValue", +// "Escaped": true, +// "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:6" +// }, +// "FileName": "tests.gno", +// "IsMethod": false, +// "Name": "IsCallerParentPath", +// "NativeName": "", +// "NativePkg": "", +// "PkgPath": "gno.land/r/demo/tests", +// "Source": { +// "@type": "/gno.RefNode", +// "BlockNode": null, +// "Location": { +// "Column": "1", +// "File": "tests.gno", +// "Line": "108", +// "PkgPath": "gno.land/r/demo/tests" +// } +// }, +// "Type": { +// "@type": "/gno.FuncType", +// "Params": [], +// "Results": [ +// { +// "Embedded": false, +// "Name": "", +// "Tag": "", +// "Type": { +// "@type": "/gno.PrimitiveType", +// "value": "4" +// } +// } +// ] +// } +// } +// }, +// { +// "T": { +// "@type": "/gno.FuncType", +// "Params": [], +// "Results": [ +// { +// "Embedded": false, +// "Name": "", +// "Tag": "", +// "Type": { +// "@type": "/gno.PrimitiveType", +// "value": "4" +// } +// } +// ] +// }, +// "V": { +// "@type": "/gno.FuncValue", +// "Closure": { +// "@type": "/gno.RefValue", +// "Escaped": true, +// "ObjectID": "0ffe7732b4d549b4cf9ec18bd68641cd2c75ad0a:6" +// }, +// "FileName": "tests.gno", +// "IsMethod": false, +// "Name": "HasCallerSameNamespace", +// "NativeName": "", +// "NativePkg": "", +// "PkgPath": "gno.land/r/demo/tests", +// "Source": { +// "@type": "/gno.RefNode", +// "BlockNode": null, +// "Location": { +// "Column": "1", +// "File": "tests.gno", +// "Line": "112", +// "PkgPath": "gno.land/r/demo/tests" +// } +// }, +// "Type": { +// "@type": "/gno.FuncType", +// "Params": [], +// "Results": [ +// { +// "Embedded": false, +// "Name": "", +// "Tag": "", +// "Type": { +// "@type": "/gno.PrimitiveType", +// "value": "4" +// } +// } +// ] +// } +// } +// }, +// { +// "T": { // "@type": "/gno.SliceType", // "Elt": { // "@type": "/gno.RefType",