MCPcopy Create free account
hub / github.com/egonelbre/exp / TestScanLeftSmall

Function TestScanLeftSmall

bit/scan_test.go:18–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestScanLeftSmall(t *testing.T) {
19 for i := 0; i < 1521; i += 1 {
20 x := uint64(i * 31)
21 got := ScanLeft(x)
22 exp := slowScanLeft(x)
23 if got != exp {
24 t.Errorf("failed %b: got %v exp %v", x, got, exp)
25 break
26 }
27 }
28}
29
30func TestScanLeftRandom(t *testing.T) {
31 for i := 0; i < 1521; i += 1 {

Callers

nothing calls this directly

Calls 2

ScanLeftFunction · 0.85
slowScanLeftFunction · 0.85

Tested by

no test coverage detected