// PKGPATH: gno.land/p/archive/groups_test package groups_test // SEND: 1000000ugnot import ( "testing" "gno.land/r/archive/groups" uinit "gno.land/r/sys/users/init" ) var gid groups.GroupID func main() { testing.SetRealm(testing.NewUserRealm(address("g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm"))) // so that CurrentRealm.Addr() matches OrigCaller uinit.RegisterUser(cross, "gnouser123", address("g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm")) gid = groups.CreateGroup(cross, "test_group") println(gid) println(groups.Render("")) } // Output: // 1 // List of all Groups: // // * [test_group](/r/demo/groups:test_group)