z_3_c_filetest.gno
0.42 Kb ยท 27 lines
1package main
2
3import (
4 "std"
5 "testing"
6
7 boards2 "gno.land/r/gnoland/boards2/v1"
8)
9
10const (
11 owner = std.Address("g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq") // @devx
12 name = "foo123"
13)
14
15func init() {
16 testing.SetRealm(std.NewUserRealm(owner))
17 boards2.CreateBoard(cross, name, false)
18}
19
20func main() {
21 testing.SetRealm(std.NewUserRealm(owner))
22
23 boards2.RenameBoard(cross, name, name)
24}
25
26// Error:
27// board already exists