treewide: fit test untyped int literals in 32-bit

This enables hakurei test suite to run on 32-bit targets.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-11-05 20:13:19 +09:00
parent fba201c995
commit 9fd97e71d0
29 changed files with 371 additions and 366 deletions

View File

@@ -106,11 +106,11 @@ func TestNew(t *testing.T) {
})
})
sys := New(t.Context(), message.New(nil), 0xdeadbeef)
sys := New(t.Context(), message.New(nil), 0xbeef)
if sys.ctx == nil {
t.Error("New: ctx = nil")
}
if got := sys.UID(); got != 0xdeadbeef {
if got := sys.UID(); got != 0xbeef {
t.Errorf("UID: %d", got)
}
}