z_0_c_filetest.gno

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