Debian Codegraph @

tests/alloc/masks/masks_test.go

raw symbols SCIP
1 package masks
2
3 import (
4 "testing"
5 )
6
7 //go:generate go run asm.go -out masks.s -stubs stub.go
8
9 func TestMasks(t *testing.T) {
10 const n = 15
11 const expect = n * (n + 1) / 2
12 if got16, got64 := Masks(); got16 != expect || got64 != expect {
13 t.Fatalf("Masks() = %v, %v; expect %v, %v", got16, got64, expect, expect)
14 }
15 }