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) +}