github.com/safedep/dry@v0.0.0-20241016050132-a15651f0548b/utils/rand_test.go (about) 1 package utils 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestInt64(t *testing.T) { 10 s := map[int64]bool{} 11 count := 1000 12 for i := 0; i < count; i++ { 13 n := Int64(2 << 31) 14 assert.False(t, s[n]) 15 s[n] = true 16 } 17 }