1// PKGPATH: gno.land/r/demo/groups_test
2package groups_test
3
4// SEND: 200000000ugnot
5
6import (
7 "gno.land/r/demo/groups"
8 "gno.land/r/demo/users"
9)
10
11var gid groups.GroupID
12
13func main() {
14 users.Register("", "gnouser", "my profile")
15 gid = groups.CreateGroup("test_group")
16 println(gid)
17 groups.DeleteMember(2, 0)
18 println(groups.Render(""))
19}
20
21// Error:
22// group id (2) does not exists
z_2_b_filetest.gno
0.38 Kb ยท 22 lines