1package boards_test23import (4 "testing"56 "gno.land/p/nt/urequire/v0"78 "gno.land/p/gnoland/boards/v0"9)1011func TestID(t *testing.T) {12 id := boards.ID(42)1314 urequire.Equal(t, "42", id.String(), "expect string to match")15 urequire.Equal(t, "0000000042", id.PaddedString(), "expect padded string to match")16 urequire.Equal(t, "000001a", id.Key(), "expect key to match")17}1819func TestIdentifierGenerator(t *testing.T) {20 g := boards.NewIdentifierGenerator()2122 urequire.Equal(t, uint64(0), uint64(g.Last()), "expect default to be 0")23 urequire.Equal(t, uint64(1), uint64(g.Next()), "expect next to be 1")24 urequire.Equal(t, uint64(1), uint64(g.Last()), "expect last to be 1")25 urequire.Equal(t, uint64(2), uint64(g.Next()), "expect next to be 2")26 urequire.Equal(t, uint64(2), uint64(g.Last()), "expect last to be 2")27}28Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.