1// PKGPATH: gno.land/r/demo/boards_test
2package boards_test
3
4// SEND: 200000000ugnot
5
6import (
7 "gno.land/r/demo/boards"
8 "gno.land/r/demo/users"
9)
10
11var (
12 srcBoard boards.BoardID
13 pid boards.PostID
14)
15
16func init() {
17 users.Register("", "gnouser", "my profile")
18
19 srcBoard = boards.CreateBoard("first_board")
20 pid = boards.CreateThread(srcBoard, "First Post in (title)", "Body of the first post. (body)")
21
22 boards.CreateRepost(srcBoard, pid, "First Post in (title)", "Body of the first post. (body)", 0)
23}
24
25func main() {
26}
27
28// Error:
29// dst board not exist
z_9_b_filetest.gno
0.55 Kb ยท 29 lines