z_0_g_filetest.gno

0.40 Kb ยท 22 lines
 1package main
 2
 3import (
 4	"std"
 5	"strings"
 6	"testing"
 7
 8	boards2 "gno.land/r/gnoland/boards2/v1"
 9)
10
11const owner = std.Address("g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq") // @devx
12
13var name = strings.Repeat("X", boards2.MaxBoardNameLength+1)
14
15func main() {
16	testing.SetRealm(std.NewUserRealm(owner))
17
18	boards2.CreateBoard(cross, name, false)
19}
20
21// Error:
22// board name is too long, maximum allowed is 50 characters