2016-07-20 09:37:38 +00:00
|
|
|
package locksutil
|
|
|
|
|
2017-03-07 16:21:32 +00:00
|
|
|
import "testing"
|
2016-07-20 09:37:38 +00:00
|
|
|
|
|
|
|
func Test_CreateLocks(t *testing.T) {
|
2017-03-07 16:21:32 +00:00
|
|
|
locks := CreateLocks()
|
2016-07-20 09:37:38 +00:00
|
|
|
if len(locks) != 256 {
|
2016-12-21 18:08:27 +00:00
|
|
|
t.Fatalf("bad: len(locks): expected:256 actual:%d", len(locks))
|
2016-07-20 09:37:38 +00:00
|
|
|
}
|
|
|
|
}
|