Skip to content

Commit

Permalink
chore: reproduce bug gnolang#638 package already exists in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
albttx committed Nov 6, 2023
1 parent 789f4de commit 3410030
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/gno.land/p/demo/tests/tests.gno
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 12 additions & 0 deletions examples/gno.land/p/demo/tests/z1_test.gno
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 3410030

Please sign in to comment.