You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
429 B
19 lines
429 B
package correlation
|
|
|
|
import (
|
|
"math/rand"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGeneratorNext(t *testing.T) {
|
|
rand.Seed(0)
|
|
seq := &MathRandSequencer{}
|
|
gen := NewGenerator(seq)
|
|
|
|
assert.Equal(t, "0194fdc2fa2ffcc041d3ff12045b73c8", gen.Next().String())
|
|
assert.Equal(t, "6e4ff95ff662a5eee82abdf44a2d0b75", gen.Next().String())
|
|
assert.Equal(t, "fb180daf48a79ee0b10d394651850fd4", gen.Next().String())
|
|
}
|