From 214191732b912c65b60ef01cf0a2b023ac4159b6 Mon Sep 17 00:00:00 2001 From: albttx Date: Mon, 6 Nov 2023 00:53:23 +0000 Subject: [PATCH] chore: reproduce bug #638 package already exists in cache --- examples/gno.land/p/demo/tests/tests.gno | 2 ++ examples/gno.land/p/demo/tests/z1_test.gno | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 examples/gno.land/p/demo/tests/z1_test.gno diff --git a/examples/gno.land/p/demo/tests/tests.gno b/examples/gno.land/p/demo/tests/tests.gno index f0e4173f313..248d0112498 100644 --- a/examples/gno.land/p/demo/tests/tests.gno +++ b/examples/gno.land/p/demo/tests/tests.gno @@ -8,6 +8,8 @@ import ( rtests "gno.land/r/demo/tests" ) +var World = "world" + // IncCounter demonstrates that it's possible to call a realm function from // a package. So a package can potentially write into the store, by calling // an other realm. diff --git a/examples/gno.land/p/demo/tests/z1_test.gno b/examples/gno.land/p/demo/tests/z1_test.gno new file mode 100644 index 00000000000..500895f07e6 --- /dev/null +++ b/examples/gno.land/p/demo/tests/z1_test.gno @@ -0,0 +1,12 @@ +package tests_test + +import ( + "testing" + + "gno.land/p/demo/tests" +) + +func TestGetHelloWorld(t *testing.T) { + s := "hello " + tests.World + println(s) +}