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 dstBoard boards.BoardID
12
13func init() {
14 users.Register("", "gnouser", "my profile")
15
16 dstBoard = boards.CreateBoard("dst_board")
17
18 boards.CreateRepost(0, 0, "First Post in (title)", "Body of the first post. (body)", dstBoard)
19}
20
21func main() {
22}
23
24// Error:
25// src board not exist
z_9_a_filetest.gno
0.42 Kb ยท 25 lines