Skip to content

Commit

Permalink
fix: adapt zrealm_crossrealm11 test to new import restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelVallenet committed Oct 29, 2024
1 parent 91aa244 commit 794b5a9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions gnovm/tests/files/zrealm_crossrealm11_stdlibs.gno
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
package crossrealm_test

import (
"std"

ptests "gno.land/p/demo/tests"
"gno.land/p/demo/ufmt"
rtests "gno.land/r/demo/tests"
"std"
)

func getPrevRealm() std.Realm {
Expand Down Expand Up @@ -64,10 +65,6 @@ func main() {
callStackAdd: " -> r/demo/tests -> r/demo/tests/subtests",
callerFn: rtests.GetRSubtestsPrevRealm,
},
{
callStackAdd: " -> p/demo/tests -> r/demo/tests",
callerFn: ptests.GetRTestsGetPrevRealm,
},
}

println("---") // needed to have space prefixes
Expand Down Expand Up @@ -140,7 +137,3 @@ func printColumns(left, right string) {
// user1.gno -> r/crossrealm_test.main -> r/crossrealm_test.Exec -> r/demo/tests -> r/demo/tests/subtests = gno.land/r/demo/tests
// user1.gno -> r/crossrealm_test.main -> r/demo/tests.Exec -> r/demo/tests -> r/demo/tests/subtests = gno.land/r/demo/tests
// user1.gno -> r/crossrealm_test.main -> p/demo/tests.Exec -> r/demo/tests -> r/demo/tests/subtests = gno.land/r/demo/tests
// user1.gno -> r/crossrealm_test.main -> p/demo/tests -> r/demo/tests = gno.land/r/crossrealm_test
// user1.gno -> r/crossrealm_test.main -> r/crossrealm_test.Exec -> p/demo/tests -> r/demo/tests = gno.land/r/crossrealm_test
// user1.gno -> r/crossrealm_test.main -> r/demo/tests.Exec -> p/demo/tests -> r/demo/tests = gno.land/r/crossrealm_test
// user1.gno -> r/crossrealm_test.main -> p/demo/tests.Exec -> p/demo/tests -> r/demo/tests = gno.land/r/crossrealm_test

0 comments on commit 794b5a9

Please sign in to comment.