github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/zrealm12.gno (about) 1 // PKGPATH: gno.land/r/test 2 package test 3 4 import ( 5 "std" 6 7 "gno.land/r/demo/tests" 8 ) 9 10 func main() { 11 if std.TestCurrentRealm() != "gno.land/r/test" { 12 panic("should not happen") 13 } 14 tests.InitTestNodes() 15 if std.TestCurrentRealm() != "gno.land/r/test" { 16 panic("should not happen") 17 } 18 tests.ModTestNodes() 19 if std.TestCurrentRealm() != "gno.land/r/test" { 20 panic("should not happen") 21 } 22 std.ClearStoreCache() 23 if std.TestCurrentRealm() != "gno.land/r/test" { 24 panic("should not happen") 25 } 26 tests.PrintTestNodes() 27 if std.TestCurrentRealm() != "gno.land/r/test" { 28 panic("should not happen") 29 } 30 } 31 32 // Output: 33 // second's child