1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:14:46 -07:00
go/container/intsets/util_test.go

17 lines
375 B
Go
Raw Normal View History

// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package intsets
import "testing"
func TestNLZ(t *testing.T) {
if x := nlz(0x0000801000000000); x != 16 {
t.Errorf("bad %d", x)
}
}
// Backdoor for testing.
func (s *Sparse) Check() error { return s.check() }