Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

z_edit_reply_03_filetest.gno

0.59 Kb · 29 lines
 1// PKGPATH: gno.land/r/gnoland/boards2/v0/filetests/z_edit_reply_03_filetest
 2
 3package z_edit_reply_03_filetest
 4
 5import (
 6	"testing"
 7
 8	"gno.land/p/gnoland/boards/v0"
 9
10	boards2 "gno.land/r/gnoland/boards2/v0"
11)
12
13const owner address = "g1skl80cuz8zq3lul9pgz5pc35l2pfzgxgfpsqkx"
14
15var bid boards.ID
16
17func init(cur realm) {
18	testing.SetRealm(testing.NewUserRealm(owner))
19	bid = boards2.CreateBoard(cross(cur), "test-board", false, false)
20}
21
22func main(cur realm) {
23	testing.SetRealm(testing.NewUserRealm(owner))
24
25	boards2.EditReply(cross(cur), bid, 404, 0, "body")
26}
27
28// Error:
29// thread does not exist with ID: 404