Commit cc0e6515 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 16eb6224
......@@ -486,13 +486,17 @@ func TestΔBTreeAllStructs(t *testing.T) {
v = keysv2
rng.Shuffle(len(v), func(i,j int) { v[i], v[j] = v[j], v[i] })
// generate case: keysv1[i] -> keysv2[i] with values generated randomly
// along the way.
// generate cases: keysv1[i] -> keysv2[i] with values generated
// randomly along the way.
vv := "abcdefgh"
randv := func() string {
i := rng.Intn(len(vv))
return vv[i:i+1]
}
testq := make(chan string)
go func() {
defer close(testq)
for i := range keysv1 {
keys1 := keysv1[i]
keys2 := keysv2[i]
......@@ -506,8 +510,9 @@ func TestΔBTreeAllStructs(t *testing.T) {
fmt.Printf("%s -> %s\n", kvtxt(kv1), kvtxt(kv2))
}
}()
_ = maxdepth; _ = maxsplit; _ = n; _ = rng
testΔBTail(t, testq)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment