Parallelize slow tests

This commit is contained in:
Ian Gulliver
2021-11-20 17:21:46 -10:00
parent 56f61545ce
commit 30ff003494

View File

@@ -7,6 +7,8 @@ import "testing"
import "github.com/firestuff/subcoding/gen"
func TestRandBiasedUint64(t *testing.T) {
t.Parallel()
buckets := [65]uint64{}
for i := 0; i < 1000000; i++ {
@@ -33,6 +35,8 @@ func TestRandBiasedUint64(t *testing.T) {
}
func TestRandBiasedInt64(t *testing.T) {
t.Parallel()
// [0,62]: positive
// [63,63]: zero
// [64,126]: negative