add redis3

This commit is contained in:
Chris Lu
2021-10-04 01:01:31 -07:00
parent ba7fbac07f
commit 366f522a2d
11 changed files with 296 additions and 48 deletions

View File

@@ -15,7 +15,7 @@ func String(x int) string {
}
func TestNameList(t *testing.T) {
list := NewNameList(memStore, 7)
list := newNameList(memStore, 7)
for i := 0; i < maxNameCount; i++ {
list.WriteName(String(i))
@@ -51,7 +51,7 @@ func TestNameList(t *testing.T) {
}
// randomized deletion
list = NewNameList(memStore, 7)
list = newNameList(memStore, 7)
// Delete elements at random positions in the list.
rList := rand.Perm(maxN)
for _, i := range rList {