package maphack

import "testing"

func TestOverflow(t *testing.T) {
	t.Skip("unused")

	const siz = 10000

	m := make(map[int64]struct{}, siz)
	for i := int64(0); i < siz+1e8; i++ {
		delete(m, i-siz)
		m[i] = struct{}{}
	}

	t.Errorf("len(m) = %d", len(m))

	s := statsA(m)
	t.Errorf("s.nbucket: %d", s.nbucket)
	t.Errorf("s.noverflow: %d", s.noverflow)
}
