Example #1
0
func BenchmarkXxhash32(b *testing.B) {
	for i := 0; i < b.N; i++ {
		N.Checksum32(in)
	}
}
Example #2
0
func TestHash32Short(t *testing.T) {
	r := N.Checksum32(in)
	if r != expected32 {
		t.Errorf("expected 0x%x, got 0x%x.", expected32, r)
	}
}