z_16_a_filetest.gno
0.50 Kb ยท 29 lines
1package main
2
3import (
4 "std"
5 "testing"
6
7 boards2 "gno.land/r/gnoland/boards2/v1"
8)
9
10const owner = std.Address("g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq") // @devx
11
12var bid boards2.BoardID
13
14func init() {
15 testing.SetRealm(std.NewUserRealm(owner))
16 bid = boards2.CreateBoard(cross, "test-board", false)
17}
18
19func main() {
20 testing.SetRealm(std.NewUserRealm(owner))
21
22 boards2.SetFlaggingThreshold(cross, bid, 4)
23
24 // Ensure that flagging threshold changed
25 println(boards2.GetFlaggingThreshold(bid))
26}
27
28// Output:
29// 4