z_0_c_filetest.gno

0.43 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	boardName = "test123"
13)
14
15func init() {
16	testing.SetRealm(std.NewUserRealm(owner))
17	boards2.CreateBoard(cross, boardName, false)
18}
19
20func main() {
21	testing.SetRealm(std.NewUserRealm(owner))
22
23	boards2.CreateBoard(cross, boardName, false)
24}
25
26// Error:
27// board already exists