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

Function TestScanLeftRandom

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

Source from the content-addressed store, hash-verified

28}
29
30func TestScanLeftRandom(t *testing.T) {
31 for i := 0; i < 1521; i += 1 {
32 x := uint64(rand.Int63())
33 got := ScanLeft(x)
34 exp := slowScanLeft(x)
35 if got != exp {
36 t.Errorf("failed %b: got %v exp %v", x, got, exp)
37 break
38 }
39 }
40}
41
42func TestScanRightSmall(t *testing.T) {
43 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