z_13_c_filetest.gno
0.46 Kb ยท 27 lines
1package main
2
3import (
4 "testing"
5
6 "gno.land/p/gnoland/boards"
7
8 boards2 "gno.land/r/boards000/v1rc1"
9)
10
11const owner address = "g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq" // @devx
12
13var bid boards.ID
14
15func init() {
16 testing.SetRealm(testing.NewUserRealm(owner))
17 bid = boards2.CreateBoard(cross, "test-board", false)
18}
19
20func main() {
21 testing.SetRealm(testing.NewUserRealm(owner))
22
23 boards2.FlagReply(cross, bid, 404, 1, "")
24}
25
26// Error:
27// thread does not exist with ID: 404