mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-24 06:50:40 +02:00
add test
This commit is contained in:
1 parent
04662126bb
commit
280ab7f95c
1 file changed
+15
@@ -16,6 +16,21 @@ var (
|
||||
memStore = newMemStore()
|
||||
)
|
||||
|
||||
func TestReverseInsert(t *testing.T) {
|
||||
list := NewSeed(100, memStore)
|
||||
|
||||
list.Insert([]byte("zzz"), []byte("zzz"))
|
||||
list.Delete([]byte("zzz"))
|
||||
|
||||
list.Insert([]byte("aaa"), []byte("aaa"))
|
||||
|
||||
if list.IsEmpty() {
|
||||
t.Fail()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
func TestInsertAndFind(t *testing.T) {
|
||||
|
||||
k0 := []byte("0")
|
||||
|
||||
Reference in new issue
Block a user