z_create_board_10_filetest.gno
0.41 Kb · 19 lines
1package main
2
3import (
4 "testing"
5
6 boards2 "gno.land/r/gnoland/boards2/v1"
7)
8
9const owner address = "g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq"
10
11func main() {
12 testing.SetRealm(testing.NewUserRealm(owner))
13
14 // Should fail because board name has a space which is not allowed
15 boards2.CreateBoard(cross, "test 123", false, false)
16}
17
18// Error:
19// board name must start with a letter and have letters, numbers, "-" and "_"