z_7_b_filetest.gno

0.34 Kb ยท 23 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
12func main() {
13	testing.SetRealm(std.NewUserRealm(owner))
14
15	bid, found := boards2.GetBoardIDFromName(cross, "foobar")
16
17	println(found)
18	println(bid == 0)
19}
20
21// Output:
22// false
23// true